sqllogictest

Artifact [a8cb437777]
Login

Artifact a8cb437777c62a4e3e3ae511314ec616f3f47655:


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 AS col2 FROM tab1 AS cor0
----
-3
-64
-80

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 3 col1 FROM tab1 cor0
----
-30
-39
-78

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-5
SELECT - col2 + + ( 69 ) DIV - col2 FROM tab1 AS cor0
----
-55
-58
-96

skipif mysql # not compatible
query I rowsort label-5
SELECT - col2 + + ( 69 ) / - col2 FROM tab1 AS cor0
----
-55
-58
-96

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

query I rowsort
SELECT cor0.col1 * 93 * col2 FROM tab2 AS cor0
----
142662
60078
77841

onlyif mysql # use DIV operator for integer division
query I rowsort label-8
SELECT + cor0.col0 * col0 - col1 DIV col1 FROM tab2 cor0
----
48
6083
6240

skipif mysql # not compatible
query I rowsort label-8
SELECT + cor0.col0 * col0 - col1 / col1 FROM tab2 cor0
----
48
6083
6240

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

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

skipif mysql # not compatible
query I rowsort
SELECT ALL - - col1 + + CAST ( - col0 AS REAL ) * - col0 FROM tab1 AS cor0
----
35
4106
6413

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

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

query I rowsort
SELECT ALL 10 * + col0 FROM tab1 AS cor0
----
30
640
800

onlyif mysql # use DIV operator for integer division
query I rowsort label-14
SELECT - CAST( + col1 AS SIGNED ) DIV + col1 + - 48 + + col0 * col1 * col2 AS col1 FROM tab2 AS cor0
----
119603
50985
5810

skipif mysql # not compatible
query I rowsort label-14
SELECT - CAST ( + col1 AS INTEGER ) / + col1 + - 48 + + col0 * col1 * col2 AS col1 FROM tab2 AS cor0
----
119603
50985
5810

query I rowsort
SELECT ALL - 14 AS col2 FROM tab0 cor0
----
-14
-14
-14

query I rowsort
SELECT DISTINCT - + col2 + 98 * - col0 FROM tab1 AS cor0
----
-348
-6329
-7936

query I rowsort
SELECT col1 * + ( + col0 ) * col1 AS col2 FROM tab0
----
177504
329315
737009

query I rowsort
SELECT 92 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 cor0, tab0 AS cor1
----
243 values hashing to 3e8bd9634a3f5947d8becd5f5799bb7f

query I rowsort
SELECT ALL col2 * 20 FROM tab1
----
1080
1140
1920

onlyif mysql # use DIV operator for integer division
query I rowsort label-21
SELECT DISTINCT - col2 DIV + 27 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-21
SELECT DISTINCT - col2 / + 27 FROM tab0
----
-1
-3
0

query I rowsort
SELECT ALL + 60 * + col2 AS col0 FROM tab2 AS cor0
----
1560
1620
2280

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

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

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

query I rowsort
SELECT + 35 + - col2 AS col0 FROM tab0 AS cor0
----
-47
2
34

query I rowsort
SELECT DISTINCT - col1 + - 95 FROM tab2 AS cor0
----
-112
-126
-154

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

query I rowsort
SELECT + cor0.col1 * cor0.col0 + col2 * col2 + - 29 AS col0 FROM tab1 cor0
----
10227
2965
3860

query I rowsort
SELECT ALL + col2 + + 51 * 62 FROM tab1
----
3216
3219
3258

query I rowsort
SELECT ALL col1 - 82 FROM tab1
----
-56
-69
-72

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

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

query I rowsort
SELECT ALL 71 FROM tab1 AS cor0
----
71
71
71

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-34
SELECT ALL - - col0 DIV cor0.col0 + - col0 DIV 5 AS col1 FROM tab2 cor0
----
-14
-14
0

skipif mysql # not compatible
query I rowsort label-34
SELECT ALL - - col0 / cor0.col0 + - col0 / 5 AS col1 FROM tab2 cor0
----
-14
-14
0

query I rowsort
SELECT ALL + col2 + col2 - col1 * col2 AS col0 FROM tab0 AS cor0
----
-2772
-7298
-95

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

skipif mysql # not compatible
query I rowsort label-36
SELECT + - cor0.col1 / + col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - col1 + col2 + + 13 AS col2 FROM tab1 AS cor0
----
41
60
96

query I rowsort
SELECT DISTINCT col2 + col2 AS col2 FROM tab1 AS cor0
----
108
114
192

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

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

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

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

skipif mysql # not compatible
query I rowsort label-42
SELECT ALL col1 * col2 / col1 FROM tab1
----
54
57
96

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

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

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

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

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

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-48
SELECT - - col1 DIV col1 AS col2 FROM tab1 AS cor0
----
1
1
1

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-49
SELECT - tab1.col2 * + col2 + + col0 DIV - col0 FROM tab1
----
-2917
-3250
-9217

skipif mysql # not compatible
query I rowsort label-49
SELECT - tab1.col2 * + col2 + + col0 / - col0 FROM tab1
----
-2917
-3250
-9217

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

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

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

query I rowsort
SELECT 82 - col0 AS col2 FROM tab2
----
3
4
75

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

query I rowsort
SELECT tab1.col1 AS col1 FROM tab1
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-55
SELECT DISTINCT 46 DIV col0 AS col0 FROM tab2
----
0
6

skipif mysql # not compatible
query I rowsort label-55
SELECT DISTINCT 46 / col0 AS col0 FROM tab2
----
0
6

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

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

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

query IIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
243 values hashing to 70c6a01760d7239f3003db4da92180a4

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-61
SELECT DISTINCT - col1 DIV + cor0.col1 + col2 AS col2 FROM tab2 AS cor0
----
25
26
37

skipif mysql # not compatible
query I rowsort label-61
SELECT DISTINCT - col1 / + cor0.col1 + col2 AS col2 FROM tab2 AS cor0
----
25
26
37

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

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

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

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

query I rowsort
SELECT ALL + col2 + cor0.col2 * - col2 FROM tab2 AS cor0
----
-1406
-650
-702

query I rowsort
SELECT col1 + - 84 FROM tab0 AS cor0
----
13
2
7

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * 64 col0 FROM tab0 AS cor0
----
-1536
-2240
-5696

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

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

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

query I rowsort
SELECT ALL - ( + 56 ) + col1 * - 20 FROM tab1 cor0
----
-256
-316
-576

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-77
SELECT ALL - ( - col1 ) DIV - col1 - col2 FROM tab2 AS cor0
----
-27
-28
-39

skipif mysql # not compatible
query I rowsort label-77
SELECT ALL - ( - col1 ) / - col1 - col2 FROM tab2 AS cor0
----
-27
-28
-39

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

query I rowsort
SELECT DISTINCT + 60 * col2 - + col0 FROM tab1 AS cor0
----
3237
3356
5680

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

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

query I rowsort
SELECT + 47 * - 19 + col1 FROM tab2 AS cor0
----
-834
-862
-876

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-83
SELECT CAST( col0 AS SIGNED ) DIV - col1 + - col1 * - col1 * - cor0.col1 FROM tab1 AS cor0
----
-1006
-17576
-2203

skipif mysql # not compatible
query I rowsort label-83
SELECT CAST ( col0 AS INTEGER ) / - col1 + - col1 * - col1 * - cor0.col1 FROM tab1 AS cor0
----
-1006
-17576
-2203

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

query I rowsort
SELECT DISTINCT + 20 * cor0.col2 + - col2 FROM tab2 AS cor0
----
494
513
722

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-87
SELECT DISTINCT col2 - + col0 * col1 DIV 41 AS col1 FROM tab2 AS cor0
----
-86
22
6

skipif mysql # not compatible
query I rowsort label-87
SELECT DISTINCT col2 - + col0 * col1 / 41 AS col1 FROM tab2 AS cor0
----
-86
22
6

query I rowsort
SELECT - ( + cor0.col2 ) + 2 FROM tab0 AS cor0
----
-31
-80
1

query I rowsort
SELECT DISTINCT - 4 * - col1 AS col0 FROM tab2 cor0
----
124
236
68

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

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

query I rowsort
SELECT + col2 * tab0.col2 + + col0 AS col2 FROM tab0
----
1113
36
6813

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 36 * col1 + col1 + col0 * col2 col1 FROM tab0 cor0
----
-2218
-3360
4113

query I rowsort
SELECT + - col0 * col2 + 10 * + col1 AS col0 FROM tab2 AS cor0
----
-1438
-2832
121

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col0 col1 FROM tab2
----
137
38
96

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

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

query I rowsort
SELECT DISTINCT + ( ( + col1 ) ) * ( + col2 ) + + col2 + col2 AS col0 FROM tab0 AS cor0
----
2904
7626
99

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

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

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

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

query I rowsort
SELECT - 97 * col1 FROM tab1
----
-1261
-2522
-970

query I rowsort
SELECT col2 * col2 + ( 19 ) * + col0 FROM tab1 AS cor0
----
10736
2973
4465

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

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

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

query I rowsort
SELECT - col2 * col2 * + 32 + + col2 AS col1 FROM tab2 AS cor0
----
-21606
-23301
-46170

query I rowsort
SELECT + col0 + col0 * 60 FROM tab1 cor0
----
183
3904
4880

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

query I rowsort
SELECT + 91 * - col1 + col2 FROM tab2 AS cor0
----
-1509
-2794
-5343

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

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

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

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

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

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

query I rowsort
SELECT + col0 + col2 * col2 * col0 FROM tab1 AS cor0
----
208000
737360
8751

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

query I rowsort
SELECT DISTINCT + col0 * 72 FROM tab0 AS cor0
----
1728
2520
6408

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

query I rowsort
SELECT ALL + col1 + cor0.col1 AS col0 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT + col1 AS col2 FROM tab1 cor0
----
10
13
26

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

query I rowsort
SELECT ALL - - col1 * 64 + - col2 AS col2 FROM tab1 AS cor0
----
1610
583
736

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

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

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 cor0, tab1 cor1
----
243 values hashing to 2464a6f4cfabe66aeca50fcb4cd85bf5

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

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

skipif mysql # not compatible
query I rowsort label-135
SELECT ALL - + col2 / cor0.col1 + + col1 FROM tab2 AS cor0
----
15
31
59

query I rowsort
SELECT col2 + + 7 * ( col0 ) * 29 AS col1 FROM tab0
----
18149
4905
7106

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

query I rowsort
SELECT + + 14 + + col0 - col0 * + col1 * 90 AS col2 FROM tab1 AS cor0
----
-57522
-7003
-93506

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

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

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

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

query I rowsort
SELECT - ( + ( - col2 ) ) + ( 16 ) * + col2 FROM tab0 AS cor0
----
1394
17
561

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

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

query I rowsort
SELECT ALL - + col2 - 74 * col2 FROM tab0 AS cor0
----
-2475
-6150
-75

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

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

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

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

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

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

query I rowsort
SELECT ALL col0 * + ( col1 ) * tab2.col2 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT DISTINCT + + 78 FROM tab0 AS cor0
----
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-152
SELECT + + 6 DIV 76 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-152
SELECT + + 6 / 76 FROM tab0 AS cor0
----
0
0
0

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

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

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

query I rowsort
SELECT DISTINCT - cor1.col0 FROM tab0, tab1 AS cor0, tab1 cor1
----
-3
-64
-80

query I rowsort
SELECT DISTINCT - 59 * + col1 AS col0 FROM tab1 cor0
----
-1534
-590
-767

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

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

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

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

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

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

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0 CROSS JOIN tab2
----
243 values hashing to 5d85c5683e3ffd6d68920690d7302f7d

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-167
SELECT - cor0.col0 DIV + tab0.col0 FROM tab0, tab2 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to 0a21f4c05105e7b181ac5fadfaafc8d0

skipif mysql # not compatible
query I rowsort label-167
SELECT - cor0.col0 / + tab0.col0 FROM tab0, tab2 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to 0a21f4c05105e7b181ac5fadfaafc8d0

onlyif mysql # use DIV operator for integer division
query I rowsort label-168
SELECT + tab2.col2 DIV cor0.col1 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 9e295aa5379f0483ca837632baa4466e

skipif mysql # not compatible
query I rowsort label-168
SELECT + tab2.col2 / cor0.col1 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 9e295aa5379f0483ca837632baa4466e

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-172
SELECT - - col2 / + 42 FROM tab2 AS cor0
----
0
0
0

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-174
SELECT ALL col0 DIV ( + col0 + + col0 ) AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-174
SELECT ALL col0 / ( + col0 + + col0 ) AS col0 FROM tab2
----
0
0
0

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

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

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

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

query I rowsort
SELECT - col0 - 14 * col0 FROM tab1
----
-1200
-45
-960

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-181
SELECT ALL tab2.col0 DIV + cor0.col0 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to edecdf8c19990fc9b117d24ff0a040f4

skipif mysql # not compatible
query I rowsort label-181
SELECT ALL tab2.col0 / + cor0.col0 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to edecdf8c19990fc9b117d24ff0a040f4

query I rowsort
SELECT + tab2.col2 * + 20 - col1 FROM tab2
----
461
509
743

query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2, tab2 cor0
----
243 values hashing to 042fa16c43ab365359ee93c064e44127

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

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

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

skipif mysql # not compatible
query I rowsort label-186
SELECT DISTINCT + col0 + col1 * CAST ( cor0.col1 AS INTEGER ) FROM tab0 AS cor0
----
7420
8370
9444

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

query I rowsort
SELECT ALL - col2 * col2 + col2 FROM tab0 AS cor0
----
-1056
-6642
0

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

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

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

query I rowsort
SELECT ALL - 70 AS col0 FROM tab0
----
-70
-70
-70

query I rowsort
SELECT - col1 * - col2 - ( col2 ) FROM tab1 AS cor0
----
1152
1350
513

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-195
SELECT DISTINCT + + col2 DIV cor0.col1 + + col0 FROM tab1 AS cor0
----
5
69
87

skipif mysql # not compatible
query I rowsort label-195
SELECT DISTINCT + + col2 / cor0.col1 + + col0 FROM tab1 AS cor0
----
5
69
87

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

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

query I rowsort
SELECT ALL + + col2 * + ( 0 * - col0 ) - 97 FROM tab2 AS cor0
----
-97
-97
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-199
SELECT - col1 + 89 DIV - col0 + col0 FROM tab2
----
-36
18
61

skipif mysql # not compatible
query I rowsort label-199
SELECT - col1 + 89 / - col0 + col0 FROM tab2
----
-36
18
61

query I rowsort
SELECT ALL col2 + - 62 AS col2 FROM tab2
----
-24
-35
-36

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

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

query I rowsort
SELECT + col1 * 86 - + cor0.col1 FROM tab0 AS cor0
----
7310
7735
8245

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

query I rowsort
SELECT ALL + + col0 * col2 + - 29 * + col1 FROM tab1 AS cor0
----
-592
3358
7303

query I rowsort
SELECT ALL - - col0 * - 66 FROM tab2 AS cor0
----
-462
-5148
-5214

query I rowsort
SELECT DISTINCT - col1 * col1 + - cor0.col0 + col2 AS col2 FROM tab1 AS cor0
----
-107
-153
-625

query I rowsort
SELECT - col2 * 51 AS col1 FROM tab0 AS cor0
----
-1683
-4182
-51

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 AS cor0
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-210
SELECT ALL - col1 * ( + col1 * + col1 ) - col0 DIV - 63 FROM tab2 AS cor0
----
-205378
-29791
-4912

skipif mysql # not compatible
query I rowsort label-210
SELECT ALL - col1 * ( + col1 * + col1 ) - col0 / - 63 FROM tab2 AS cor0
----
-205378
-29791
-4912

query I rowsort
SELECT DISTINCT + + col0 * - 67 + 7 FROM tab2 cor0
----
-462
-5219
-5286

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

query I rowsort
SELECT cor0.col1 FROM tab0, tab1 cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

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

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

query I rowsort
SELECT ALL - col0 * ( tab0.col1 * col1 ) + col0 AS col1 FROM tab0
----
-177480
-329280
-736920

onlyif mysql # use DIV operator for integer division
query I rowsort label-217
SELECT DISTINCT - col1 * col2 DIV col1 + 61 AS col0 FROM tab0 AS cor0
----
-21
28
60

skipif mysql # not compatible
query I rowsort label-217
SELECT DISTINCT - col1 * col2 / col1 + 61 AS col0 FROM tab0 AS cor0
----
-21
28
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * 26 + - col0 col2 FROM tab2 AS cor0
----
1456
363
799

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-220
SELECT + - cor0.col2 DIV - 6 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 9be14357f6755471ed5e7583c76c9423

skipif mysql # not compatible
query I rowsort label-220
SELECT + - cor0.col2 / - 6 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 9be14357f6755471ed5e7583c76c9423

query I rowsort
SELECT DISTINCT - - ( + 99 ) + - col2 FROM tab2 cor0
----
61
72
73

query I rowsort
SELECT ALL - ( - col1 ) AS col1 FROM tab1 AS cor0
----
10
13
26

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

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

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

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

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

query I rowsort
SELECT ALL + 64 + - cor0.col1 FROM tab0 AS cor0
----
-22
-27
-33

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-233
SELECT ALL + col0 + col0 * ( col0 ) DIV - col2 FROM tab0 AS cor0
----
-1190
-7
7

skipif mysql # not compatible
query I rowsort label-233
SELECT ALL + col0 + col0 * ( col0 ) / - col2 FROM tab0 AS cor0
----
-1190
-7
7

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-236
SELECT ALL + col1 DIV + col2 + + col2 * + ( - col0 * - col0 ) AS col1 FROM tab1 AS cor0
----
233472
486
614400

skipif mysql # not compatible
query I rowsort label-236
SELECT ALL + col1 / + col2 + + col2 * + ( - col0 * - col0 ) AS col1 FROM tab1 AS cor0
----
233472
486
614400

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

query I rowsort
SELECT ALL + ( - col0 ) * 13 * - col2 + col1 AS col1 FROM tab0 AS cor0
----
10382
552
94965

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-240
SELECT ALL - col0 + - ( + col1 ) DIV col0 FROM tab1
----
-11
-64
-80

skipif mysql # not compatible
query I rowsort label-240
SELECT ALL - col0 + - ( + col1 ) / col0 FROM tab1
----
-11
-64
-80

query I rowsort
SELECT + col2 + 30 FROM tab0
----
112
31
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-242
SELECT DISTINCT + ( tab2.col1 ) + col0 DIV tab2.col0 AS col2 FROM tab2
----
18
32
60

skipif mysql # not compatible
query I rowsort label-242
SELECT DISTINCT + ( tab2.col1 ) + col0 / tab2.col0 AS col2 FROM tab2
----
18
32
60

query I rowsort
SELECT ALL ( 83 ) + + col0 FROM tab0
----
107
118
172

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

query I rowsort
SELECT ALL 88 FROM tab0, tab2 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

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

query I rowsort
SELECT - tab1.col2 + - tab1.col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 6d59c936869313d0b2d0f28c10bf14a9

onlyif mysql # use DIV operator for integer division
query I rowsort label-248
SELECT ALL - 42 DIV - 77 + tab0.col2 AS col1 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-248
SELECT ALL - 42 / - 77 + tab0.col2 AS col1 FROM tab0
----
1
33
82

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-252
SELECT DISTINCT - - col0 DIV col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-252
SELECT DISTINCT - - col0 / col0 FROM tab1 AS cor0
----
1

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

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

query I rowsort
SELECT - + 79 * + cor0.col1 AS col2 FROM tab0 cor0
----
-6794
-7189
-7663

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

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
243 values hashing to 3a953203ced079e372111d61dbd9e35f

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

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 cor0, tab1 cor1
----
243 values hashing to 4fe4780e49e612b93957f575d9b3e89f

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

query I rowsort
SELECT - - 45 + - col0 AS col2 FROM tab1 cor0
----
-19
-35
42

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1, tab0 AS cor0, tab0
----
972 values hashing to 8b4fcda7f1ca76bad7c7d728f54a51e0

query I rowsort
SELECT ALL 54 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a

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

query I rowsort
SELECT 84 * - col2 + + col1 * col1 FROM tab2
----
-1307
-2903
1297

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

query I rowsort
SELECT - cor0.col0 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

query I rowsort
SELECT - 73 FROM tab0
----
-73
-73
-73

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

query I rowsort
SELECT + col0 * - 31 AS col1 FROM tab2 AS cor0
----
-217
-2418
-2449

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

query I rowsort
SELECT ALL ( - col1 + 92 ) FROM tab2
----
33
61
75

query I rowsort
SELECT 54 * - 6 - - col1 AS col0 FROM tab0 AS cor0
----
-227
-233
-238

query I rowsort
SELECT - - col2 * col1 * - col0 - - ( col2 ) * + col0 AS col2 FROM tab0 cor0
----
-3360
-656820
-67320

query I rowsort
SELECT - col0 + 72 AS col2 FROM tab1 AS cor0
----
-8
69
8

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1, tab2 cor0
----
243 values hashing to 6506b295d3a7bcc5ed65956f5b4e38b0

query I rowsort
SELECT DISTINCT col0 - col0 FROM tab0
----
0

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

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

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

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

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

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

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

query I rowsort
SELECT ALL - - 37 FROM tab0 AS cor0
----
37
37
37

query I rowsort
SELECT 10 AS col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176

query I rowsort
SELECT - col2 * + tab2.col0 + - ( col2 ) * 80 - col0 FROM tab2
----
-2356
-4186
-6121

query I rowsort
SELECT ALL + ( - cor0.col1 ) FROM tab2, tab2 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

onlyif mysql # use DIV operator for integer division
query I rowsort label-288
SELECT ALL + 51 DIV ( + col1 ) FROM tab2
----
0
1
3

skipif mysql # not compatible
query I rowsort label-288
SELECT ALL + 51 / ( + col1 ) FROM tab2
----
0
1
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-289
SELECT CAST( col2 AS SIGNED ) * tab2.col0 FROM tab2
----
189
2028
3002

skipif mysql # not compatible
query I rowsort label-289
SELECT CAST ( col2 AS INTEGER ) * tab2.col0 FROM tab2
----
189
2028
3002

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

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
243 values hashing to 89e3b35a4a4f02d7b83645addb9dcdc3

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

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

skipif mysql # not compatible
query I rowsort label-293
SELECT CAST ( + col0 AS INTEGER ) + + col2 FROM tab1 AS cor0
----
121
176
57

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 32 * col2 * - col0 col0 FROM tab1 AS cor0
----
-116736
-245760
-5184

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 56 + cor0.col0 col2 FROM tab1 AS cor0
----
-3021
-3128
-5296

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

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

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

query I rowsort
SELECT ALL ( ( + col1 ) ) * 86 FROM tab2 cor0
----
1462
2666
5074

query I rowsort
SELECT ALL 95 FROM tab1 AS cor0
----
95
95
95

query I rowsort
SELECT + 93 * col2 + + cor0.col0 + cor0.col1 AS col0 FROM tab2 AS cor0
----
2549
2555
3630

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

query I rowsort
SELECT DISTINCT + 82 + - cor0.col2 FROM tab0 AS cor0
----
0
49
81

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

query I rowsort
SELECT + 82 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944

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

query I rowsort
SELECT + cor0.col2 * - ( 99 ) AS col2 FROM tab1 cor0
----
-5346
-5643
-9504

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-311
SELECT - col0 - + CAST( + 7 AS SIGNED ) FROM tab2 AS cor0
----
-14
-85
-86

skipif mysql # not compatible
query I rowsort label-311
SELECT - col0 - + CAST ( + 7 AS INTEGER ) FROM tab2 AS cor0
----
-14
-85
-86

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

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

query I rowsort
SELECT + - cor0.col1 - 75 * - col0 AS col0 FROM tab1 cor0
----
199
4790
5987

query I rowsort
SELECT ALL - cor0.col1 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

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

query I rowsort
SELECT cor0.col2 * - col1 + + 85 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
-11
-2720
-7295

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * ( col2 ) + col0 + + col1 col2 FROM tab1 AS cor0
----
191
3722
7773

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 26 * ( + cor0.col0 * col2 ) + col2 AS col1 FROM tab1 AS cor0
----
199776
4266
94905

query I rowsort
SELECT + 6 * ( + cor0.col2 ) FROM tab0 AS cor0
----
198
492
6

query I rowsort
SELECT ALL + col0 * + cor0.col0 + + col1 * - col1 * col2 FROM tab1 AS cor0
----
-1604
-36495
-9824

query I rowsort
SELECT DISTINCT 1 + 18 * - col1 FROM tab2 AS cor0
----
-1061
-305
-557

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

query I rowsort
SELECT ( 4 ) + col0 AS col1 FROM tab1 AS cor0
----
68
7
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 72 * col0 + + col1 * + 74 col1 FROM tab0 AS cor0
----
326
4636
4658

query I rowsort
SELECT - 37 * 22 AS col1 FROM tab0 AS cor0
----
-814
-814
-814

onlyif mysql # use DIV operator for integer division
query I rowsort label-336
SELECT ALL - col0 * cor0.col0 + col0 DIV col1 + - 54 * col0 AS col2 FROM tab1 AS cor0
----
-10714
-171
-7546

skipif mysql # not compatible
query I rowsort label-336
SELECT ALL - col0 * cor0.col0 + col0 / col1 + - 54 * col0 AS col2 FROM tab1 AS cor0
----
-10714
-171
-7546

query I rowsort
SELECT + 97 FROM tab2, tab2 AS cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

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

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

query I rowsort
SELECT DISTINCT - col0 + - col2 * + 36 * + col1 FROM tab0 AS cor0
----
-102192
-268721
-3527

query I rowsort
SELECT DISTINCT col0 * col2 * col2 + + 32 * + cor0.col1 FROM tab1 AS cor0
----
208256
737696
9580

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

query IIIIIIIII rowsort
SELECT * FROM tab1, tab2, tab0 cor0
----
243 values hashing to 566180e0144350a78b0ef3318e8f4c00

query I rowsort
SELECT DISTINCT - ( + col0 + - col0 ) FROM tab1
----
0

query I rowsort
SELECT ALL 35 * cor0.col1 AS col0 FROM tab1 AS cor0
----
350
455
910

onlyif mysql # use DIV operator for integer division
query I rowsort label-346
SELECT ALL + cor0.col2 + - cor0.col2 DIV + cor0.col2 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 12f13053a9de88bd230320a2c941c435

skipif mysql # not compatible
query I rowsort label-346
SELECT ALL + cor0.col2 + - cor0.col2 / + cor0.col2 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 12f13053a9de88bd230320a2c941c435

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

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

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

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

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

query I rowsort
SELECT 23 AS col1 FROM tab0
----
23
23
23

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

query I rowsort
SELECT + - 97 * col2 AS col2 FROM tab1 AS cor0
----
-5238
-5529
-9312

query I rowsort
SELECT + + 31 + + col1 AS col0 FROM tab0 AS cor0
----
117
122
128

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

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

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

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col0 + - 37 col0 FROM tab0 cor0
----
-1262
-613
-7958

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + cor0.col0 * + col2 * col1 col1 FROM tab2 AS cor0
----
119574
50955
5852

query I rowsort
SELECT cor0.col1 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT + col2 * 92 FROM tab1
----
4968
5244
8832

query I rowsort
SELECT ALL - ( 96 ) FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to a7b3e5dd01c8929180b7ffda67f79798

onlyif mysql # use DIV operator for integer division
query I rowsort label-369
SELECT + + col0 * + 98 + + col0 * col2 DIV cor0.col0 + col1 * ( col2 * + cor0.col0 ) AS col2 FROM tab2 AS cor0
----
127322
58814
6572

skipif mysql # not compatible
query I rowsort label-369
SELECT + + col0 * + 98 + + col0 * col2 / cor0.col0 + col1 * ( col2 * + cor0.col0 ) AS col2 FROM tab2 AS cor0
----
127322
58814
6572

query IIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0, tab2 cor1
----
243 values hashing to 042fa16c43ab365359ee93c064e44127

query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0, tab1 cor1
----
243 values hashing to 2464a6f4cfabe66aeca50fcb4cd85bf5

query I rowsort
SELECT + col2 + 40 * col2 AS col1 FROM tab2 AS cor0
----
1066
1107
1558

query I rowsort
SELECT DISTINCT 69 FROM tab1
----
69

onlyif mysql # use DIV operator for integer division
query I rowsort label-374
SELECT ALL col1 DIV - 56 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-374
SELECT ALL col1 / - 56 FROM tab1
----
0
0
0

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

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

query I rowsort
SELECT 21 FROM tab1, tab0 cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

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

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

query I rowsort
SELECT DISTINCT + 10 FROM tab2 AS cor0
----
10

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

query I rowsort
SELECT - cor0.col2 * col0 * - col2 + cor0.col2 AS col2 FROM tab2 AS cor0
----
114114
5130
52754

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

query I rowsort
SELECT DISTINCT - ( - col2 ) AS col2 FROM tab0 AS cor0
----
1
33
82

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

query I rowsort
SELECT ALL + col1 * 73 * + col1 AS col0 FROM tab2
----
21097
254113
70153

query I rowsort
SELECT ALL ( + 39 ) * col1 AS col0 FROM tab1
----
1014
390
507

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

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

query I rowsort
SELECT DISTINCT + ( - ( col2 ) ) + 83 FROM tab0 AS cor0
----
1
50
82

query I rowsort
SELECT DISTINCT + 94 * - col0 FROM tab1 AS cor0
----
-282
-6016
-7520

query I rowsort
SELECT DISTINCT - col1 * + 43 + + col1 * - col1 + - col1 AS col0 FROM tab0 AS cor0
----
-11180
-12285
-13677

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

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

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

query IIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
243 values hashing to 042fa16c43ab365359ee93c064e44127

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
243 values hashing to 70c6a01760d7239f3003db4da92180a4

query I rowsort
SELECT DISTINCT col0 * - col0 FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT - col2 + col0 * col0 FROM tab2
----
22
6058
6203

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

query I rowsort
SELECT ALL 99 FROM tab1, tab1 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query I rowsort
SELECT ALL - - 24 AS col2 FROM tab0 cor0
----
24
24
24

query I rowsort
SELECT - - cor0.col1 AS col2 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT ALL - cor0.col2 * 34 FROM tab1 AS cor0
----
-1836
-1938
-3264

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-405
SELECT ALL + CAST( col1 AS SIGNED ) + col0 AS col0 FROM tab1 AS cor0
----
29
74
93

skipif mysql # not compatible
query I rowsort label-405
SELECT ALL + CAST ( col1 AS INTEGER ) + col0 AS col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL + - ( + 95 ) FROM tab2 AS cor0
----
-95
-95
-95

query I rowsort
SELECT ALL + 31 AS col1 FROM tab0 AS cor0
----
31
31
31

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

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

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

query I rowsort
SELECT + cor0.col1 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

onlyif mysql # use DIV operator for integer division
query I rowsort label-412
SELECT DISTINCT col2 DIV - col0 + - ( - tab2.col2 * - col1 + 95 ) AS col1 FROM tab2
----
-1629
-741
-935

skipif mysql # not compatible
query I rowsort label-412
SELECT DISTINCT col2 / - col0 + - ( - tab2.col2 * - col1 + 95 ) AS col1 FROM tab2
----
-1629
-741
-935

query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 cor0, tab2 AS cor1
----
243 values hashing to 5d85c5683e3ffd6d68920690d7302f7d

query I rowsort
SELECT ALL 57 * + col2 - - ( - 64 ) FROM tab0
----
-7
1817
4610

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col2 * + col2 + + col0 * - col0 col2 FROM tab0 AS cor0
----
-1322
-619805
-94230

query I rowsort
SELECT ALL - col1 + 52 * 43 FROM tab2 AS cor0
----
2177
2205
2219

query I rowsort
SELECT DISTINCT - col0 * + 9 + - cor0.col2 + col1 FROM tab1 cor0
----
-55
-623
-803

query I rowsort
SELECT col1 + col2 * 18 FROM tab0 AS cor0
----
115
1567
680

query I rowsort
SELECT ALL - col0 * + ( + col1 ) - col0 * cor0.col0 AS col2 FROM tab2 AS cor0
----
-10686
-266
-7584

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

skipif mysql # not compatible
query I rowsort label-426
SELECT ALL col0 / + col1 + col0 * col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

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

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

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

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

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

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

query I rowsort
SELECT ( - tab0.col1 ) * 86 FROM tab0
----
-7396
-7826
-8342

query I rowsort
SELECT ALL + - col1 * - col0 * + cor0.col2 + cor0.col2 * - ( - col2 * + cor0.col0 ) FROM tab1 AS cor0
----
12960
244416
837120

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

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab1 AS cor0
----
-10
-13
-26

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

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

query I rowsort
SELECT cor0.col1 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT ALL + col0 * ( 90 ) + + cor0.col2 AS col1 FROM tab0 AS cor0
----
2193
3151
8092

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

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

query I rowsort
SELECT ALL + col1 + + 79 * col1 FROM tab0 AS cor0
----
6880
7280
7760

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 cor0, tab0 cor1
----
243 values hashing to 566180e0144350a78b0ef3318e8f4c00

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col1 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT + col1 + col2 + 37 FROM tab2
----
122
92
95

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

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

query I rowsort
SELECT DISTINCT - col1 * 24 * col2 FROM tab0 AS cor0
----
-179088
-2328
-68112

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 63 * - cor0.col2 FROM tab2 AS cor0
----
-1638
-1701
-2394

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col0 + - col1 col1 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT DISTINCT ( + col1 ) * - col2 - 57 AS col0 FROM tab0 AS cor0
----
-154
-2895
-7519

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - cor0.col2 col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT DISTINCT 32 + - 88 * - col0 FROM tab1 AS cor0
----
296
5664
7072

query I rowsort
SELECT + ( 53 ) + col0 * col2 AS col2 FROM tab0 AS cor0
----
7351
845
88

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

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

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

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

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

query I rowsort
SELECT ( 58 ) AS col0 FROM tab0 AS cor0
----
58
58
58

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

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

query I rowsort
SELECT DISTINCT + 95 FROM tab2 AS cor0
----
95

query I rowsort
SELECT ALL - + cor0.col1 * - col0 + + 47 + 61 AS col0 FROM tab0 AS cor0
----
2172
3503
8207

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

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-477
SELECT - - col0 * - col0 / ( ( col0 ) ) AS col0 FROM tab2 AS cor0
----
-7
-78
-79

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

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

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

query I rowsort
SELECT ALL 33 FROM tab1 AS cor0
----
33
33
33

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

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

query I rowsort
SELECT tab2.col0 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

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

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

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

query I rowsort
SELECT DISTINCT + - ( cor0.col0 ) + - col0 + col1 FROM tab2 cor0
----
-141
-97
17

query I rowsort
SELECT 78 AS col1 FROM tab0 AS cor0
----
78
78
78

query I rowsort
SELECT - 52 AS col0 FROM tab1 AS cor0
----
-52
-52
-52

query I rowsort
SELECT - col2 - - col0 FROM tab2
----
-20
41
52

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

query I rowsort
SELECT - 27 + + col2 + col0 * col1 FROM tab2
----
1354
217
4601

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

query I rowsort
SELECT ALL col2 + + col1 * - ( + tab1.col1 ) FROM tab1
----
-43
-622
-73

query I rowsort
SELECT DISTINCT + 19 * col0 FROM tab1 AS cor0
----
1216
1520
57

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

query I rowsort
SELECT col2 + + col0 + + 48 FROM tab2
----
152
165
82

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-501
SELECT CAST( col0 + col0 AS SIGNED ) FROM tab0
----
178
48
70

skipif mysql # not compatible
query I rowsort label-501
SELECT CAST ( col0 + col0 AS INTEGER ) FROM tab0
----
178
48
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 74 * + 90 col2 FROM tab1
----
6660

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-506
SELECT + cor0.col0 DIV - 15 FROM tab2 cor0
----
-5
-5
0

skipif mysql # not compatible
query I rowsort label-506
SELECT + cor0.col0 / - 15 FROM tab2 cor0
----
-5
-5
0

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

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

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

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

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

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

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

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

query I rowsort
SELECT + 58 * + col1 FROM tab0 cor0
----
4988
5278
5626

query I rowsort
SELECT 4 * col2 FROM tab1 AS cor0
----
216
228
384

query I rowsort
SELECT cor0.col1 AS col0 FROM tab1 AS cor0
----
10
13
26

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 45 col0 FROM tab0 AS cor0
----
3870
4095
4365

query I rowsort
SELECT - - cor0.col1 * col1 + - col1 + - col0 AS col1 FROM tab2 AS cor0
----
193
3344
923

query I rowsort
SELECT + + col2 * - 79 AS col2 FROM tab0 AS cor0
----
-2607
-6478
-79

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

query I rowsort
SELECT + col2 + + col1 * - col0 + + col2 AS col1 FROM tab0
----
-1998
-3393
-7935

query I rowsort
SELECT - col0 + - 35 + col1 FROM tab2 AS cor0
----
-11
-54
-97

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

query I rowsort
SELECT - + 83 AS col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 77a48ad722db122f51d5ef36604ad843

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

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

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

query I rowsort
SELECT ALL + tab0.col1 AS col1 FROM tab0
----
86
91
97

query I rowsort
SELECT ALL - col1 AS col0 FROM tab0
----
-86
-91
-97

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-547
SELECT DISTINCT cor0.col1 / col1 FROM tab0 AS cor0
----
1

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

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

query I rowsort
SELECT ALL col1 + col0 * + col1 * col1 AS col2 FROM tab1
----
13533
2054
6410

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

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

query I rowsort
SELECT ALL col0 + tab1.col2 * - col2 + col2 AS col2 FROM tab1
----
-2859
-3128
-9040

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2
----
54 values hashing to fe43263cad63144a098cccb9cd58c32a

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

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

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

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

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

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

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

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0 CROSS JOIN tab1
----
243 values hashing to 877a8dbac0e29b86e845fb64ed9d2242

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

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

query I rowsort
SELECT - cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

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

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

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

query I rowsort
SELECT ALL col0 - - tab1.col2 AS col1 FROM tab1
----
121
176
57

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 31 * cor0.col1 AS col2 FROM tab0 AS cor0
----
2666
2821
3007

query I rowsort
SELECT ( - col2 ) * + cor0.col1 + - 76 * col0 AS col1 FROM tab2 AS cor0
----
-1369
-6650
-7462

query I rowsort
SELECT DISTINCT - cor0.col1 AS col1 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT - + col0 + - col0 + cor0.col2 * - col2 FROM tab1 AS cor0
----
-2922
-3377
-9376

query I rowsort
SELECT DISTINCT - 26 * col1 AS col0 FROM tab0 AS cor0
----
-2236
-2366
-2522

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

query I rowsort
SELECT ALL - 27 * - col1 FROM tab0 AS cor0
----
2322
2457
2619

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

query I rowsort
SELECT + 56 + col0 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
1399
273
4658

query I rowsort
SELECT col1 * - col0 + col1 * cor0.col0 * col0 AS col1 FROM tab0 cor0
----
115430
47472
712712

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.col2 - + col2 * col0 FROM tab1 AS cor0
----
-108
-3591
-7584

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

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

query I rowsort
SELECT ALL ( - cor0.col0 ) * ( + 70 ) AS col0 FROM tab2, tab2 cor0
----
9 values hashing to 9d212e0f0048b6862b557818e98186a2

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

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

query I rowsort
SELECT col0 * col2 + - ( 96 ) AS col0 FROM tab0 AS cor0
----
-61
696
7202

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

query I rowsort
SELECT ALL 21 FROM tab0 cor0
----
21
21
21

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

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

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

query I rowsort
SELECT - ( + col2 ) AS col2 FROM tab0 AS cor0
----
-1
-33
-82

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

query I rowsort
SELECT + col0 * + 26 + ( cor0.col1 ) FROM tab1 AS cor0
----
104
1674
2093

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

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

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

query I rowsort
SELECT - col1 + col1 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 9 col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

query I rowsort
SELECT ALL col1 + col0 + + ( col2 ) AS col1 FROM tab0
----
133
143
262

query I rowsort
SELECT ALL 9 * - 32 AS col2 FROM tab2 AS cor0
----
-288
-288
-288

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-609
SELECT ALL - ( 33 ) + - col0 / col1 AS col2 FROM tab0 AS cor0
----
-33
-33
-33

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

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

query I rowsort
SELECT - 15 * cor0.col0 - col2 AS col2 FROM tab2 AS cor0
----
-1196
-1223
-132

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

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

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

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

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

query I rowsort
SELECT ALL col2 * 58 + col2 AS col1 FROM tab0
----
1947
4838
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 34 * - 87 * + col1 + + col1 col0 FROM tab0
----
254474
269269
287023

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

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

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

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

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

query I rowsort
SELECT - 74 FROM tab0 cor0
----
-74
-74
-74

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-627
SELECT ALL - ( + 51 * - col0 ) + - CAST( 52 AS SIGNED ) * + col1 + - col0 AS col2 FROM tab0
----
-282
-3272
-3294

skipif mysql # not compatible
query I rowsort label-627
SELECT ALL - ( + 51 * - col0 ) + - CAST ( 52 AS INTEGER ) * + col1 + - col0 AS col2 FROM tab0
----
-282
-3272
-3294

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

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

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

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

query I rowsort
SELECT - cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

onlyif mysql # use DIV operator for integer division
query I rowsort label-633
SELECT ALL ( + col1 ) * cor0.col0 + - col1 DIV col2 FROM tab1 AS cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-633
SELECT ALL ( + col1 ) * cor0.col0 + - col1 / col2 FROM tab1 AS cor0
----
1040
640
78

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

skipif mysql # not compatible
query I rowsort label-634
SELECT 45 / - col2 AS col1 FROM tab0 AS cor0
----
-1
-45
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col2 * + col0 * - 55 col1 FROM tab2
----
-10395
-111540
-165110

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-638
SELECT ALL + 82 * col1 DIV - col1 AS col0 FROM tab2
----
-82
-82
-82

skipif mysql # not compatible
query I rowsort label-638
SELECT ALL + 82 * col1 / - col1 AS col0 FROM tab2
----
-82
-82
-82

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

query I rowsort
SELECT 15 * tab2.col0 FROM tab2
----
105
1170
1185

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

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

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

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

query I rowsort
SELECT col2 * + col2 * ( + col1 ) FROM tab2
----
22599
24548
39884

query I rowsort
SELECT - cor0.col0 AS col0 FROM tab0, tab2 cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

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

query I rowsort
SELECT ALL - 37 AS col2 FROM tab0 AS cor0
----
-37
-37
-37

query I rowsort
SELECT DISTINCT + col1 + col1 + + col2 FROM tab0 cor0
----
195
205
264

query IIIIIIIII rowsort
SELECT * FROM tab2, tab1 cor0, tab0 cor1
----
243 values hashing to 2ba47a833971d4c4b0287e849fb0cfb8

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

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

query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab2, tab1 AS cor0
----
3
64
80

query I rowsort
SELECT - cor0.col0 + 84 FROM tab1 AS cor0
----
20
4
81

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

query I rowsort
SELECT ALL col2 * col1 * 77 AS col2 FROM tab1
----
108108
43890
96096

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

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

query I rowsort
SELECT + col0 + - 69 AS col1 FROM tab0 AS cor0
----
-34
-45
20

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

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

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

query I rowsort
SELECT ALL - col1 AS col2 FROM tab1 AS cor0
----
-10
-13
-26

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

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

skipif mysql # not compatible
query I rowsort label-663
SELECT 48 / col0 FROM tab0 AS cor0
----
0
1
2

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

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

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

query I rowsort
SELECT + 40 * 91 FROM tab1 AS cor0
----
3640
3640
3640

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

query I rowsort
SELECT DISTINCT - 52 FROM tab2, tab2 AS cor0
----
-52

onlyif mysql # use DIV operator for integer division
query I rowsort label-670
SELECT ALL - col1 DIV col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-670
SELECT ALL - col1 / col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - 30 * tab2.col1 AS col1 FROM tab2, tab2 AS cor0
----
-1770
-510
-930

query I rowsort
SELECT DISTINCT tab2.col1 FROM tab2
----
17
31
59

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - ( + col2 ) * - col2 col2 FROM tab1
----
157464
185193
884736

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

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

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

query I rowsort
SELECT + ( col2 ) AS col2 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT - 94 - 71 * + cor0.col2 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 756f2296185d6c7350ce9e0abc9d4ccf

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 15 * col0 + col0 col0 FROM tab1 AS cor0
----
1024
1280
48

query I rowsort
SELECT 85 + + col0 AS col0 FROM tab2 AS cor0
----
163
164
92

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab2
----
26
27
38

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

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

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

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 - 33 * + col0 col2 FROM tab0 AS cor0
----
-1155
-2937
-792

query I rowsort
SELECT col2 * cor0.col2 * col1 + - col1 FROM tab2 AS cor0
----
22568
24531
39825

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

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

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

query I rowsort
SELECT ALL + 43 * col0 AS col0 FROM tab0
----
1032
1505
3827

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 col2 FROM tab2 AS cor0
----
7
78
79

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

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

query I rowsort
SELECT + + 52 - + col2 FROM tab0 AS cor0
----
-30
19
51

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

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

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

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

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

query I rowsort
SELECT + col2 + ( - ( col1 ) * col1 ) FROM tab1 AS cor0
----
-43
-622
-73

query I rowsort
SELECT + - 46 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

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

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

query I rowsort
SELECT ALL col2 + + col0 AS col0 FROM tab1
----
121
176
57

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

query I rowsort
SELECT DISTINCT - cor0.col0 AS col0 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT + - col1 * ( col0 ) + cor0.col2 * 36 FROM tab2 AS cor0
----
-3666
25
755

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-716
SELECT DISTINCT cor0.col2 + + 4 * - cor0.col0 DIV col0 AS col1 FROM tab2 AS cor0
----
22
23
34

skipif mysql # not compatible
query I rowsort label-716
SELECT DISTINCT cor0.col2 + + 4 * - cor0.col0 / col0 AS col1 FROM tab2 AS cor0
----
22
23
34

query I rowsort
SELECT - cor0.col1 + - col2 + 87 * col2 FROM tab2 AS cor0
----
2177
2291
3251

query I rowsort
SELECT ALL + col0 * 46 + - ( - col1 ) AS col1 FROM tab2 AS cor0
----
353
3647
3651

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

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

query I rowsort
SELECT + col0 * + 86 FROM tab2 AS cor0
----
602
6708
6794

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

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

query I rowsort
SELECT DISTINCT - col2 * + col1 FROM tab0
----
-2838
-7462
-97

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

query I rowsort
SELECT + + col1 * 95 + 95 + col1 FROM tab1 AS cor0
----
1055
1343
2591

query I rowsort
SELECT DISTINCT col2 * 15 AS col0 FROM tab0 AS cor0
----
1230
15
495

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

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

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

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

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

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

query I rowsort
SELECT ALL + - col1 + 18 * - col2 FROM tab2 cor0
----
-517
-527
-701

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-736
SELECT + col0 + CAST( + 8 AS SIGNED ) + - col2 FROM tab0
----
-1
15
42

skipif mysql # not compatible
query I rowsort label-736
SELECT + col0 + CAST ( + 8 AS INTEGER ) + - col2 FROM tab0
----
-1
15
42

query IIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 CROSS JOIN tab2
----
243 values hashing to d489341cd587fd6eb0b972c5464c6ddc

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col0 * + tab0.col0 - col2 col1 FROM tab0
----
1224
543
7839

query IIIIIIIII rowsort
SELECT * FROM tab0, tab2, tab2 cor0
----
243 values hashing to 5d85c5683e3ffd6d68920690d7302f7d

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

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

query IIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0, tab2 cor1
----
243 values hashing to 60bd71ee2159222231bb3b5819bc5dca

query I rowsort
SELECT ALL cor0.col0 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

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

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

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

query I rowsort
SELECT DISTINCT - tab0.col1 * col0 * - tab0.col0 AS col1 FROM tab0
----
118825
49536
720811

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

query I rowsort
SELECT col2 + - col1 * + tab2.col1 FROM tab2
----
-251
-3455
-934

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col0 FROM tab2
----
17
31
59

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

query I rowsort
SELECT col2 * - col2 + + col0 FROM tab2 WHERE NOT ( - col0 / - col2 + - col0 ) < NULL
----

query I rowsort
SELECT ALL col1 FROM tab0 WHERE col0 + + col2 * - col0 = NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-760
SELECT ALL + tab0.col1 * tab0.col1 + + col0 DIV tab0.col0 + + col0 AS col2 FROM tab0
----
7421
8371
9445

skipif mysql # not compatible
query I rowsort label-760
SELECT ALL + tab0.col1 * tab0.col1 + + col0 / tab0.col0 + + col0 AS col2 FROM tab0
----
7421
8371
9445

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

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

query I rowsort
SELECT - tab0.col0 AS col2 FROM tab0
----
-24
-35
-89

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

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

query I rowsort
SELECT DISTINCT - tab0.col0 * col2 + col2 FROM tab0
----
-34
-7216
-759

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE NOT col1 = ( - col1 )
----
3
64
80

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN ( NULL ) AND col2 / col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-771
SELECT col0 DIV + col1 - + tab1.col2 * + col1 AS col2 FROM tab1
----
-1242
-1404
-564

skipif mysql # not compatible
query I rowsort label-771
SELECT col0 / + col1 - + tab1.col2 * + col1 AS col2 FROM tab1
----
-1242
-1404
-564

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

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

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

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

query I rowsort
SELECT ALL - + 90 + - col2 * 66 FROM tab2 AS cor0
----
-1806
-1872
-2598

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

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

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

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

query I rowsort
SELECT + ( - cor0.col0 ) + + cor0.col2 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 3b143560120db39ddcee311b43b28291

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

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

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

query I rowsort
SELECT ALL + + 81 - - col1 AS col1 FROM tab0 AS cor0
----
167
172
178

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - col2 / col0 - + col2 / col1 ) <= NULL
----

query I rowsort
SELECT + tab2.col1 * + col1 + + col0 + col1 AS col0 FROM tab2
----
3618
385
999

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - tab1.col0 - - tab1.col2 col1 FROM tab1 WHERE NOT + col0 - col0 = NULL
----

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-790
SELECT ALL - col2 DIV - tab1.col0 FROM tab1
----
0
1
18

skipif mysql # not compatible
query I rowsort label-790
SELECT ALL - col2 / - tab1.col0 FROM tab1
----
0
1
18

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-791
SELECT + col0 * col1 / col0 col2 FROM tab1
----
10
13
26

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-794
SELECT DISTINCT + col2 + tab0.col2 DIV col1 + + col0 FROM tab0
----
171
36
57

skipif mysql # not compatible
query I rowsort label-794
SELECT DISTINCT + col2 + tab0.col2 / col1 + + col0 FROM tab0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-795
SELECT ALL col2 DIV - col2 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-795
SELECT ALL col2 / - col2 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + col2 + col1 - col0 AS col0 FROM tab2
----
-24
51
7

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

query I rowsort
SELECT + tab1.col0 * + tab1.col0 * + col2 FROM tab1
----
233472
486
614400

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

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

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

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

query I rowsort
SELECT col0 AS col1 FROM tab1 AS cor0 WHERE NULL IN ( col1 )
----

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

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

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0
----
54 values hashing to 3352c458f45211cf9aa3236c2cd6dd38

query I rowsort
SELECT DISTINCT - col1 * - col0 FROM tab1
----
1040
640
78

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-809
SELECT DISTINCT col1 * - col2 DIV - col2 FROM tab1 cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-809
SELECT DISTINCT col1 * - col2 / - col2 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT DISTINCT + col1 * col0 + - col1 AS col1 FROM tab0 cor0
----
1978
3298
8008

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

query I rowsort
SELECT ALL col0 + col1 + col0 AS col0 FROM tab0 AS cor0
----
134
167
269

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

skipif mysql # not compatible
query I rowsort label-813
SELECT + col1 / - tab1.col2 FROM tab1
----
0
0
0

query I rowsort
SELECT - col0 * col0 AS col2 FROM tab2
----
-49
-6084
-6241

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

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

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

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

query I rowsort
SELECT - col2 + - col2 FROM tab1
----
-108
-114
-192

query I rowsort
SELECT ALL - col0 * - col1 + - col1 * + col0 FROM tab0
----
0
0
0

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

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

query I rowsort
SELECT - tab2.col0 + col0 FROM tab2
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-824
SELECT DISTINCT tab0.col1 DIV col1 + col1 AS col0 FROM tab0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-824
SELECT DISTINCT tab0.col1 / col1 + col1 AS col0 FROM tab0
----
87
92
98

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

query I rowsort
SELECT + col2 * - col2 AS col0 FROM tab2
----
-1444
-676
-729

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

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) >= col2
----

query I rowsort
SELECT - col2 + col1 - col0 FROM tab2
----
-100
-3
-45

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

query I rowsort
SELECT - col1 * col1 FROM tab2
----
-289
-3481
-961

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-834
SELECT ALL - col2 * tab0.col2 DIV + col1 + col0 * col2 AS col1 FROM tab0
----
35
7225
780

skipif mysql # not compatible
query I rowsort label-834
SELECT ALL - col2 * tab0.col2 / + col1 + col0 * col2 AS col1 FROM tab0
----
35
7225
780

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( col2 )
----

query I rowsort
SELECT - 83 * - ( + col2 + + col1 * 42 ) FROM tab0 AS cor0
----
302535
324032
338225

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

query I rowsort
SELECT ALL 89 FROM tab1, tab0 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

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

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

query I rowsort
SELECT ( + col1 ) + col2 * + 27 AS col1 FROM tab0 AS cor0
----
124
2305
977

query I rowsort
SELECT 22 * 37 AS col1 FROM tab2 AS cor0
----
814
814
814

query IIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
243 values hashing to 3a953203ced079e372111d61dbd9e35f

query I rowsort
SELECT DISTINCT + - 76 + + cor1.col1 + - 80 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-59
-65
-70

query I rowsort
SELECT DISTINCT + ( 24 + col2 ) AS col1 FROM tab0
----
106
25
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col1 col1 FROM tab2
----
17
31
59

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

query I rowsort
SELECT ALL - 32 * - col0 + - col1 FROM tab0
----
1023
2757
682

query I rowsort
SELECT ( 48 + - tab1.col2 ) * - col2 AS col1 FROM tab1
----
324
4608
513

query I rowsort
SELECT - ( col1 ) FROM tab1
----
-10
-13
-26

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

query I rowsort
SELECT - 21 + 71 AS col2 FROM tab1 AS cor0
----
50
50
50

query I rowsort
SELECT ALL 7 + 41 * - col2 FROM tab0 AS cor0
----
-1346
-3355
-34

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

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

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

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

query I rowsort
SELECT DISTINCT + ( - 80 ) AS col0 FROM tab1
----
-80

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col2 ) col0 FROM tab0 AS cor0
----
-1
-33
-82

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0, tab1 cor0, tab1
----
972 values hashing to 7864aada86bf5bf5e1621c7905de8dcd

query I rowsort
SELECT 88 FROM tab1
----
88
88
88

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

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

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

query I rowsort
SELECT ALL + col2 * + col1 + 49 FROM tab1
----
1297
1453
619

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

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

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

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

query I rowsort
SELECT - ( col1 ) * 43 + - col1 FROM tab1 AS cor0
----
-1144
-440
-572

query I rowsort
SELECT DISTINCT col2 * + col0 * + col0 FROM tab1 AS cor0
----
233472
486
614400

query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 cor0, tab1 AS cor1
----
243 values hashing to 2464a6f4cfabe66aeca50fcb4cd85bf5

query I rowsort
SELECT 92 + - col1 AS col0 FROM tab0
----
-5
1
6

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

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

query I rowsort
SELECT - 49 * - col0 FROM tab2
----
343
3822
3871

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

query I rowsort
SELECT ALL - 26 + - 54 FROM tab0, tab2 AS cor0
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

query I rowsort
SELECT DISTINCT + col2 + 90 * + col0 FROM tab2 AS cor0
----
657
7046
7148

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

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

query I rowsort
SELECT ALL + col2 + + 92 * + col1 FROM tab1 AS cor0
----
1292
2446
977

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

query I rowsort
SELECT col0 * 37 + col1 * col2 FROM tab1 AS cor0
----
1515
2938
4208

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 1 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

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

query I rowsort
SELECT cor0.col0 + - 86 FROM tab2 AS cor0
----
-7
-79
-8

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

query I rowsort
SELECT - col2 * - 79 FROM tab2 cor0
----
2054
2133
3002

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

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

query I rowsort
SELECT + col2 + + 60 FROM tab1 AS cor0
----
114
117
156

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-895
SELECT DISTINCT col0 * + CAST( 62 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1488
2170
5518

skipif mysql # not compatible
query I rowsort label-895
SELECT DISTINCT col0 * + CAST ( 62 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1488
2170
5518

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

query I rowsort
SELECT col0 * 93 FROM tab1 AS cor0
----
279
5952
7440

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

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
54 values hashing to b010e320d66ab5b2711fc14e8fb58b01

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

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

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

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

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

query I rowsort
SELECT ALL + 65 + col1 FROM tab1
----
75
78
91

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

query I rowsort
SELECT 31 AS col1 FROM tab1
----
31
31
31

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

query I rowsort
SELECT ( tab0.col2 ) FROM tab0
----
1
33
82

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

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

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

query I rowsort
SELECT ALL - 95 FROM tab0, tab1 AS cor0
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

query I rowsort
SELECT ALL col0 * - col0 * 81 AS col0 FROM tab2
----
-3969
-492804
-505521

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

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

query I rowsort
SELECT - 54 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 71e27a12767d3a987ce05e4d6edad211

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab1
----
-10
-13
-26

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

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

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

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

query I rowsort
SELECT + col0 + + ( - col2 ) * + col1 * - 1 AS col0 FROM tab2 AS cor0
----
1612
725
844

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

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

query I rowsort
SELECT - 72 AS col1 FROM tab0 AS cor0
----
-72
-72
-72

query I rowsort
SELECT - + col2 + 30 * cor0.col2 FROM tab0 AS cor0
----
2378
29
957

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

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

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

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

query I rowsort
SELECT ALL + 45 * + cor0.col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to d566fb611ec8e4195e058361f98d3b78

query I rowsort
SELECT ALL - cor0.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

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

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

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

query I rowsort
SELECT ALL - - 58 * col2 AS col0 FROM tab2 cor0
----
1508
1566
2204

query I rowsort
SELECT DISTINCT - col1 + - col0 * col1 * cor0.col0 FROM tab0 AS cor0
----
-118922
-49622
-720902

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

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

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

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

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

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

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

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

query I rowsort
SELECT ALL col0 * cor0.col0 + - ( 88 ) FROM tab0 cor0
----
1137
488
7833

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

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

query I rowsort
SELECT DISTINCT + + 2 * + col1 AS col2 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT 30 FROM tab0 AS cor0
----
30
30
30

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

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

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

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

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

query I rowsort
SELECT 12 AS col0 FROM tab2
----
12
12
12

query I rowsort
SELECT - 5 AS col2 FROM tab2
----
-5
-5
-5

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col0 - - col2 col1 FROM tab2
----
1381
244
4628

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-969
SELECT + col1 DIV col2 + - col2 * + col1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-969
SELECT + col1 / col2 + - col2 * + col1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

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

query I rowsort
SELECT ALL - + 31 * col2 FROM tab1 cor0
----
-1674
-1767
-2976

query I rowsort
SELECT ALL + - col0 + col0 * + 81 FROM tab0 AS cor0
----
1920
2800
7120

query I rowsort
SELECT 69 * + ( + col2 ) AS col0 FROM tab1
----
3726
3933
6624

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-975
SELECT + + col0 DIV + 82 + - cor0.col0 * + col1 AS col2 FROM tab1 cor0
----
-1040
-640
-78

skipif mysql # not compatible
query I rowsort label-975
SELECT + + col0 / + 82 + - cor0.col0 * + col1 AS col2 FROM tab1 cor0
----
-1040
-640
-78

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

query I rowsort
SELECT ALL + - col0 * - col0 + 59 AS col1 FROM tab1 AS cor0
----
4155
6459
68

query I rowsort
SELECT - + col2 * col2 * 95 FROM tab2 cor0
----
-137180
-64220
-69255

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

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

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

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

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

query I rowsort
SELECT - col1 AS col0 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT ALL col2 * - ( 44 ) AS col2 FROM tab0 AS cor0
----
-1452
-3608
-44

query I rowsort
SELECT DISTINCT + + col0 * + 33 AS col0 FROM tab1 AS cor0
----
2112
2640
99

query I rowsort
SELECT ALL col2 + 27 FROM tab1 AS cor0
----
123
81
84

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

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 ALL - col1 * cor0.col1 col2 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL + col1 * 61 + + col1 AS col2 FROM tab2 AS cor0
----
1054
1922
3658

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

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

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

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

query IIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0, tab2 AS cor1
----
243 values hashing to 60bd71ee2159222231bb3b5819bc5dca

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

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

query I rowsort
SELECT - cor0.col0 + - cor0.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 72844961641a3f6d21e0110ae40f640c

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

query I rowsort
SELECT ( + col2 * 25 ) + + tab0.col0 * - col2 FROM tab0
----
-10
-5248
33

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab1
----
-3
-64
-80

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

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

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

query I rowsort
SELECT col0 * ( - col1 + col2 ) FROM tab0 AS cor0
----
-1272
-3360
-801

query I rowsort
SELECT + tab1.col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT - col0 + + col0 AS col2 FROM tab0
----
0
0
0

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1009
SELECT + CAST ( NULL AS INTEGER ) + 96 FROM tab1 cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1011
SELECT DISTINCT col2 * 32 DIV + col0 FROM tab0 AS cor0
----
0
29
44

skipif mysql # not compatible
query I rowsort label-1011
SELECT DISTINCT col2 * 32 / + col0 FROM tab0 AS cor0
----
0
29
44

query I rowsort
SELECT ALL - col1 + - col1 AS col2 FROM tab0 cor0
----
-172
-182
-194

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
243 values hashing to 89e3b35a4a4f02d7b83645addb9dcdc3

query I rowsort
SELECT DISTINCT col1 + - 11 * - col1 FROM tab2
----
204
372
708

onlyif mysql # use DIV operator for integer division
query I rowsort label-1015
SELECT col2 DIV col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1015
SELECT col2 / col2 FROM tab0
----
1
1
1

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

query I rowsort
SELECT - col0 AS col1 FROM tab1 cor0
----
-3
-64
-80

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

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

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

query I rowsort
SELECT + col1 * 42 FROM tab0 AS cor0
----
3612
3822
4074

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

query I rowsort
SELECT DISTINCT + + col1 FROM tab1 AS cor0
----
10
13
26

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

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

skipif mysql # not compatible
query I rowsort label-1025
SELECT - - col2 / - 60 AS col2 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT col1 + 14 AS col0 FROM tab0 AS cor0
----
100
105
111

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1028
SELECT DISTINCT col2 DIV - ( + col1 ) + + col1 AS col0 FROM tab1 AS cor0
----
24
5
6

skipif mysql # not compatible
query I rowsort label-1028
SELECT DISTINCT col2 / - ( + col1 ) + + col1 AS col0 FROM tab1 AS cor0
----
24
5
6

query IIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 CROSS JOIN tab2
----
243 values hashing to 60bd71ee2159222231bb3b5819bc5dca

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

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

query I rowsort
SELECT DISTINCT + col0 * col2 + cor0.col2 * col2 + 74 FROM tab2 cor0
----
2778
4520
992

onlyif mysql # use DIV operator for integer division
query I rowsort label-1033
SELECT + col1 DIV col0 + - col2 * + 53 AS col2 FROM tab0 AS cor0
----
-1746
-4345
-51

skipif mysql # not compatible
query I rowsort label-1033
SELECT + col1 / col0 + - col2 * + 53 AS col2 FROM tab0 AS cor0
----
-1746
-4345
-51

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

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

query I rowsort
SELECT - ( 38 ) AS col0 FROM tab1 AS cor0
----
-38
-38
-38

query I rowsort
SELECT DISTINCT - col1 * + col0 + cor0.col2 * + col1 AS col2 FROM tab2 AS cor0
----
-3068
-697
620

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

query I rowsort
SELECT ALL col2 + + 91 + col1 * 23 AS col2 FROM tab1 AS cor0
----
378
486
743

query I rowsort
SELECT DISTINCT 50 AS col0 FROM tab1 AS cor0
----
50

query I rowsort
SELECT ALL + col1 * col0 * col0 FROM tab0 cor0
----
118825
49536
720811

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

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

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

query I rowsort
SELECT ALL + 51 + - ( col2 * col2 ) FROM tab2 cor0
----
-1393
-625
-678

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

query I rowsort
SELECT DISTINCT + 55 - + cor0.col2 FROM tab1 AS cor0
----
-2
-41
1

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

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1052
SELECT DISTINCT col1 DIV + cor0.col1 + + ( + col0 ) * - col0 FROM tab0 AS cor0
----
-1224
-575
-7920

skipif mysql # not compatible
query I rowsort label-1052
SELECT DISTINCT col1 / + cor0.col1 + + ( + col0 ) * - col0 FROM tab0 AS cor0
----
-1224
-575
-7920

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1054
SELECT + col1 * - col0 + - col0 DIV col1 FROM tab2 AS cor0
----
-1347
-217
-4603

skipif mysql # not compatible
query I rowsort label-1054
SELECT + col1 * - col0 + - col0 / col1 FROM tab2 AS cor0
----
-1347
-217
-4603

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

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

query I rowsort
SELECT - col0 * - col1 * col2 + - 79 * - cor0.col0 * + col1 FROM tab0 AS cor0
----
1303939
231168
271600

query I rowsort
SELECT ALL - + 85 + - col1 FROM tab2 AS cor0
----
-102
-116
-144

query I rowsort
SELECT DISTINCT + col0 * - cor0.col2 + - cor0.col1 + col2 * col1 AS col1 FROM tab2 AS cor0
----
-2373
-553
617

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1062
SELECT DISTINCT col2 + - col0 DIV + ( - col1 ) FROM tab1 AS cor0
----
102
54
63

skipif mysql # not compatible
query I rowsort label-1062
SELECT DISTINCT col2 + - col0 / + ( - col1 ) FROM tab1 AS cor0
----
102
54
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + col1 - 53 col1 FROM tab2 AS cor0
----
-19
65
9

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + col2 * - col0 col2 FROM tab0 AS cor0
----
-706
-7207
62

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

query I rowsort
SELECT + col1 * + col1 + 46 + + col1 FROM tab1 cor0
----
156
228
748

onlyif mysql # use DIV operator for integer division
query I rowsort label-1068
SELECT - - cor0.col2 + col0 DIV 29 AS col0 FROM tab2 cor0
----
27
28
40

skipif mysql # not compatible
query I rowsort label-1068
SELECT - - cor0.col2 + col0 / 29 AS col0 FROM tab2 cor0
----
27
28
40

query I rowsort
SELECT DISTINCT + col0 * + cor0.col0 + - 42 AS col0 FROM tab1 AS cor0
----
-33
4054
6358

query I rowsort
SELECT ALL - ( + col0 ) * + 21 * col1 - cor0.col0 FROM tab1 AS cor0
----
-13504
-1641
-21920

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - - col2 * col1 col2 FROM tab1 AS cor0
----
1261
1430
580

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

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

query I rowsort
SELECT + + 42 - col1 FROM tab1 AS cor0
----
16
29
32

query I rowsort
SELECT DISTINCT + 90 + 28 AS col2 FROM tab2, tab2 AS cor0
----
118

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

query I rowsort
SELECT + - 71 AS col2 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

onlyif mysql # use DIV operator for integer division
query I rowsort label-1083
SELECT - col2 DIV col1 + col0 AS col1 FROM tab1
----
1
59
73

skipif mysql # not compatible
query I rowsort label-1083
SELECT - col2 / col1 + col0 AS col1 FROM tab1
----
1
59
73

query I rowsort
SELECT DISTINCT tab2.col1 + + 30 * col2 FROM tab2
----
1157
839
841

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

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

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

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

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

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

query I rowsort
SELECT ALL - 90 * tab1.col1 + + col0 FROM tab1
----
-1090
-2337
-836

query I rowsort
SELECT + 27 * - col0 * + col1 FROM tab2
----
-124254
-36261
-5859

query I rowsort
SELECT 79 AS col2 FROM tab1
----
79
79
79

query I rowsort
SELECT DISTINCT 3 FROM tab2
----
3

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

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

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

query I rowsort
SELECT DISTINCT 0 - - col0 * col0 AS col2 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT 35 AS col2 FROM tab2
----
35

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

query I rowsort
SELECT 57 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

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

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

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

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

query I rowsort
SELECT + col1 * 14 * col0 - cor0.col2 FROM tab0 AS cor0
----
113304
28863
47529

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

query I rowsort
SELECT DISTINCT - col2 * + ( + col0 ) + col0 * + col1 FROM tab2 AS cor0
----
-1659
2574
28

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

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

query I rowsort
SELECT DISTINCT + col1 * 28 - col0 AS col0 FROM tab1 AS cor0
----
216
284
725

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

query I rowsort
SELECT DISTINCT + col0 * 88 + - cor0.col0 FROM tab0 AS cor0
----
2088
3045
7743

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col0 * - tab1.col1 col0 FROM tab1
----
-1136
-132
-697

query I rowsort
SELECT DISTINCT - col1 * - col1 - - 80 FROM tab1
----
180
249
756

query I rowsort
SELECT ALL col0 - 86 * 64 FROM tab2
----
-5425
-5426
-5497

onlyif mysql # use DIV operator for integer division
query I rowsort label-1115
SELECT DISTINCT - col1 * col1 * col0 - tab2.col1 DIV 5 FROM tab2
----
-22834
-271529
-6733

skipif mysql # not compatible
query I rowsort label-1115
SELECT DISTINCT - col1 * col1 * col0 - tab2.col1 / 5 FROM tab2
----
-22834
-271529
-6733

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

query IIIIIIIII rowsort
SELECT * FROM tab2, tab2 cor0, tab2 cor1
----
243 values hashing to 5ac29bd6e3a9e69ed9c73ca7a34114f7

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col1 col0 FROM tab0
----
-2064
-3395
-8099

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

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

query I rowsort
SELECT DISTINCT 17 AS col0 FROM tab1
----
17

query I rowsort
SELECT - - 24 * cor0.col0 FROM tab2 AS cor0
----
168
1872
1896

query I rowsort
SELECT col1 + + cor0.col1 * + 31 * - col0 FROM tab0 AS cor0
----
-105148
-250978
-63898

onlyif mysql # use DIV operator for integer division
query I rowsort label-1125
SELECT - 73 DIV col0 AS col0 FROM tab1 AS cor0
----
-1
-24
0

skipif mysql # not compatible
query I rowsort label-1125
SELECT - 73 / col0 AS col0 FROM tab1 AS cor0
----
-1
-24
0

query I rowsort
SELECT ALL 66 AS col2 FROM tab0
----
66
66
66

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

query I rowsort
SELECT 84 FROM tab0
----
84
84
84

query I rowsort
SELECT + 6 * + tab2.col1 + tab2.col0 FROM tab2
----
181
193
432

query I rowsort
SELECT 54 FROM tab2, tab2 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query I rowsort
SELECT DISTINCT - 56 AS col1 FROM tab2, tab0 cor0, tab1 AS cor1
----
-56

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1133
SELECT + col1 DIV col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1133
SELECT + col1 / col2 FROM tab1 cor0
----
0
0
0

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1135
SELECT col2 + + col0 DIV + col0 FROM tab1 cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-1135
SELECT col2 + + col0 / + col0 FROM tab1 cor0
----
55
58
97

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

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

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

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

query I rowsort
SELECT ALL + 35 AS col1 FROM tab2
----
35
35
35

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

query I rowsort
SELECT col2 + - col2 FROM tab1
----
0
0
0

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

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

query I rowsort
SELECT col2 - - col0 AS col2 FROM tab1
----
121
176
57

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

query I rowsort
SELECT DISTINCT + + col2 * - ( - 7 ) + + col2 FROM tab0 AS cor0
----
264
656
8

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * + 57 col1 FROM tab2 AS cor0
----
-1482
-1539
-2166

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

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

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

query I rowsort
SELECT cor0.col0 + 96 FROM tab0 AS cor0
----
120
131
185

query I rowsort
SELECT ALL - col1 + - 78 * col1 AS col2 FROM tab2 AS cor0
----
-1343
-2449
-4661

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

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

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

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

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

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

query I rowsort
SELECT + 89 AS col2 FROM tab1 AS cor0
----
89
89
89

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0 CROSS JOIN tab2
----
243 values hashing to 60bd71ee2159222231bb3b5819bc5dca

query I rowsort
SELECT 50 FROM tab0 cor0
----
50
50
50

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

skipif mysql # not compatible
query I rowsort label-1166
SELECT DISTINCT CAST ( - col1 AS INTEGER ) + + cor0.col0 FROM tab0 AS cor0
----
-2
-62

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

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( - 4 AS REAL ) - + col2 * ( + cor0.col0 ) FROM tab0 cor0
----
-31
-7294
-788

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 35 * - col2 col2 FROM tab2 AS cor0
----
-1330
-910
-945

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

query I rowsort
SELECT ALL col2 + - col0 * col0 + col2 AS col1 FROM tab0 cor0
----
-1223
-510
-7757

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

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

query I rowsort
SELECT + 42 * + 58 AS col1 FROM tab1
----
2436
2436
2436

query I rowsort
SELECT ALL 95 + cor0.col2 * - 67 AS col1 FROM tab0 AS cor0
----
-2116
-5399
28

query IIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 CROSS JOIN tab2
----
243 values hashing to ce53c0e8839c969b0513568da6eb2c4b

query I rowsort
SELECT 58 * col2 AS col0 FROM tab1
----
3132
3306
5568

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

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

query I rowsort
SELECT ALL - col1 * ( + col1 * - cor0.col2 ) FROM tab1 AS cor0
----
16224
36504
5700

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

query I rowsort
SELECT DISTINCT 30 * + col0 FROM tab0 AS cor0
----
1050
2670
720

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

query I rowsort
SELECT - 5 * - col2 FROM tab0 AS cor0
----
165
410
5

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

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

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

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

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

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

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

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

query I rowsort
SELECT col2 + ( cor0.col1 ) * 79 FROM tab2 cor0
----
1381
2476
4687

query I rowsort
SELECT DISTINCT - col1 * - col1 + + col0 AS col0 FROM tab0
----
7420
8370
9444

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

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

query I rowsort
SELECT - col0 + 36 * + ( - col1 ) * col1 FROM tab0
----
-266280
-298205
-338759

onlyif mysql # use DIV operator for integer division
query I rowsort label-1201
SELECT - + ( + col1 ) + cor0.col0 * 57 DIV 98 FROM tab1 cor0
----
-25
27
33

skipif mysql # not compatible
query I rowsort label-1201
SELECT - + ( + col1 ) + cor0.col0 * 57 / 98 FROM tab1 cor0
----
-25
27
33

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

query IIIIIIIII rowsort
SELECT * FROM tab0, tab1 cor0, tab1 AS cor1
----
243 values hashing to 7e12d99d8ab63d9fd10e95cef9d78998

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

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

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

query I rowsort
SELECT ALL - col0 * ( col1 ) + + col0 + col1 AS col1 FROM tab0 AS cor0
----
-1954
-3263
-7919

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

query I rowsort
SELECT ALL - - col0 + + col0 AS col2 FROM tab1 AS cor0
----
128
160
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 68 - - col1 col0 FROM tab2 AS cor0
----
127
85
99

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

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

query I rowsort
SELECT ALL - 83 * col1 FROM tab0 AS cor0
----
-7138
-7553
-8051

query I rowsort
SELECT 62 FROM tab0
----
62
62
62

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

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

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

query I rowsort
SELECT DISTINCT col0 * col0 - tab0.col0 * + 58 FROM tab0
----
-805
-816
2759

query I rowsort
SELECT col0 * col0 + tab0.col1 * col2 - + col0 FROM tab0
----
1287
15294
3390

query I rowsort
SELECT DISTINCT - col0 * col1 + 53 AS col1 FROM tab2 AS cor0
----
-1290
-164
-4549

query I rowsort
SELECT DISTINCT cor0.col2 * + ( + 33 ) FROM tab0 AS cor0
----
1089
2706
33

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2 cor1
----
54 values hashing to 018801f36b33d2fe82cb95918ba502d6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1222
SELECT CAST( 65 AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

skipif mysql # not compatible
query I rowsort label-1222
SELECT CAST ( 65 AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0, tab2 cor1
----
243 values hashing to ea21cea53be47edd19229592e3d26141

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

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

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
54 values hashing to fe43263cad63144a098cccb9cd58c32a

query I rowsort
SELECT DISTINCT - col2 * col0 * col0 + col2 FROM tab1
----
-233415
-432
-614304

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

query I rowsort
SELECT ALL + col2 * + 62 FROM tab0 AS cor0
----
2046
5084
62

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

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

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

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

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

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

query I rowsort
SELECT ALL col2 * + col2 + - 2 FROM tab2 AS cor0
----
1442
674
727

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

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

query I rowsort
SELECT ALL - col0 + - col1 * tab2.col1 FROM tab2
----
-3559
-368
-968

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

query I rowsort
SELECT ALL + col2 - 91 * col0 FROM tab1 AS cor0
----
-219
-5767
-7184

query I rowsort
SELECT - - col0 + + ( - 50 ) FROM tab2 AS cor0
----
-43
28
29

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1243
SELECT + col1 * + cor0.col2 * + col0 - - col2 DIV - col1 FROM tab2 AS cor0
----
119652
51032
5859

skipif mysql # not compatible
query I rowsort label-1243
SELECT + col1 * + cor0.col2 * + col0 - - col2 / - col1 FROM tab2 AS cor0
----
119652
51032
5859

query I rowsort
SELECT DISTINCT + col2 + - 28 FROM tab1 cor0
----
26
29
68

onlyif mysql # use DIV operator for integer division
query I rowsort label-1245
SELECT DISTINCT - - col0 * col1 + col0 DIV + col0 FROM tab1 AS cor0
----
1041
641
79

skipif mysql # not compatible
query I rowsort label-1245
SELECT DISTINCT - - col0 * col1 + col0 / + col0 FROM tab1 AS cor0
----
1041
641
79

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

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

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

query I rowsort
SELECT col2 * cor0.col0 - - 44 * col0 FROM tab2 AS cor0
----
497
5460
6478

query I rowsort
SELECT - col1 * col2 + - 62 FROM tab1 cor0
----
-1310
-1466
-632

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

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

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

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

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

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

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

query I rowsort
SELECT ALL - - 54 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query IIIIIIIII rowsort
SELECT * FROM tab2, tab1 cor0, tab1 AS cor1
----
243 values hashing to 89e3b35a4a4f02d7b83645addb9dcdc3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1259
SELECT col0 * col0 + - cor0.col2 * - CAST( + col2 AS SIGNED ) col1 FROM tab2 AS cor0
----
6760
7685
778

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1259
SELECT col0 * col0 + - cor0.col2 * - CAST ( + col2 AS INTEGER ) col1 FROM tab2 AS cor0
----
6760
7685
778

query I rowsort
SELECT - col0 * + cor0.col1 * col1 + + col2 AS col2 FROM tab1 AS cor0
----
-13424
-1974
-6343

query I rowsort
SELECT ALL - - cor0.col2 * col0 + + ( + col0 * cor0.col0 ) AS col0 FROM tab0 AS cor0
----
1260
1368
15219

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col1 col0 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT + 76 AS col1 FROM tab0
----
76
76
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col1 FROM tab2
----
26
27
38

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

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

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

query I rowsort
SELECT ALL - 31 + col1 AS col2 FROM tab1 AS cor0
----
-18
-21
-5

query I rowsort
SELECT DISTINCT - - col0 AS col2 FROM tab1 AS cor0
----
3
64
80

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

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

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

query I rowsort
SELECT DISTINCT + 33 * col0 AS col2 FROM tab2 AS cor0
----
231
2574
2607

query I rowsort
SELECT DISTINCT + col1 + col1 * + 66 FROM tab1 AS cor0
----
1742
670
871

query I rowsort
SELECT + 80 + col2 * 89 FROM tab0 AS cor0
----
169
3017
7378

query I rowsort
SELECT cor0.col1 * - cor0.col1 + + col2 FROM tab1 AS cor0
----
-43
-622
-73

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

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

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

query I rowsort
SELECT ALL col2 + + col2 FROM tab1
----
108
114
192

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

query I rowsort
SELECT - cor0.col2 * + col0 - 90 FROM tab2 AS cor0
----
-2118
-279
-3092

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1284
SELECT col1 * col0 DIV col2 + col2 * col1 AS col1 FROM tab1 AS cor0
----
1258
1405
581

skipif mysql # not compatible
query I rowsort label-1284
SELECT col1 * col0 / col2 + col2 * col1 AS col1 FROM tab1 AS cor0
----
1258
1405
581

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

query I rowsort
SELECT + 19 AS col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 86c53e8567a17c8d91fc5aff119e0498

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

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

query I rowsort
SELECT DISTINCT tab0.col1 * - col2 * - 79 + col2 AS col1 FROM tab0
----
224235
589580
7664

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

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

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

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

query I rowsort
SELECT DISTINCT + col2 FROM tab1
----
54
57
96

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

query I rowsort
SELECT + + 87 AS col0 FROM tab2 AS cor0
----
87
87
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-1297
SELECT + col2 DIV + cor0.col2 + col1 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-1297
SELECT + col2 / + cor0.col2 + col1 FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT - - cor0.col1 * - 70 AS col1 FROM tab0 AS cor0
----
-6020
-6370
-6790

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col0 * + tab0.col1 ) col2 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT - cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT - 71 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

onlyif mysql # use DIV operator for integer division
query I rowsort label-1305
SELECT ALL col2 * - 21 + + cor0.col0 DIV + cor0.col2 col1 FROM tab0 AS cor0
----
-1721
-693
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1305
SELECT ALL col2 * - 21 + + cor0.col0 / + cor0.col2 col1 FROM tab0 AS cor0
----
-1721
-693
14

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

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

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

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

query I rowsort
SELECT ALL col2 + - ( 6 ) AS col1 FROM tab0 AS cor0
----
-5
27
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1311
SELECT - - CAST( col0 AS SIGNED ) * - col0 FROM tab0 cor0
----
-1225
-576
-7921

skipif mysql # not compatible
query I rowsort label-1311
SELECT - - CAST ( col0 AS INTEGER ) * - col0 FROM tab0 cor0
----
-1225
-576
-7921

query I rowsort
SELECT 47 FROM tab2
----
47
47
47

query I rowsort
SELECT + - 44 + - 3 * col0 FROM tab1 AS cor0
----
-236
-284
-53

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1315
SELECT CAST( + cor0.col0 AS SIGNED ) * col0 * + 54 FROM tab2 AS cor0
----
2646
328536
337014

skipif mysql # not compatible
query I rowsort label-1315
SELECT CAST ( + cor0.col0 AS INTEGER ) * col0 * + 54 FROM tab2 AS cor0
----
2646
328536
337014

query I rowsort
SELECT + 82 FROM tab0 cor0
----
82
82
82

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

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

query I rowsort
SELECT ( - tab1.col2 ) AS col2 FROM tab1
----
-54
-57
-96

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

query I rowsort
SELECT 38 + col0 AS col2 FROM tab0 AS cor0
----
127
62
73

query I rowsort
SELECT DISTINCT 14 * col0 FROM tab0 cor0
----
1246
336
490

query I rowsort
SELECT ALL - 44 FROM tab1 AS cor0
----
-44
-44
-44

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

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1328
SELECT ALL CAST( NULL AS SIGNED ) * + col1 * tab1.col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1328
SELECT ALL CAST ( NULL AS INTEGER ) * + col1 * tab1.col0 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1329
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab1, tab2, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1329
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab1, tab2, tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 18 col0 FROM tab2
----
18
18
18

query I rowsort
SELECT - 92 AS col1 FROM tab2
----
-92
-92
-92

query I rowsort
SELECT ALL - 51 + + cor0.col1 * col1 AS col2 FROM tab2 AS cor0
----
238
3430
910

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col0 col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT cor0.col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT - - cor0.col0 FROM tab1 cor0
----
3
64
80

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 cor0, tab0 cor1, tab0 AS cor2
----
972 values hashing to 8420206d6932c454f05a38de634b3cb5

query I rowsort
SELECT DISTINCT - 11 AS col1 FROM tab2 AS cor0
----
-11

query I rowsort
SELECT 21 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 312c166f4dc412730c43555105b1f44b

query I rowsort
SELECT DISTINCT - col2 * col1 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT - 93 FROM tab1, tab0 AS cor0
----
-93

query I rowsort
SELECT DISTINCT + ( + col0 ) + + col0 * cor0.col2 AS col1 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT ALL - + 12 FROM tab2, tab1 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to 60b4654b2477631ac8f4a95ec4a22fd3

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0, tab0, tab2 AS cor1
----
972 values hashing to 42e69ecdafb3c81046bc5cb4c98b1666

query I rowsort
SELECT ALL col1 + + col1 FROM tab2
----
118
34
62

query I rowsort
SELECT ALL + ( - col1 ) + tab0.col0 FROM tab0
----
-2
-62
-62

query I rowsort
SELECT ALL + col1 + col1 AS col0 FROM tab1
----
20
26
52

query I rowsort
SELECT DISTINCT col2 * - col0 + - ( col0 ) AS col1 FROM tab2
----
-196
-2106
-3081

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1348
SELECT 98 * col0 * CAST( - col0 AS SIGNED ) + col0 AS col2 FROM tab0
----
-120015
-56424
-776169

skipif mysql # not compatible
query I rowsort label-1348
SELECT 98 * col0 * CAST ( - col0 AS INTEGER ) + col0 AS col2 FROM tab0
----
-120015
-56424
-776169

query I rowsort
SELECT ALL + col2 + - col2 FROM tab2
----
0
0
0

query I rowsort
SELECT col1 + col0 AS col0 FROM tab1
----
29
74
93

query I rowsort
SELECT ALL - cor0.col1 * - cor0.col1 FROM tab2 AS cor0
----
289
3481
961

onlyif mysql # use DIV operator for integer division
query I rowsort label-1352
SELECT - 10 DIV - col0 AS col0 FROM tab1 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-1352
SELECT - 10 / - col0 AS col0 FROM tab1 AS cor0
----
0
0
3

query I rowsort
SELECT DISTINCT - col2 + col1 AS col1 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT 54 FROM tab1
----
54
54
54

query I rowsort
SELECT + col0 * + tab1.col1 + col2 FROM tab1
----
1136
132
697

query I rowsort
SELECT col0 * col1 * - ( + col0 ) AS col0 FROM tab0
----
-118825
-49536
-720811

query I rowsort
SELECT DISTINCT 59 + 5 FROM tab0, tab0 AS cor0
----
64

query I rowsort
SELECT + 99 FROM tab1 AS cor0
----
99
99
99

query I rowsort
SELECT ALL - 81 AS col2 FROM tab0 cor0
----
-81
-81
-81

query I rowsort
SELECT DISTINCT + cor0.col0 * + col0 * col2 FROM tab1 AS cor0
----
233472
486
614400

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1361
SELECT DISTINCT CAST( + 72 AS SIGNED ) * col2 col2 FROM tab1 AS cor0
----
3888
4104
6912

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1361
SELECT DISTINCT CAST ( + 72 AS INTEGER ) * col2 col2 FROM tab1 AS cor0
----
3888
4104
6912

query I rowsort
SELECT ALL - col2 * + col2 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT - col1 + col0 * - ( col1 ) AS col0 FROM tab0
----
-2150
-3492
-8190

query I rowsort
SELECT + tab1.col1 AS col0 FROM tab1
----
10
13
26

query I rowsort
SELECT col2 + col0 AS col0 FROM tab1
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab0.col1 col2 FROM tab0, tab2, tab1 AS cor0
----
-86
-91
-97

query I rowsort
SELECT + col2 + - ( + col2 ) - tab0.col0 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT col2 * col0 - col2 AS col1 FROM tab1
----
108
3591
7584

query I rowsort
SELECT + col0 + 4 * + col1 + + col1 AS col2 FROM tab0
----
454
520
544

query I rowsort
SELECT + 48 + - col1 AS col1 FROM tab0
----
-38
-43
-49

query I rowsort
SELECT + cor0.col2 * col0 + + col2 + col1 AS col1 FROM tab1 cor0
----
242
3715
7789

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0 CROSS JOIN tab0
----
243 values hashing to 566180e0144350a78b0ef3318e8f4c00

query I rowsort
SELECT 37 * + col0 - + col0 AS col2 FROM tab1 AS cor0
----
108
2304
2880

onlyif mysql # use DIV operator for integer division
query I rowsort label-1374
SELECT ALL - + 82 DIV col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1374
SELECT ALL - + 82 / col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 86 + col1 * cor0.col2 AS col2 FROM tab2 AS cor0
----
1620
732
923

query I rowsort
SELECT DISTINCT col0 + col2 * cor0.col2 AS col0 FROM tab0 AS cor0
----
1113
36
6813

onlyif mysql # use DIV operator for integer division
query I rowsort label-1377
SELECT DISTINCT ( + 64 ) * col1 + ( + col1 ) DIV cor0.col1 FROM tab1 AS cor0
----
1665
641
833

skipif mysql # not compatible
query I rowsort label-1377
SELECT DISTINCT ( + 64 ) * col1 + ( + col1 ) / cor0.col1 FROM tab1 AS cor0
----
1665
641
833

query I rowsort
SELECT ALL - cor0.col0 * - 86 AS col2 FROM tab1 AS cor0
----
258
5504
6880

query I rowsort
SELECT DISTINCT + col1 + + col0 FROM tab1 AS cor0
----
29
74
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1380
SELECT + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1380
SELECT + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 83 ) + - col2 * + 5 col1 FROM tab0 AS cor0
----
-327
-82
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-1382
SELECT + col0 * + 85 + + col0 DIV + ( 12 ) + col1 FROM tab2 AS cor0
----
626
6695
6738

skipif mysql # not compatible
query I rowsort label-1382
SELECT + col0 * + 85 + + col0 / + ( 12 ) + col1 FROM tab2 AS cor0
----
626
6695
6738

query I rowsort
SELECT - + col1 + - ( col2 ) * - col0 + + col2 * col2 FROM tab2 AS cor0
----
2645
4429
887

query I rowsort
SELECT DISTINCT + 95 FROM tab1 AS cor0
----
95

query I rowsort
SELECT ALL - 84 + 77 FROM tab2 AS cor0
----
-7
-7
-7

query I rowsort
SELECT DISTINCT col2 * col1 * col0 + tab0.col0 FROM tab0
----
3430
664207
68136

query I rowsort
SELECT + tab2.col0 AS col2 FROM tab2
----
7
78
79

query I rowsort
SELECT DISTINCT col2 * + col0 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT ALL - col0 + col0 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col0 FROM tab1 WHERE NOT ( col0 ) IN ( + col1 )
----
3
64
80

query I rowsort
SELECT ALL - col0 * col0 + + tab0.col1 FROM tab0
----
-1128
-490
-7830

query I rowsort
SELECT DISTINCT + col2 * - col2 + - col1 FROM tab2 WHERE - col0 NOT IN ( tab2.col2 * tab2.col0 )
----
-1461
-735
-760

query I rowsort
SELECT col0 * - col1 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT col1 + - col0 * - col1 / + tab1.col1 AS col2 FROM tab1 WHERE NOT ( NULL ) BETWEEN - col1 * col2 AND NULL
----

query I rowsort
SELECT DISTINCT - col0 + - col1 FROM tab1
----
-29
-74
-93

query I rowsort
SELECT col0 * + tab0.col1 + - col1 AS col2 FROM tab0
----
1978
3298
8008

query I rowsort
SELECT - col1 * tab1.col1 * tab1.col1 AS col1 FROM tab1
----
-1000
-17576
-2197

query I rowsort
SELECT DISTINCT col0 + + col0 FROM tab1 AS cor0 WHERE col0 * - col0 + col2 < col2 + col0
----
128
160
6

query I rowsort
SELECT DISTINCT - col0 * - col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL cor0.col1 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT col1 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT DISTINCT cor0.col1 - - col1 * col1 FROM tab2 cor0
----
306
3540
992

onlyif mysql # use DIV operator for integer division
query I rowsort label-1403
SELECT + col1 DIV + col2 + - col2 FROM tab0 AS cor0
----
-31
-81
96

skipif mysql # not compatible
query I rowsort label-1403
SELECT + col1 / + col2 + - col2 FROM tab0 AS cor0
----
-31
-81
96

query I rowsort
SELECT ALL + col2 * col0 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-1405
SELECT col1 DIV col0 FROM tab1
----
0
0
8

skipif mysql # not compatible
query I rowsort label-1405
SELECT col1 / col0 FROM tab1
----
0
0
8

query I rowsort
SELECT DISTINCT - col0 * - col0 FROM tab2
----
49
6084
6241

query I rowsort
SELECT DISTINCT + col2 + - col2 FROM tab1
----
0

query I rowsort
SELECT ALL col2 * tab2.col0 AS col1 FROM tab2
----
189
2028
3002

query I rowsort
SELECT ALL col0 + + col0 FROM tab1
----
128
160
6

query I rowsort
SELECT col1 * + col2 * tab1.col2 FROM tab1
----
119808
32490
75816

query I rowsort
SELECT + col0 * + col1 * col1 + col2 FROM tab2
----
22869
271544
6754

query I rowsort
SELECT ALL col2 * + col0 AS col0 FROM tab1 WHERE NOT NULL = NULL
----

query I rowsort
SELECT ALL + col1 * - col0 + col1 AS col2 FROM tab2
----
-1326
-186
-4543

query I rowsort
SELECT ALL + col0 + col1 FROM tab1
----
29
74
93

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NOT - col0 + + col0 IN ( tab2.col1 )
----
26
27
38

query I rowsort
SELECT DISTINCT - col0 * + col2 * - col1 FROM tab0
----
3395
664118
68112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 col0 FROM tab0
----
1
1089
6724

query I rowsort
SELECT ALL col2 + col1 * col1 FROM tab2
----
327
3507
988

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( col0 * col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1420
SELECT DISTINCT col1 DIV col1 + col0 * col2 AS col0 FROM tab0
----
36
7299
793

skipif mysql # not compatible
query I rowsort label-1420
SELECT DISTINCT col1 / col1 + col0 * col2 AS col0 FROM tab0
----
36
7299
793

query I rowsort
SELECT + col2 - - col2 FROM tab1
----
108
114
192

query I rowsort
SELECT col2 * + col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT ALL + col0 AS col1 FROM tab2
----
7
78
79

query I rowsort
SELECT ALL + col1 * col1 FROM tab1 WHERE ( NULL ) = NULL
----

query I rowsort
SELECT DISTINCT col1 * - col0 AS col1 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT col1 * - col2 AS col1 FROM tab0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-1427
SELECT DISTINCT col0 DIV tab0.col2 + - col2 AS col0 FROM tab0
----
-33
-81
34

skipif mysql # not compatible
query I rowsort label-1427
SELECT DISTINCT col0 / tab0.col2 + - col2 AS col0 FROM tab0
----
-33
-81
34

query I rowsort
SELECT ALL tab1.col2 * + col2 AS col0 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT ALL col1 * col0 FROM tab2 WHERE NOT NULL > ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col2 col2 FROM tab2
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-1431
SELECT col2 * col1 DIV tab1.col1 + col0 * - col1 + tab1.col0 * + col1 AS col1 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-1431
SELECT col2 * col1 / tab1.col1 + col0 * - col1 + tab1.col0 * + col1 AS col1 FROM tab1
----
54
57
96

query I rowsort
SELECT DISTINCT + cor0.col1 + col0 AS col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT - + col1 * + col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL cor0.col0 + col0 * - col2 FROM tab0 AS cor0
----
-7209
-768
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT + - col2 + cor0.col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT cor0.col1 * + col1 + col0 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT - col2 * col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL - col2 * + col1 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT + col2 * - col2 - - col0 FROM tab2 cor0
----
-1365
-598
-722

query I rowsort
SELECT DISTINCT - col2 - col2 AS col1 FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT DISTINCT - + col1 * + col2 + col0 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT ALL + - cor0.col1 AS col1 FROM tab2 AS cor0
----
-17
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-1444
SELECT - col2 DIV + col0 - col0 * col0 col2 FROM tab1 AS cor0
----
-27
-4096
-6401

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1444
SELECT - col2 / + col0 - col0 * col0 col2 FROM tab1 AS cor0
----
-27
-4096
-6401

query I rowsort
SELECT DISTINCT - col2 * - cor0.col2 * cor0.col1 + - cor0.col1 * - col0 FROM tab2 AS cor0
----
22816
25891
44486

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - col2 * col2 col2 FROM tab0 cor0
----
-1056
-6642
0

query I rowsort
SELECT - - col0 + - col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT - col1 * col2 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT col0 + col2 * col1 FROM tab2
----
1612
725
844

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col1 col2 FROM tab1
----
0
0
0

query I rowsort
SELECT - tab2.col2 + col0 * - tab2.col1 AS col0 FROM tab2
----
-1381
-244
-4628

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col1 * - tab0.col1 col2 FROM tab0
----
-7396
-8281
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col0 col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT col1 * - col0 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-1455
SELECT DISTINCT - col2 + + col0 DIV col2 FROM tab0
----
-33
-81
34

skipif mysql # not compatible
query I rowsort label-1455
SELECT DISTINCT - col2 + + col0 / col2 FROM tab0
----
-33
-81
34

query I rowsort
SELECT - col0 * - col1 FROM tab2 WHERE NOT NULL NOT BETWEEN ( col0 ) AND NULL
----

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 cor0 CROSS JOIN tab1
----
243 values hashing to 098e223d780e18b6582523fd6f55eec9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + - col1 * - col1 col2 FROM tab2 AS cor0
----
306
3540
992

query I rowsort
SELECT ALL + col0 + + col0 FROM tab2
----
14
156
158

onlyif mysql # use DIV operator for integer division
query I rowsort label-1460
SELECT + col1 DIV col0 col0 FROM tab2
----
0
0
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1460
SELECT + col1 / col0 col0 FROM tab2
----
0
0
4

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2
----
54 values hashing to fe43263cad63144a098cccb9cd58c32a

query I rowsort
SELECT col1 + - col2 + - col2 FROM tab2
----
-23
-59
7

query I rowsort
SELECT + col1 * col1 * - col0 FROM tab2 AS cor0
----
-22831
-271518
-6727

onlyif mysql # use DIV operator for integer division
query I rowsort label-1464
SELECT - col0 + col0 + col1 DIV col0 FROM tab1
----
0
0
8

skipif mysql # not compatible
query I rowsort label-1464
SELECT - col0 + col0 + col1 / col0 FROM tab1
----
0
0
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col0 + + col2 * tab0.col1 col0 FROM tab0
----
133
2895
7633

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2
----
54 values hashing to 018801f36b33d2fe82cb95918ba502d6

query I rowsort
SELECT + - col1 + - col0 + 56 FROM tab2 AS cor0
----
-40
-81
18

onlyif mysql # use DIV operator for integer division
query I rowsort label-1468
SELECT + col1 + 10 DIV col0 col1 FROM tab1 AS cor0
----
10
13
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1468
SELECT + col1 + 10 / col0 col1 FROM tab1 AS cor0
----
10
13
29

query I rowsort
SELECT ALL col0 * col2 * col0 + - col2 AS col2 FROM tab1
----
233415
432
614304

query I rowsort
SELECT - - col1 - + 38 * col1 FROM tab1 AS cor0
----
-370
-481
-962

query I rowsort
SELECT - cor0.col1 * - col0 - - col1 * col2 AS col1 FROM tab2 AS cor0
----
1054
1989
6136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * ( col0 ) + + col0 col0 FROM tab2 AS cor0
----
196
2106
3081

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1473
SELECT ALL CAST( NULL AS SIGNED ) col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1473
SELECT ALL CAST ( NULL AS INTEGER ) col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT - 96 AS col0 FROM tab2
----
-96

query I rowsort
SELECT ALL - 79 AS col0 FROM tab0
----
-79
-79
-79

query I rowsort
SELECT 65 AS col0 FROM tab1
----
65
65
65

query I rowsort
SELECT ALL + cor0.col0 * + tab1.col1 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to c7e3d87815c66f5a8360e4fe15424a79

query I rowsort
SELECT ALL tab2.col2 * + col1 FROM tab2
----
1534
646
837

query I rowsort
SELECT DISTINCT + 6 FROM tab0
----
6

query I rowsort
SELECT DISTINCT 94 AS col1 FROM tab0, tab2 AS cor0
----
94

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
243 values hashing to 2ba47a833971d4c4b0287e849fb0cfb8

query I rowsort
SELECT + 59 FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3

query I rowsort
SELECT - - 99 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

onlyif mysql # use DIV operator for integer division
query I rowsort label-1484
SELECT col0 DIV 33 - cor0.col0 FROM tab1 AS cor0
----
-3
-63
-78

skipif mysql # not compatible
query I rowsort label-1484
SELECT col0 / 33 - cor0.col0 FROM tab1 AS cor0
----
-3
-63
-78

query I rowsort
SELECT - col1 + col1 * - col1 AS col2 FROM tab2 AS cor0
----
-306
-3540
-992

onlyif mysql # use DIV operator for integer division
query I rowsort label-1486
SELECT col2 DIV - col1 AS col1 FROM tab1
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-1486
SELECT col2 / - col1 AS col1 FROM tab1
----
-2
-5
-7

onlyif mysql # use DIV operator for integer division
query I rowsort label-1487
SELECT - + col2 + 3 DIV 11 FROM tab2 AS cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-1487
SELECT - + col2 + 3 / 11 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT col1 + + col1 FROM tab2
----
118
34
62

query I rowsort
SELECT ALL col2 + col1 AS col0 FROM tab1
----
109
67
80

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab2 WHERE NOT ( col1 ) BETWEEN ( NULL ) AND ( + col1 - col2 )
----
-26
-27
-38

query I rowsort
SELECT - col0 - + col1 FROM tab2
----
-137
-38
-96

query I rowsort
SELECT - col2 * + col1 AS col0 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT tab0.col0 * col2 FROM tab0 WHERE NULL NOT IN ( col1 )
----

query I rowsort
SELECT col0 + col0 * col2 FROM tab2
----
196
2106
3081

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( col1 * col1 )
----

query I rowsort
SELECT col2 + - col1 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT ALL + tab2.col0 AS col1 FROM tab2
----
7
78
79

query I rowsort
SELECT tab0.col1 AS col1 FROM tab0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-1500
SELECT ALL + col2 DIV col2 + + col2 * + tab0.col2 AS col1 FROM tab0
----
1090
2
6725

skipif mysql # not compatible
query I rowsort label-1500
SELECT ALL + col2 / col2 + + col2 * + tab0.col2 AS col1 FROM tab0
----
1090
2
6725

query I rowsort
SELECT col2 + - tab2.col0 AS col1 FROM tab2
----
-41
-52
20

query I rowsort
SELECT DISTINCT col0 + col0 AS col2 FROM tab2
----
14
156
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * tab1.col2 + + col2 col2 FROM tab1
----
-1152
-1350
-513

query I rowsort
SELECT - col1 + - col1 * col1 AS col2 FROM tab1
----
-110
-182
-702

query I rowsort
SELECT + col2 + - col1 AS col0 FROM tab2
----
-33
-4
21

query I rowsort
SELECT ALL col0 + col0 FROM tab2
----
14
156
158

query I rowsort
SELECT 89 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 860d55eb6785972467218a9c3badb5ad

query I rowsort
SELECT DISTINCT + + cor0.col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT - col0 * col2 + + 6 * + col1 AS col1 FROM tab1 AS cor0
----
-3588
-6
-7602

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT - 89 FROM tab0
----
-89
-89
-89

query I rowsort
SELECT ALL - tab2.col1 AS col2 FROM tab2, tab0 cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

query I rowsort
SELECT DISTINCT + col0 + + col0 * - col0 FROM tab0 AS cor0
----
-1190
-552
-7832

query I rowsort
SELECT - 30 AS col1 FROM tab0 AS cor0
----
-30
-30
-30

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0, tab2 AS cor1, tab2 cor2
----
972 values hashing to 64ce0e736818e884f0a9ecd075da5eb7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 col2 FROM tab1 cor0
----
2916
3249
9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-1517
SELECT col0 DIV + col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1517
SELECT col0 / + col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + 96 AS col2 FROM tab1 AS cor0
----
96
96
96

query I rowsort
SELECT ALL tab2.col2 * 83 AS col2 FROM tab2, tab1 AS cor0, tab0, tab2 AS cor1
----
81 values hashing to 012e2b4757d9a6e6066abdbd35c2eba7

query I rowsort
SELECT DISTINCT + cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
86
91
97

query I rowsort
SELECT tab2.col0 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1522
SELECT DISTINCT CAST( - col1 AS SIGNED ) col1 FROM tab0 AS cor0
----
-86
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1522
SELECT DISTINCT CAST ( - col1 AS INTEGER ) col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT - + col2 * - col0 * col2 AS col2 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT - cor0.col1 + ( - 30 ) AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 9be6f3df953009021dd63ddb3af482ca

query I rowsort
SELECT cor0.col0 * col1 + + col2 AS col1 FROM tab2 AS cor0
----
1381
244
4628

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + 83 col0 FROM tab0 AS cor0
----
169
174
180

query I rowsort
SELECT tab0.col1 * ( + col1 ) AS col2 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT + ( col2 ) * col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT + tab1.col2 * + col1 AS col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT DISTINCT 85 FROM tab1
----
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1531
SELECT CAST( NULL AS SIGNED ) - + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1531
SELECT CAST ( NULL AS INTEGER ) - + col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 30 AS col1 FROM tab2 AS cor0
----
30
30
30

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0, tab1 AS cor1, tab2 AS cor2
----
972 values hashing to 72eb3d4d523f5d0c69d1b855edd18f4a

onlyif mysql # use DIV operator for integer division
query I rowsort label-1534
SELECT DISTINCT ( - col0 ) DIV col1 + CAST( - col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-102
-54
-63

skipif mysql # not compatible
query I rowsort label-1534
SELECT DISTINCT ( - col0 ) / col1 + CAST ( - col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-102
-54
-63

onlyif mysql # use DIV operator for integer division
query I rowsort label-1535
SELECT + 4 * col2 + col0 DIV + col2 FROM tab0 AS cor0
----
132
329
39

skipif mysql # not compatible
query I rowsort label-1535
SELECT + 4 * col2 + col0 / + col2 FROM tab0 AS cor0
----
132
329
39

query I rowsort
SELECT + col1 * + col0 FROM tab0 AS cor0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 29 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT + 22 * tab1.col1 FROM tab1
----
220
286
572

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 80 * + cor0.col1 - - col0 col1 FROM tab1 AS cor0
----
-2077
-736
-960

query I rowsort
SELECT tab2.col1 + - tab2.col1 - col2 FROM tab2
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-1541
SELECT col0 DIV + tab0.col2 AS col0 FROM tab0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-1541
SELECT col0 / + tab0.col2 AS col0 FROM tab0
----
0
1
35

query I rowsort
SELECT DISTINCT - 9 AS col1 FROM tab1
----
-9

query I rowsort
SELECT + 81 * col0 FROM tab2
----
567
6318
6399

query I rowsort
SELECT - - cor0.col0 * - col2 * - 72 - - cor0.col1 FROM tab2 AS cor0
----
13639
146075
216161

query I rowsort
SELECT + 91 - col2 * + ( - 95 ) AS col1 FROM tab1 AS cor0
----
5221
5506
9211

query I rowsort
SELECT cor0.col1 AS col1 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT + col2 AS col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT - - col0 + col0 * ( col1 ) AS col1 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT col2 * cor0.col0 + 25 AS col1 FROM tab2 AS cor0
----
2053
214
3027

onlyif mysql # use DIV operator for integer division
query I rowsort label-1550
SELECT + col1 DIV col0 FROM tab0 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-1550
SELECT + col1 / col0 FROM tab0 AS cor0
----
1
2
3

query I rowsort
SELECT + + col0 + - ( + 49 ) * + col2 FROM tab2 AS cor0
----
-1196
-1316
-1783

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col2 col2 FROM tab0
----
1
33
82

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2, tab1 AS cor0, tab1 AS cor1
----
972 values hashing to cee640567b2a4ba7d97109d5025bf4d9

query I rowsort
SELECT DISTINCT - col1 * col2 + + col1 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT DISTINCT - + col1 * col0 + + col0 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT DISTINCT + col0 - ( + 13 ) AS col1 FROM tab2 AS cor0
----
-6
65
66

query I rowsort
SELECT ALL cor0.col1 * 27 - - col1 AS col0 FROM tab0 AS cor0
----
2408
2548
2716

onlyif mysql # use DIV operator for integer division
query I rowsort label-1558
SELECT DISTINCT - - col1 DIV col2 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1558
SELECT DISTINCT - - col1 / col2 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + - col1 * 74 FROM tab2 AS cor0
----
-1258
-2294
-4366

query I rowsort
SELECT ALL col1 + - 0 FROM tab2
----
17
31
59

query I rowsort
SELECT cor0.col1 + 96 FROM tab0 AS cor0
----
182
187
193

query I rowsort
SELECT col2 * 57 AS col1 FROM tab0
----
1881
4674
57

query I rowsort
SELECT ALL col1 * col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL - col1 + 56 FROM tab1 AS cor0
----
30
43
46

query I rowsort
SELECT ALL ( col0 * col0 ) AS col1 FROM tab1
----
4096
6400
9

query I rowsort
SELECT col2 - ( col1 ) * col1 FROM tab1 AS cor0
----
-43
-622
-73

query I rowsort
SELECT + col0 * col1 * col1 AS col1 FROM tab1 cor0
----
13520
2028
6400

query I rowsort
SELECT DISTINCT + + col1 AS col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT col0 * 46 FROM tab1 AS cor0
----
138
2944
3680

query I rowsort
SELECT ALL - - col0 * + col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT + - col0 - col1 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT ALL + col0 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT + col0 * 94 FROM tab1 AS cor0
----
282
6016
7520

query I rowsort
SELECT - - col2 AS col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT + + col2 AS col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL + 26 + + 71 * col2 FROM tab1 cor0
----
3860
4073
6842

query I rowsort
SELECT DISTINCT - 40 FROM tab1, tab1 AS cor0, tab0 cor1
----
-40

query I rowsort
SELECT tab2.col0 * + 55 * ( col1 + - 22 ) FROM tab2
----
-21725
158730
3465

query I rowsort
SELECT DISTINCT - - col2 + cor0.col2 AS col1 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT DISTINCT col2 + col1 AS col1 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT - + 70 + 24 FROM tab2 AS cor0
----
-46
-46
-46

query I rowsort
SELECT ALL - + ( + col0 ) FROM tab0 cor0
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-1583
SELECT + col1 DIV col0 + col1 AS col1 FROM tab2 AS cor0
----
17
35
59

skipif mysql # not compatible
query I rowsort label-1583
SELECT + col1 / col0 + col1 AS col1 FROM tab2 AS cor0
----
17
35
59

query I rowsort
SELECT DISTINCT col2 * 54 + cor0.col0 AS col2 FROM tab1 AS cor0
----
2919
3142
5264

onlyif mysql # use DIV operator for integer division
query I rowsort label-1585
SELECT + 69 + - 34 DIV + col0 AS col0 FROM tab0 AS cor0
----
68
69
69

skipif mysql # not compatible
query I rowsort label-1585
SELECT + 69 + - 34 / + col0 AS col0 FROM tab0 AS cor0
----
68
69
69

query I rowsort
SELECT ALL + col1 * + col0 * col2 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT DISTINCT col2 * + col0 + cor0.col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT DISTINCT - col1 + + tab2.col0 AS col1 FROM tab2
----
-24
19
62

query I rowsort
SELECT ALL col0 + - ( 48 ) AS col0 FROM tab2
----
-41
30
31

query I rowsort
SELECT DISTINCT + col0 - + col1 FROM tab0
----
-2
-62

query I rowsort
SELECT col1 * col2 * - 7 + + tab2.col1 FROM tab2
----
-10679
-4505
-5828

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2, tab0 AS cor0, tab1
----
972 values hashing to 82e15d5967b272804e574774895a0222

onlyif mysql # use DIV operator for integer division
query I rowsort label-1593
SELECT DISTINCT 40 DIV - 87 AS col2 FROM tab2, tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-1593
SELECT DISTINCT 40 / - 87 AS col2 FROM tab2, tab0 cor0
----
0

query I rowsort
SELECT 98 AS col0 FROM tab1 AS cor0
----
98
98
98

query I rowsort
SELECT ALL + 82 * cor0.col1 FROM tab0 AS cor0
----
7052
7462
7954

query I rowsort
SELECT ALL - - 40 AS col1 FROM tab1 AS cor0
----
40
40
40

query I rowsort
SELECT ALL - ( - col2 ) AS col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT + 18 AS col0 FROM tab2 AS cor0
----
18

query I rowsort
SELECT + - col2 + + col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT cor0.col1 * col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * - col0 col2 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL - cor0.col2 FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT ALL col0 * col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 29 * + col1 col1 FROM tab0 AS cor0
----
2494
2639
2813

query I rowsort
SELECT - 80 - + col1 FROM tab0
----
-166
-171
-177

query I rowsort
SELECT - - col2 * + col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT + 35 * cor0.col0 * ( - col1 ) FROM tab2 AS cor0
----
-161070
-47005
-7595

query I rowsort
SELECT col1 * col0 * + 62 AS col2 FROM tab1 AS cor0
----
39680
4836
64480

query I rowsort
SELECT + - cor0.col0 + - col2 * - 79 AS col2 FROM tab0 AS cor0
----
2583
44
6389

query I rowsort
SELECT - + ( - col2 ) FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL + col1 * tab1.col2 FROM tab1
----
1248
1404
570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1612
SELECT ALL + col1 + - ( col0 * CAST( - col2 AS SIGNED ) ) FROM tab0
----
132
7389
878

skipif mysql # not compatible
query I rowsort label-1612
SELECT ALL + col1 + - ( col0 * CAST ( - col2 AS INTEGER ) ) FROM tab0
----
132
7389
878

query I rowsort
SELECT DISTINCT cor1.col0 * 21 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
1869
504
735

onlyif mysql # use DIV operator for integer division
query I rowsort label-1614
SELECT + col0 DIV col0 AS col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1614
SELECT + col0 / col0 AS col0 FROM tab0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1616
SELECT ALL - CAST( - col2 * col1 AS SIGNED ) + 12 * col2 + tab2.col1 * col2 AS col1 FROM tab2
----
1748
1998
3380

skipif mysql # not compatible
query I rowsort label-1616
SELECT ALL - CAST ( - col2 * col1 AS INTEGER ) + 12 * col2 + tab2.col1 * col2 AS col1 FROM tab2
----
1748
1998
3380

query I rowsort
SELECT ALL - + col0 + - col0 * cor0.col1 + col1 AS col0 FROM tab2 AS cor0
----
-1405
-193
-4621

query I rowsort
SELECT ALL + - ( col2 ) - + col0 * - col2 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT DISTINCT 98 + + 91 AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1, tab0 AS cor2
----
189

query I rowsort
SELECT ALL 0 * col0 + - cor0.col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT - col0 - 51 * cor0.col1 FROM tab0 AS cor0
----
-4410
-4730
-4982

query I rowsort
SELECT ALL - - col1 AS col0 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT - ( + col2 ) * col1 AS col2 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT col2 * + col1 AS col0 FROM tab2
----
1534
646
837

query I rowsort
SELECT ALL - col0 * col1 + - col1 AS col0 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT ALL 95 AS col0 FROM tab1 AS cor0
----
95
95
95

query I rowsort
SELECT DISTINCT - - 32 * cor0.col2 AS col2 FROM tab2 AS cor0
----
1216
832
864

query I rowsort
SELECT - + col1 + col0 + - 88 AS col2 FROM tab0 AS cor0
----
-150
-150
-90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1629
SELECT ALL + cor0.col1 + col2 * CAST( + 41 AS SIGNED ) FROM tab0 AS cor0
----
138
1439
3453

skipif mysql # not compatible
query I rowsort label-1629
SELECT ALL + cor0.col1 + col2 * CAST ( + 41 AS INTEGER ) FROM tab0 AS cor0
----
138
1439
3453

onlyif mysql # use DIV operator for integer division
query I rowsort label-1630
SELECT DISTINCT - col1 DIV col2 + + col0 * + 50 AS col0 FROM tab0 cor0
----
1198
1653
4449

skipif mysql # not compatible
query I rowsort label-1630
SELECT DISTINCT - col1 / col2 + + col0 * + 50 AS col0 FROM tab0 cor0
----
1198
1653
4449

onlyif mysql # use DIV operator for integer division
query I rowsort label-1631
SELECT - - col0 DIV cor0.col0 AS col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1631
SELECT - - col0 / cor0.col0 AS col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + ( col2 ) + - ( - col2 ) FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT ALL + + col1 * col1 AS col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT - col1 * col2 * ( 57 * - col0 ) FROM tab2
----
2908938
333963
6820164

query I rowsort
SELECT ALL col0 + + col1 AS col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT + ( col1 ) AS col2 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT - + 2 + col0 FROM tab1 cor0
----
1
62
78

query I rowsort
SELECT DISTINCT - col2 * col0 FROM tab0 cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-1639
SELECT - col2 DIV - col1 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-1639
SELECT - col2 / - col1 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT ALL col0 * - cor0.col0 AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-1641
SELECT - + 24 + col1 DIV - 12 AS col2 FROM tab0 cor0
----
-31
-31
-32

skipif mysql # not compatible
query I rowsort label-1641
SELECT - + 24 + col1 / - 12 AS col2 FROM tab0 cor0
----
-31
-31
-32

query I rowsort
SELECT col0 + cor0.col0 AS col1 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT ( + col1 ) + + col2 * - 78 + col2 FROM tab1
----
-4132
-4379
-7379

query I rowsort
SELECT DISTINCT 92 FROM tab0, tab0 AS cor0
----
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-1645
SELECT DISTINCT - + col1 + + col0 DIV 49 + + col0 AS col1 FROM tab0 cor0
----
-1
-62

skipif mysql # not compatible
query I rowsort label-1645
SELECT DISTINCT - + col1 + + col0 / 49 + + col0 AS col1 FROM tab0 cor0
----
-1
-62

query I rowsort
SELECT - - col2 + + col2 AS col2 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT - col1 * cor0.col1 + col0 AS col0 FROM tab0 AS cor0
----
-7372
-8192
-9374

query I rowsort
SELECT ALL - col0 AS col1 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT ALL - + col0 + + ( 91 + col0 ) * col0 * col0 FROM tab1 AS cor0
----
1094320
634816
843

onlyif mysql # use DIV operator for integer division
query I rowsort label-1650
SELECT DISTINCT col0 - + 0 DIV 81 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-1650
SELECT DISTINCT col0 - + 0 / 81 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT + col2 * col0 - cor0.col1 AS col0 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT ALL col1 * col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT col0 * - col2 + - col0 * + col0 FROM tab1 AS cor0
----
-14080
-171
-7744

query I rowsort
SELECT DISTINCT - + col2 + - ( + col2 ) AS col1 FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT ALL + col2 + 52 FROM tab1 cor0
----
106
109
148

query I rowsort
SELECT + + col2 AS col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT - ( + 69 ) FROM tab1, tab1 AS cor0
----
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * 22 col2 FROM tab2 AS cor0
----
-1298
-374
-682

query I rowsort
SELECT ALL - col0 + - col1 * col2 AS col0 FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT ALL + cor0.col1 + - col1 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + cor0.col0 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT DISTINCT - col1 * col0 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1663
SELECT DISTINCT col0 + CAST( NULL AS DECIMAL ) * - col2 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1663
SELECT DISTINCT col0 + CAST ( NULL AS REAL ) * - col2 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - cor0.col1 + + 83 FROM tab2 AS cor0
----
24
52
66

query I rowsort
SELECT ALL col1 - col2 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT + - col2 AS col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ALL - + col0 FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT - col0 + 37 * 55 AS col1 FROM tab0 AS cor0
----
1946
2000
2011

query I rowsort
SELECT + col0 + + 78 * col1 AS col2 FROM tab2 AS cor0
----
1405
2425
4680

query I rowsort
SELECT DISTINCT col2 + - cor0.col0 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT ALL + col1 * ( col2 ) FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT + + col2 AS col2 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT DISTINCT - col0 + + col1 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT ALL col1 * - 59 AS col1 FROM tab2 AS cor0
----
-1003
-1829
-3481

query I rowsort
SELECT col2 * - col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT + + 59 AS col2 FROM tab1 AS cor0
----
59
59
59

query I rowsort
SELECT ALL + - col1 * - col2 + - col1 AS col2 FROM tab0 cor0
----
0
2752
7371

query I rowsort
SELECT DISTINCT 47 AS col2 FROM tab2 AS cor0
----
47

query I rowsort
SELECT + 68 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query IIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab0 cor1
----
243 values hashing to 3a953203ced079e372111d61dbd9e35f

query I rowsort
SELECT + col2 + col1 AS col0 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT - + col1 * cor0.col2 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col1 FROM tab2 AS cor0
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 61 col1 FROM tab0 AS cor0
----
61
61
61

query I rowsort
SELECT DISTINCT ( cor0.col1 ) + + col1 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT ALL + cor0.col1 - col1 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1687
SELECT + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1687
SELECT + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort
SELECT CAST ( col1 AS REAL ) * - col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT + col1 + col1 * + 91 * col0 AS col2 FROM tab1
----
58250
7124
94653

query I rowsort
SELECT DISTINCT tab0.col2 * - 65 FROM tab0
----
-2145
-5330
-65

onlyif mysql # use DIV operator for integer division
query I rowsort label-1691
SELECT + 69 DIV - col0 FROM tab2 AS cor0
----
-9
0
0

skipif mysql # not compatible
query I rowsort label-1691
SELECT + 69 / - col0 FROM tab2 AS cor0
----
-9
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col0 + col0 col1 FROM tab2
----
14
156
158

query I rowsort
SELECT col1 + col1 * col2 FROM tab1
----
1261
1430
580

query I rowsort
SELECT + 98 * + ( cor0.col0 ) AS col2 FROM tab0 AS cor0
----
2352
3430
8722

query I rowsort
SELECT - 58 + col2 * col2 FROM tab2 AS cor0
----
1386
618
671

query I rowsort
SELECT + cor0.col2 * cor0.col1 AS col2 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT + 40 FROM tab2, tab2 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 35 col1 FROM tab1
----
35
35
35

query I rowsort
SELECT ALL 59 FROM tab0, tab2 cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT - col2 * col2 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT tab0.col1 + tab0.col0 FROM tab0
----
110
132
180

query I rowsort
SELECT + col0 + - ( - col2 * cor0.col2 ) FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT cor0.col1 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 57 col0 FROM tab0
----
57
57
57

query I rowsort
SELECT DISTINCT col1 * - col1 + - 53 * tab2.col1 + tab2.col1 FROM tab2
----
-1173
-2573
-6549

query I rowsort
SELECT tab2.col1 AS col0 FROM tab2
----
17
31
59

query I rowsort
SELECT DISTINCT - 10 AS col1 FROM tab1, tab1 AS cor0
----
-10

onlyif mysql # use DIV operator for integer division
query I rowsort label-1708
SELECT col1 DIV col2 AS col2 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-1708
SELECT col1 / col2 AS col2 FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT DISTINCT - - col2 AS col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT + + col1 * + ( 10 * + col1 ) AS col0 FROM tab1 AS cor0
----
1000
1690
6760

query I rowsort
SELECT - - col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + - col1 * - 29 * + col1 FROM tab0 AS cor0
----
214484
240149
272861

onlyif mysql # use DIV operator for integer division
query I rowsort label-1713
SELECT - 9 DIV cor1.col0 AS col0 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to a46f44f30b2183508f32c16a79479cd9

skipif mysql # not compatible
query I rowsort label-1713
SELECT - 9 / cor1.col0 AS col0 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to a46f44f30b2183508f32c16a79479cd9

query I rowsort
SELECT ALL + + col2 * 40 * col1 FROM tab2 cor0
----
25840
33480
61360

query I rowsort
SELECT ALL + 38 AS col2 FROM tab1, tab0 cor0, tab1 AS cor1
----
27 values hashing to a7827a79248ee7bf2cee915a631d02cb

onlyif mysql # use DIV operator for integer division
query I rowsort label-1716
SELECT DISTINCT + - col2 DIV col0 FROM tab1 AS cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-1716
SELECT DISTINCT + - col2 / col0 FROM tab1 AS cor0
----
-1
-18
0

query I rowsort
SELECT - 38 + + col2 FROM tab2 AS cor0
----
-11
-12
0

query I rowsort
SELECT ALL + - 67 - col1 AS col0 FROM tab1 AS cor0
----
-77
-80
-93

query I rowsort
SELECT ALL + col1 * + col0 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-1720
SELECT DISTINCT - col2 * col0 + ( - col0 ) DIV col0 FROM tab0 AS cor0
----
-36
-7299
-793

skipif mysql # not compatible
query I rowsort label-1720
SELECT DISTINCT - col2 * col0 + ( - col0 ) / col0 FROM tab0 AS cor0
----
-36
-7299
-793

query I rowsort
SELECT DISTINCT cor0.col2 * col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL - cor0.col0 + col1 FROM tab2 cor0
----
-19
-62
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-1723
SELECT + - col1 DIV col2 + col1 AS col2 FROM tab0 cor0
----
0
84
90

skipif mysql # not compatible
query I rowsort label-1723
SELECT + - col1 / col2 + col1 AS col2 FROM tab0 cor0
----
0
84
90

query I rowsort
SELECT col1 + col0 * col0 FROM tab2 AS cor0
----
6143
6258
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1725
SELECT DISTINCT col2 * + col1 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1725
SELECT DISTINCT col2 * + col1 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - + col0 + + col2 * cor0.col0 * + col2 FROM tab2 AS cor0
----
113997
5096
52650

query I rowsort
SELECT - 37 - col0 AS col1 FROM tab2 AS cor0
----
-115
-116
-44

query I rowsort
SELECT col1 * - col1 + ( col1 ) AS col1 FROM tab0 AS cor0
----
-7310
-8190
-9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-1729
SELECT - col1 DIV 31 AS col1 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-1729
SELECT - col1 / 31 AS col1 FROM tab2
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 36 * tab1.col1 col2 FROM tab1
----
360
468
936

onlyif mysql # use DIV operator for integer division
query I rowsort label-1731
SELECT DISTINCT col2 DIV - col2 col1 FROM tab1
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1731
SELECT DISTINCT col2 / - col2 col1 FROM tab1
----
-1

query I rowsort
SELECT 41 AS col1 FROM tab2
----
41
41
41

query I rowsort
SELECT ALL cor0.col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT + col2 * col1 FROM tab1 AS cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 64 col2 FROM tab0 AS cor0
----
64

onlyif mysql # use DIV operator for integer division
query I rowsort label-1736
SELECT 7 DIV - tab2.col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1736
SELECT 7 / - tab2.col1 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - ( + tab0.col2 * col0 ) AS col1 FROM tab0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-1738
SELECT - col2 DIV col2 + + col0 FROM tab0 AS cor0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-1738
SELECT - col2 / col2 + + col0 FROM tab0 AS cor0
----
23
34
88

query I rowsort
SELECT + col2 + - col0 AS col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT + 79 * ( cor1.col0 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6646573ec3d7b7e653272e873993a6b1

query I rowsort
SELECT + 7 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

onlyif mysql # use DIV operator for integer division
query I rowsort label-1742
SELECT + 98 + - col1 DIV - col0 + - col1 * col0 * col1 col0 FROM tab2 AS cor0
----
-22733
-271420
-6625

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1742
SELECT + 98 + - col1 / - col0 + - col1 * col0 * col1 col0 FROM tab2 AS cor0
----
-22733
-271420
-6625

query I rowsort
SELECT col0 * - col1 * - cor0.col0 FROM tab0 AS cor0
----
118825
49536
720811

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
54 values hashing to fe43263cad63144a098cccb9cd58c32a

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1745
SELECT col1 + col2 * CAST( NULL AS SIGNED ) - + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1745
SELECT col1 + col2 * CAST ( NULL AS INTEGER ) - + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT cor0.col0 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab0, tab2 AS cor2
----
3
64
80

query I rowsort
SELECT - col1 * col0 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1748
SELECT ALL CAST( NULL AS SIGNED ) / 43 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1748
SELECT ALL CAST ( NULL AS INTEGER ) / 43 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 37 * col2 * - col0 AS col0 FROM tab1 AS cor0
----
-134976
-284160
-5994

query I rowsort
SELECT ALL - - col2 * - cor0.col1 + - col0 AS col0 FROM tab2 AS cor0
----
-1612
-725
-844

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col1 FROM tab2
----
7
78
79

query I rowsort
SELECT 91 FROM tab1, tab0 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab2, tab1 AS cor0
----
-3
-64
-80

query IIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
243 values hashing to d489341cd587fd6eb0b972c5464c6ddc

query I rowsort
SELECT DISTINCT col1 * + col2 - + col1 * 57 AS col2 FROM tab1
----
-78
0
507

query I rowsort
SELECT DISTINCT + ( col1 ) - col1 AS col0 FROM tab0
----
0

query I rowsort
SELECT DISTINCT - col2 * + col1 - - col0 AS col0 FROM tab0
----
-2814
-62
-7373

query I rowsort
SELECT ALL - col0 - + col1 FROM tab1
----
-29
-74
-93

query I rowsort
SELECT + col1 - + col0 FROM tab0
----
2
62
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-1760
SELECT col2 + + col2 DIV col2 - + col2 * 63 AS col2 FROM tab1
----
-3347
-3533
-5951

skipif mysql # not compatible
query I rowsort label-1760
SELECT col2 + + col2 / col2 - + col2 * 63 AS col2 FROM tab1
----
-3347
-3533
-5951

query I rowsort
SELECT col2 + col1 * + col2 FROM tab2
----
1560
684
864

query I rowsort
SELECT 35 * - 40 FROM tab1 AS cor0
----
-1400
-1400
-1400

query I rowsort
SELECT - col1 + 79 * col0 AS col0 FROM tab2 AS cor0
----
522
6103
6224

query I rowsort
SELECT + 8 * col0 FROM tab1 AS cor0
----
24
512
640

query I rowsort
SELECT + ( col2 + tab2.col2 ) FROM tab2
----
52
54
76

query I rowsort
SELECT 26 FROM tab0 AS cor0
----
26
26
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-1767
SELECT DISTINCT - 95 DIV ( cor0.col2 ) + - ( col1 ) FROM tab0 AS cor0
----
-192
-88
-92

skipif mysql # not compatible
query I rowsort label-1767
SELECT DISTINCT - 95 / ( cor0.col2 ) + - ( col1 ) FROM tab0 AS cor0
----
-192
-88
-92

query I rowsort
SELECT DISTINCT + 17 * cor0.col2 + cor0.col2 AS col2 FROM tab1 AS cor0
----
1026
1728
972

query I rowsort
SELECT DISTINCT + + col2 * col2 - cor0.col0 AS col2 FROM tab1 cor0
----
2913
3185
9136

query I rowsort
SELECT - 8 AS col1 FROM tab0 AS cor0
----
-8
-8
-8

query I rowsort
SELECT ALL - - cor0.col0 * col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT - col2 FROM tab2 cor0
----
-26
-27
-38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1773
SELECT DISTINCT CAST( col0 AS SIGNED ) FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-1773
SELECT DISTINCT CAST ( col0 AS INTEGER ) FROM tab1
----
3
64
80

query I rowsort
SELECT - cor0.col1 - + col0 * + cor0.col0 * 8 FROM tab0 AS cor0
----
-4694
-63459
-9897

onlyif mysql # use DIV operator for integer division
query I rowsort label-1775
SELECT 6 - + col1 DIV + 75 FROM tab1 AS cor0
----
6
6
6

skipif mysql # not compatible
query I rowsort label-1775
SELECT 6 - + col1 / + 75 FROM tab1 AS cor0
----
6
6
6

query I rowsort
SELECT DISTINCT - col0 * + col0 FROM tab2 cor0
----
-49
-6084
-6241

query I rowsort
SELECT ALL - 10 AS col1 FROM tab1 AS cor0
----
-10
-10
-10

query I rowsort
SELECT DISTINCT 0 + + col0 * + tab2.col1 AS col1 FROM tab2
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-1779
SELECT DISTINCT col1 DIV tab0.col0 + - 7 AS col0 FROM tab0
----
-4
-5
-6

skipif mysql # not compatible
query I rowsort label-1779
SELECT DISTINCT col1 / tab0.col0 + - 7 AS col0 FROM tab0
----
-4
-5
-6

query I rowsort
SELECT DISTINCT col2 + + col0 + ( + 13 ) AS col0 FROM tab0
----
184
49
70

query I rowsort
SELECT DISTINCT + 0 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - cor0.col2 + - col2 FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT ALL - + col0 + - col2 * col1 * + 71 FROM tab1 AS cor0
----
-40534
-88688
-99687

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 col2 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT ALL 87 FROM tab0 AS cor0
----
87
87
87

query I rowsort
SELECT + col0 * + cor0.col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT ALL - 55 * - col0 FROM tab1 AS cor0
----
165
3520
4400

query I rowsort
SELECT DISTINCT col0 + + col1 AS col2 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT - - col0 * + col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT + cor0.col0 * col2 + - 1 FROM tab0 AS cor0
----
34
7297
791

query I rowsort
SELECT + col0 + cor0.col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT - col1 + + 63 AS col2 FROM tab2
----
32
4
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - 66 col2 FROM tab0 AS cor0
----
-31
-42
23

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0, tab2 AS cor1, tab0 cor2
----
972 values hashing to 58757c5bbbd4217c03cf2ac0b6126e55

query I rowsort
SELECT DISTINCT col1 * cor0.col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * - cor0.col1 col2 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab1 AS cor0
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-1798
SELECT ALL + col1 DIV - 33 + + col1 * col2 * col0 FROM tab0 AS cor0
----
3393
664116
68110

skipif mysql # not compatible
query I rowsort label-1798
SELECT ALL + col1 / - 33 + + col1 * col2 * col0 FROM tab0 AS cor0
----
3393
664116
68110

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL col1 * 70 + + cor0.col1 * - col2 + col0 * - 16 AS col0 FROM tab1 AS cor0
----
-1618
-894
368

query I rowsort
SELECT col1 * 13 AS col0 FROM tab0 AS cor0
----
1118
1183
1261

query I rowsort
SELECT ALL + + col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT + 51 * - ( col0 ) * col1 FROM tab1 AS cor0
----
-32640
-3978
-53040

query I rowsort
SELECT ALL + - ( - col2 ) FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT - ( ( - cor0.col2 ) ) + + col1 * col1 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT ALL cor0.col0 + + cor0.col1 * col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT DISTINCT - cor0.col1 AS col0 FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT col0 + + 6 FROM tab1 AS cor0
----
70
86
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-1809
SELECT ALL + + col2 DIV + cor0.col0 + cor0.col1 + - col2 * + col1 FROM tab0 AS cor0
----
-2751
-7371
0

skipif mysql # not compatible
query I rowsort label-1809
SELECT ALL + + col2 / + cor0.col0 + cor0.col1 + - col2 * + col1 FROM tab0 AS cor0
----
-2751
-7371
0

query I rowsort
SELECT DISTINCT - 55 + col2 AS col1 FROM tab0 AS cor0
----
-22
-54
27

query I rowsort
SELECT ALL + + 75 * - col2 AS col0 FROM tab0 AS cor0
----
-2475
-6150
-75

query I rowsort
SELECT - ( - 31 ) * cor0.col0 AS col0 FROM tab1 AS cor0
----
1984
2480
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1813
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1813
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 * cor0.col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT 3 * - 94 + col0 + col1 * - 67 FROM tab1 AS cor0
----
-1073
-2021
-888

onlyif mysql # use DIV operator for integer division
query I rowsort label-1816
SELECT ALL - col2 DIV col2 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1816
SELECT ALL - col2 / col2 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + col2 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT - cor0.col1 * col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL col2 AS col2 FROM tab2
----
26
27
38

query I rowsort
SELECT tab1.col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT ALL 43 FROM tab1, tab2 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4

query I rowsort
SELECT ALL - ( - col1 ) + - col2 AS col2 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT ALL + col0 * + col1 + - col0 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT cor0.col0 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT + col1 * cor0.col1 AS col2 FROM tab2 AS cor0
----
289
3481
961

onlyif mysql # use DIV operator for integer division
query I rowsort label-1826
SELECT - col1 DIV - 35 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1826
SELECT - col1 / - 35 FROM tab2 AS cor0
----
0
0
1

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 cor0, tab1 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to 0cc433e09ad9e61562b7840dd1db6f57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + 24 col1 FROM tab2
----
102
103
31

query I rowsort
SELECT ALL - col0 + 30 FROM tab2
----
-48
-49
23

query IIIIIIIII rowsort
SELECT * FROM tab2, tab2 cor0, tab0 AS cor1
----
243 values hashing to b3323704f6873113d863f8e27386b356

query I rowsort
SELECT ALL - 87 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c0011cd00aa3e86f06bebc13678997f9

query I rowsort
SELECT tab1.col2 AS col1 FROM tab1
----
54
57
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1833
SELECT - col0 + CAST( col0 AS SIGNED ) * + col0 * + col1 FROM tab0 AS cor0
----
118790
49512
720722

skipif mysql # not compatible
query I rowsort label-1833
SELECT - col0 + CAST ( col0 AS INTEGER ) * + col0 * + col1 FROM tab0 AS cor0
----
118790
49512
720722

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT col1 + col2 AS col2 FROM tab2 AS cor0
----
55
58
85

skipif mysql # not compatible
query I rowsort
SELECT ALL - col1 * CAST ( - col0 AS REAL ) FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT - - col0 * col0 AS col2 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT ALL + - cor0.col1 + col2 AS col1 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT DISTINCT + tab0.col1 * + col2 FROM tab0
----
2838
7462
97

query I rowsort
SELECT ALL col0 + + tab2.col0 + - col2 * 26 * 41 FROM tab2
----
-27560
-28768
-40350

onlyif mysql # use DIV operator for integer division
query I rowsort label-1841
SELECT ( + col0 ) DIV col0 + ( tab0.col0 ) DIV col2 FROM tab0
----
1
2
36

skipif mysql # not compatible
query I rowsort label-1841
SELECT ( + col0 ) / col0 + ( tab0.col0 ) / col2 FROM tab0
----
1
2
36

onlyif mysql # use DIV operator for integer division
query I rowsort label-1842
SELECT ALL col1 DIV + 75 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1842
SELECT ALL col1 / + 75 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT 54 AS col0 FROM tab1 AS cor0
----
54
54
54

query I rowsort
SELECT 65 * 52 AS col0 FROM tab0
----
3380
3380
3380

query I rowsort
SELECT DISTINCT - ( - col0 ) * - col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT ALL - ( col1 ) + col0 AS col2 FROM tab1 cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT - col1 * col1 * col0 AS col2 FROM tab2 AS cor0
----
-22831
-271518
-6727

query IIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0, tab0 cor1
----
243 values hashing to b3323704f6873113d863f8e27386b356

onlyif mysql # use DIV operator for integer division
query I rowsort label-1849
SELECT DISTINCT - 35 DIV col1 AS col1 FROM tab2
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-1849
SELECT DISTINCT - 35 / col1 AS col1 FROM tab2
----
-1
-2
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1850
SELECT + col2 DIV tab0.col0 + + col2 * ( tab0.col2 ) FROM tab0
----
1
1090
6724

skipif mysql # not compatible
query I rowsort label-1850
SELECT + col2 / tab0.col0 + + col2 * ( tab0.col2 ) FROM tab0
----
1
1090
6724

query I rowsort
SELECT col2 * - 85 FROM tab1
----
-4590
-4845
-8160

query I rowsort
SELECT ( 19 ) FROM tab2
----
19
19
19

query I rowsort
SELECT 62 * + 52 + col0 * 81 AS col2 FROM tab1
----
3467
8408
9704

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1854
SELECT ALL CAST( NULL AS SIGNED ) * + tab2.col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1854
SELECT ALL CAST ( NULL AS INTEGER ) * + tab2.col1 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - 41 FROM tab2 AS cor0
----
41
41
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 7 + col1 col0 FROM tab2 AS cor0
----
10
24
52

query I rowsort
SELECT ALL - ( + cor0.col1 ) AS col0 FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT + col2 * - col0 + + col0 AS col0 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT ALL + ( + col1 ) * + 46 AS col0 FROM tab1 AS cor0
----
1196
460
598

query I rowsort
SELECT DISTINCT + + col0 AS col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT + col2 * + col2 AS col0 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT ALL col0 * + cor0.col2 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-1863
SELECT + - col1 + - col1 DIV + col0 FROM tab1 AS cor0
----
-10
-13
-34

skipif mysql # not compatible
query I rowsort label-1863
SELECT + - col1 + - col1 / + col0 FROM tab1 AS cor0
----
-10
-13
-34

query I rowsort
SELECT - col1 * - col2 * col1 AS col0 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT ALL col2 + - col1 * + col0 AS col0 FROM tab2 cor0
----
-1305
-190
-4576

query I rowsort
SELECT DISTINCT - cor0.col2 AS col2 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT ALL - 56 + - cor0.col2 FROM tab1 AS cor0
----
-110
-113
-152

query I rowsort
SELECT DISTINCT + 0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT col2 * col1 * - cor0.col0 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT ( col0 * + col2 + + 25 ) FROM tab0
----
60
7323
817

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col1 col0 FROM tab1, tab0 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1873
SELECT - CAST( NULL AS SIGNED ) + 12 AS col0 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-1873
SELECT - CAST ( NULL AS INTEGER ) + 12 AS col0 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL col2 * + tab0.col1 FROM tab0
----
2838
7462
97

query I rowsort
SELECT + ( col0 ) FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT + - cor0.col2 AS col1 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT + 94 FROM tab1
----
94
94
94

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 col0 + - col0 * 46 FROM tab1 AS cor0
----
-135
-2880
-3600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col2 col1 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT + col2 * col2 + + 98 AS col1 FROM tab1 AS cor0
----
3014
3347
9314

query I rowsort
SELECT cor0.col0 + col0 * col1 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT - cor0.col2 * 0 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col2 * - ( + col1 * + col1 + col1 ) FROM tab2 AS cor0
----
-11628
-26784
-92040

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1, tab1 AS cor0, tab0
----
972 values hashing to 909b7ebab62aff8f69dc42ccbb5c2eae

onlyif mysql # use DIV operator for integer division
query I rowsort label-1886
SELECT col2 DIV + ( col1 + col1 * ( 53 ) ) AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1886
SELECT col2 / + ( col1 + col1 * ( 53 ) ) AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 + col0 * + col2 AS col1 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT + cor0.col1 + - col1 * - col0 AS col0 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT ALL - + col2 + col1 AS col1 FROM tab1 cor0
----
-28
-47
-83

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - - col0 * - CAST ( + col1 AS REAL ) + col0 AS col2 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT DISTINCT ( cor0.col0 ) * col1 AS col2 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT - ( col1 ) + col2 FROM tab1 AS cor0
----
28
47
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 45 * col1 - col0 * - col0 col2 FROM tab0 AS cor0
----
12016
4446
5590

query I rowsort
SELECT DISTINCT - 39 FROM tab2, tab0 AS cor0
----
-39

onlyif mysql # use DIV operator for integer division
query I rowsort label-1895
SELECT DISTINCT - col1 + - col0 DIV - col2 FROM tab0 AS cor0
----
-62
-86
-90

skipif mysql # not compatible
query I rowsort label-1895
SELECT DISTINCT - col1 + - col0 / - col2 FROM tab0 AS cor0
----
-62
-86
-90

query I rowsort
SELECT + - 56 + 26 FROM tab0 cor0
----
-30
-30
-30

query I rowsort
SELECT ( - col2 ) + col0 FROM tab2 AS cor0
----
-20
41
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1898
SELECT ALL col2 + CAST( - col1 AS SIGNED ) AS col1 FROM tab0
----
-53
-9
-96

skipif mysql # not compatible
query I rowsort label-1898
SELECT ALL col2 + CAST ( - col1 AS INTEGER ) AS col1 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT col2 + col0 + col2 AS col2 FROM tab1
----
111
178
272

query I rowsort
SELECT cor0.col1 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT ( col2 ) + - col1 AS col2 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT - ( 64 ) * col2 - - col1 FROM tab2 AS cor0
----
-1605
-1697
-2415

query I rowsort
SELECT col1 + + 73 AS col2 FROM tab2 AS cor0
----
104
132
90

query I rowsort
SELECT col1 * - cor0.col1 + - ( col2 ) * cor0.col1 AS col1 FROM tab0 cor0
----
-10234
-15743
-9506

query I rowsort
SELECT + col0 * - col0 AS col1 FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT + - col1 + col0 + 45 FROM tab1 AS cor0
----
112
22
99

query I rowsort
SELECT - ( - col1 ) + + 56 AS col2 FROM tab1 AS cor0
----
66
69
82

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0 CROSS JOIN tab2 cor1
----
243 values hashing to 60bd71ee2159222231bb3b5819bc5dca

query I rowsort
SELECT ALL tab0.col0 AS col2 FROM tab0
----
24
35
89

query I rowsort
SELECT - 54 FROM tab0, tab2 AS cor0
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col1 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT ALL 39 FROM tab2, tab0 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT DISTINCT - col0 * + 76 FROM tab0 AS cor0
----
-1824
-2660
-6764

query I rowsort
SELECT - + cor0.col2 * + 5 FROM tab2 AS cor0
----
-130
-135
-190

query I rowsort
SELECT DISTINCT cor0.col0 AS col1 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT - - col1 + cor0.col1 AS col0 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT + col2 + col1 * 61 * + col2 AS col1 FROM tab2 AS cor0
----
39444
51084
93600

query I rowsort
SELECT DISTINCT col1 * - 44 + + col1 * col0 + col1 * - col2 AS col0 FROM tab2 AS cor0
----
-1984
-51
472

query I rowsort
SELECT - col1 * - col0 * col0 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT ALL - - col2 - 66 FROM tab2 cor0
----
-28
-39
-40

query I rowsort
SELECT + + ( col2 ) FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT + + cor0.col2 + + col1 FROM tab0 AS cor0
----
119
173
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1923
SELECT + CAST( + col0 AS SIGNED ) * col2 FROM tab0 AS cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-1923
SELECT + CAST ( + col0 AS INTEGER ) * col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT + cor0.col2 + cor0.col1 * + col1 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT 25 FROM tab1, tab1 AS cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query I rowsort
SELECT - cor1.col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT DISTINCT - + 65 FROM tab1 AS cor0
----
-65

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1928
SELECT col0 * + CAST( NULL AS SIGNED ) / - col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1928
SELECT col0 * + CAST ( NULL AS INTEGER ) / - col0 FROM tab2
----
NULL
NULL
NULL

query IIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1, tab0 AS cor1
----
243 values hashing to 3a953203ced079e372111d61dbd9e35f

query I rowsort
SELECT ALL + col0 * - col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT - 87 + col2 AS col2 FROM tab0 cor0
----
-5
-54
-86

query I rowsort
SELECT - cor0.col2 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT + col2 * - col0 * - col0 AS col0 FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT DISTINCT + cor0.col2 + 17 FROM tab1, tab1 AS cor0
----
113
71
74

query I rowsort
SELECT ALL - ( - col1 ) FROM tab2
----
17
31
59

query I rowsort
SELECT 36 * col0 FROM tab0 AS cor0
----
1260
3204
864

query I rowsort
SELECT 53 * - 15 AS col2 FROM tab0, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to 2412c1b11bf3dc1a75c35309a099f545

query I rowsort
SELECT + 2 FROM tab0
----
2
2
2

query I rowsort
SELECT + ( - col0 ) AS col2 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT + 10 * - col0 FROM tab1 AS cor0
----
-30
-640
-800

query I rowsort
SELECT - - 58 * col2 AS col1 FROM tab2 AS cor0
----
1508
1566
2204

onlyif mysql # use DIV operator for integer division
query I rowsort label-1942
SELECT col0 - col2 DIV ( - col0 ) AS col1 FROM tab2
----
10
78
79

skipif mysql # not compatible
query I rowsort label-1942
SELECT col0 - col2 / ( - col0 ) AS col1 FROM tab2
----
10
78
79

query I rowsort
SELECT ALL - col1 * - col1 AS col2 FROM tab0
----
7396
8281
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 25 col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 2e7a33467ee3a4d9570560d60302b35a

query I rowsort
SELECT - tab1.col0 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

query I rowsort
SELECT + 31 FROM tab2
----
31
31
31

query I rowsort
SELECT col0 * + col0 AS col2 FROM tab0 WHERE ( ( NULL ) NOT BETWEEN - col2 + col1 * col0 AND ( NULL ) ) AND NULL < NULL
----

query I rowsort
SELECT col2 + - col0 * - col1 FROM tab1
----
1136
132
697

query I rowsort
SELECT DISTINCT - col0 * - col0 * - cor0.col2 AS col0 FROM tab0 cor0
----
-1225
-19008
-649522

query I rowsort
SELECT col0 * col0 AS col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT ALL - cor0.col2 AS col1 FROM tab2 AS cor0
----
-26
-27
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor1.col1 col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
17
31
59

query I rowsort
SELECT ALL - tab1.col2 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT col0 * - col2 - col1 AS col1 FROM tab1
----
-188
-3658
-7693

query I rowsort
SELECT ALL + col2 * tab2.col0 * col2 FROM tab2
----
114076
5103
52728

query I rowsort
SELECT + col0 * tab0.col0 + tab0.col1 * tab0.col0 AS col0 FROM tab0
----
16020
2640
4620

query I rowsort
SELECT col1 + - col1 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + cor0.col0 * - col0 AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-1959
SELECT ALL - + col0 + - col2 DIV col1 + col2 * + col2 AS col0 FROM tab2 AS cor0
----
1363
598
722

skipif mysql # not compatible
query I rowsort label-1959
SELECT ALL - + col0 + - col2 / col1 + col2 * + col2 AS col0 FROM tab2 AS cor0
----
1363
598
722

query I rowsort
SELECT + col0 + + col1 * col2 AS col0 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT cor0.col0 * - col2 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL - col0 * + col0 AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col0 * col1 col2 FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT 56 - + ( - col0 + + tab1.col2 * col0 ) AS col0 FROM tab1
----
-103
-3528
-7544

onlyif mysql # use DIV operator for integer division
query I rowsort label-1965
SELECT ALL col0 DIV tab0.col0 + - col2 * + col2 * - col2 AS col1 FROM tab0
----
2
35938
551369

skipif mysql # not compatible
query I rowsort label-1965
SELECT ALL col0 / tab0.col0 + - col2 * + col2 * - col2 AS col1 FROM tab0
----
2
35938
551369

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab1 cor1
----
243 values hashing to 70c6a01760d7239f3003db4da92180a4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1967
SELECT ALL CAST( - ( col1 ) AS SIGNED ) * + tab0.col2 + - col2 FROM tab0
----
-2871
-7544
-98

skipif mysql # not compatible
query I rowsort label-1967
SELECT ALL CAST ( - ( col1 ) AS INTEGER ) * + tab0.col2 + - col2 FROM tab0
----
-2871
-7544
-98

query I rowsort
SELECT ALL - cor0.col1 FROM tab2, tab2 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

onlyif mysql # use DIV operator for integer division
query I rowsort label-1969
SELECT DISTINCT + col2 * + col2 + - col1 + tab1.col1 DIV col0 col0 FROM tab1
----
2898
3239
9203

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1969
SELECT DISTINCT + col2 * + col2 + - col1 + tab1.col1 / col0 col0 FROM tab1
----
2898
3239
9203

query I rowsort
SELECT DISTINCT - col2 + - col2 + - col1 * col0 FROM tab2
----
-1419
-271
-4654

onlyif mysql # use DIV operator for integer division
query I rowsort label-1971
SELECT ALL + 41 DIV + col0 + col1 AS col2 FROM tab2
----
17
36
59

skipif mysql # not compatible
query I rowsort label-1971
SELECT ALL + 41 / + col0 + col1 AS col2 FROM tab2
----
17
36
59

query I rowsort
SELECT - 20 + tab0.col2 - col0 * tab0.col2 AS col0 FROM tab0
----
-54
-7236
-779

query I rowsort
SELECT + + col2 AS col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT - cor0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

query I rowsort
SELECT DISTINCT - ( + col2 ) * col2 AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-1976
SELECT ALL + col0 * - cor0.col2 DIV - col2 AS col1 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-1976
SELECT ALL + col0 * - cor0.col2 / - col2 AS col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT col2 * - col2 AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ALL - col2 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
-9
34
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-1979
SELECT cor0.col1 DIV - cor0.col2 col2 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1979
SELECT cor0.col1 / - cor0.col2 col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - - col1 * col1 FROM tab1 AS cor0
----
100
169
676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 97 * - col1 + + cor0.col0 col0 FROM tab0 AS cor0
----
-8318
-8738
-9374

query I rowsort
SELECT ALL - 99 AS col0 FROM tab1 AS cor0
----
-99
-99
-99

query I rowsort
SELECT + col0 * + col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT col2 * + col0 AS col1 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT + + col2 + col2 * col0 AS col1 FROM tab0 cor0
----
36
7380
825

query I rowsort
SELECT DISTINCT + col0 + - col1 * cor0.col1 AS col2 FROM tab1 AS cor0
----
-36
-673
-89

query I rowsort
SELECT ALL - - 77 + + col1 AS col0 FROM tab1 AS cor0
----
103
87
90

query I rowsort
SELECT ALL 28 FROM tab0
----
28
28
28

query I rowsort
SELECT ( col1 ) * + col2 AS col2 FROM tab1
----
1248
1404
570

query I rowsort
SELECT - 74 + + col2 FROM tab1 AS cor0
----
-17
-20
22

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT DISTINCT + 50 + + col0 FROM tab0 AS cor0
----
139
74
85

query I rowsort
SELECT ALL - col0 * - col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT ALL + col1 * col1 * + col0 FROM tab1 AS cor0
----
13520
2028
6400

query I rowsort
SELECT col0 * - col2 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
-34
-7216
-759

onlyif mysql # use DIV operator for integer division
query I rowsort label-1996
SELECT ALL + - 67 DIV + cor0.col0 FROM tab1 AS cor0
----
-1
-22
0

skipif mysql # not compatible
query I rowsort label-1996
SELECT ALL + - 67 / + cor0.col0 FROM tab1 AS cor0
----
-1
-22
0

query I rowsort
SELECT DISTINCT col0 + col0 * col2 AS col2 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT + col2 * cor0.col2 + - col2 FROM tab1 AS cor0
----
2862
3192
9120

query I rowsort
SELECT ALL - - col1 AS col1 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( col2 AS REAL ) * cor0.col0 + - CAST ( col1 AS INTEGER ) AS col1 FROM tab2 cor0
----
158
1969
2985

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 93 col1 FROM tab2 AS cor0
----
93
93
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2002
SELECT ALL CAST( NULL AS SIGNED ) * - 69 + cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2002
SELECT ALL CAST ( NULL AS INTEGER ) * - 69 + cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + 50 + col0 col1 FROM tab0 cor0
----
1674
4189
85

query IIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab1 cor1
----
243 values hashing to 098e223d780e18b6582523fd6f55eec9

query I rowsort
SELECT + + col1 * - col0 + col2 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT DISTINCT - ( ( - col1 ) ) FROM tab0
----
86
91
97

query I rowsort
SELECT DISTINCT 4 FROM tab1
----
4

query I rowsort
SELECT col2 + - tab0.col0 * tab0.col1 FROM tab0
----
-2031
-3394
-8017

query I rowsort
SELECT + 60 FROM tab1
----
60
60
60

query I rowsort
SELECT + 67 FROM tab0, tab0 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query I rowsort
SELECT + col0 * col2 AS col1 FROM tab1 AS cor0
----
162
3648
7680

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 cor0, tab0 cor1
----
243 values hashing to 3581f59ff9574f9d6290fc6bca0b5e4d

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2013
SELECT ALL + cor1.col0 - + CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-2013
SELECT ALL + cor1.col0 - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL + 1 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

onlyif mysql # use DIV operator for integer division
query I rowsort label-2015
SELECT - col2 * 17 + col0 DIV col1 col2 FROM tab0
----
-1394
-17
-561

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2015
SELECT - col2 * 17 + col0 / col1 col2 FROM tab0
----
-1394
-17
-561

query I rowsort
SELECT col0 + - 50 AS col0 FROM tab2 AS cor0
----
-43
28
29

query I rowsort
SELECT - col2 - + cor0.col1 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT DISTINCT tab1.col2 - col2 AS col0 FROM tab1
----
0

query I rowsort
SELECT ALL + 48 * - col2 + col1 * 80 * col2 AS col0 FROM tab2
----
121472
49856
65664

query I rowsort
SELECT DISTINCT - col2 * + col0 - - col1 * + col2 FROM tab2 AS cor0
----
-2356
-494
648

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab0 cor0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2022
SELECT DISTINCT + col2 * ( - 32 ) + col1 DIV col1 AS col1 FROM tab0 AS cor0
----
-1055
-2623
-31

skipif mysql # not compatible
query I rowsort label-2022
SELECT DISTINCT + col2 * ( - 32 ) + col1 / col1 AS col1 FROM tab0 AS cor0
----
-1055
-2623
-31

query I rowsort
SELECT ALL col1 + + col2 AS col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL col0 * cor0.col2 + - ( - col1 ) AS col2 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT col0 * cor0.col2 + + ( cor0.col2 + col0 ) * col2 FROM tab0 AS cor0
----
21320
2673
71

query I rowsort
SELECT DISTINCT - col2 * ( - col2 ) AS col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT ALL col0 AS col0 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT - col1 * col2 FROM tab1 cor0
----
-1248
-1404
-570

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1, tab2 AS cor0, tab2
----
972 values hashing to f9adf26f20dc8fcc43c2de18a5fd4859

onlyif mysql # use DIV operator for integer division
query I rowsort label-2030
SELECT col1 DIV + col2 FROM tab0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-2030
SELECT col1 / + col2 FROM tab0
----
1
2
97

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0, tab1 AS cor0, tab1 AS cor1
----
972 values hashing to 7864aada86bf5bf5e1621c7905de8dcd

query I rowsort
SELECT ALL + 48 + + col2 AS col1 FROM tab2
----
74
75
86

query I rowsort
SELECT ALL - tab1.col2 + - col0 AS col2 FROM tab1
----
-121
-176
-57

query I rowsort
SELECT DISTINCT ( - col0 ) + + 17 + - col0 * col2 AS col1 FROM tab0
----
-53
-7370
-799

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col1 + 40 col1 FROM tab1
----
-1000
-38
-600

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 AS cor2
----
972 values hashing to f9adf26f20dc8fcc43c2de18a5fd4859

query I rowsort
SELECT DISTINCT 34 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
34

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1, tab0 cor1
----
243 values hashing to 2ba47a833971d4c4b0287e849fb0cfb8

query I rowsort
SELECT col2 + + col2 AS col0 FROM tab0
----
164
2
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col0 col1 FROM tab1
----
29
74
93

query I rowsort
SELECT - + col1 AS col2 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT ALL + col2 + - 62 AS col1 FROM tab2 cor0
----
-24
-35
-36

query I rowsort
SELECT ALL col0 AS col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT cor0.col0 * 49 FROM tab1 cor0
----
147
3136
3920

query I rowsort
SELECT DISTINCT cor0.col2 * col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT col0 * + cor0.col1 + - col1 + cor0.col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL + col2 + + cor0.col0 * 84 FROM tab2 AS cor0
----
615
6578
6674

query I rowsort
SELECT ALL + col0 * ( + 16 * col0 ) FROM tab1 AS cor0
----
102400
144
65536

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2049
SELECT col1 + - CAST( - 7 AS SIGNED ) * col2 col1 FROM tab2 AS cor0
----
220
241
283

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2049
SELECT col1 + - CAST ( - 7 AS INTEGER ) * col2 col1 FROM tab2 AS cor0
----
220
241
283

onlyif mysql # use DIV operator for integer division
query I rowsort label-2050
SELECT ALL col1 + 99 DIV - col1 FROM tab1 AS cor0
----
1
23
6

skipif mysql # not compatible
query I rowsort label-2050
SELECT ALL col1 + 99 / - col1 FROM tab1 AS cor0
----
1
23
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col2 col0 FROM tab0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-2052
SELECT DISTINCT - col2 DIV col1 AS col0 FROM tab2
----
-2
0

skipif mysql # not compatible
query I rowsort label-2052
SELECT DISTINCT - col2 / col1 AS col0 FROM tab2
----
-2
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2053
SELECT DISTINCT col0 * - CAST( ( - col1 ) AS SIGNED ) AS col2 FROM tab0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-2053
SELECT DISTINCT col0 * - CAST ( ( - col1 ) AS INTEGER ) AS col2 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT - col1 * - col2 AS col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL col0 + col0 AS col1 FROM tab1
----
128
160
6

query I rowsort
SELECT ALL - col0 + + ( col2 * + col0 ) AS col2 FROM tab1
----
159
3584
7600

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2057
SELECT DISTINCT tab2.col1 * - CAST( NULL AS SIGNED ) / + col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2057
SELECT DISTINCT tab2.col1 * - CAST ( NULL AS INTEGER ) / + col1 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col2 * + 11 col0 FROM tab0
----
11
363
902

query I rowsort
SELECT col0 * col2 AS col2 FROM tab0
----
35
7298
792

query I rowsort
SELECT ALL - col0 AS col0 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT DISTINCT col2 + + 24 + col0 AS col1 FROM tab1 cor0
----
145
200
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2062
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2062
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0, tab2 cor0
----
243 values hashing to 60bd71ee2159222231bb3b5819bc5dca

query I rowsort
SELECT + col0 * + col2 * - col0 FROM tab0
----
-1225
-19008
-649522

query I rowsort
SELECT col2 + col2 AS col1 FROM tab1
----
108
114
192

query I rowsort
SELECT DISTINCT 8 FROM tab0, tab2 AS cor0
----
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-2067
SELECT - cor0.col0 DIV + col2 + - col1 FROM tab1 AS cor0
----
-11
-13
-26

skipif mysql # not compatible
query I rowsort label-2067
SELECT - cor0.col0 / + col2 + - col1 FROM tab1 AS cor0
----
-11
-13
-26

query I rowsort
SELECT - + 11 + cor0.col1 AS col0 FROM tab1 cor0
----
-1
15
2

query I rowsort
SELECT col0 + col2 * cor0.col0 AS col1 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT - - 10 FROM tab1 AS cor0
----
10
10
10

query I rowsort
SELECT col0 * 6 + col2 AS col1 FROM tab1 cor0
----
441
576
72

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2072
SELECT - CAST( 48 AS SIGNED ) FROM tab2 cor0
----
-48
-48
-48

skipif mysql # not compatible
query I rowsort label-2072
SELECT - CAST ( 48 AS INTEGER ) FROM tab2 cor0
----
-48
-48
-48

query I rowsort
SELECT - + 25 AS col0 FROM tab1 AS cor0
----
-25
-25
-25

query I rowsort
SELECT + - col1 + + col0 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT 10 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query I rowsort
SELECT 26 AS col0 FROM tab2
----
26
26
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + cor0.col1 col0 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT + - cor0.col1 * col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL - 23 * + col0 FROM tab2 AS cor0
----
-161
-1794
-1817

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col2 + 55 * col2 col0 FROM tab2 cor0
----
2322
2736
2964

query I rowsort
SELECT ALL col0 + - col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT 44 AS col2 FROM tab0 AS cor0
----
44
44
44

query I rowsort
SELECT ALL + - ( col1 ) * + col0 + + 89 FROM tab1 cor0
----
-551
-951
11

query I rowsort
SELECT DISTINCT ( col2 ) + + col2 * ( + col1 ) FROM tab2 AS cor0
----
1560
684
864

onlyif mysql # use DIV operator for integer division
query I rowsort label-2085
SELECT + - col2 DIV + 79 + + col2 - - col0 FROM tab1 AS cor0
----
121
175
57

skipif mysql # not compatible
query I rowsort label-2085
SELECT + - col2 / + 79 + + col2 - - col0 FROM tab1 AS cor0
----
121
175
57

query I rowsort
SELECT ALL 57 FROM tab1, tab0 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT ALL - 77 AS col2 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to c7e5f48ecd3843d54a76808ed1f43ff6

query I rowsort
SELECT DISTINCT col0 * col2 + col1 FROM tab1
----
188
3658
7693

query I rowsort
SELECT DISTINCT tab2.col0 * + tab2.col2 FROM tab2
----
189
2028
3002

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2, tab2 AS cor0, tab2 AS cor1
----
972 values hashing to a47a9db07c7de4927c7c28efb4cd13f2

query I rowsort
SELECT ALL 83 AS col2 FROM tab2
----
83
83
83

query I rowsort
SELECT + 38 + + col0 * + ( 16 ) * col1 AS col0 FROM tab0
----
129622
33062
54358

query I rowsort
SELECT DISTINCT - col2 * tab0.col2 AS col0 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT - ( + col1 ) + + col2 AS col0 FROM tab1
----
28
47
83

query I rowsort
SELECT - col1 * + col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT + cor0.col2 AS col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL + col1 * - ( col0 ) AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL col0 * - col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query IIIIIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab2, tab0 AS cor1
----
243 values hashing to b3323704f6873113d863f8e27386b356

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col0 + CAST ( col0 AS REAL ) AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - col1 + 65 FROM tab2 AS cor0
----
34
48
6

query I rowsort
SELECT + col1 * - 25 FROM tab1 AS cor0
----
-250
-325
-650

query I rowsort
SELECT col0 * col0 * + col2 FROM tab2 AS cor0
----
1323
158184
237158

query I rowsort
SELECT + col1 * + cor0.col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab0 AS cor0
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - ( + col0 ) col2 FROM tab2 AS cor0
----
-41
-52
20

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 - cor0.col1 * - col2 AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT - col0 + + col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT DISTINCT + col2 + + col2 AS col0 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT DISTINCT + - col1 AS col2 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT col2 * - 5 FROM tab1 AS cor0
----
-270
-285
-480

query I rowsort
SELECT + col0 * - 83 AS col1 FROM tab2 AS cor0
----
-581
-6474
-6557

query I rowsort
SELECT + + cor0.col2 * ( 24 ) FROM tab2 AS cor0
----
624
648
912

query I rowsort
SELECT 15 FROM tab1
----
15
15
15

query I rowsort
SELECT DISTINCT - col1 * col0 + col2 FROM tab1
----
-24
-583
-944

query I rowsort
SELECT col1 * ( col2 ) + col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT ALL + 70 + col2 AS col0 FROM tab1
----
124
127
166

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0, tab1, tab0 AS cor1
----
972 values hashing to 5342fb4caf4767cb98bd21989bad099f

query I rowsort
SELECT - ( - col0 ) * + col1 + + 98 FROM tab0 AS cor0
----
2162
3493
8197

query I rowsort
SELECT DISTINCT - 12 AS col0 FROM tab1 AS cor0
----
-12

query I rowsort
SELECT DISTINCT col0 + + cor0.col0 * - col1 AS col1 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT ALL cor0.col1 * - col0 - + col0 FROM tab1 AS cor0
----
-1120
-704
-81

query I rowsort
SELECT ( 33 ) AS col1 FROM tab2 AS cor0
----
33
33
33

query I rowsort
SELECT 55 * - 54 + - col1 FROM tab1 AS cor0
----
-2980
-2983
-2996

query I rowsort
SELECT + - col1 * ( + col1 ) - - col1 AS col2 FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT col1 * col0 AS col0 FROM tab2 AS cor0
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + col0 * + col0 * + col0 col1 FROM tab0 AS cor0
----
13738
42778
704878

query I rowsort
SELECT ALL + + col1 * - col2 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-2130
SELECT DISTINCT col2 * col2 DIV col2 AS col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-2130
SELECT DISTINCT col2 * col2 / col2 AS col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT - - 76 FROM tab2 cor0
----
76
76
76

query I rowsort
SELECT + - 51 * col1 AS col0 FROM tab1 AS cor0
----
-1326
-510
-663

query I rowsort
SELECT DISTINCT ( + ( col1 ) ) AS col1 FROM tab2
----
17
31
59

query I rowsort
SELECT ALL col1 * + cor0.col2 * + col1 FROM tab2 AS cor0
----
10982
25947
90506

query IIIIIIIII rowsort
SELECT * FROM tab2, tab0 cor0 CROSS JOIN tab0
----
243 values hashing to 021da207cdc2a046fb0a79bf7cfc38ae

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT + 76 + col2 AS col2 FROM tab0 AS cor0
----
109
158
77

query I rowsort
SELECT + cor0.col0 AS col0 FROM tab2 AS cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-2139
SELECT ALL - + col0 DIV + col0 + 64 FROM tab0 AS cor0
----
63
63
63

skipif mysql # not compatible
query I rowsort label-2139
SELECT ALL - + col0 / + col0 + 64 FROM tab0 AS cor0
----
63
63
63

query I rowsort
SELECT ALL - col0 + col2 + col1 FROM tab2 AS cor0
----
-24
51
7

query I rowsort
SELECT - 4 AS col1 FROM tab0 AS cor0
----
-4
-4
-4

query I rowsort
SELECT ALL - + cor0.col0 AS col1 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT ( - col2 ) * - 13 FROM tab1 cor0
----
1248
702
741

query I rowsort
SELECT + col0 * col1 + col2 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT ALL + + col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL col2 + col0 * 91 FROM tab0 cor0
----
2217
3186
8181

query I rowsort
SELECT DISTINCT + col2 + - col2 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + + col0 AS col1 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT ALL + + col0 * col1 + 46 FROM tab1 AS cor0
----
1086
124
686

query I rowsort
SELECT ALL - 86 * col1 + col2 AS col0 FROM tab1 AS cor0
----
-1022
-2182
-803

query I rowsort
SELECT DISTINCT + col0 - + col2 * + 59 * cor0.col2 FROM tab2 AS cor0
----
-39806
-43004
-85117

query I rowsort
SELECT 44 * col0 + 58 FROM tab1 AS cor0
----
190
2874
3578

onlyif mysql # use DIV operator for integer division
query I rowsort label-2153
SELECT + cor0.col1 DIV + col2 + col0 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-2153
SELECT + cor0.col1 / + col2 + col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL 26 + - col2 * - col0 AS col2 FROM tab0 AS cor0
----
61
7324
818

query I rowsort
SELECT DISTINCT 51 FROM tab1 AS cor0
----
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-2156
SELECT + col0 * - col1 + col1 DIV - col0 FROM tab0 cor0
----
-2067
-3397
-8100

skipif mysql # not compatible
query I rowsort label-2156
SELECT + col0 * - col1 + col1 / - col0 FROM tab0 cor0
----
-2067
-3397
-8100

onlyif mysql # use DIV operator for integer division
query I rowsort label-2157
SELECT ALL 79 DIV col0 + - col1 FROM tab1 AS cor0
----
-13
-9
0

skipif mysql # not compatible
query I rowsort label-2157
SELECT ALL 79 / col0 + - col1 FROM tab1 AS cor0
----
-13
-9
0

query I rowsort
SELECT ALL 26 * + cor0.col1 FROM tab0 AS cor0
----
2236
2366
2522

query I rowsort
SELECT ALL - col0 * + col1 + 42 + col0 AS col2 FROM tab0 AS cor0
----
-1998
-3318
-7968

query I rowsort
SELECT DISTINCT + ( col0 ) - - col0 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT + + col0 + - col0 AS col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT 23 * cor0.col2 + - 51 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7991a321642c29834e819d0367ce134b

query I rowsort
SELECT DISTINCT + cor0.col1 * + 38 + + col1 AS col1 FROM tab1 AS cor0
----
1014
390
507

query I rowsort
SELECT DISTINCT - + col1 + cor0.col1 AS col2 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col0 * - col2 col2 FROM tab0
----
-706
-7207
62

query I rowsort
SELECT DISTINCT 22 FROM tab0, tab2 AS cor0
----
22

query I rowsort
SELECT + 77 * + 14 FROM tab0 AS cor0
----
1078
1078
1078

query I rowsort
SELECT ALL col0 - col0 * + col2 * - col0 AS col2 FROM tab2 AS cor0
----
1330
158262
237237

query I rowsort
SELECT col0 + + col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL + 70 FROM tab0 AS cor0
----
70
70
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 55 * + cor0.col2 col2 FROM tab0 AS cor0
----
1815
4510
55

query I rowsort
SELECT ALL - col1 FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT col2 + + ( + col1 + - col2 ) * col1 FROM tab2
----
-319
151
1973

query I rowsort
SELECT DISTINCT ( - 70 * + tab2.col2 ) + col1 FROM tab2
----
-1761
-1859
-2643

query I rowsort
SELECT ALL - col1 + 17 * col0 * - ( col1 ) AS col1 FROM tab0
----
-137774
-35174
-57812

query I rowsort
SELECT DISTINCT + tab2.col2 * 88 + - col1 FROM tab2
----
2229
2345
3327

query I rowsort
SELECT + + 31 AS col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336

query I rowsort
SELECT ALL 51 * col2 + col2 + ( col0 ) FROM tab0
----
1740
4353
87

query I rowsort
SELECT ( - cor0.col0 ) AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

onlyif mysql # use DIV operator for integer division
query I rowsort label-2180
SELECT - ( col1 ) DIV col1 AS col2 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2180
SELECT - ( col1 ) / col1 AS col2 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT - + col0 - - col2 * - col0 AS col2 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT DISTINCT ( + col0 ) AS col0 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT cor0.col1 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT ALL + + col1 * + col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT col1 * col2 + col1 AS col0 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT DISTINCT - 9 AS col0 FROM tab2 AS cor0
----
-9

query I rowsort
SELECT ALL 90 FROM tab0, tab0 AS cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT ALL + + cor0.col2 AS col2 FROM tab1, tab2, tab1 cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT + 41 + 43 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a

query I rowsort
SELECT DISTINCT + ( - col1 ) FROM tab2 AS cor0
----
-17
-31
-59

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0, tab2 cor1, tab2 AS cor2
----
972 values hashing to 163d7732097d78f1cda7f65c2cea5a08

query I rowsort
SELECT ALL col1 + 54 FROM tab1 AS cor0
----
64
67
80

query I rowsort
SELECT ALL - col1 + - 24 * col2 FROM tab1 cor0
----
-1322
-1378
-2317

onlyif mysql # use DIV operator for integer division
query I rowsort label-2194
SELECT ALL - - col1 * col1 + + cor0.col2 DIV col1 FROM tab2 AS cor0
----
291
3481
961

skipif mysql # not compatible
query I rowsort label-2194
SELECT ALL - - col1 * col1 + + cor0.col2 / col1 FROM tab2 AS cor0
----
291
3481
961

query I rowsort
SELECT - col0 + + col0 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 col2 FROM tab2 AS cor0
----
-17
-31
-59

query IIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
243 values hashing to 2248b8c3b6efacb4e8fc6d9f81b7df8b

query I rowsort
SELECT ALL - col2 * + cor0.col1 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT - + cor0.col2 + col0 AS col1 FROM tab2 AS cor0
----
-20
41
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col1 + col1 col2 FROM tab2 AS cor0
----
144
72
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2201
SELECT col2 + - CAST( 86 AS SIGNED ) * col2 * - col0 AS col0 FROM tab1 AS cor0
----
13986
313785
660576

skipif mysql # not compatible
query I rowsort label-2201
SELECT col2 + - CAST ( 86 AS INTEGER ) * col2 * - col0 AS col0 FROM tab1 AS cor0
----
13986
313785
660576

query I rowsort
SELECT - + 71 * cor0.col2 AS col1 FROM tab2 AS cor0
----
-1846
-1917
-2698

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 64 * col2 col1 FROM tab2 AS cor0
----
1664
1728
2432

query I rowsort
SELECT - col0 * col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query IIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
243 values hashing to ea21cea53be47edd19229592e3d26141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 65 col1 FROM tab1 AS cor0
----
65
65
65

query I rowsort
SELECT ( + col0 ) * + col0 + + col1 AS col0 FROM tab2 AS cor0
----
6143
6258
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2208
SELECT 81 + 95 * cor0.col2 DIV + col1 FROM tab2 cor0
----
122
163
293

skipif mysql # not compatible
query I rowsort label-2208
SELECT 81 + 95 * cor0.col2 / + col1 FROM tab2 cor0
----
122
163
293

query I rowsort
SELECT ALL + cor0.col2 * - col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0, tab1 AS cor1, tab1 AS cor2
----
972 values hashing to d222ba302bd1ddd1c8b2ddf1a4d0b07a

onlyif mysql # use DIV operator for integer division
query I rowsort label-2211
SELECT DISTINCT + - ( col1 ) + + col2 DIV ( + col0 ) AS col1 FROM tab2 AS cor0
----
-17
-28
-59

skipif mysql # not compatible
query I rowsort label-2211
SELECT DISTINCT + - ( col1 ) + + col2 / ( + col0 ) AS col1 FROM tab2 AS cor0
----
-17
-28
-59

query I rowsort
SELECT + col2 * cor0.col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 46 col1 FROM tab1 AS cor0
----
-46
-46
-46

query I rowsort
SELECT ALL 0 AS col1 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 54 * - col2 col0 FROM tab1 AS cor0
----
-2916
-3078
-5184

query I rowsort
SELECT DISTINCT 7 * - col0 + + ( - 21 ) FROM tab1 AS cor0
----
-42
-469
-581

query I rowsort
SELECT ALL + + 21 * + col0 + + 47 FROM tab1 AS cor0
----
110
1391
1727

query I rowsort
SELECT ( + col2 ) AS col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT - 96 + + col1 + col0 FROM tab2 AS cor0
----
-58
0
41

onlyif mysql # use DIV operator for integer division
query I rowsort label-2220
SELECT - col0 DIV - 94 + ( - cor0.col1 ) * + ( col1 ) - col1 AS col1 FROM tab1 AS cor0
----
-110
-182
-702

skipif mysql # not compatible
query I rowsort label-2220
SELECT - col0 / - 94 + ( - cor0.col1 ) * + ( col1 ) - col1 AS col1 FROM tab1 AS cor0
----
-110
-182
-702

query I rowsort
SELECT col1 * 0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT - col2 * + col1 + - col0 - col1 FROM tab2 AS cor0
----
-1671
-742
-875

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 93 * col0 col2 FROM tab2
----
651
7254
7347

query I rowsort
SELECT + col2 * - 80 - + cor0.col0 FROM tab1 AS cor0
----
-4323
-4624
-7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 75 + - col0 col1 FROM tab1
----
-5
11
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 44 * tab1.col1 + + col0 col2 FROM tab1
----
1147
504
652

query I rowsort
SELECT ALL 77 + - col1 AS col2 FROM tab0
----
-14
-20
-9

query I rowsort
SELECT ALL tab1.col1 + col2 AS col0 FROM tab1
----
109
67
80

query I rowsort
SELECT cor0.col1 * + ( - 7 ) FROM tab0, tab0 AS cor0
----
9 values hashing to e1dd671f8c2500cc0d28e538a6a895cb

query I rowsort
SELECT - - col1 * + col1 * - 53 FROM tab0 cor0
----
-391988
-438893
-498677

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0, tab0 AS cor1, tab0 AS cor2
----
972 values hashing to 8b4fcda7f1ca76bad7c7d728f54a51e0

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 cor0, tab1 AS cor1, tab2 AS cor2
----
972 values hashing to 72eb3d4d523f5d0c69d1b855edd18f4a

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT 99 FROM tab2, tab2 AS cor0
----
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-2235
SELECT ALL - - col2 * cor0.col1 + col0 DIV + col0 FROM tab2 AS cor0
----
1535
647
838

skipif mysql # not compatible
query I rowsort label-2235
SELECT ALL - - col2 * cor0.col1 + col0 / + col0 FROM tab2 AS cor0
----
1535
647
838

query I rowsort
SELECT + col0 * - cor0.col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT + col2 * col2 - col1 FROM tab1 AS cor0
----
2890
3239
9203

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - 64 col1 FROM tab1 AS cor0
----
-10
-7
32

query I rowsort
SELECT - 5 * - ( - col1 ) FROM tab2 AS cor0
----
-155
-295
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - cor0.col2 * - col2 + - ( col2 ) * col1 col2 FROM tab0 AS cor0
----
-1725
-61
-649

onlyif mysql # use DIV operator for integer division
query I rowsort label-2241
SELECT DISTINCT - 74 + - 81 DIV + col1 FROM tab1 AS cor0
----
-77
-80
-82

skipif mysql # not compatible
query I rowsort label-2241
SELECT DISTINCT - 74 + - 81 / + col1 FROM tab1 AS cor0
----
-77
-80
-82

query I rowsort
SELECT ALL - ( col0 ) + + col2 * col0 AS col1 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT ALL - col0 AS col0 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT - col0 * - col0 AS col1 FROM tab1
----
4096
6400
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-2245
SELECT DISTINCT col2 - - col1 DIV - col1 FROM tab1
----
53
56
95

skipif mysql # not compatible
query I rowsort label-2245
SELECT DISTINCT col2 - - col1 / - col1 FROM tab1
----
53
56
95

query I rowsort
SELECT DISTINCT + col1 - col2 * 58 FROM tab2
----
-1449
-1535
-2187

query I rowsort
SELECT - col2 * + ( - 42 ) + col1 * - 81 + 99 AS col0 FROM tab0
----
-3828
-5481
-7716

onlyif mysql # use DIV operator for integer division
query I rowsort label-2248
SELECT ALL col2 * col2 DIV col0 - - tab0.col1 * - 55 * col0 AS col0 FROM tab0
----
-113475
-186725
-445370

skipif mysql # not compatible
query I rowsort label-2248
SELECT ALL col2 * col2 / col0 - - tab0.col1 * - 55 * col0 AS col0 FROM tab0
----
-113475
-186725
-445370

query I rowsort
SELECT ALL 48 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 0ef571a8722ab7270aa7272c1174b88e

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab0 cor1
----
243 values hashing to 2ba47a833971d4c4b0287e849fb0cfb8

query I rowsort
SELECT col2 AS col0 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT - 35 FROM tab2
----
-35
-35
-35

query I rowsort
SELECT - + ( col2 ) FROM tab2 AS cor0
----
-26
-27
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) col0 FROM tab2
----
17
31
59

query I rowsort
SELECT ALL - col2 AS col1 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT ( + tab0.col2 ) FROM tab0
----
1
33
82

query I rowsort
SELECT DISTINCT + col0 * + col0 AS col0 FROM tab1
----
4096
6400
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2258
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2258
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT tab2.col0 * col1 * col2 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT - col2 * + cor0.col0 * col0 AS col2 FROM tab2 cor0
----
-1323
-158184
-237158

query I rowsort
SELECT 48 AS col0 FROM tab0 AS cor0
----
48
48
48

query I rowsort
SELECT 17 * + col2 * - col2 FROM tab0 cor0
----
-114308
-17
-18513

query I rowsort
SELECT + col2 * + col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT 84 + col2 AS col2 FROM tab2 AS cor0
----
110
111
122

query I rowsort
SELECT col0 * cor0.col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - 89 * col2 AS col1 FROM tab1 AS cor0
----
-4806
-5073
-8544

query I rowsort
SELECT ALL + - col1 AS col2 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT + ( col0 ) * col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT - col1 * + 98 FROM tab1
----
-1274
-2548
-980

query I rowsort
SELECT DISTINCT - - 1 * col2 AS col2 FROM tab2 AS cor0
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-2271
SELECT ALL + + col2 DIV - cor0.col0 FROM tab2 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-2271
SELECT ALL + + col2 / - cor0.col0 FROM tab2 AS cor0
----
-3
0
0

query I rowsort
SELECT - - cor0.col2 + - 63 FROM tab1 cor0
----
-6
-9
33

query I rowsort
SELECT DISTINCT + col2 * col2 FROM tab0
----
1
1089
6724

query I rowsort
SELECT + ( + col0 ) + col1 AS col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT DISTINCT + ( - col1 ) * + col0 + col1 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT + 36 FROM tab1 AS cor0
----
36
36
36

query I rowsort
SELECT - + 88 * 87 AS col0 FROM tab2 AS cor0
----
-7656
-7656
-7656

query I rowsort
SELECT DISTINCT + - 91 + + ( col1 ) FROM tab2 cor0
----
-32
-60
-74

query I rowsort
SELECT ALL - - col2 + - col1 * col2 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT - + col2 AS col2 FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT - + 30 - 23 * col2 AS col0 FROM tab2 AS cor0
----
-628
-651
-904

query I rowsort
SELECT DISTINCT - ( col2 ) + - col1 * + col0 FROM tab0 AS cor0
----
-2097
-3396
-8181

query I rowsort
SELECT ALL - col0 + col2 FROM tab2
----
-41
-52
20

query I rowsort
SELECT ALL + col2 + col1 * - col1 AS col0 FROM tab1
----
-43
-622
-73

query I rowsort
SELECT - tab2.col1 AS col1 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT DISTINCT - col2 * - col2 FROM tab0
----
1
1089
6724

query I rowsort
SELECT DISTINCT + col1 + col2 * - ( - tab1.col2 + - 66 ) AS col0 FROM tab1
----
15565
6506
7021

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
972 values hashing to 0fcd8d0934383dd58863be894b07a6ed

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
243 values hashing to 70c6a01760d7239f3003db4da92180a4

query I rowsort
SELECT + 89 * 45 FROM tab2 AS cor0
----
4005
4005
4005

query I rowsort
SELECT + cor0.col1 + col0 * + col2 AS col2 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT DISTINCT - cor0.col1 * 4 FROM tab2 AS cor0
----
-124
-236
-68

query I rowsort
SELECT DISTINCT + ( + 45 ) AS col2 FROM tab0 cor0
----
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col0 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL + 28 FROM tab0
----
28
28
28

query I rowsort
SELECT + + col2 + col0 * - col0 AS col0 FROM tab2 AS cor0
----
-22
-6058
-6203

skipif mysql # not compatible
query I rowsort
SELECT + - CAST ( + 95 AS REAL ) FROM tab0 AS cor0
----
-95
-95
-95

query I rowsort
SELECT ALL col2 * - tab2.col1 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT col2 * col2 * - tab2.col1 AS col1 FROM tab2
----
-22599
-24548
-39884

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0, tab0, tab0 cor1
----
972 values hashing to b2fa3f9d060540fe1eb4ad1c0754e163

query I rowsort
SELECT + 0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + 3 FROM tab1 AS cor0
----
3
3
3

query I rowsort
SELECT - + col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT + + col1 - col2 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT + col2 + col2 + ( + col2 ) * col2 AS col2 FROM tab1
----
3024
3363
9408

onlyif mysql # use DIV operator for integer division
query I rowsort label-2306
SELECT + - cor0.col2 DIV + 24 + + 25 - - col0 FROM tab1 AS cor0
----
101
26
87

skipif mysql # not compatible
query I rowsort label-2306
SELECT + - cor0.col2 / + 24 + + 25 - - col0 FROM tab1 AS cor0
----
101
26
87

query I rowsort
SELECT ALL - col0 + + 68 AS col2 FROM tab0
----
-21
33
44

query I rowsort
SELECT ALL - tab1.col1 * tab1.col1 + + 36 * + col0 FROM tab1
----
-568
2204
2711

query I rowsort
SELECT col0 + + col0 * + ( + col0 ) AS col1 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT + col0 * + ( col2 ) AS col2 FROM tab1 cor0
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2311
SELECT DISTINCT + col2 * CAST( - col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-1444
-676
-729

skipif mysql # not compatible
query I rowsort label-2311
SELECT DISTINCT + col2 * CAST ( - col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-1444
-676
-729

onlyif mysql # use DIV operator for integer division
query I rowsort label-2312
SELECT + cor0.col1 + + col2 * col0 DIV + col0 FROM tab2 cor0
----
55
58
85

skipif mysql # not compatible
query I rowsort label-2312
SELECT + cor0.col1 + + col2 * col0 / + col0 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT DISTINCT - col0 + 56 AS col1 FROM tab1 AS cor0
----
-24
-8
53

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2314
SELECT DISTINCT - col0 * CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2314
SELECT DISTINCT - col0 * CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col2 col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT - col1 * + ( 39 ) + - col1 FROM tab1 cor0
----
-1040
-400
-520

query IIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
243 values hashing to 5c33e96b85afe1ea51bb6d4e9fa6f993

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 55 + - 54 col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 17c157ac869cce518b99bdf7c8964dfb

onlyif mysql # use DIV operator for integer division
query I rowsort label-2319
SELECT - tab0.col0 DIV - col1 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2319
SELECT - tab0.col0 / - col1 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL cor0.col1 * ( cor0.col0 ) + cor0.col2 * + col0 FROM tab0 AS cor0
----
15397
2856
3430

query I rowsort
SELECT ALL + col0 + - col2 * 29 - - col0 * col0 * cor0.col0 FROM tab2 AS cor0
----
-433
473876
492016

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2322
SELECT + col1 * - col2 - col0 * + col2 / + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2322
SELECT + col1 * - col2 - col0 * + col2 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 + cor0.col2 * 18 * + col1 AS col1 FROM tab0 AS cor0
----
134407
1843
51170

query I rowsort
SELECT DISTINCT col2 FROM tab1 cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2325
SELECT DISTINCT - col2 - - col1 DIV cor0.col1 FROM tab0 AS cor0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-2325
SELECT DISTINCT - col2 - - col1 / cor0.col1 FROM tab0 AS cor0
----
-32
-81
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2326
SELECT + col0 - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2326
SELECT + col0 - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 + - cor0.col2 * - col1 AS col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT DISTINCT - col2 * col2 + 33 FROM tab1 cor0
----
-2883
-3216
-9183

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL - col1 + + 61 * col0 FROM tab2 AS cor0
----
396
4699
4802

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2331
SELECT col1 + CAST( col2 * cor0.col2 AS SIGNED ) AS col1 FROM tab2 cor0
----
1461
735
760

skipif mysql # not compatible
query I rowsort label-2331
SELECT col1 + CAST ( col2 * cor0.col2 AS INTEGER ) AS col1 FROM tab2 cor0
----
1461
735
760

query I rowsort
SELECT ALL col2 + 41 AS col0 FROM tab1 AS cor0
----
137
95
98

query I rowsort
SELECT - - 35 * 86 * col0 AS col2 FROM tab1 AS cor0
----
192640
240800
9030

query I rowsort
SELECT ALL + - col1 AS col1 FROM tab0 AS cor0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2335
SELECT ALL - col1 DIV cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-2335
SELECT ALL - col1 / cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-2
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2336
SELECT - cor0.col0 DIV col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2336
SELECT - cor0.col0 / col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 * - col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT - - col0 AS col0 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT ALL col2 * ( - col0 ) * + tab1.col1 + - 3 AS col2 FROM tab1
----
-36483
-4215
-99843

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0, tab0, tab2 AS cor1
----
972 values hashing to 1e9d01970ae508486ddabec967bb176c

query I rowsort
SELECT cor0.col1 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

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 col2 * col1 + col2 * col2 col0 FROM tab0 AS cor0
----
14186
3927
98

query I rowsort
SELECT ALL - col0 + - col2 AS col2 FROM tab2 cor0
----
-104
-117
-34

query I rowsort
SELECT DISTINCT - + col0 - - col0 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + + cor0.col2 col0 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT DISTINCT - + 6 * + col2 - ( col0 ) FROM tab0 AS cor0
----
-222
-41
-581

query I rowsort
SELECT + cor1.col2 * cor2.col0 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to a4b05f73428cb11899947af193b0ab2a

query I rowsort
SELECT DISTINCT + cor0.col0 * + col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT ALL + 72 + + cor0.col1 FROM tab1 cor0
----
82
85
98

query I rowsort
SELECT ALL + cor0.col1 + col0 AS col0 FROM tab2 AS cor0
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2352
SELECT DISTINCT tab1.col2 DIV 31 FROM tab1
----
1
3

skipif mysql # not compatible
query I rowsort label-2352
SELECT DISTINCT tab1.col2 / 31 FROM tab1
----
1
3

query I rowsort
SELECT DISTINCT + col1 - - col2 FROM tab2 AS cor0
----
55
58
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT col2 + tab0.col2 AS col1 FROM tab0
----
164
2
66

query I rowsort
SELECT col2 - col2 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL col2 + - col2 * 5 FROM tab1 AS cor0
----
-216
-228
-384

query I rowsort
SELECT ALL - cor0.col2 * 14 - cor0.col2 FROM tab2 AS cor0
----
-390
-405
-570

query I rowsort
SELECT DISTINCT - - col2 AS col1 FROM tab2 cor0
----
26
27
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2360
SELECT ALL + col2 + CAST( NULL AS SIGNED ) * + 13 + - cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2360
SELECT ALL + col2 + CAST ( NULL AS INTEGER ) * + 13 + - cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 65 * + col2 * col0 - col2 FROM tab0
----
2274
474288
51447

query I rowsort
SELECT DISTINCT 20 FROM tab2
----
20

query I rowsort
SELECT DISTINCT ( col2 * col1 ) FROM tab1
----
1248
1404
570

query I rowsort
SELECT - col1 * col0 + 51 * - col1 AS col0 FROM tab0
----
-12740
-6450
-8342

query I rowsort
SELECT col2 + + col2 AS col0 FROM tab1
----
108
114
192

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 AS cor2
----
3645 values hashing to 93ed44f621cc970f32b0cc9543b45262

query I rowsort
SELECT DISTINCT - - col2 AS col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT - + col0 * - cor0.col1 + + col0 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT - + 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-2370
SELECT DISTINCT CAST( + 96 AS SIGNED ) + tab0.col0 + col1 AS col1 FROM tab0
----
206
228
276

skipif mysql # not compatible
query I rowsort label-2370
SELECT DISTINCT CAST ( + 96 AS INTEGER ) + tab0.col0 + col1 AS col1 FROM tab0
----
206
228
276

query I rowsort
SELECT ALL 66 FROM tab0, tab0 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88

query I rowsort
SELECT ALL + ( + cor0.col2 ) * - 93 FROM tab0 AS cor0
----
-3069
-7626
-93

query I rowsort
SELECT ALL - col1 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT - col2 * col1 FROM tab0
----
-2838
-7462
-97

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0, tab1 AS cor0, tab2 cor1
----
972 values hashing to 49c8bf3e931a898ba7af63d0e377eb79

query I rowsort
SELECT DISTINCT 0 AS col0 FROM tab0, tab2, tab2 cor0
----
0

query I rowsort
SELECT DISTINCT cor0.col2 FROM tab1, tab1 cor0
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 26 col2 FROM tab2
----
26
26
26

query I rowsort
SELECT - 99 FROM tab2 AS cor0
----
-99
-99
-99

query I rowsort
SELECT ALL - col1 AS col1 FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT + + 94 * col0 + + col1 FROM tab1 cor0
----
308
6026
7533

query I rowsort
SELECT - - col0 AS col1 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL col2 + col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT - col2 - + cor0.col0 FROM tab0 cor0
----
-171
-36
-57

query I rowsort
SELECT + + col1 * - col2 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT - 57 FROM tab1, tab0 AS cor0
----
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-2387
SELECT ALL - tab0.col2 DIV + 5 FROM tab0
----
-16
-6
0

skipif mysql # not compatible
query I rowsort label-2387
SELECT ALL - tab0.col2 / + 5 FROM tab0
----
-16
-6
0

query I rowsort
SELECT ALL 23 AS col0 FROM tab0, tab2 cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query I rowsort
SELECT DISTINCT col0 * + ( col1 * + col2 ) AS col1 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT DISTINCT col0 * + ( + ( col0 ) + - col0 ) * col2 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col0 FROM tab1
----
54
57
96

query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 cor0, tab2 AS cor1
----
243 values hashing to 042fa16c43ab365359ee93c064e44127

query I rowsort
SELECT ALL + col0 + - ( col1 ) FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT - col2 * - col2 + 85 FROM tab2 AS cor0
----
1529
761
814

query I rowsort
SELECT + cor0.col2 + col0 AS col0 FROM tab2 AS cor0
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT - - cor0.col1 + ( + col1 ) * + col1 FROM tab2 cor0
----
306
3540
992

query I rowsort
SELECT + 55 FROM tab1 AS cor0
----
55
55
55

query I rowsort
SELECT ALL col0 + col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT col0 + cor0.col0 * col2 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT ( - col0 ) FROM tab2 AS cor0
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-2402
SELECT + ( 64 ) + col1 DIV col2 FROM tab0 AS cor0
----
161
65
66

skipif mysql # not compatible
query I rowsort label-2402
SELECT + ( 64 ) + col1 / col2 FROM tab0 AS cor0
----
161
65
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2403
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2403
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + + 17 + col0 AS col0 FROM tab1 AS cor0
----
20
81
97

query I rowsort
SELECT - - 64 * + col0 FROM tab2 AS cor0
----
448
4992
5056

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL + col1 * col2 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT col1 + + 86 AS col1 FROM tab1
----
112
96
99

query I rowsort
SELECT + + cor0.col1 * + col0 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-2410
SELECT + col2 DIV col1 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2410
SELECT + col2 / col1 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT 83 * - 21 * - col2 FROM tab0 AS cor0
----
142926
1743
57519

query I rowsort
SELECT 37 FROM tab1, tab2 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query I rowsort
SELECT col1 + col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT 99 AS col0 FROM tab0
----
99
99
99

query I rowsort
SELECT 18 FROM tab1
----
18
18
18

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 cor0, tab1 AS cor1, tab2 AS cor2
----
972 values hashing to 01a5931cccc3dad8792a1bc6df09c614

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 col1 FROM tab1 AS cor0
----
88
88
88

query I rowsort
SELECT ALL cor0.col0 AS col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT - + ( - cor0.col2 ) AS col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT + 18 AS col1 FROM tab0 AS cor0
----
18
18
18

query I rowsort
SELECT ALL - + 57 FROM tab1 AS cor0
----
-57
-57
-57

query I rowsort
SELECT + - ( col1 ) AS col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT col2 * + col1 AS col0 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT ALL + col2 + col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT + ( col2 ) FROM tab1 AS cor0
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col0 * col1 col2 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT + + col2 + - col1 AS col0 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT + + col1 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT - col2 AS col1 FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT cor0.col2 * col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT + 72 * - col1 FROM tab1 AS cor0
----
-1872
-720
-936

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab1 AS cor0
----
10
13
26

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0, tab0 AS cor0, tab0 AS cor1
----
972 values hashing to 3406497351e4789c89a295ee9b64b201

query I rowsort
SELECT ALL ( - col2 ) FROM tab1
----
-54
-57
-96

query I rowsort
SELECT - ( - col1 ) AS col2 FROM tab1
----
10
13
26

query I rowsort
SELECT - - cor0.col1 AS col2 FROM tab0 cor0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2437
SELECT + cor0.col2 DIV - col0 + col2 * - col0 FROM tab1 AS cor0
----
-180
-3648
-7681

skipif mysql # not compatible
query I rowsort label-2437
SELECT + cor0.col2 / - col0 + col2 * - col0 FROM tab1 AS cor0
----
-180
-3648
-7681

query I rowsort
SELECT + - col0 + - cor0.col1 AS col0 FROM tab2 AS cor0
----
-137
-38
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2439
SELECT + - col0 DIV + 28 + col2 FROM tab1 AS cor0
----
54
55
94

skipif mysql # not compatible
query I rowsort label-2439
SELECT + - col0 / + 28 + col2 FROM tab1 AS cor0
----
54
55
94

query I rowsort
SELECT + cor0.col2 + col1 + - col1 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT - col1 + + col0 * + col1 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT ALL + tab0.col2 AS col2 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT - ( col2 * - tab0.col1 ) AS col0 FROM tab0
----
2838
7462
97

query I rowsort
SELECT - col2 * - tab0.col1 AS col0 FROM tab0
----
2838
7462
97

query I rowsort
SELECT ALL + col0 * col1 AS col2 FROM tab2
----
1343
217
4602

query I rowsort
SELECT ALL tab2.col0 * tab2.col1 + col1 FROM tab2
----
1360
248
4661

query I rowsort
SELECT 12 + col1 AS col2 FROM tab1
----
22
25
38

query I rowsort
SELECT ALL + 82 + + col2 FROM tab0
----
115
164
83

query I rowsort
SELECT ALL 14 + col0 AS col2 FROM tab0
----
103
38
49

query I rowsort
SELECT ALL + col1 FROM tab0
----
86
91
97

query I rowsort
SELECT DISTINCT - - 74 * cor0.col0 FROM tab0, tab2 AS cor0, tab2, tab2 AS cor1
----
518
5772
5846

query I rowsort
SELECT DISTINCT + 4 AS col0 FROM tab0 AS cor0
----
4

query I rowsort
SELECT - 35 FROM tab1 AS cor0
----
-35
-35
-35

onlyif mysql # use DIV operator for integer division
query I rowsort label-2454
SELECT DISTINCT + col1 DIV ( + col2 ) FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-2454
SELECT DISTINCT + col1 / ( + col2 ) FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT ALL cor0.col0 * ( + 77 * cor0.col1 ) FROM tab0 AS cor0
----
158928
261415
623623

onlyif mysql # use DIV operator for integer division
query I rowsort label-2456
SELECT - col1 DIV col0 + + col0 + col0 AS col1 FROM tab0 AS cor0
----
177
45
68

skipif mysql # not compatible
query I rowsort label-2456
SELECT - col1 / col0 + + col0 + col0 AS col1 FROM tab0 AS cor0
----
177
45
68

onlyif mysql # use DIV operator for integer division
query I rowsort label-2457
SELECT - col1 * col1 DIV - col0 FROM tab1 AS cor0
----
1
2
225

skipif mysql # not compatible
query I rowsort label-2457
SELECT - col1 * col1 / - col0 FROM tab1 AS cor0
----
1
2
225

onlyif mysql # use DIV operator for integer division
query I rowsort label-2458
SELECT DISTINCT + 41 + col2 * + cor0.col0 + + 28 DIV col0 FROM tab1 cor0
----
212
3689
7721

skipif mysql # not compatible
query I rowsort label-2458
SELECT DISTINCT + 41 + col2 * + cor0.col0 + + 28 / col0 FROM tab1 cor0
----
212
3689
7721

query I rowsort
SELECT + - ( + col1 ) * 51 AS col1 FROM tab1 AS cor0
----
-1326
-510
-663

query I rowsort
SELECT + 21 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 312c166f4dc412730c43555105b1f44b

query I rowsort
SELECT ALL col1 + + col1 AS col0 FROM tab1
----
20
26
52

query I rowsort
SELECT - 46 + col1 FROM tab1 AS cor0
----
-20
-33
-36

onlyif mysql # use DIV operator for integer division
query I rowsort label-2463
SELECT DISTINCT 18 + col2 DIV + 54 AS col2 FROM tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-2463
SELECT DISTINCT 18 + col2 / + 54 AS col2 FROM tab2 AS cor0
----
18

query I rowsort
SELECT - - col0 + col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL - 30 AS col2 FROM tab2 AS cor0
----
-30
-30
-30

query I rowsort
SELECT DISTINCT - - 68 AS col1 FROM tab1 AS cor0
----
68

query I rowsort
SELECT 94 FROM tab0 AS cor0
----
94
94
94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2468
SELECT + CAST( NULL AS SIGNED ) FROM tab1, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2468
SELECT + CAST ( NULL AS INTEGER ) FROM tab1, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + + cor0.col2 FROM tab2 AS cor0
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-2470
SELECT ALL ( + col1 ) DIV col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2470
SELECT ALL ( + col1 ) / col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort
SELECT - col2 - col0 * + CAST ( - 77 AS REAL ) * - cor0.col2 FROM tab1 AS cor0
----
-12528
-280953
-591456

query I rowsort
SELECT ALL - cor0.col1 - + cor0.col2 FROM tab1 AS cor0
----
-109
-67
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 * col2 col0 FROM tab2 AS cor0
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col2 col1 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT DISTINCT col2 * cor0.col1 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT 61 * - tab2.col0 + - col1 - + 35 AS col1 FROM tab2
----
-4852
-4871
-493

query I rowsort
SELECT - 58 * + col1 + 13 AS col0 FROM tab2
----
-1785
-3409
-973

query I rowsort
SELECT DISTINCT - - col0 * + col0 FROM tab2 AS cor0
----
49
6084
6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-2479
SELECT ALL col1 * 45 DIV ( + col0 * col0 ) FROM tab2 AS cor0
----
0
0
28

skipif mysql # not compatible
query I rowsort label-2479
SELECT ALL col1 * 45 / ( + col0 * col0 ) FROM tab2 AS cor0
----
0
0
28

query I rowsort
SELECT + col2 + + cor0.col0 * col1 AS col2 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT + cor0.col0 * col0 AS col1 FROM tab0 AS cor0
----
1225
576
7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2482
SELECT DISTINCT - col2 + + CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2482
SELECT DISTINCT - col2 + + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * ( cor0.col0 ) col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT - + col0 * 56 * 51 + - col0 * col2 AS col2 FROM tab2 AS cor0
----
-20181
-224796
-228626

query I rowsort
SELECT ALL col2 * - 92 FROM tab2 cor0
----
-2392
-2484
-3496

query I rowsort
SELECT ALL col2 * - col1 + - cor0.col0 FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT DISTINCT + col1 - - col1 AS col1 FROM tab2 AS cor0
----
118
34
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-2488
SELECT DISTINCT + 98 DIV col1 + ( - tab1.col0 * tab1.col0 ) AS col0 FROM tab1
----
-4087
-6
-6393

skipif mysql # not compatible
query I rowsort label-2488
SELECT DISTINCT + 98 / col1 + ( - tab1.col0 * tab1.col0 ) AS col0 FROM tab1
----
-4087
-6
-6393

query I rowsort
SELECT ALL col1 + col2 * 74 AS col0 FROM tab2
----
1983
2029
2829

query I rowsort
SELECT ALL col0 + col0 FROM tab0
----
178
48
70

query I rowsort
SELECT - 43 FROM tab0, tab2, tab1 cor0
----
27 values hashing to 2f72bd9cab68c8d8c38874510a290a3c

onlyif mysql # use DIV operator for integer division
query I rowsort label-2492
SELECT + tab2.col0 DIV - col0 - ( - tab2.col2 * - tab2.col2 ) FROM tab2
----
-1445
-677
-730

skipif mysql # not compatible
query I rowsort label-2492
SELECT + tab2.col0 / - col0 - ( - tab2.col2 * - tab2.col2 ) FROM tab2
----
-1445
-677
-730

query I rowsort
SELECT DISTINCT tab1.col1 + + col2 * - 70 + tab1.col0 FROM tab1
----
-3751
-3916
-6627

query I rowsort
SELECT DISTINCT tab0.col0 + col0 * - col2 FROM tab0
----
-7209
-768
0

query I rowsort
SELECT - tab2.col0 * col0 + - col0 FROM tab2
----
-56
-6162
-6320

query I rowsort
SELECT ALL col1 + col0 FROM tab1
----
29
74
93

query I rowsort
SELECT col0 * col2 FROM tab2
----
189
2028
3002

query I rowsort
SELECT DISTINCT - col2 * + col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ( + col2 ) FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL - - col1 + ( cor0.col0 * - 43 ) + col0 AS col2 FROM tab1 AS cor0
----
-100
-2678
-3347

query I rowsort
SELECT col2 + 81 AS col1 FROM tab0 AS cor0
----
114
163
82

query I rowsort
SELECT ALL + 42 * - ( - col1 ) + ( + col2 ) * cor0.col0 FROM tab0 AS cor0
----
11120
4109
4404

query I rowsort
SELECT DISTINCT - - 59 - + 96 AS col0 FROM tab0 AS cor0
----
-37

query I rowsort
SELECT ALL col0 * + col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL - col2 + - col0 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT - 94 FROM tab0 AS cor0
----
-94
-94
-94

query I rowsort
SELECT - 43 * col0 AS col1 FROM tab1 cor0
----
-129
-2752
-3440

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 1 * col0 col0 FROM tab0 AS cor0
----
1225
576
7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-2509
SELECT DISTINCT + 79 DIV 85 AS col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2509
SELECT DISTINCT + 79 / 85 AS col1 FROM tab2 cor0
----
0

query I rowsort
SELECT DISTINCT ( + cor0.col0 ) FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT - col0 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT ALL col1 * col1 AS col2 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT + 75 AS col2 FROM tab0 AS cor0
----
75
75
75

query I rowsort
SELECT DISTINCT - col1 * col2 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT - col1 - tab2.col1 FROM tab2
----
-118
-34
-62

query I rowsort
SELECT DISTINCT 62 FROM tab1, tab2, tab0 AS cor0, tab2 AS cor1
----
62

query I rowsort
SELECT + cor0.col1 * + col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL col0 * ( 19 ) FROM tab1
----
1216
1520
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-2520
SELECT - col2 + - 53 - + col1 DIV - ( - col1 ) FROM tab2
----
-80
-81
-92

skipif mysql # not compatible
query I rowsort label-2520
SELECT - col2 + - 53 - + col1 / - ( - col1 ) FROM tab2
----
-80
-81
-92

query I rowsort
SELECT - 92 FROM tab0, tab2 AS cor0
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

query I rowsort
SELECT ALL ( col2 ) - + col2 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT col0 * cor0.col2 AS col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - 60 FROM tab1 cor0
----
-60
-60
-60

query I rowsort
SELECT tab1.col1 * - 44 + col2 AS col2 FROM tab1
----
-1090
-383
-476

query I rowsort
SELECT col1 - - tab2.col1 FROM tab2
----
118
34
62

query I rowsort
SELECT - tab0.col2 + + col2 FROM tab0
----
0
0
0

query I rowsort
SELECT + col1 * + col1 + col2 * + col2 AS col2 FROM tab2
----
1690
1733
4157

query I rowsort
SELECT - - col0 + + col0 FROM tab2 cor0
----
14
156
158

onlyif mysql # use DIV operator for integer division
query I rowsort label-2530
SELECT - 91 DIV col0 AS col1 FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-2530
SELECT - 91 / col0 AS col1 FROM tab0 AS cor0
----
-1
-2
-3

query I rowsort
SELECT - col0 * col0 + col2 AS col0 FROM tab0 AS cor0
----
-1224
-543
-7839

onlyif mysql # use DIV operator for integer division
query I rowsort label-2532
SELECT col0 - - 56 DIV col1 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-2532
SELECT col0 - - 56 / col1 FROM tab0
----
24
35
89

query I rowsort
SELECT ALL + col1 * col1 FROM tab2
----
289
3481
961

query I rowsort
SELECT - 26 AS col1 FROM tab0
----
-26
-26
-26

query IIIIIIIII rowsort
SELECT * FROM tab0, tab1, tab2 cor0
----
243 values hashing to ea21cea53be47edd19229592e3d26141

query I rowsort
SELECT - 73 * - tab0.col2 + col1 AS col0 FROM tab0
----
170
2495
6077

query I rowsort
SELECT 98 + - tab0.col2 AS col0 FROM tab0
----
16
65
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2538
SELECT DISTINCT - CAST( + col0 AS SIGNED ) * + col0 col2 FROM tab1
----
-4096
-6400
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2538
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) * + col0 col2 FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT + 14 AS col1 FROM tab1
----
14
14
14

query I rowsort
SELECT ALL col1 * - col0 + col0 AS col0 FROM tab0
----
-2040
-3360
-8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-2541
SELECT + 16 DIV col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2541
SELECT + 16 / col1 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2542
SELECT col1 DIV col0 AS col2 FROM tab0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-2542
SELECT col1 / col0 AS col2 FROM tab0
----
1
2
3

query I rowsort
SELECT col2 * col2 AS col2 FROM tab0
----
1
1089
6724

query I rowsort
SELECT ALL cor0.col1 AS col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL - + col2 + + col0 AS col0 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT col0 * - col2 AS col1 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT + + col0 AS col1 FROM tab0 cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col2 + col0 col2 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT ALL - col2 * col1 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2550
SELECT ALL - col0 DIV col1 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2550
SELECT ALL - col0 / col1 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - 90 AS col2 FROM tab0 AS cor0
----
-90
-90
-90

query I rowsort
SELECT DISTINCT + - 21 + col0 * col0 FROM tab1 AS cor0
----
-12
4075
6379

query I rowsort
SELECT ALL + - col2 + col1 AS col2 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT 94 * col2 * - col1 FROM tab1 AS cor0
----
-117312
-131976
-53580

query I rowsort
SELECT ALL + + col0 - - col0 AS col0 FROM tab0 AS cor0
----
178
48
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-2556
SELECT ALL - 55 DIV + cor0.col2 + cor0.col1 AS col0 FROM tab1 AS cor0
----
10
13
25

skipif mysql # not compatible
query I rowsort label-2556
SELECT ALL - 55 / + cor0.col2 + cor0.col1 AS col0 FROM tab1 AS cor0
----
10
13
25

query I rowsort
SELECT - cor0.col0 * col2 FROM tab0 AS cor0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - col0 * - cor0.col1 col1 FROM tab1 AS cor0
----
-234
-40960
-83200

query I rowsort
SELECT - col1 * - col0 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT - + col1 * + col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT 45 + col2 * + col1 AS col1 FROM tab0 AS cor0
----
142
2883
7507

onlyif mysql # use DIV operator for integer division
query I rowsort label-2562
SELECT DISTINCT col2 DIV - 96 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2562
SELECT DISTINCT col2 / - 96 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT DISTINCT - - col2 + + 10 FROM tab0 AS cor0
----
11
43
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-2564
SELECT - - col2 DIV - ( col0 ) AS col1 FROM tab2 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-2564
SELECT - - col2 / - ( col0 ) AS col1 FROM tab2 AS cor0
----
-3
0
0

query I rowsort
SELECT DISTINCT cor0.col0 AS col2 FROM tab2 AS cor0
----
7
78
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2566
SELECT ALL + cor0.col1 * CAST( col1 AS SIGNED ) + col2 FROM tab0 cor0
----
7429
8363
9410

skipif mysql # not compatible
query I rowsort label-2566
SELECT ALL + cor0.col1 * CAST ( col1 AS INTEGER ) + col2 FROM tab0 cor0
----
7429
8363
9410

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 col0 * 88 + 52 AS col0 FROM tab0 AS cor0
----
2164
3132
7884

query I rowsort
SELECT ALL + cor0.col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT + col2 + - col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT DISTINCT - col2 * - col2 FROM tab0 AS cor0
----
1
1089
6724

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2572
SELECT ALL + CAST( NULL AS SIGNED ) * cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2572
SELECT ALL + CAST ( NULL AS INTEGER ) * cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2573
SELECT + CAST( col0 AS SIGNED ) col0 FROM tab1 AS cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2573
SELECT + CAST ( col0 AS INTEGER ) col0 FROM tab1 AS cor0
----
3
64
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2574
SELECT ALL CAST( col1 AS SIGNED ) + col0 AS col2 FROM tab1 AS cor0
----
29
74
93

skipif mysql # not compatible
query I rowsort label-2574
SELECT ALL CAST ( col1 AS INTEGER ) + col0 AS col2 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT col1 * col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL + - col2 * + col0 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL col0 * 10 FROM tab2 AS cor0
----
70
780
790

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0, tab0 AS cor1, tab2 AS cor2
----
972 values hashing to 9600bdf5bac0caec3229e87170cc40b3

query I rowsort
SELECT DISTINCT - - ( 85 ) * - col0 FROM tab0 AS cor0
----
-2040
-2975
-7565

query I rowsort
SELECT ALL + col2 + 72 AS col2 FROM tab0 AS cor0
----
105
154
73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2581
SELECT + col2 * CAST( NULL AS SIGNED ) + 12 col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2581
SELECT + col2 * CAST ( NULL AS INTEGER ) + 12 col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT DISTINCT col1 + col1 AS col2 FROM tab0 AS cor0
----
172
182
194

onlyif mysql # use DIV operator for integer division
query I rowsort label-2584
SELECT - cor0.col2 DIV - col1 AS col2 FROM tab2 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-2584
SELECT - cor0.col2 / - col1 AS col2 FROM tab2 AS cor0
----
0
0
2

query I rowsort
SELECT ALL - 64 FROM tab1 AS cor0
----
-64
-64
-64

query I rowsort
SELECT 68 * col1 FROM tab0 AS cor0
----
5848
6188
6596

query I rowsort
SELECT ( + ( col2 ) ) + col2 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT ALL + cor0.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT + cor0.col0 AS col1 FROM tab2 AS cor0
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 4 col1 FROM tab1 AS cor0
----
-50
-53
-92

query I rowsort
SELECT - + col1 * - 45 FROM tab2 AS cor0
----
1395
2655
765

onlyif mysql # use DIV operator for integer division
query I rowsort label-2592
SELECT ALL cor0.col0 + col0 DIV + col2 AS col2 FROM tab1 AS cor0
----
3
65
80

skipif mysql # not compatible
query I rowsort label-2592
SELECT ALL cor0.col0 + col0 / + col2 AS col2 FROM tab1 AS cor0
----
3
65
80

query I rowsort
SELECT DISTINCT + cor0.col1 + cor0.col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT + cor0.col2 * col0 * 28 AS col0 FROM tab1 cor0
----
102144
215040
4536

query I rowsort
SELECT DISTINCT + 19 AS col0 FROM tab0
----
19

query I rowsort
SELECT 33 FROM tab0
----
33
33
33

query I rowsort
SELECT DISTINCT ( 29 ) AS col1 FROM tab1, tab2 AS cor0
----
29

query I rowsort
SELECT + tab1.col0 FROM tab1
----
3
64
80

query I rowsort
SELECT - + 73 + col2 FROM tab1 AS cor0
----
-16
-19
23

query I rowsort
SELECT DISTINCT 23 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
23

query I rowsort
SELECT + cor0.col1 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT col2 * col0 + col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT - + 20 + col0 AS col1 FROM tab1 AS cor0
----
-17
44
60

query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 cor0 CROSS JOIN tab1
----
243 values hashing to 9ed1a6a444254225f040123c46b7f70c

query I rowsort
SELECT ALL 84 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query I rowsort
SELECT - - 30 + cor0.col2 AS col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 305feb85a11a922b9112e824795c6205

query I rowsort
SELECT DISTINCT + ( col2 ) FROM tab0
----
1
33
82

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1, tab1 AS cor0, tab2 AS cor1
----
972 values hashing to 0fcd8d0934383dd58863be894b07a6ed

query I rowsort
SELECT + 56 AS col0 FROM tab1
----
56
56
56

query I rowsort
SELECT col0 * - col1 FROM tab1 cor0
----
-1040
-640
-78

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 cor0, tab1 AS cor1, tab0 cor2
----
972 values hashing to e84152c0bf436177d3b3d80e42832d4f

query I rowsort
SELECT + cor0.col2 + col1 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT DISTINCT - + cor0.col2 + + cor0.col0 * col2 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT col0 + col0 * - ( + 49 * col2 ) AS col2 FROM tab0 AS cor0
----
-1680
-357513
-38784

query I rowsort
SELECT - col1 * - col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT DISTINCT cor1.col1 * + ( cor1.col2 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2617
SELECT ALL + - cor0.col2 DIV col0 FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2617
SELECT ALL + - cor0.col2 / col0 FROM tab0 cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col2 col0 FROM tab0 AS cor0
----
119
173
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-2619
SELECT + + col1 DIV - cor0.col2 FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-2619
SELECT + + col1 / - cor0.col2 FROM tab0 AS cor0
----
-1
-2
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2620
SELECT - col2 DIV col0 FROM tab2 cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-2620
SELECT - col2 / col0 FROM tab2 cor0
----
-3
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2621
SELECT + col1 + - col0 + CAST( - 37 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-104
-14
-91

skipif mysql # not compatible
query I rowsort label-2621
SELECT + col1 + - col0 + CAST ( - 37 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-104
-14
-91

query I rowsort
SELECT ALL + 24 AS col1 FROM tab0
----
24
24
24

query I rowsort
SELECT ALL col1 * - col0 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT 47 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d

query I rowsort
SELECT ALL col2 * col0 FROM tab1
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2626
SELECT ALL tab2.col2 * CAST( + col1 AS SIGNED ) FROM tab2
----
1534
646
837

skipif mysql # not compatible
query I rowsort label-2626
SELECT ALL tab2.col2 * CAST ( + col1 AS INTEGER ) FROM tab2
----
1534
646
837

query I rowsort
SELECT col1 - tab2.col0 AS col1 FROM tab2
----
-19
-62
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col1 + col1 * col2 col0 FROM tab2
----
1798
5015
935

query I rowsort
SELECT cor0.col1 * + col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - col2 * + ( + col0 ) AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT - cor0.col0 * - col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT 11 * - tab1.col2 * - col1 FROM tab1
----
13728
15444
6270

query I rowsort
SELECT ALL + cor0.col2 AS col2 FROM tab0, tab2, tab2 AS cor0, tab2 AS cor1
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9

query I rowsort
SELECT col1 + - col1 - col2 AS col1 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT - 69 + 93 + col1 AS col1 FROM tab0 AS cor0
----
110
115
121

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2636
SELECT CAST( - col0 AS SIGNED ) * + col1 AS col1 FROM tab2
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort label-2636
SELECT CAST ( - col0 AS INTEGER ) * + col1 AS col1 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT + 1 * - col0 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT 45 AS col1 FROM tab0
----
45

query I rowsort
SELECT DISTINCT + col2 FROM tab0
----
1
33
82

query I rowsort
SELECT DISTINCT - 78 AS col1 FROM tab1, tab1 AS cor0
----
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 col1 FROM tab0, tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT + 58 AS col0 FROM tab2 AS cor0
----
58
58
58

query I rowsort
SELECT - 93 AS col2 FROM tab0 AS cor0
----
-93
-93
-93

query I rowsort
SELECT + 35 + ( col2 ) + + col2 * col1 AS col1 FROM tab2 AS cor0
----
1595
719
899

query I rowsort
SELECT col1 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-2646
SELECT - cor0.col0 DIV - col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2646
SELECT - cor0.col0 / - col0 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT + ( + col0 ) + col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT - - col2 + col1 * 82 FROM tab0 AS cor0
----
7085
7544
7955

query I rowsort
SELECT col0 * ( col2 ) * - 26 FROM tab2
----
-4914
-52728
-78052

query I rowsort
SELECT ALL - tab2.col2 * - tab2.col2 FROM tab2
----
1444
676
729

query I rowsort
SELECT ALL 96 AS col1 FROM tab0
----
96
96
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2652
SELECT + 4 DIV - col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2652
SELECT + 4 / - col0 FROM tab2
----
0
0
0

query I rowsort
SELECT tab1.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT DISTINCT ( col2 ) FROM tab0
----
1
33
82

query I rowsort
SELECT ALL col0 * + cor0.col0 * col2 AS col1 FROM tab2 AS cor0
----
1323
158184
237158

query I rowsort
SELECT 99 * col1 + col0 * + col1 + + col1 AS col1 FROM tab1 AS cor0
----
1640
2340
2678

query I rowsort
SELECT + col2 + + col2 AS col2 FROM tab2 cor0
----
52
54
76

query I rowsort
SELECT DISTINCT cor0.col0 AS col2 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT ALL + cor0.col0 + col2 * 68 AS col2 FROM tab0 AS cor0
----
103
2268
5665

query I rowsort
SELECT 13 FROM tab0
----
13
13
13

query I rowsort
SELECT 82 FROM tab0 AS cor0
----
82
82
82

query I rowsort
SELECT DISTINCT ( - col0 ) * + col1 FROM tab0
----
-2064
-3395
-8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2663
SELECT DISTINCT + CAST( - cor0.col1 AS SIGNED ) FROM tab1, tab2, tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-2663
SELECT DISTINCT + CAST ( - cor0.col1 AS INTEGER ) FROM tab1, tab2, tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT ALL + 9 + col1 * - col0 AS col2 FROM tab1 AS cor0
----
-1031
-631
-69

query I rowsort
SELECT + ( + col1 ) AS col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT + col2 - cor0.col2 FROM tab1 AS cor0
----
0

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab1 AS cor1, tab1 AS cor2
----
972 values hashing to f8fe28681e8720551e1ec173631fc529

query I rowsort
SELECT ALL 50 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

onlyif mysql # use DIV operator for integer division
query I rowsort label-2669
SELECT cor0.col1 DIV col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2669
SELECT cor0.col1 / col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT cor0.col0 * - 18 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to ee758434eb9b92fc68b413ea4aecce30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col1 col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT - col1 + col1 + cor0.col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL 89 * col0 AS col0 FROM tab0 AS cor0
----
2136
3115
7921

query I rowsort
SELECT - + cor0.col2 * col2 + + col2 - col2 FROM tab0 cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL col0 * col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL - 13 + + col2 AS col1 FROM tab1 cor0
----
41
44
83

query I rowsort
SELECT ALL ( + col2 ) FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL 13 AS col1 FROM tab0 AS cor0
----
13
13
13

query I rowsort
SELECT - + cor0.col1 + + col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2680
SELECT DISTINCT + + col1 * + cor0.col1 * - col1 + col2 DIV col1 FROM tab2 AS cor0
----
-205379
-29791
-4911

skipif mysql # not compatible
query I rowsort label-2680
SELECT DISTINCT + + col1 * + cor0.col1 * - col1 + col2 / col1 FROM tab2 AS cor0
----
-205379
-29791
-4911

query I rowsort
SELECT col2 + col1 AS col0 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL - 57 FROM tab2 AS cor0
----
-57
-57
-57

query I rowsort
SELECT - ( + cor0.col2 ) - + col1 * + col0 FROM tab1 AS cor0
----
-1136
-132
-697

query I rowsort
SELECT + 21 * col0 - 54 AS col2 FROM tab0 AS cor0
----
1815
450
681

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 col1 FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT ( 77 ) - col1 FROM tab0
----
-14
-20
-9

query I rowsort
SELECT - - 40 + col2 + ( - 1 ) FROM tab0 AS cor0
----
121
40
72

query I rowsort
SELECT DISTINCT - col0 * col0 * - col2 AS col2 FROM tab2 AS cor0
----
1323
158184
237158

query I rowsort
SELECT col1 * + col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT + col2 * col1 + - col2 + col2 AS col0 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT ALL - col2 + + col0 * 85 FROM tab1 AS cor0
----
201
5383
6704

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2692
SELECT - CAST( col1 AS SIGNED ) AS col2 FROM tab1
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-2692
SELECT - CAST ( col1 AS INTEGER ) AS col2 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT cor0.col0 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT + + col2 * + col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT col0 * - 28 + col0 AS col2 FROM tab0 AS cor0
----
-2403
-648
-945

query I rowsort
SELECT cor0.col1 + + ( - col1 ) AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 * - col2 AS col2 FROM tab0 AS cor0
----
35
7298
792

query IIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
243 values hashing to 5ac29bd6e3a9e69ed9c73ca7a34114f7

query I rowsort
SELECT + col0 AS col0 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT - cor0.col1 + + ( 45 ) FROM tab1 cor0
----
19
32
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-2701
SELECT ALL col1 DIV + 56 + ( cor0.col2 ) AS col1 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-2701
SELECT ALL col1 / + 56 + ( cor0.col2 ) AS col1 FROM tab0 AS cor0
----
2
34
83

query I rowsort
SELECT DISTINCT - + col2 * + col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col1 col2 FROM tab2 cor0
----
118
34
62

query I rowsort
SELECT col0 * 86 FROM tab1 AS cor0
----
258
5504
6880

query I rowsort
SELECT col1 * col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT tab0.col1 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT DISTINCT + col2 * col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT col0 + 97 AS col2 FROM tab2 AS cor0
----
104
175
176

query I rowsort
SELECT ALL - + col1 * col0 - + col1 * + col2 FROM tab0 AS cor0
----
-15561
-3492
-4902

query I rowsort
SELECT DISTINCT + - cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-2711
SELECT ALL + - cor0.col2 + - 21 DIV col1 AS col1 FROM tab1 AS cor0
----
-54
-59
-97

skipif mysql # not compatible
query I rowsort label-2711
SELECT ALL + - cor0.col2 + - 21 / col1 AS col1 FROM tab1 AS cor0
----
-54
-59
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col2 col0 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT DISTINCT - col1 * + 87 + col1 - + cor0.col1 FROM tab1 AS cor0
----
-1131
-2262
-870

query I rowsort
SELECT - 79 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

query I rowsort
SELECT DISTINCT - col0 + - 48 AS col1 FROM tab0 AS cor0
----
-137
-72
-83

query I rowsort
SELECT ALL + + ( 17 ) FROM tab1 AS cor0
----
17
17
17

query I rowsort
SELECT + 1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + col1 - + col2 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT DISTINCT col0 * - cor0.col0 + + col0 * 52 FROM tab1 cor0
----
-2240
-768
147

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 37 + 94 col1 FROM tab2, tab1 AS cor0
----
131

query I rowsort
SELECT - col2 + + 97 FROM tab1
----
1
40
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - ( + col0 ) col0 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT ALL - 75 FROM tab1 AS cor0
----
-75
-75
-75

query I rowsort
SELECT - - ( + cor0.col1 ) FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT + 18 AS col0 FROM tab0 AS cor0
----
18
18
18

query I rowsort
SELECT DISTINCT + 94 AS col0 FROM tab1 AS cor0
----
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col2 FROM tab1 AS cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2728
SELECT ALL - - col1 DIV col2 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-2728
SELECT ALL - - col1 / col2 FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT + 67 AS col0 FROM tab0 AS cor0
----
67
67
67

query I rowsort
SELECT + col2 * + col2 FROM tab2 cor0
----
1444
676
729

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2731
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2731
SELECT DISTINCT CAST ( NULL AS REAL ) * + col2 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL + ( + col1 ) * + col1 + + cor0.col1 * col2 FROM tab0 AS cor0
----
10234
15743
9506

query I rowsort
SELECT DISTINCT + ( - cor0.col1 ) * col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-2734
SELECT ALL + 47 + - 17 * cor0.col1 DIV + 73 AS col2 FROM tab0 AS cor0
----
25
26
27

skipif mysql # not compatible
query I rowsort label-2734
SELECT ALL + 47 + - 17 * cor0.col1 / + 73 AS col2 FROM tab0 AS cor0
----
25
26
27

query I rowsort
SELECT ALL - 38 * 51 + + col1 FROM tab0 AS cor0
----
-1841
-1847
-1852

query I rowsort
SELECT + col2 + 21 FROM tab2
----
47
48
59

query I rowsort
SELECT ALL tab1.col1 + col2 AS col2 FROM tab1
----
109
67
80

query I rowsort
SELECT ALL + 73 FROM tab1
----
73
73
73

query I rowsort
SELECT ( 12 ) * col0 AS col1 FROM tab1 AS cor0
----
36
768
960

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT - cor0.col0 + - 8 * + cor0.col1 + 17 * col1 AS col1 FROM tab0 cor0
----
730
750
838

query I rowsort
SELECT + col0 + - 37 AS col2 FROM tab0 cor0
----
-13
-2
52

query I rowsort
SELECT ALL - + 60 * + 76 FROM tab1 AS cor0
----
-4560
-4560
-4560

query I rowsort
SELECT DISTINCT - 19 AS col2 FROM tab1 AS cor0
----
-19

query I rowsort
SELECT ALL col1 AS col2 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT - ( + col2 ) + + cor0.col1 * col1 * 5 AS col1 FROM tab1 cor0
----
3326
443
749

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col1 ) col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT col0 * tab2.col1 * col2 AS col2 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT + col0 * - cor0.col2 + col1 AS col2 FROM tab2 cor0
----
-158
-1969
-2985

query I rowsort
SELECT + 76 * + col1 - + 80 FROM tab1 AS cor0
----
1896
680
908

query I rowsort
SELECT col0 + col1 AS col2 FROM tab2
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2752
SELECT tab1.col0 DIV + col2 + col1 FROM tab1
----
11
13
26

skipif mysql # not compatible
query I rowsort label-2752
SELECT tab1.col0 / + col2 + col1 FROM tab1
----
11
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col1 col2 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT ALL + col2 * - 91 AS col0 FROM tab0 AS cor0
----
-3003
-7462
-91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2755
SELECT DISTINCT col0 * CAST( - col0 AS SIGNED ) AS col0 FROM tab1
----
-4096
-6400
-9

skipif mysql # not compatible
query I rowsort label-2755
SELECT DISTINCT col0 * CAST ( - col0 AS INTEGER ) AS col0 FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT ALL + - col0 FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT + col0 + + col0 * col0 AS col1 FROM tab2
----
56
6162
6320

query I rowsort
SELECT ( - 42 * - cor0.col2 ) AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 75f9e61ff973806e32e45e6335de6153

query I rowsort
SELECT DISTINCT + - col0 AS col0 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ALL col1 * - col1 AS col0 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT - 93 AS col0 FROM tab1, tab0 AS cor0
----
-93

query I rowsort
SELECT DISTINCT + + cor0.col2 + + col2 AS col1 FROM tab0 AS cor0
----
164
2
66

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab1 AS cor1, tab0 AS cor2
----
972 values hashing to b51b4342db121ebc2d3d353dcd8ed521

query I rowsort
SELECT ALL col2 * - col0 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0, tab0 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to 5e27196f2932b25a5297ddec46b8b8f1

query I rowsort
SELECT col2 * col2 + col0 AS col1 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT ALL + col1 * col0 + col1 * col1 FROM tab1 cor0
----
1209
740
754

query I rowsort
SELECT ALL - col0 * cor0.col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 <= col2
----

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 CROSS JOIN tab2
----
243 values hashing to d489341cd587fd6eb0b972c5464c6ddc

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0
----
54 values hashing to b8667d60d280879b35ad1450a82b3a49

query I rowsort
SELECT col2 FROM tab0 WHERE col2 NOT IN ( - col1 * col0 + - col1 )
----
1
33
82

query I rowsort
SELECT + col0 + col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT - col0 * + col1 + col0 * col1 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 * col0 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-2778
SELECT - col1 * + col1 DIV + col1 + - col2 * col2 FROM tab2 AS cor0
----
-1461
-735
-760

skipif mysql # not compatible
query I rowsort label-2778
SELECT - col1 * + col1 / + col1 + - col2 * col2 FROM tab2 AS cor0
----
-1461
-735
-760

query I rowsort
SELECT cor0.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT - cor0.col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query IIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0 WHERE NOT cor0.col0 > NULL
----

query I rowsort
SELECT col0 * + col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1
----
54 values hashing to 341cdc053c309cf3abe57fa060ecf96e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col2 FROM tab1
----
3
64
80

query I rowsort
SELECT - - col0 * + col2 AS col1 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT ALL - + cor0.col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT - cor0.col1 + col1 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - col1 + col0 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT col2 + col2 FROM tab1
----
108
114
192

query I rowsort
SELECT col2 + + tab1.col2 + - tab1.col2 FROM tab1
----
54
57
96

query I rowsort
SELECT cor0.col2 FROM tab2, tab1 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1 cor1
----
54 values hashing to 341cdc053c309cf3abe57fa060ecf96e

query I rowsort
SELECT - cor1.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT - cor0.col1 AS col2 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT - col2 * - col2 AS col0 FROM tab2
----
1444
676
729

query I rowsort
SELECT ALL + col0 * col2 * - col2 - col0 FROM tab0 cor0
----
-26160
-598525
-70

query I rowsort
SELECT ALL + col1 * - col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT tab0.col0 + + col1 * + col0 * - col1 AS col0 FROM tab0
----
-177480
-329280
-736920

query I rowsort
SELECT - col1 * col2 AS col0 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab1
----
3
64
80

query I rowsort
SELECT + col2 * col2 AS col1 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT ALL + col1 + + col0 + + col2 AS col1 FROM tab2 AS cor0
----
134
163
65

query I rowsort
SELECT + 79 * col2 + col0 FROM tab1 AS cor0
----
4269
4567
7664

query I rowsort
SELECT DISTINCT col0 * col0 + + 21 * + col2 FROM tab0 AS cor0
----
1246
1269
9643

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab2 cor1, tab2 AS cor2
----
972 values hashing to a47a9db07c7de4927c7c28efb4cd13f2

query I rowsort
SELECT - col2 * col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT cor0.col1 * col1 FROM tab0 AS cor0
----
7396
8281
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col1 col0 FROM tab1
----
10
13
26

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE NOT - col2 * col0 NOT IN ( col0 )
----

query I rowsort
SELECT DISTINCT col0 + - col0 FROM tab2
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2812
SELECT DISTINCT - col1 DIV col2 + col0 col2 FROM tab0
----
-62
22
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2812
SELECT DISTINCT - col1 / col2 + col0 col2 FROM tab0
----
-62
22
88

query I rowsort
SELECT + col1 + - col2 * tab2.col0 FROM tab2
----
-158
-1969
-2985

query I rowsort
SELECT col0 + col1 FROM tab1
----
29
74
93

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2, tab2 AS cor0, tab0
----
972 values hashing to e4c748f267e8d2a0e6d563281e1fb975

query I rowsort
SELECT ALL tab0.col2 + - tab0.col2 FROM tab0
----
0
0
0

query I rowsort
SELECT - col0 * + col1 * + col0 + - ( col0 ) FROM tab0
----
-118860
-49560
-720900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 39 + + tab1.col0 * - col1 col1 FROM tab1
----
-1001
-39
-601

query I rowsort
SELECT DISTINCT + + cor0.col1 FROM tab2, tab2 AS cor0
----
17
31
59

query I rowsort
SELECT col0 + - col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + 30 FROM tab1 AS cor0
----
30
30
30

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT tab0.col0 AS col1 FROM tab0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col1 col1 FROM tab2
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-2825
SELECT ALL col0 DIV col2 + col1 AS col0 FROM tab0
----
132
86
92

skipif mysql # not compatible
query I rowsort label-2825
SELECT ALL col0 / col2 + col1 AS col0 FROM tab0
----
132
86
92

query I rowsort
SELECT DISTINCT col0 + col1 * col1 AS col1 FROM tab1
----
164
249
679

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col0 + + col1 col2 FROM tab1
----
29
74
93

query I rowsort
SELECT DISTINCT + tab1.col0 AS col2 FROM tab1
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col1 col1 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT col0 AS col0 FROM tab2 cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-2831
SELECT DISTINCT - col0 + - col1 DIV col0 AS col1 FROM tab1
----
-11
-64
-80

skipif mysql # not compatible
query I rowsort label-2831
SELECT DISTINCT - col0 + - col1 / col0 AS col1 FROM tab1
----
-11
-64
-80

query I rowsort
SELECT col2 - tab1.col1 AS col0 FROM tab1 WHERE NOT NULL BETWEEN NULL AND + col2 * col0 * col1
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 <> NULL
----

query I rowsort
SELECT ALL - col1 + + col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 + col1 FROM tab1
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2836
SELECT DISTINCT col1 * col0 DIV tab2.col1 AS col1 FROM tab2
----
7
78
79

skipif mysql # not compatible
query I rowsort label-2836
SELECT DISTINCT col1 * col0 / tab2.col1 AS col1 FROM tab2
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-2837
SELECT ALL - col0 DIV col1 AS col2 FROM tab1
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-2837
SELECT ALL - col0 / col1 AS col2 FROM tab1
----
-6
-6
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2838
SELECT tab1.col0 DIV + col2 + col1 * - col0 * - col2 AS col0 FROM tab1
----
36481
4212
99840

skipif mysql # not compatible
query I rowsort label-2838
SELECT tab1.col0 / + col2 + col1 * - col0 * - col2 AS col0 FROM tab1
----
36481
4212
99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-2839
SELECT ALL col2 DIV col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2839
SELECT ALL col2 / col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL col2 * col2 + col2 * col1 + + col2 AS col0 FROM tab2
----
1593
2128
2236

onlyif mysql # use DIV operator for integer division
query I rowsort label-2841
SELECT DISTINCT col2 DIV col1 FROM tab2
----
0
2

skipif mysql # not compatible
query I rowsort label-2841
SELECT DISTINCT col2 / col1 FROM tab2
----
0
2

query I rowsort
SELECT - col2 + tab2.col2 * col2 * + tab2.col2 AS col1 FROM tab2 WHERE col0 - col1 IN ( + col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2843
SELECT DISTINCT - col2 DIV col2 AS col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-2843
SELECT DISTINCT - col2 / col2 AS col2 FROM tab1
----
-1

query I rowsort
SELECT tab0.col1 + col1 * - tab0.col2 AS col1 FROM tab0
----
-2752
-7371
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2845
SELECT DISTINCT col1 DIV col2 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2845
SELECT DISTINCT col1 / col2 AS col1 FROM tab1
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2846
SELECT col2 DIV + col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2846
SELECT col2 / + col1 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2847
SELECT col2 DIV tab0.col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2847
SELECT col2 / tab0.col2 FROM tab0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2848
SELECT - col2 DIV col1 - col0 * col0 * - col0 AS col0 FROM tab2
----
343
474552
493037

skipif mysql # not compatible
query I rowsort label-2848
SELECT - col2 / col1 - col0 * col0 * - col0 AS col0 FROM tab2
----
343
474552
493037

query I rowsort
SELECT tab1.col0 * - tab1.col0 * - tab1.col1 FROM tab1
----
234
40960
83200

query I rowsort
SELECT DISTINCT - col2 * + col0 + col1 * col0 + col1 AS col1 FROM tab2
----
-1642
2633
59

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 / col2 > NULL
----

query I rowsort
SELECT ALL col0 * + col2 * - tab1.col2 FROM tab1
----
-207936
-737280
-8748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col2 + col2 col2 FROM tab2
----
1560
684
864

query I rowsort
SELECT + col2 * col2 FROM tab2
----
1444
676
729

query I rowsort
SELECT col0 + - col1 AS col1 FROM tab0
----
-2
-62
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col0 + - col0 col0 FROM tab2
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col2 col1 FROM tab0
----
2838
7462
97

query I rowsort
SELECT col0 * - col2 * col2 FROM tab2
----
-114076
-5103
-52728

query I rowsort
SELECT ALL - col2 * col2 AS col0 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT - col1 * + col0 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT - - col2 * + ( + col0 ) AS col0 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT - + cor0.col1 * col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT - + col1 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT col0 + - tab1.col2 AS col0 FROM tab1
----
-16
-51
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab0.col2 col1 FROM tab0
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab1
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2867
SELECT ALL ( + 63 ) DIV + cor0.col2 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to e803d6e263b6cd13b4f0c378fda14cd2

skipif mysql # not compatible
query I rowsort label-2867
SELECT ALL ( + 63 ) / + cor0.col2 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to e803d6e263b6cd13b4f0c378fda14cd2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 10 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query I rowsort
SELECT - col0 + 81 AS col0 FROM tab1
----
1
17
78

query I rowsort
SELECT + tab2.col1 AS col1 FROM tab2
----
17
31
59

query I rowsort
SELECT DISTINCT col0 * col2 * - col0 FROM tab1
----
-233472
-486
-614400

query I rowsort
SELECT DISTINCT - col1 * + 12 + - ( + cor0.col0 ) * - col2 + 86 AS col1 FROM tab1 AS cor0
----
-64
3614
7610

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2873
SELECT - col0 + + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2873
SELECT - col0 + + CAST ( NULL AS REAL ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 49 FROM tab1, tab0 AS cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

query I rowsort
SELECT DISTINCT - col2 + 43 + - col2 AS col0 FROM tab2 AS cor0
----
-11
-33
-9

query I rowsort
SELECT DISTINCT - col2 - 27 * - col0 FROM tab2 cor0
----
162
2080
2095

query I rowsort
SELECT DISTINCT + + col1 + + col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT col1 + + col1 + col0 AS col1 FROM tab0
----
196
229
271

query I rowsort
SELECT ALL col0 * + tab0.col0 + col0 FROM tab0
----
1260
600
8010

query I rowsort
SELECT DISTINCT - 63 * + col0 + col1 FROM tab2
----
-410
-4855
-4960

query I rowsort
SELECT DISTINCT col2 + col1 AS col1 FROM tab2
----
55
58
85

query I rowsort
SELECT ALL 38 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT + ( + ( col2 ) ) * + cor0.col0 + - ( + col0 ) - 72 AS col2 FROM tab2 AS cor0
----
110
1878
2851

onlyif mysql # use DIV operator for integer division
query I rowsort label-2884
SELECT DISTINCT + col0 * col2 DIV + cor0.col0 + - col0 + cor0.col0 * + cor0.col0 FROM tab1 AS cor0
----
4089
60
6416

skipif mysql # not compatible
query I rowsort label-2884
SELECT DISTINCT + col0 * col2 / + cor0.col0 + - col0 + cor0.col0 * + cor0.col0 FROM tab1 AS cor0
----
4089
60
6416

query I rowsort
SELECT ALL - - col1 * col1 AS col2 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT - + 19 + ( col1 * - col0 ) - col0 FROM tab0 AS cor0
----
-2107
-3449
-8207

query I rowsort
SELECT 31 * - tab1.col0 FROM tab1, tab0 AS cor0
----
9 values hashing to e25aca3eedb3d81ca62727ed99cb1c69

query I rowsort
SELECT + col2 + - col2 * 24 AS col0 FROM tab1 AS cor0
----
-1242
-1311
-2208

query I rowsort
SELECT DISTINCT + col0 * cor0.col0 * col1 AS col2 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT ALL - col2 + + col0 * cor0.col1 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT + col1 + col2 FROM tab1 AS cor0
----
109
67
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - cor0.col0 col0 FROM tab0 cor0
----
2
62
62

query I rowsort
SELECT DISTINCT col2 * + col2 * + col2 FROM tab1 AS cor0
----
157464
185193
884736

onlyif mysql # use DIV operator for integer division
query I rowsort label-2894
SELECT ALL col2 DIV - col2 col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2894
SELECT ALL col2 / - col2 col0 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT 98 AS col1 FROM tab1
----
98
98
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2896
SELECT + - 25 * col2 * CAST( NULL AS SIGNED ) + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2896
SELECT + - 25 * col2 * CAST ( NULL AS INTEGER ) + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

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-2898
SELECT ALL - + col0 + col1 DIV ( col0 ) FROM tab1 AS cor0
----
-64
-80
5

skipif mysql # not compatible
query I rowsort label-2898
SELECT ALL - + col0 + col1 / ( col0 ) FROM tab1 AS cor0
----
-64
-80
5

query I rowsort
SELECT - - col2 + col1 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT 94 * - cor0.col1 + - 45 FROM tab2 AS cor0
----
-1643
-2959
-5591

query I rowsort
SELECT - 16 FROM tab1 AS cor0
----
-16
-16
-16

onlyif mysql # use DIV operator for integer division
query I rowsort label-2902
SELECT DISTINCT + col2 DIV col1 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2902
SELECT DISTINCT + col2 / col1 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + - 84 FROM tab2 AS cor0
----
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 54 col1 FROM tab0 AS cor0
----
54
54
54

query I rowsort
SELECT ALL - 16 + cor0.col0 FROM tab1 AS cor0
----
-13
48
64

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0, tab2 cor0, tab2 AS cor1
----
972 values hashing to a698694a7dac245e42212ff0316bdf45

query I rowsort
SELECT - 84 FROM tab1
----
-84
-84
-84

query I rowsort
SELECT DISTINCT 47 FROM tab0
----
47

query I rowsort
SELECT DISTINCT - col2 + col0 AS col0 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT + 58 + col1 AS col2 FROM tab0 AS cor0
----
144
149
155

query I rowsort
SELECT ALL + col2 + col2 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT col1 * col1 + cor0.col0 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT ALL + col1 + - col0 * + 77 AS col0 FROM tab1 AS cor0
----
-205
-4918
-6147

query I rowsort
SELECT DISTINCT - + col0 AS col0 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT + ( + col1 ) FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT - col0 * col2 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL 73 * col1 FROM tab0 cor0
----
6278
6643
7081

query I rowsort
SELECT DISTINCT 86 FROM tab2
----
86

query I rowsort
SELECT - 31 * col1 AS col0 FROM tab2
----
-1829
-527
-961

query I rowsort
SELECT - 24 * cor0.col0 FROM tab0 AS cor0
----
-2136
-576
-840

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT + col2 + col1 * + col1 FROM tab0 AS cor0
----
7429
8363
9410

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col1 * + col1 col0 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT ALL ( + 98 * - cor1.col0 ) FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to 0066e29d3aa77db7b13590867f4e6e00

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 * + col1 col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT col1 * + col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT + - 24 AS col1 FROM tab2 AS cor0
----
-24
-24
-24

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2928
SELECT DISTINCT 60 * col1 * + CAST( col2 + + cor0.col1 AS SIGNED ) FROM tab1 AS cor0
----
124800
40200
85020

skipif mysql # not compatible
query I rowsort label-2928
SELECT DISTINCT 60 * col1 * + CAST ( col2 + + cor0.col1 AS INTEGER ) FROM tab1 AS cor0
----
124800
40200
85020

query I rowsort
SELECT - col1 + col0 + - ( col0 ) AS col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL + col2 * - col0 + 91 FROM tab0 AS cor0
----
-701
-7207
56

query I rowsort
SELECT ALL 70 + col2 * col1 AS col2 FROM tab0 AS cor0
----
167
2908
7532

query I rowsort
SELECT + + col1 * col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT ALL + col0 AS col2 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT ALL - col2 + + 37 AS col1 FROM tab1 AS cor0
----
-17
-20
-59

query I rowsort
SELECT DISTINCT + col2 * - col1 + - col1 AS col1 FROM tab0 AS cor0
----
-194
-2924
-7553

query I rowsort
SELECT + col0 + + ( col2 ) FROM tab2 AS cor0
----
104
117
34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2937
SELECT ALL + + col2 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2937
SELECT ALL + + col2 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - cor0.col0 * col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT 90 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 5d25a546acf3ae171e731e50adc0112e

query I rowsort
SELECT col1 * - col1 + + 90 FROM tab0
----
-7306
-8191
-9319

query I rowsort
SELECT ALL + tab1.col1 * col1 FROM tab1
----
100
169
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-2942
SELECT ALL col2 DIV + col0 AS col0 FROM tab2
----
0
0
3

skipif mysql # not compatible
query I rowsort label-2942
SELECT ALL col2 / + col0 AS col0 FROM tab2
----
0
0
3

query I rowsort
SELECT col2 * + col0 FROM tab2
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-2944
SELECT DISTINCT col1 DIV - col0 FROM tab0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-2944
SELECT DISTINCT col1 / - col0 FROM tab0
----
-1
-2
-3

query I rowsort
SELECT col0 + 66 * - cor0.col0 FROM tab2 AS cor0
----
-455
-5070
-5135

onlyif mysql # use DIV operator for integer division
query I rowsort label-2946
SELECT DISTINCT + col1 * col0 + + ( - col0 ) DIV col1 FROM tab1
----
1034
634
78

skipif mysql # not compatible
query I rowsort label-2946
SELECT DISTINCT + col1 * col0 + + ( - col0 ) / col1 FROM tab1
----
1034
634
78

query I rowsort
SELECT - + col1 - col1 AS col2 FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT DISTINCT - - col0 * col2 + col0 * col0 + + col0 FROM tab2 AS cor0
----
245
8190
9322

query I rowsort
SELECT ALL + col0 * - col2 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT - col2 AS col0 FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT DISTINCT col2 * - ( + col2 ) + + 72 + + ( + cor0.col1 ) * + col2 AS col0 FROM tab1 AS cor0
----
-1440
-2607
-7896

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2952
SELECT CAST( col0 AS SIGNED ) * col1 * col1 - 21 FROM tab0 AS cor0
----
177483
329294
736988

skipif mysql # not compatible
query I rowsort label-2952
SELECT CAST ( col0 AS INTEGER ) * col1 * col1 - 21 FROM tab0 AS cor0
----
177483
329294
736988

query I rowsort
SELECT ALL + 26 * 43 + col2 FROM tab2 AS cor0
----
1144
1145
1156

query I rowsort
SELECT + 71 AS col1 FROM tab1 AS cor0
----
71
71
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col2 col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2956
SELECT 34 DIV - col0 - - col2 FROM tab2 AS cor0
----
23
26
38

skipif mysql # not compatible
query I rowsort label-2956
SELECT 34 / - col0 - - col2 FROM tab2 AS cor0
----
23
26
38

query I rowsort
SELECT DISTINCT + + cor0.col2 - - ( col0 ) AS col0 FROM tab1 AS cor0
----
121
176
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2958
SELECT DISTINCT - CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-2958
SELECT DISTINCT - CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
-86
-91
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2959
SELECT DISTINCT - 71 + + col0 * col1 - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2959
SELECT DISTINCT - 71 + + col0 * col1 - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col1 + - 44 AS col1 FROM tab0 AS cor0
----
42
47
53

query I rowsort
SELECT ALL - - col2 AS col2 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT ALL 56 FROM tab2 cor0
----
56
56
56

query I rowsort
SELECT ALL + 77 AS col1 FROM tab2 AS cor0
----
77
77
77

query I rowsort
SELECT + 62 * 42 AS col2 FROM tab2 AS cor0
----
2604
2604
2604

query I rowsort
SELECT 97 FROM tab0 AS cor0
----
97
97
97

query I rowsort
SELECT ALL - - cor1.col0 AS col0 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT ( 53 ) + col0 FROM tab1
----
117
133
56

query I rowsort
SELECT DISTINCT + tab2.col0 AS col0 FROM tab2, tab1 AS cor0, tab1, tab2 cor1
----
7
78
79

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0, tab0, tab1 AS cor1
----
972 values hashing to 2d99dda76af061a3fac120e0e49e6c53

query I rowsort
SELECT - col2 - + col1 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT ALL + ( 1 ) + col2 FROM tab1 AS cor0
----
55
58
97

query I rowsort
SELECT DISTINCT 92 FROM tab0, tab2 AS cor0
----
92

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 CROSS JOIN tab0
----
243 values hashing to 3a953203ced079e372111d61dbd9e35f

onlyif mysql # use DIV operator for integer division
query I rowsort label-2974
SELECT + 81 DIV - col2 col0 FROM tab1
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2974
SELECT + 81 / - col2 col0 FROM tab1
----
-1
-1
0

query I rowsort
SELECT + col0 * + col1 AS col1 FROM tab1
----
1040
640
78

query I rowsort
SELECT ALL col2 * ( col0 + tab2.col2 ) AS col0 FROM tab2
----
2704
4446
918

query I rowsort
SELECT - - col1 + - col2 AS col0 FROM tab2 AS cor0
----
-21
33
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2978
SELECT + CAST( NULL AS SIGNED ) * + col1 + cor0.col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2978
SELECT + CAST ( NULL AS INTEGER ) * + col1 + cor0.col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + ( col1 ) col0 FROM tab2 cor0
----
-19
-62
24

query I rowsort
SELECT + + cor0.col0 AS col1 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT DISTINCT + cor0.col0 AS col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab0, tab2, tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ALL col1 * col2 FROM tab0
----
2838
7462
97

query I rowsort
SELECT col1 * - col0 AS col1 FROM tab0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-2985
SELECT col2 DIV ( + cor0.col0 ) - col2 DIV col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2985
SELECT col2 / ( + cor0.col0 ) - col2 / col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col1 + + col2 AS col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT + cor0.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT - 21 FROM tab2, tab2 AS cor0
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

query I rowsort
SELECT col0 * 57 AS col1 FROM tab2
----
399
4446
4503

query I rowsort
SELECT col2 + - col0 AS col0 FROM tab0
----
-34
-7
9

query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0 CROSS JOIN tab1
----
243 values hashing to 7e12d99d8ab63d9fd10e95cef9d78998

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab1 AS cor0
----
54
57
96

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0, tab2, tab2 AS cor1
----
972 values hashing to f9adf26f20dc8fcc43c2de18a5fd4859

query I rowsort
SELECT - - 79 * 47 FROM tab1 AS cor0
----
3713
3713
3713

onlyif mysql # use DIV operator for integer division
query I rowsort label-2995
SELECT + cor0.col2 + 8 DIV + cor0.col1 AS col0 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-2995
SELECT + cor0.col2 + 8 / + cor0.col1 AS col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT + col1 + - col1 * - col2 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT + - col0 * + col1 FROM tab1 AS cor0
----
-1040
-640
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col2 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT + ( + col2 ) * + col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT + 90 + col0 AS col2 FROM tab0 AS cor0
----
114
125
179

query I rowsort
SELECT DISTINCT tab0.col2 AS col1 FROM tab0
----
1
33
82

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0, tab2, tab2 AS cor1
----
972 values hashing to 64ce0e736818e884f0a9ecd075da5eb7

query I rowsort
SELECT - 37 * col1 FROM tab1 AS cor0
----
-370
-481
-962

query I rowsort
SELECT - 69 FROM tab0 cor0
----
-69
-69
-69

onlyif mysql # use DIV operator for integer division
query I rowsort label-3005
SELECT DISTINCT + col0 DIV + col2 FROM tab0 cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-3005
SELECT DISTINCT + col0 / + col2 FROM tab0 cor0
----
0
1
35

query I rowsort
SELECT DISTINCT + 20 AS col1 FROM tab2 AS cor0
----
20

query I rowsort
SELECT ALL cor0.col2 AS col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL - cor0.col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT - 13 + - cor0.col0 * 59 * col1 AS col1 FROM tab0 AS cor0
----
-121789
-200318
-477854

query I rowsort
SELECT + 6 * col0 FROM tab1 cor0
----
18
384
480

onlyif mysql # use DIV operator for integer division
query I rowsort label-3011
SELECT + - 35 DIV - col2 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-3011
SELECT + - 35 / - col2 FROM tab0 AS cor0
----
0
1
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col0 + - col0 * cor0.col1 col2 FROM tab0 AS cor0
----
-16020
-2640
-4620

query I rowsort
SELECT - 92 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to a0e6b76227d870d10c4d9f46545a7c83

query I rowsort
SELECT - col1 * - col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT - + col2 + ( + cor0.col2 ) * - col1 FROM tab0 AS cor0
----
-2871
-7544
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col0 * cor0.col2 col1 FROM tab0 AS cor0
----
0
7209
768

onlyif mysql # use DIV operator for integer division
query I rowsort label-3017
SELECT ALL - col0 DIV - ( + 19 ) - col0 FROM tab2
----
-7
-74
-75

skipif mysql # not compatible
query I rowsort label-3017
SELECT ALL - col0 / - ( + 19 ) - col0 FROM tab2
----
-7
-74
-75

query I rowsort
SELECT + col1 * 24 FROM tab2 AS cor0
----
1416
408
744

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT col1 * col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL + col1 + col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL - col0 * - 84 * 19 + col1 FROM tab2 AS cor0
----
11203
124547
126101

query I rowsort
SELECT ALL + cor0.col2 + ( + col0 ) * col0 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT DISTINCT - col1 * + ( + col0 ) AS col1 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT - - col0 AS col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT + col1 - ( - cor0.col1 * + col2 ) FROM tab0 AS cor0
----
194
2924
7553

onlyif mysql # use DIV operator for integer division
query I rowsort label-3027
SELECT + col2 DIV + 16 AS col2 FROM tab2 cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-3027
SELECT + col2 / + 16 AS col2 FROM tab2 cor0
----
1
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL + col2 + ( col2 ) FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT ALL - col0 * + col0 + + cor0.col2 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT DISTINCT - 70 AS col0 FROM tab0, tab2 AS cor0, tab1 cor1, tab2 AS cor2
----
-70

query I rowsort
SELECT ALL + ( - 81 ) AS col0 FROM tab0 AS cor0
----
-81
-81
-81

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 cor0, tab1 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to 35707ade138fec4b370f5140a4cd2963

onlyif mysql # use DIV operator for integer division
query I rowsort label-3034
SELECT ( col2 ) DIV - col1 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-3034
SELECT ( col2 ) / - col1 FROM tab1 AS cor0
----
-2
-5
-7

query I rowsort
SELECT ALL + ( 69 ) * col0 FROM tab0 AS cor0
----
1656
2415
6141

query I rowsort
SELECT ALL + col0 AS col1 FROM tab2 cor0
----
7
78
79

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0, tab0, tab1 AS cor1
----
972 values hashing to 0210050fb1701e2797a9b17e1ebac91e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3038
SELECT ALL + CAST( NULL AS SIGNED ) * - 34 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3038
SELECT ALL + CAST ( NULL AS INTEGER ) * - 34 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT - col0 * 96 FROM tab2
----
-672
-7488
-7584

query I rowsort
SELECT 91 + - col2 FROM tab2 AS cor0
----
53
64
65

query I rowsort
SELECT DISTINCT - + col1 * col2 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT + col1 * col1 + - col0 AS col0 FROM tab1 AS cor0
----
36
673
89

query I rowsort
SELECT DISTINCT - col0 + - col2 AS col0 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT - 38 FROM tab1 cor0
----
-38
-38
-38

query I rowsort
SELECT + - ( col0 ) AS col2 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT + 18 AS col2 FROM tab1 AS cor0
----
18
18
18

query I rowsort
SELECT ALL - - 75 * - col2 * col0 + col1 FROM tab1 AS cor0
----
-12124
-273590
-575987

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3048
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3048
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col1 col2 FROM tab2
----
17
31
59

query I rowsort
SELECT ALL + cor0.col0 + + col0 * col2 AS col1 FROM tab1 AS cor0
----
165
3712
7760

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1, tab1 AS cor0, tab0 AS cor1
----
972 values hashing to b51b4342db121ebc2d3d353dcd8ed521

query I rowsort
SELECT - 18 FROM tab1
----
-18
-18
-18

query I rowsort
SELECT + col1 + + col1 * + 4 * - col2 FROM tab1
----
-2270
-4979
-5590

onlyif mysql # use DIV operator for integer division
query I rowsort label-3054
SELECT + col0 + col0 DIV col0 AS col2 FROM tab2
----
79
8
80

skipif mysql # not compatible
query I rowsort label-3054
SELECT + col0 + col0 / col0 AS col2 FROM tab2
----
79
8
80

query I rowsort
SELECT ALL 12 AS col1 FROM tab2
----
12
12
12

query I rowsort
SELECT ALL tab2.col1 AS col1 FROM tab2
----
17
31
59

query I rowsort
SELECT DISTINCT + 7 FROM tab0
----
7

query I rowsort
SELECT 1 AS col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT ( - 32 ) AS col1 FROM tab0 AS cor0
----
-32

onlyif mysql # use DIV operator for integer division
query I rowsort label-3060
SELECT 91 + cor0.col2 DIV + col2 FROM tab1 AS cor0
----
92
92
92

skipif mysql # not compatible
query I rowsort label-3060
SELECT 91 + cor0.col2 / + col2 FROM tab1 AS cor0
----
92
92
92

query I rowsort
SELECT + ( + col0 ) FROM tab2 cor0
----
7
78
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3062
SELECT - + CAST( NULL AS SIGNED ) * col2 + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3062
SELECT - + CAST ( NULL AS INTEGER ) * col2 + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 81 * col0 col1 FROM tab0 AS cor0
----
-1944
-2835
-7209

query I rowsort
SELECT col0 * col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT + ( - col1 ) FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT - col0 * + col2 AS col1 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT + 62 FROM tab0, tab0 AS cor0
----
62

query I rowsort
SELECT - 60 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 1a0b29f8e6f82c54623a665ba4af8fd1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col1 + - col2 col0 FROM tab0 AS cor0
----
2031
3394
8017

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0, tab0 AS cor1, tab0 AS cor2
----
972 values hashing to 8420206d6932c454f05a38de634b3cb5

onlyif mysql # use DIV operator for integer division
query I rowsort label-3071
SELECT ALL + - 69 DIV 47 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9

skipif mysql # not compatible
query I rowsort label-3071
SELECT ALL + - 69 / 47 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9

query I rowsort
SELECT + 54 - + col0 * col2 AS col2 FROM tab0
----
-7244
-738
19

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3073
SELECT CAST( col0 + col1 AS SIGNED ) * ( col1 * + col2 ) AS col1 FROM tab1
----
116064
40716
42180

skipif mysql # not compatible
query I rowsort label-3073
SELECT CAST ( col0 + col1 AS INTEGER ) * ( col1 * + col2 ) AS col1 FROM tab1
----
116064
40716
42180

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-3075
SELECT col0 DIV tab1.col1 + col1 col0 FROM tab1
----
16
19
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3075
SELECT col0 / tab1.col1 + col1 col0 FROM tab1
----
16
19
26

query I rowsort
SELECT ALL + + ( 35 ) + col2 AS col0 FROM tab2 cor0
----
61
62
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 77 + - 97 col1 FROM tab1 AS cor0
----
-174

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3078
SELECT DISTINCT + CAST( col2 AS SIGNED ) AS col1 FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-3078
SELECT DISTINCT + CAST ( col2 AS INTEGER ) AS col1 FROM tab2
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-3079
SELECT col0 + + tab1.col1 DIV tab1.col2 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-3079
SELECT col0 + + tab1.col1 / tab1.col2 FROM tab1
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3080
SELECT + col2 DIV tab0.col0 AS col0 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3080
SELECT + col2 / tab0.col0 AS col0 FROM tab0
----
0
0
1

query I rowsort
SELECT - cor0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT DISTINCT + 0 FROM tab1, tab0 AS cor0, tab0 cor1
----
0

query I rowsort
SELECT DISTINCT + 58 FROM tab1
----
58

query I rowsort
SELECT ALL - tab0.col2 + cor0.col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 267ae5eaf420f3741f5c6f84e78dcbd9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3085
SELECT - - col1 + + CAST( NULL AS SIGNED ) * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3085
SELECT - - col1 + + CAST ( NULL AS INTEGER ) * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col2 * 14 AS col1 FROM tab1 AS cor0
----
1344
756
798

query I rowsort
SELECT DISTINCT + + col1 * + ( col2 ) AS col2 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT + tab2.col1 * col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT DISTINCT 78 - - tab2.col1 FROM tab2
----
109
137
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-3090
SELECT 93 DIV + col2 AS col1 FROM tab0
----
1
2
93

skipif mysql # not compatible
query I rowsort label-3090
SELECT 93 / + col2 AS col1 FROM tab0
----
1
2
93

query I rowsort
SELECT - 29 * col2 + + col1 AS col0 FROM tab0
----
-2287
-871
68

query I rowsort
SELECT 14 + col1 - + tab1.col1 FROM tab1
----
14
14
14

query I rowsort
SELECT col2 * col2 + + tab1.col2 + + 21 FROM tab1
----
2991
3327
9333

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0, tab2 AS cor0, tab1
----
972 values hashing to 75a813ebd5ec5ec2e67a66d0593ff763

query I rowsort
SELECT + col0 + col1 * 3 + - 67 AS col2 FROM tab0
----
215
259
295

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3096
SELECT + - col1 * CAST( NULL AS SIGNED ) * col2 + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3096
SELECT + - col1 * CAST ( NULL AS INTEGER ) * col2 + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * + col1 * tab1.col1 AS col2 FROM tab1
----
13520
2028
6400

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab1, tab2 AS cor1
----
972 values hashing to 0fcd8d0934383dd58863be894b07a6ed

query I rowsort
SELECT DISTINCT + col1 * ( - col0 ) + - col0 + 51 FROM tab1
----
-1069
-30
-653

query I rowsort
SELECT DISTINCT - tab1.col0 + - tab1.col0 + col2 * col1 FROM tab1
----
1088
1398
442

query I rowsort
SELECT + + col2 - cor0.col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col1 + - cor0.col1 AS col0 FROM tab1 cor0
----
-20
-26
-52

query I rowsort
SELECT ALL - cor0.col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ALL + col0 * + col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT col2 * + ( col2 ) + col0 * + col1 FROM tab0 AS cor0
----
14823
3153
3396

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3106
SELECT ALL col1 + CAST( NULL AS DECIMAL ) + + 33 / col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3106
SELECT ALL col1 + CAST ( NULL AS REAL ) + + 33 / col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 * col2 AS col1 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT - - col1 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3109
SELECT DISTINCT - col1 * CAST( + col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-3109
SELECT DISTINCT - col1 * CAST ( + col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3110
SELECT + col0 / + CAST( NULL AS SIGNED ) col2 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3110
SELECT + col0 / + CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT tab1.col2 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
54
57
96

query I rowsort
SELECT ALL col2 + 49 FROM tab2
----
75
76
87

query I rowsort
SELECT ALL tab0.col2 + + 5 + + 88 FROM tab0
----
126
175
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + ( + col0 + col1 ) col0 FROM tab0
----
196
229
271

query I rowsort
SELECT + col0 + - col1 AS col0 FROM tab1
----
-23
54
67

query I rowsort
SELECT tab0.col2 * ( + ( - col2 ) ) * - 49 AS col2 FROM tab0
----
329476
49
53361

query I rowsort
SELECT col1 * ( + tab0.col2 ) AS col1 FROM tab0
----
2838
7462
97

query I rowsort
SELECT ALL + - col0 * col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT - col0 * col2 FROM tab2 AS cor0
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 * col0 + 73 col1 FROM tab0 AS cor0
----
1298
649
7994

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3121
SELECT ALL - col0 + - CAST( + col2 AS SIGNED ) + col1 * 17 FROM tab1
----
385
45
49

skipif mysql # not compatible
query I rowsort label-3121
SELECT ALL - col0 + - CAST ( + col2 AS INTEGER ) + col1 * 17 FROM tab1
----
385
45
49

query I rowsort
SELECT - - col1 + ( - col0 ) * - 28 AS col1 FROM tab0 AS cor0
----
1077
2583
758

query I rowsort
SELECT ALL - - ( cor0.col2 ) FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT col2 * 73 - col2 FROM tab2 AS cor0
----
1872
1944
2736

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 60 + - col2 * - col2 col0 FROM tab0 AS cor0
----
1149
61
6784

query I rowsort
SELECT DISTINCT - + col2 * - col1 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT ALL 73 FROM tab0 AS cor0
----
73
73
73

query I rowsort
SELECT ALL - col1 * col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col2 * col1 + + 41 col1 FROM tab1 cor0
----
1276
1419
601

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT + cor0.col2 AS col2 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT - ( ( cor0.col1 ) ) + col0 + col0 FROM tab0 AS cor0
----
-27
-38
87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3133
SELECT - - CAST( 4 AS SIGNED ) * col2 AS col0 FROM tab0 AS cor0
----
132
328
4

skipif mysql # not compatible
query I rowsort label-3133
SELECT - - CAST ( 4 AS INTEGER ) * col2 AS col0 FROM tab0 AS cor0
----
132
328
4

query I rowsort
SELECT - col0 * + col1 + 51 * - col2 FROM tab1
----
-2832
-3547
-5936

query I rowsort
SELECT - ( + col0 ) + + col1 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT DISTINCT - col1 * col2 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
16224
36504
5700

query I rowsort
SELECT + 9 FROM tab2 cor0
----
9
9
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-3138
SELECT + col2 + + col1 DIV col1 col1 FROM tab2 AS cor0
----
27
28
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3138
SELECT + col2 + + col1 / col1 col1 FROM tab2 AS cor0
----
27
28
39

query I rowsort
SELECT 85 FROM tab0 AS cor0
----
85
85
85

query I rowsort
SELECT - col2 + + tab2.col1 * col0 AS col0 FROM tab2
----
1305
190
4576

onlyif mysql # use DIV operator for integer division
query I rowsort label-3141
SELECT ALL - col2 DIV - cor0.col1 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-3141
SELECT ALL - col2 / - cor0.col1 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT DISTINCT + 50 FROM tab0 AS cor0
----
50

query I rowsort
SELECT ALL - + 96 * + cor0.col2 + col0 * col1 + col1 FROM tab0 cor0
----
-1018
318
3396

query I rowsort
SELECT - 73 AS col0 FROM tab2 AS cor0
----
-73
-73
-73

query I rowsort
SELECT DISTINCT - 55 FROM tab2 AS cor0
----
-55

query I rowsort
SELECT + - ( + col1 ) + ( - 64 ) AS col0 FROM tab0 AS cor0
----
-150
-155
-161

query I rowsort
SELECT ALL - 22 AS col0 FROM tab2 AS cor0
----
-22
-22
-22

query I rowsort
SELECT - col2 * + col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT + tab2.col2 AS col2 FROM tab2, tab0 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT - 90 FROM tab0
----
-90

query I rowsort
SELECT 44 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT DISTINCT + 84 * col1 FROM tab2 AS cor0
----
1428
2604
4956

query I rowsort
SELECT + col2 + - col0 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT DISTINCT col2 + - col2 * col0 AS col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT ALL + + ( col2 ) * - col0 + 8 * col0 FROM tab0 AS cor0
----
-600
-6586
245

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 * col2 + cor0.col0 + col1 col1 FROM tab1 AS cor0
----
1341
1433
644

query I rowsort
SELECT col1 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT + + col1 + - col2 AS col0 FROM tab0 AS cor0
----
53
9
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 + col2 col0 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT + + col1 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-3163
SELECT ALL - 41 DIV col0 + cor0.col2 AS col2 FROM tab0 AS cor0
----
0
32
82

skipif mysql # not compatible
query I rowsort label-3163
SELECT ALL - 41 / col0 + cor0.col2 AS col2 FROM tab0 AS cor0
----
0
32
82

query I rowsort
SELECT + cor0.col0 AS col2 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT DISTINCT - col1 + - col0 * - col0 FROM tab1 AS cor0
----
-17
4086
6387

query I rowsort
SELECT ALL + cor0.col1 + + cor0.col0 + + ( + ( col2 ) ) FROM tab2 AS cor0
----
134
163
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-3167
SELECT DISTINCT col2 DIV col0 col0 FROM tab2 AS cor0
----
0
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3167
SELECT DISTINCT col2 / col0 col0 FROM tab2 AS cor0
----
0
3

query I rowsort
SELECT ALL + + 55 * - col2 AS col0 FROM tab2 AS cor0
----
-1430
-1485
-2090

query I rowsort
SELECT + - 30 + col0 FROM tab2 AS cor0
----
-23
48
49

query I rowsort
SELECT ALL + col0 * - col0 + col1 AS col0 FROM tab0 AS cor0
----
-1128
-490
-7830

query I rowsort
SELECT + - col2 + col2 * + col2 FROM tab2 cor0
----
1406
650
702

query I rowsort
SELECT DISTINCT cor0.col2 AS col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL + + cor0.col1 AS col1 FROM tab1 AS cor0
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * col0 col0 FROM tab0 AS cor0
----
1225
576
7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 94 col0 FROM tab2 cor0
----
658
7332
7426

query I rowsort
SELECT DISTINCT - col1 + ( + cor0.col2 ) FROM tab2 AS cor0
----
-33
-4
21

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3177
SELECT ALL + + cor0.col0 * - CAST( 66 * - col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
10692
240768
506880

skipif mysql # not compatible
query I rowsort label-3177
SELECT ALL + + cor0.col0 * - CAST ( 66 * - col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
10692
240768
506880

onlyif mysql # use DIV operator for integer division
query I rowsort label-3178
SELECT + cor0.col1 - col2 DIV - col1 AS col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-3178
SELECT + cor0.col1 - col2 / - col1 AS col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL - - cor0.col1 + 34 FROM tab1 AS cor0
----
44
47
60

query I rowsort
SELECT ALL - tab2.col1 * - col1 * col0 AS col1 FROM tab2
----
22831
271518
6727

query I rowsort
SELECT ALL + 0 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT + 37 AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query I rowsort
SELECT - col1 * - col0 * 27 + - 71 AS col0 FROM tab2 AS cor0
----
124183
36190
5788

query I rowsort
SELECT 81 * - col1 FROM tab2 AS cor0
----
-1377
-2511
-4779

query I rowsort
SELECT - - 84 FROM tab2 AS cor0
----
84
84
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-3186
SELECT + 21 DIV - col1 + - col2 + - ( + col2 ) col2 FROM tab2
----
-52
-54
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3186
SELECT + 21 / - col1 + - col2 + - ( + col2 ) col2 FROM tab2
----
-52
-54
-77

query I rowsort
SELECT ( + ( + col2 ) ) + ( 63 ) * - col2 + col1 * col2 AS col0 FROM tab1
----
-1944
-2964
-4704

query I rowsort
SELECT ALL tab1.col1 + 54 FROM tab1
----
64
67
80

query I rowsort
SELECT + col1 * cor0.col2 AS col1 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT + col0 + cor0.col0 AS col1 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT - - col2 * col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT + col0 * cor0.col1 - col2 * col0 * col0 AS col1 FROM tab1 AS cor0
----
-232832
-408
-613360

query I rowsort
SELECT ALL 40 * - col2 AS col2 FROM tab0
----
-1320
-3280
-40

query I rowsort
SELECT ALL col2 * tab0.col2 * col2 FROM tab0
----
1
35937
551368

query I rowsort
SELECT DISTINCT - tab0.col2 + + 90 FROM tab0
----
57
8
89

query I rowsort
SELECT ( 60 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT DISTINCT + 99 * + col1 AS col0 FROM tab0
----
8514
9009
9603

query I rowsort
SELECT + col2 + col1 AS col0 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT + col1 * col0 + + ( col2 ) * col2 * + ( + cor0.col1 * - col1 ) FROM tab1 AS cor0
----
-1556464
-1971138
-324260

query I rowsort
SELECT - col2 + col1 * col2 * col1 AS col0 FROM tab2 AS cor0
----
10944
25920
90480

query I rowsort
SELECT col0 * col1 + col0 * col0 * col0 FROM tab1 AS cor0
----
105
262784
513040

query I rowsort
SELECT DISTINCT - - col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT + + col1 + - 44 * - cor0.col1 FROM tab0 AS cor0
----
3870
4095
4365

query I rowsort
SELECT ALL - col0 * col1 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-3205
SELECT + cor0.col2 DIV 48 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3205
SELECT + cor0.col2 / 48 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3206
SELECT ALL col2 / ( - col1 * - col1 + CAST( NULL AS DECIMAL ) ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3206
SELECT ALL col2 / ( - col1 * - col1 + CAST ( NULL AS REAL ) ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * - col2 AS col0 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT - col2 + ( col1 ) * + col1 FROM tab0 AS cor0
----
7363
8199
9408

query I rowsort
SELECT DISTINCT + + cor0.col0 * cor0.col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT + col0 + col1 FROM tab0
----
110
132
180

query I rowsort
SELECT + + 30 + + cor0.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e83831bc2945516886b959ed37c9d1ae

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + col1 col1 FROM tab1 AS cor0
----
109
67
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 col0 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 col1 FROM tab0, tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL 89 FROM tab0
----
89
89
89

query I rowsort
SELECT ALL ( + cor0.col2 ) FROM tab0, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT 60 * 97 AS col0 FROM tab1 cor0
----
5820
5820
5820

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0, tab1 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to 78077727601c056ad0d4f4c11c8daffb

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0, tab0 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to 97b43fbe79eecd0bc6921392403b666d

query I rowsort
SELECT - col0 * + 41 AS col1 FROM tab0 AS cor0
----
-1435
-3649
-984

query I rowsort
SELECT - + cor0.col2 * + col1 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT - col2 * + col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab0 AS cor2
----
3645 values hashing to db9b93cf4fdd5de4106f0487a66ce0a5

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0 CROSS JOIN tab0
----
243 values hashing to 021da207cdc2a046fb0a79bf7cfc38ae

query I rowsort
SELECT ALL - 57 * + tab2.col0 AS col1 FROM tab2
----
-399
-4446
-4503

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
972 values hashing to bcf430f79386b43bc4077271fcd15cf0

query I rowsort
SELECT + 56 * col1 AS col1 FROM tab0 AS cor0
----
4816
5096
5432

query I rowsort
SELECT + 42 FROM tab1 AS cor0
----
42
42
42

query I rowsort
SELECT ( + col0 ) AS col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT - - col1 AS col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT + 36 * col1 FROM tab0 cor0
----
3096
3276
3492

query I rowsort
SELECT ALL 40 AS col0 FROM tab0 cor0
----
40
40
40

query I rowsort
SELECT - + col1 * col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT + tab0.col2 FROM tab0
----
1
33
82

query I rowsort
SELECT + 34 FROM tab2
----
34
34
34

query I rowsort
SELECT ALL + col1 + - cor0.col0 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
2087
220
3019

query IIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0, tab1 cor1
----
243 values hashing to 4fe4780e49e612b93957f575d9b3e89f

query I rowsort
SELECT + col1 * cor0.col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT 55 FROM tab2 AS cor0
----
55

query I rowsort
SELECT DISTINCT col1 * col0 AS col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL - col2 * + col0 AS col0 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT + col0 + ( col2 ) FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT - col2 * col2 + col2 * col0 FROM tab2 AS cor0
----
-540
1352
1558

query I rowsort
SELECT ALL - col0 * - ( - col1 ) AS col2 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT - cor0.col2 + col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + cor0.col2 * - col2 + 59 + col0 AS col2 FROM tab2 cor0
----
-1306
-539
-663

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + ( col1 ) col0 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT ALL cor0.col1 * - col2 + cor0.col1 AS col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT - 58 * - 7 FROM tab2 AS cor0
----
406
406
406

query I rowsort
SELECT DISTINCT - cor0.col1 * col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL + - col0 * col2 + col2 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT + + col2 + - ( + col0 ) * col1 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT + 22 FROM tab1 AS cor0
----
22
22
22

query I rowsort
SELECT ALL + 13 + + col1 * cor0.col2 * + col0 AS col0 FROM tab2 AS cor0
----
119665
51047
5872

query I rowsort
SELECT ALL - col2 + 88 + col2 AS col2 FROM tab0 AS cor0
----
88
88
88

query I rowsort
SELECT DISTINCT - 15 + col0 FROM tab0 AS cor0
----
20
74
9

query I rowsort
SELECT + col1 * - 27 + - col0 FROM tab2 AS cor0
----
-1671
-538
-844

query I rowsort
SELECT - col1 * + ( + 65 ) FROM tab0
----
-5590
-5915
-6305

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1, tab1 AS cor0, tab0
----
972 values hashing to 909b7ebab62aff8f69dc42ccbb5c2eae

query I rowsort
SELECT ALL 41 + + 85 * tab1.col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 0695cbdc2ed21d6038f4fbcab625c8c7

query I rowsort
SELECT + col0 * + ( col1 + + col0 ) AS col2 FROM tab0
----
16020
2640
4620

query I rowsort
SELECT ( - tab2.col1 ) FROM tab2, tab1 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

query I rowsort
SELECT DISTINCT - col1 + col2 * col0 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT DISTINCT + col1 + ( + col0 ) + + col2 * 35 FROM tab2
----
1047
1426
983

query I rowsort
SELECT ALL - col2 + col0 + col2 FROM tab1
----
3
64
80

query IIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab0 AS cor2
----
972 values hashing to 3406497351e4789c89a295ee9b64b201

query I rowsort
SELECT ALL col2 * - 24 FROM tab0 AS cor0
----
-1968
-24
-792

query I rowsort
SELECT - cor0.col2 + - 30 + col2 FROM tab1 AS cor0
----
-30
-30
-30

query I rowsort
SELECT DISTINCT - - col2 + + 14 AS col2 FROM tab1 AS cor0
----
110
68
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col1 + + ( - col2 ) col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT - col2 * - 44 FROM tab0 AS cor0
----
1452
3608
44

query I rowsort
SELECT ALL + + col0 * 8 FROM tab0 AS cor0
----
192
280
712

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3273
SELECT DISTINCT - col0 * 82 + - col1 + - col2 / - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3273
SELECT DISTINCT - col0 * 82 + - col1 + - col2 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL cor0.col1 * col0 AS col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + + cor0.col1 + col0 - - col0 * + col0 AS col1 FROM tab0 AS cor0
----
1357
686
8101

onlyif mysql # use DIV operator for integer division
query I rowsort label-3276
SELECT - cor0.col1 DIV + col2 + - 61 * col0 * + 18 + col2 AS col1 FROM tab1 AS cor0
----
-3240
-70215
-87744

skipif mysql # not compatible
query I rowsort label-3276
SELECT - cor0.col1 / + col2 + - 61 * col0 * + 18 + col2 AS col1 FROM tab1 AS cor0
----
-3240
-70215
-87744

query I rowsort
SELECT ALL + col1 + - col1 * + col0 FROM tab2 AS cor0
----
-1326
-186
-4543

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT - - col2 * 68 FROM tab1 AS cor0
----
3672
3876
6528

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT + 22 + col0 FROM tab1 AS cor0
----
102
25
86

query I rowsort
SELECT + 7 + + col2 FROM tab1 cor0
----
103
61
64

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3283
SELECT ALL + CAST( NULL AS SIGNED ) * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3283
SELECT ALL + CAST ( NULL AS INTEGER ) * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3284
SELECT - - 29 * 7 DIV col1 AS col2 FROM tab1 AS cor0
----
15
20
7

skipif mysql # not compatible
query I rowsort label-3284
SELECT - - 29 * 7 / col1 AS col2 FROM tab1 AS cor0
----
15
20
7

query I rowsort
SELECT ALL 69 AS col0 FROM tab1 AS cor0
----
69
69
69

query I rowsort
SELECT col0 + + 84 + - col0 * - col0 FROM tab0
----
1344
684
8094

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3287
SELECT DISTINCT - col0 * - col1 * CAST( NULL AS SIGNED ) + col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3287
SELECT DISTINCT - col0 * - col1 * CAST ( NULL AS INTEGER ) + col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + - cor0.col1 - cor0.col1 FROM tab0 AS cor0
----
-172
-182
-194

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3289
SELECT - ( col2 ) * CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3289
SELECT - ( col2 ) * CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 31 * col2 - ( col1 ) * col1 AS col2 FROM tab1 cor0
----
-1867
-2350
-3145

query I rowsort
SELECT + - col2 * cor0.col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT - 36 * col1 + - col0 + cor0.col2 FROM tab2 AS cor0
----
-1096
-2176
-653

query I rowsort
SELECT ALL col1 * - col1 + - col1 AS col1 FROM tab2 AS cor0
----
-306
-3540
-992

onlyif mysql # use DIV operator for integer division
query I rowsort label-3294
SELECT - col2 DIV + tab2.col1 FROM tab2
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-3294
SELECT - col2 / + tab2.col1 FROM tab2
----
-2
0
0

query I rowsort
SELECT - col1 + tab1.col1 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + + col1 + col0 AS col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL - 33 * - col2 + - cor0.col0 AS col1 FROM tab2 AS cor0
----
1175
780
884

query I rowsort
SELECT ALL + col1 + col2 * + col0 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT DISTINCT 95 - col1 FROM tab1
----
69
82
85

query I rowsort
SELECT ALL + 72 - col1 AS col0 FROM tab1
----
46
59
62

query I rowsort
SELECT DISTINCT col0 - + col2 AS col2 FROM tab2
----
-20
41
52

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1, tab2 AS cor0, tab0
----
972 values hashing to 58757c5bbbd4217c03cf2ac0b6126e55

query I rowsort
SELECT + tab0.col2 - col0 AS col2 FROM tab0
----
-34
-7
9

query I rowsort
SELECT col0 + col2 AS col0 FROM tab1
----
121
176
57

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2, tab2 AS cor0, tab1 AS cor1
----
972 values hashing to 980274175fafec015a83080672486a9a

query I rowsort
SELECT - col2 - col2 AS col1 FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT DISTINCT + + col0 + col0 * - 33 FROM tab0 AS cor0
----
-1120
-2848
-768

query I rowsort
SELECT DISTINCT + + col2 + 53 FROM tab0 AS cor0
----
135
54
86

query I rowsort
SELECT - col1 + 93 AS col1 FROM tab0 AS cor0
----
-4
2
7

query I rowsort
SELECT 59 + tab1.col0 * col1 FROM tab1
----
1099
137
699

onlyif mysql # use DIV operator for integer division
query I rowsort label-3311
SELECT DISTINCT + col0 DIV + col0 col2 FROM tab2
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3311
SELECT DISTINCT + col0 / + col0 col2 FROM tab2
----
1

query I rowsort
SELECT ALL - 79 * tab0.col0 AS col1 FROM tab0
----
-1896
-2765
-7031

onlyif mysql # use DIV operator for integer division
query I rowsort label-3313
SELECT DISTINCT - ( col2 ) DIV + 26 FROM tab1
----
-2
-3

skipif mysql # not compatible
query I rowsort label-3313
SELECT DISTINCT - ( col2 ) / + 26 FROM tab1
----
-2
-3

query I rowsort
SELECT cor1.col0 AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994

query I rowsort
SELECT - col1 * ( - 78 ) * - col1 FROM tab0 AS cor0
----
-576888
-645918
-733902

query I rowsort
SELECT ALL cor0.col0 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3317
SELECT ALL CAST( NULL AS SIGNED ) FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3317
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL - col0 + + 15 FROM tab0
----
-20
-74
-9

query I rowsort
SELECT ALL - col1 + + col2 FROM tab2
----
-33
-4
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-3320
SELECT - col2 DIV 69 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3320
SELECT - col2 / 69 FROM tab0
----
-1
0
0

query I rowsort
SELECT ALL - + col1 * + col1 + - col0 + col2 FROM tab2 AS cor0
----
-330
-3533
-941

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab1 AS cor1, tab0 AS cor2
----
972 values hashing to 95920403df268a272c4e933cd0bbe0be

query I rowsort
SELECT ALL + col0 + + 43 FROM tab0 AS cor0
----
132
67
78

query I rowsort
SELECT ALL col1 - col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col2 + col2 * + 42 FROM tab2 cor0
----
1118
1161
1634

query I rowsort
SELECT DISTINCT - col2 - + 31 FROM tab2 AS cor0
----
-57
-58
-69

query I rowsort
SELECT ALL - 54 + 62 AS col1 FROM tab1
----
8
8
8

query I rowsort
SELECT col2 * col1 AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL 6 + + tab2.col0 FROM tab2
----
13
84
85

query I rowsort
SELECT DISTINCT + col1 * 10 AS col2 FROM tab0
----
860
910
970

query I rowsort
SELECT + col1 * - 85 + col0 FROM tab1 AS cor0
----
-1025
-2207
-786

query I rowsort
SELECT col1 * + col0 * - col1 FROM tab0 cor0
----
-177504
-329315
-737009

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( - col0 AS REAL ) FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + 70 + col2 FROM tab1
----
124
127
166

query I rowsort
SELECT col2 + tab0.col2 * - col2 FROM tab0
----
-1056
-6642
0

query I rowsort
SELECT ALL ( col1 ) FROM tab1
----
10
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3337
SELECT DISTINCT col1 * ( + col2 * CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3337
SELECT DISTINCT col1 * ( + col2 * CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query I rowsort
SELECT + col1 + 50 AS col1 FROM tab1
----
60
63
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 50 * - col2 col1 FROM tab2 AS cor0
----
1300
1350
1900

query I rowsort
SELECT DISTINCT + col1 * col2 + 79 FROM tab1 AS cor0
----
1327
1483
649

query I rowsort
SELECT 3 + col1 * 55 FROM tab2 cor0
----
1708
3248
938

query I rowsort
SELECT ALL + 27 * col1 + + col1 AS col2 FROM tab1 cor0
----
280
364
728

query I rowsort
SELECT - col2 * col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT ALL - - ( + col1 ) FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT + ( - col0 ) AS col2 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT cor1.col1 AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT - 21 * - col1 FROM tab2 AS cor0
----
1239
357
651

query I rowsort
SELECT col1 * col2 + 58 FROM tab1 AS cor0
----
1306
1462
628

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 71 * col0 col1 FROM tab0 AS cor0
----
1704
2485
6319

query I rowsort
SELECT DISTINCT - col2 * cor0.col1 + 44 FROM tab2 cor0
----
-1490
-602
-793

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT + 67 AS col1 FROM tab1 cor0
----
67
67
67

query I rowsort
SELECT DISTINCT - col1 * - col0 + 74 FROM tab2 AS cor0
----
1417
291
4676

query I rowsort
SELECT DISTINCT + col0 + + col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL + + col2 - col0 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT 75 FROM tab2 AS cor0
----
75
75
75

query I rowsort
SELECT - + col1 * cor0.col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - col0 col0 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT DISTINCT col2 * col0 + + cor0.col1 * + 43 FROM tab2 cor0
----
1522
3733
4565

query I rowsort
SELECT tab0.col2 * + col1 * - col0 - + col1 FROM tab0
----
-3492
-664209
-68198

onlyif mysql # use DIV operator for integer division
query I rowsort label-3361
SELECT - col1 DIV col1 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3361
SELECT - col1 / col1 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - cor0.col1 FROM tab0, tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT + + col1 * cor0.col1 FROM tab0 AS cor0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-3364
SELECT - col0 DIV + col1 AS col2 FROM tab2 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-3364
SELECT - col0 / + col1 AS col2 FROM tab2 AS cor0
----
-1
-4
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3365
SELECT ALL - col1 + col0 DIV col1 FROM tab1 cor0
----
-26
-4
-7

skipif mysql # not compatible
query I rowsort label-3365
SELECT ALL - col1 + col0 / col1 FROM tab1 cor0
----
-26
-4
-7

query I rowsort
SELECT ALL + col2 + cor0.col0 * col1 * cor0.col0 AS col0 FROM tab2 AS cor0
----
106135
1546
358982

query I rowsort
SELECT - - col1 AS col0 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT col0 * col2 AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL - col2 * + col0 * + col2 FROM tab1 AS cor0
----
-207936
-737280
-8748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col2 FROM tab2 AS cor0
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * col1 col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT - col0 + - cor0.col2 AS col0 FROM tab1 AS cor0
----
-121
-176
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 - - col2 * - col2 col2 FROM tab0 AS cor0
----
-1175
-6815
-98

query I rowsort
SELECT + - col0 * - col2 + - col1 + col0 FROM tab2 cor0
----
165
2047
3064

query I rowsort
SELECT + + cor0.col0 * - col2 + col1 + - cor0.col2 AS col2 FROM tab1 AS cor0
----
-190
-3695
-7763

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab2
----
-26
-27
-38

query I rowsort
SELECT ALL col1 * - col0 FROM tab0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-3378
SELECT ALL + col1 DIV + col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3378
SELECT ALL + col1 / + col1 FROM tab0
----
1
1
1

query I rowsort
SELECT ALL col0 * col1 * + tab1.col0 AS col0 FROM tab1
----
234
40960
83200

query I rowsort
SELECT ALL tab1.col0 * + col2 AS col1 FROM tab1
----
162
3648
7680

query I rowsort
SELECT + + 75 FROM tab0 AS cor0
----
75
75
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-3382
SELECT col2 DIV + col0 + col2 FROM tab2 cor0
----
26
30
38

skipif mysql # not compatible
query I rowsort label-3382
SELECT col2 / + col0 + col2 FROM tab2 cor0
----
26
30
38

query I rowsort
SELECT + col1 * + col0 + col1 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT DISTINCT + 95 AS col1 FROM tab1
----
95

query I rowsort
SELECT + cor0.col2 + + col2 * col0 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT 6 + tab2.col2 FROM tab2
----
32
33
44

query I rowsort
SELECT 12 AS col2 FROM tab0
----
12
12
12

query I rowsort
SELECT ALL + col2 + - col1 FROM tab1 cor0
----
28
47
83

query I rowsort
SELECT + - col1 * - cor0.col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - cor0.col2 * cor0.col1 + col0 * - col0 AS col0 FROM tab2 AS cor0
----
-6887
-7618
-886

query I rowsort
SELECT ALL col1 + col1 * col2 AS col0 FROM tab2
----
1593
663
868

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) NOT BETWEEN NULL AND col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col2 + - col0 col2 FROM tab0
----
-34
-7
9

query I rowsort
SELECT - col0 * + col0 FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT - tab2.col1 + + col1 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - tab1.col2 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT tab1.col2 - - col2 AS col0 FROM tab1
----
108
114
192

query I rowsort
SELECT DISTINCT tab0.col0 + col2 + - tab0.col0 FROM tab0
----
1
33
82

query I rowsort
SELECT - col2 + col0 FROM tab2
----
-20
41
52

query I rowsort
SELECT col1 * + col0 FROM tab0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-3401
SELECT col1 * - col0 * + tab0.col0 + col1 DIV col2 FROM tab0
----
-118728
-49534
-720810

skipif mysql # not compatible
query I rowsort label-3401
SELECT col1 * - col0 * + tab0.col0 + col1 / col2 FROM tab0
----
-118728
-49534
-720810

query I rowsort
SELECT ALL + col0 * + col0 + col1 * col0 + col2 FROM tab0
----
16102
2673
4621

query I rowsort
SELECT ALL - col2 * col0 AS col2 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT ALL col0 + col0 AS col2 FROM tab0
----
178
48
70

query I rowsort
SELECT tab1.col2 * - col0 + - col2 FROM tab1
----
-216
-3705
-7776

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND ( col0 + col2 * - col0 * - col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3407
SELECT col0 DIV + col2 FROM tab0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-3407
SELECT col0 / + col2 FROM tab0
----
0
1
35

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT - col0 * col0 AS col2 FROM tab0
----
-1225
-576
-7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col0 col1 FROM tab2
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col1 + tab0.col1 col1 FROM tab0
----
-1978
-3298
-8008

query I rowsort
SELECT col2 - + col2 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col0 + col1 col1 FROM tab0
----
-1978
-3298
-8008

query I rowsort
SELECT col0 * + col0 AS col0 FROM tab1
----
4096
6400
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col1 col0 FROM tab0
----
86
91
97

query I rowsort
SELECT + col1 + col1 + col1 FROM tab1
----
30
39
78

query I rowsort
SELECT + col0 * col0 FROM tab2 WHERE + col1 IN ( + col0 + col1 )
----

query I rowsort
SELECT - col0 AS col1 FROM tab1 WHERE NOT ( NULL ) <> NULL
----

query I rowsort
SELECT ALL col2 + col0 AS col2 FROM tab2
----
104
117
34

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 <> ( + col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT col1 * col1 AS col0 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT + col2 + - col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL tab1.col0 AS col1 FROM tab1
----
3
64
80

query I rowsort
SELECT ALL - col0 + + col1 FROM tab2
----
-19
-62
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col0 col2 FROM tab2 WHERE NOT - col1 = NULL
----

query I rowsort
SELECT + col0 * - col1 FROM tab1
----
-1040
-640
-78

query III rowsort
SELECT * FROM tab0 WHERE col2 NOT IN ( col2 + col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT col0 * col2 FROM tab0
----
35
7298
792

query I rowsort
SELECT - col0 + + col1 FROM tab0
----
2
62
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-3430
SELECT DISTINCT col0 DIV col2 col1 FROM tab0
----
0
1
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3430
SELECT DISTINCT col0 / col2 col1 FROM tab0
----
0
1
35

query I rowsort
SELECT ALL + col1 * col2 AS col0 FROM tab1
----
1248
1404
570

query I rowsort
SELECT col0 * col1 FROM tab1
----
1040
640
78

query I rowsort
SELECT - col2 * - col1 - col0 * - col2 AS col1 FROM tab1 AS cor0
----
1566
4218
8928

query I rowsort
SELECT col1 - - col0 AS col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL col2 - + col2 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT - col1 * col1 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
-10982
-25947
-90506

query IIIIIIIII rowsort
SELECT * FROM tab1, tab1 cor0 CROSS JOIN tab0
----
243 values hashing to 3a953203ced079e372111d61dbd9e35f

onlyif mysql # use DIV operator for integer division
query I rowsort label-3438
SELECT DISTINCT - col1 + col2 DIV col0 - + col1 * col0 FROM tab2
----
-1360
-245
-4661

skipif mysql # not compatible
query I rowsort label-3438
SELECT DISTINCT - col1 + col2 / col0 - + col1 * col0 FROM tab2
----
-1360
-245
-4661

query I rowsort
SELECT + col0 * - col1 AS col1 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT - tab0.col0 * col2 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT col1 - - col0 AS col0 FROM tab1
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-3442
SELECT - col0 DIV - col1 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3442
SELECT - col0 / - col1 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 * - col2 AS col0 FROM tab1
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - - col0 col0 FROM tab0
----
178
48
70

query I rowsort
SELECT - tab0.col1 * tab0.col2 AS col2 FROM tab0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3446
SELECT col1 + col1 DIV col0 FROM tab0
----
89
92
99

skipif mysql # not compatible
query I rowsort label-3446
SELECT col1 + col1 / col0 FROM tab0
----
89
92
99

query I rowsort
SELECT + cor0.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

onlyif mysql # use DIV operator for integer division
query I rowsort label-3448
SELECT ALL + col0 DIV + col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3448
SELECT ALL + col0 / + col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT + col1 * col1 * col0 + + col0 * col2 + col1 FROM tab1 AS cor0 WHERE NOT ( col1 ) IN ( col2 * col2 )
----
10058
21213
2216

query I rowsort
SELECT - cor0.col2 AS col2 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT DISTINCT col2 * cor0.col0 * cor0.col1 + col2 AS col2 FROM tab1 AS cor0
----
36537
4266
99936

query I rowsort
SELECT ALL col1 + + cor0.col1 + - col2 FROM tab0 AS cor0
----
100
139
193

query I rowsort
SELECT DISTINCT - ( + 4 ) AS col1 FROM tab1 AS cor0
----
-4

query I rowsort
SELECT - 2 + + ( - col2 ) * col0 AS col0 FROM tab1 AS cor0
----
-164
-3650
-7682

query I rowsort
SELECT DISTINCT - + ( 45 ) FROM tab0 AS cor0
----
-45

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3457
SELECT - + CAST( - ( col0 ) AS SIGNED ) * col1 AS col0 FROM tab0 cor0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-3457
SELECT - + CAST ( - ( col0 ) AS INTEGER ) * col1 AS col0 FROM tab0 cor0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - 3 col2 FROM tab2 AS cor0
----
177
51
93

query I rowsort
SELECT + ( 32 ) * + cor0.col2 FROM tab2 AS cor0
----
1216
832
864

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3460
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 91 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3460
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 91 AS col0 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col1 col0 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL col2 * 10 FROM tab1
----
540
570
960

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0, tab1, tab1 AS cor1
----
972 values hashing to d222ba302bd1ddd1c8b2ddf1a4d0b07a

query I rowsort
SELECT DISTINCT + 48 * - col0 FROM tab2 AS cor0
----
-336
-3744
-3792

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0, tab2 AS cor1, tab0 AS cor2
----
972 values hashing to 9345325155d9f4d7dc4986690c631cb9

query I rowsort
SELECT - cor0.col2 * col1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT - 22 * - col2 + + 10 AS col1 FROM tab1 AS cor0
----
1198
1264
2122

query I rowsort
SELECT ALL + + col0 - col1 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT ALL - col0 * + col0 - 43 AS col0 FROM tab1 AS cor0
----
-4139
-52
-6443

query I rowsort
SELECT ALL col2 + tab2.col2 AS col0 FROM tab2
----
52
54
76

query I rowsort
SELECT ( col2 ) * + col0 AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL + 46 + cor0.col2 FROM tab1 cor0
----
100
103
142

query I rowsort
SELECT DISTINCT col2 * - col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL + cor0.col0 AS col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT - col0 * col1 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT cor0.col2 * - col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT - ( col1 ) * + 8 AS col2 FROM tab1 AS cor0
----
-104
-208
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - - cor0.col2 col2 FROM tab2 AS cor0
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-3479
SELECT ALL 74 DIV col1 FROM tab2 AS cor0
----
1
2
4

skipif mysql # not compatible
query I rowsort label-3479
SELECT ALL 74 / col1 FROM tab2 AS cor0
----
1
2
4

query I rowsort
SELECT - cor0.col0 * - cor0.col0 - cor0.col2 AS col0 FROM tab1 cor0
----
-45
4039
6304

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0, tab2 cor1, tab2, tab2 AS cor2
----
3645 values hashing to db428ec66bce13149e3129b417b0fe94

query I rowsort
SELECT - col2 + cor0.col2 * - col2 AS col0 FROM tab1 cor0
----
-2970
-3306
-9312

skipif mysql # not compatible
query I rowsort
SELECT + col2 - - CAST ( col0 AS REAL ) FROM tab2
----
104
117
34

query I rowsort
SELECT ALL - tab1.col0 AS col1 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT ALL col2 * ( - 71 ) FROM tab0 AS cor0
----
-2343
-5822
-71

query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 cor0, tab1 cor1
----
243 values hashing to 7e12d99d8ab63d9fd10e95cef9d78998

query I rowsort
SELECT + cor1.col2 AS col1 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT + col0 + cor0.col0 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT DISTINCT col0 + - ( cor0.col0 ) * + col2 AS col1 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT DISTINCT - col2 * 61 FROM tab2 AS cor0
----
-1586
-1647
-2318

query I rowsort
SELECT ALL + col0 * + col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 col1 FROM tab0 AS cor0
----
-24
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + 58 * + col2 col0 FROM tab0 AS cor0
----
1938
4845
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3494
SELECT + - col0 + CAST( NULL AS SIGNED ) * + col2 * cor0.col2 + - ( - 52 * - col0 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3494
SELECT + - col0 + CAST ( NULL AS INTEGER ) * + col2 * cor0.col2 + - ( - 52 * - col0 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * 42 FROM tab1 AS cor0
----
2268
2394
4032

query I rowsort
SELECT - 40 * + col1 FROM tab0 AS cor0
----
-3440
-3640
-3880

query I rowsort
SELECT DISTINCT - - col2 + + col1 * - col1 FROM tab2 cor0
----
-251
-3455
-934

query I rowsort
SELECT DISTINCT 69 AS col1 FROM tab2 AS cor0
----
69

query I rowsort
SELECT ALL - - 26 FROM tab0 AS cor0
----
26
26
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 15 col1 FROM tab1 AS cor0
----
15
15
15

query I rowsort
SELECT ALL - 76 + 8 FROM tab0 cor0
----
-68
-68
-68

query I rowsort
SELECT + + col0 + 16 AS col2 FROM tab1 AS cor0
----
19
80
96

query I rowsort
SELECT ALL 85 FROM tab2 cor0
----
85
85
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3504
SELECT DISTINCT - + CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-3504
SELECT DISTINCT - + CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT - 78 + col2 * - col2 FROM tab2 AS cor0
----
-1522
-754
-807

query I rowsort
SELECT - - cor0.col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL + col2 * + col2 + + cor0.col2 + col2 FROM tab2 AS cor0
----
1520
728
783

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - cor0.col0 col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT 46 AS col1 FROM tab0 cor0
----
46
46
46

query I rowsort
SELECT DISTINCT + - 95 FROM tab0 AS cor0
----
-95

onlyif mysql # use DIV operator for integer division
query I rowsort label-3511
SELECT + ( + 68 ) + + col0 DIV col2 AS col0 FROM tab1 AS cor0
----
68
68
69

skipif mysql # not compatible
query I rowsort label-3511
SELECT + ( + 68 ) + + col0 / col2 AS col0 FROM tab1 AS cor0
----
68
68
69

query I rowsort
SELECT ALL + col0 * + 34 FROM tab0 AS cor0
----
1190
3026
816

query I rowsort
SELECT DISTINCT col0 + - col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT 51 FROM tab1, tab1 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col0 col0 FROM tab2 AS cor0
----
104
117
34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3516
SELECT - ( ( - col0 ) ) + CAST( col1 AS SIGNED ) * col0 col0 FROM tab0 AS cor0
----
2088
3430
8188

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3516
SELECT - ( ( - col0 ) ) + CAST ( col1 AS INTEGER ) * col0 col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT ( + 32 + + col0 ) AS col1 FROM tab0
----
121
56
67

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0, tab2 AS cor1, tab1 AS cor2
----
972 values hashing to 75a813ebd5ec5ec2e67a66d0593ff763

onlyif mysql # use DIV operator for integer division
query I rowsort label-3519
SELECT DISTINCT - + cor0.col0 DIV ( - cor0.col0 ) + ( col2 + + cor0.col1 ) col1 FROM tab0 AS cor0
----
120
174
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3519
SELECT DISTINCT - + cor0.col0 / ( - cor0.col0 ) + ( col2 + + cor0.col1 ) col1 FROM tab0 AS cor0
----
120
174
99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3520
SELECT ALL + CAST( 78 AS SIGNED ) * col2 + ( - col2 ) AS col2 FROM tab2 AS cor0
----
2002
2079
2926

skipif mysql # not compatible
query I rowsort label-3520
SELECT ALL + CAST ( 78 AS INTEGER ) * col2 + ( - col2 ) AS col2 FROM tab2 AS cor0
----
2002
2079
2926

query I rowsort
SELECT - + 8 + 58 FROM tab2 AS cor0
----
50
50
50

query I rowsort
SELECT DISTINCT col0 + 12 FROM tab1
----
15
76
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col0 col2 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT DISTINCT - 69 FROM tab1
----
-69

query I rowsort
SELECT - col1 + - col0 AS col0 FROM tab2
----
-137
-38
-96

query IIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0, tab0 cor1
----
243 values hashing to 3e8bd9634a3f5947d8becd5f5799bb7f

query I rowsort
SELECT + - col1 AS col2 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT + col1 * col0 AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT col0 + + tab0.col2 FROM tab0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-3530
SELECT DISTINCT - 99 * col0 DIV col2 AS col1 FROM tab1
----
-111
-5
-82

skipif mysql # not compatible
query I rowsort label-3530
SELECT DISTINCT - 99 * col0 / col2 AS col1 FROM tab1
----
-111
-5
-82

query I rowsort
SELECT - 83 FROM tab0
----
-83
-83
-83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3532
SELECT + - cor0.col2 * CAST( NULL AS SIGNED ) + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3532
SELECT + - cor0.col2 * CAST ( NULL AS INTEGER ) + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 + ( col1 ) * col1 * ( - col0 ) AS col1 FROM tab2 AS cor0
----
-22848
-271577
-6758

query I rowsort
SELECT DISTINCT + col1 * - col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT - col1 + - col1 * + col2 AS col2 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT + 94 + col2 + + 59 * - col0 AS col0 FROM tab0
----
-1289
-1970
-5075

onlyif mysql # use DIV operator for integer division
query I rowsort label-3537
SELECT 88 DIV col2 + + 61 FROM tab1
----
61
62
62

skipif mysql # not compatible
query I rowsort label-3537
SELECT 88 / col2 + + 61 FROM tab1
----
61
62
62

query I rowsort
SELECT ALL 51 + + col1 FROM tab2
----
110
68
82

query I rowsort
SELECT + col1 + tab0.col1 FROM tab0
----
172
182
194

query I rowsort
SELECT - 88 + - 5 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to ea79c61f7a02d25805171f5e85229fba

query I rowsort
SELECT - 48 FROM tab0, tab1 AS cor0, tab1, tab0 AS cor1
----
81 values hashing to 70b0cff913cec85654af0aaf3f5f6d85

query I rowsort
SELECT + cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT DISTINCT cor0.col1 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT + col2 + - col1 * - col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT ALL + + col1 + + col2 AS col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT + cor0.col1 + 57 + - col0 AS col1 FROM tab2 AS cor0
----
-5
38
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-3547
SELECT + col1 * cor0.col0 + 45 DIV col0 FROM tab2 AS cor0
----
1343
223
4602

skipif mysql # not compatible
query I rowsort label-3547
SELECT + col1 * cor0.col0 + 45 / col0 FROM tab2 AS cor0
----
1343
223
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 * 26 + - col0 * - col1 col1 FROM tab1 AS cor0
----
1482
2122
3536

query I rowsort
SELECT DISTINCT - col1 - col2 FROM tab0 AS cor0
----
-119
-173
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-3550
SELECT - + col1 DIV - col0 + col2 AS col2 FROM tab1 AS cor0
----
57
62
96

skipif mysql # not compatible
query I rowsort label-3550
SELECT - + col1 / - col0 + col2 AS col2 FROM tab1 AS cor0
----
57
62
96

query I rowsort
SELECT ALL + col0 * col2 + col0 FROM tab2 AS cor0
----
196
2106
3081

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab1 AS cor2
----
972 values hashing to 635619591835474e6aa6acdff4ab166c

onlyif mysql # use DIV operator for integer division
query I rowsort label-3553
SELECT + col1 DIV - col0 + col0 * cor0.col0 * + 49 FROM tab2 AS cor0
----
2397
298116
305809

skipif mysql # not compatible
query I rowsort label-3553
SELECT + col1 / - col0 + col0 * cor0.col0 * + 49 FROM tab2 AS cor0
----
2397
298116
305809

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - ( - col0 ) col2 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT 42 AS col1 FROM tab1
----
42
42
42

query I rowsort
SELECT ALL + tab1.col1 AS col1 FROM tab1
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 22 col1 FROM tab2
----
22
22
22

query I rowsort
SELECT col0 * + col0 FROM tab1
----
4096
6400
9

query I rowsort
SELECT 87 FROM tab0
----
87
87
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-3560
SELECT + col2 DIV + col0 FROM tab2 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-3560
SELECT + col2 / + col0 FROM tab2 AS cor0
----
0
0
3

query I rowsort
SELECT - - 43 * - col0 AS col0 FROM tab0 AS cor0
----
-1032
-1505
-3827

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col0 col2 FROM tab1 AS cor0
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-3563
SELECT + + col2 DIV col2 col2 FROM tab0 cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3563
SELECT + + col2 / col2 col2 FROM tab0 cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3564
SELECT DISTINCT + col0 DIV col1 AS col0 FROM tab1 AS cor0
----
0
6

skipif mysql # not compatible
query I rowsort label-3564
SELECT DISTINCT + col0 / col1 AS col0 FROM tab1 AS cor0
----
0
6

query I rowsort
SELECT ALL + col0 AS col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT col1 + + ( col2 ) * - col1 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT ALL + - col1 + - col2 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT 4 FROM tab1
----
4
4
4

query I rowsort
SELECT - col1 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT - cor0.col1 * - col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL + cor0.col1 * col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT - col2 + + 20 * + ( col0 ) FROM tab0 AS cor0
----
1698
447
699

query I rowsort
SELECT col1 + col1 AS col0 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT - - 18 * + col2 + + col1 * - ( + 82 ) - + col1 FROM tab2 AS cor0
----
-2087
-4429
-727

query I rowsort
SELECT - + 46 + + 49 FROM tab0 AS cor0
----
3
3
3

query I rowsort
SELECT ALL 80 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query I rowsort
SELECT - col2 * - col0 + col2 AS col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT DISTINCT - cor0.col0 + - col0 * - col1 AS col2 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT - + ( + col2 ) * + col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT col0 + - col2 * + col0 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT - 3 AS col2 FROM tab0 cor0
----
-3
-3
-3

query I rowsort
SELECT - - 89 FROM tab2 AS cor0
----
89
89
89

query I rowsort
SELECT DISTINCT - col0 + - col1 AS col0 FROM tab2
----
-137
-38
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 16 * 5 col0 FROM tab2, tab2 AS cor0
----
80

query I rowsort
SELECT + 14 + - col1 FROM tab0 cor0
----
-72
-77
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-3586
SELECT + col1 + - cor0.col0 + - cor0.col0 DIV + col0 FROM tab2 AS cor0
----
-20
-63
23

skipif mysql # not compatible
query I rowsort label-3586
SELECT + col1 + - cor0.col0 + - cor0.col0 / + col0 FROM tab2 AS cor0
----
-20
-63
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-3587
SELECT - col1 * - 59 + - col0 DIV ( 8 ) AS col2 FROM tab0 cor0
----
5071
5358
5719

skipif mysql # not compatible
query I rowsort label-3587
SELECT - col1 * - 59 + - col0 / ( 8 ) AS col2 FROM tab0 cor0
----
5071
5358
5719

query I rowsort
SELECT - + cor0.col0 * col1 + col0 AS col1 FROM tab1 AS cor0
----
-576
-75
-960

query IIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
243 values hashing to 6506b295d3a7bcc5ed65956f5b4e38b0

query I rowsort
SELECT DISTINCT ( + col0 ) FROM tab2
----
7
78
79

query IIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
243 values hashing to ce53c0e8839c969b0513568da6eb2c4b

onlyif mysql # use DIV operator for integer division
query I rowsort label-3592
SELECT + 58 DIV col1 FROM tab2 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-3592
SELECT + 58 / col1 FROM tab2 AS cor0
----
0
1
3

query I rowsort
SELECT DISTINCT - + col2 * + col2 - col1 AS col0 FROM tab0 AS cor0
----
-1175
-6815
-98

query I rowsort
SELECT + col2 + col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL + cor0.col2 * - col1 * col2 + - col0 FROM tab0 AS cor0
----
-132
-611973
-93678

query I rowsort
SELECT - col0 * + col0 - col0 AS col0 FROM tab0 AS cor0
----
-1260
-600
-8010

query I rowsort
SELECT DISTINCT + col2 - col0 * 59 FROM tab2 AS cor0
----
-386
-4576
-4623

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3598
SELECT - col1 + + cor0.col1 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3598
SELECT - col1 + + cor0.col1 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 77 * + col0 FROM tab0 AS cor0
----
1848
2695
6853

query I rowsort
SELECT + cor0.col2 * + col1 + 12 * + col1 AS col0 FROM tab0 cor0
----
1261
3870
8554

query I rowsort
SELECT 2 FROM tab0 AS cor0
----
2
2
2

query I rowsort
SELECT - cor0.col0 AS col2 FROM tab0 AS cor0
----
-24
-35
-89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3603
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3603
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3604
SELECT CAST( NULL AS SIGNED ) / 34 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3604
SELECT CAST ( NULL AS INTEGER ) / 34 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3605
SELECT + col1 * col2 DIV + col0 AS col1 FROM tab2
----
119
19
8

skipif mysql # not compatible
query I rowsort label-3605
SELECT + col1 * col2 / + col0 AS col1 FROM tab2
----
119
19
8

query I rowsort
SELECT DISTINCT - col1 * - col0 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT ALL + - col0 + + col1 AS col2 FROM tab0 cor0
----
2
62
62

query I rowsort
SELECT ALL + col2 + cor0.col1 * + ( + 92 ) AS col0 FROM tab2 AS cor0
----
1602
2879
5454

query I rowsort
SELECT ALL col0 * + col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - col1 - - col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT 81 AS col2 FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3612
SELECT DISTINCT - - col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3612
SELECT DISTINCT - - col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col2 * - col1 AS col0 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT 57 AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT ALL cor0.col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT cor0.col1 AS col0 FROM tab1, tab0 AS cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 3 * + 48 col0 FROM tab0 AS cor0
----
-144
-144
-144

query I rowsort
SELECT - cor0.col2 * col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT - col1 + 6 * col1 FROM tab1 cor0
----
130
50
65

query I rowsort
SELECT DISTINCT + col1 - - col0 AS col1 FROM tab0
----
110
132
180

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3621
SELECT ALL CAST( NULL AS SIGNED ) * ( col1 * 69 ) - 95 * col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3621
SELECT ALL CAST ( NULL AS INTEGER ) * ( col1 * 69 ) - 95 * col0 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( col1 ) FROM tab2
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-3623
SELECT col0 DIV + col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3623
SELECT col0 / + col0 FROM tab2
----
1
1
1

query I rowsort
SELECT - ( + col1 ) * col0 AS col1 FROM tab0
----
-2064
-3395
-8099

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab2 AS cor1, tab2 AS cor2
----
972 values hashing to f94a4a64ac54a61fc21f78e2b831ebee

query I rowsort
SELECT + + col0 * col2 AS col0 FROM tab1 cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-3627
SELECT - ( + cor0.col2 ) DIV - col0 - + col2 AS col2 FROM tab2 AS cor0
----
-24
-26
-38

skipif mysql # not compatible
query I rowsort label-3627
SELECT - ( + cor0.col2 ) / - col0 - + col2 AS col2 FROM tab2 AS cor0
----
-24
-26
-38

query I rowsort
SELECT - col1 + + cor0.col1 AS col0 FROM tab1 cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3629
SELECT + CAST( NULL AS DECIMAL ) * + col0 - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3629
SELECT + CAST ( NULL AS REAL ) * + col0 - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 + col1 - col1 FROM tab2 AS cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-3631
SELECT DISTINCT cor0.col1 + col0 DIV 82 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-3631
SELECT DISTINCT cor0.col1 + col0 / 82 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT + col2 + col2 AS col2 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT - col2 + + col1 FROM tab1 cor0
----
-28
-47
-83

query I rowsort
SELECT + + col1 * 17 * 20 AS col0 FROM tab0 AS cor0
----
29240
30940
32980

query I rowsort
SELECT - col0 * - col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab1 AS cor0
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3637
SELECT DISTINCT col0 + ( + col1 ) * col2 DIV 96 FROM tab0 AS cor0
----
166
36
53

skipif mysql # not compatible
query I rowsort label-3637
SELECT DISTINCT col0 + ( + col1 ) * col2 / 96 FROM tab0 AS cor0
----
166
36
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 + - col1 * + 64 + + col2 col2 FROM tab0 AS cor0
----
-5504
-5824
-6208

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col2 col1 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT ALL - - col1 AS col2 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT + col1 + cor0.col0 AS col2 FROM tab0 AS cor0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-3642
SELECT ALL - col0 DIV ( col0 ) + - col2 AS col2 FROM tab0 AS cor0
----
-2
-34
-83

skipif mysql # not compatible
query I rowsort label-3642
SELECT ALL - col0 / ( col0 ) + - col2 AS col2 FROM tab0 AS cor0
----
-2
-34
-83

query I rowsort
SELECT + col2 * 44 FROM tab2 cor0
----
1144
1188
1672

query I rowsort
SELECT + cor0.col2 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT ALL cor0.col1 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT + 67 FROM tab0
----
67
67
67

query I rowsort
SELECT 10 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176

query I rowsort
SELECT ALL + tab2.col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query IIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 cor1
----
243 values hashing to 26173f1193178352de9a2e4ca7f09d53

query I rowsort
SELECT DISTINCT + 98 FROM tab0, tab2 AS cor0
----
98

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 cor0, tab1, tab2 AS cor1
----
972 values hashing to 01a5931cccc3dad8792a1bc6df09c614

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 + col0 + - col1 * + col2 AS col2 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT ALL - col1 + - 77 AS col1 FROM tab1 cor0
----
-103
-87
-90

query I rowsort
SELECT DISTINCT + col1 + - 90 AS col0 FROM tab1 AS cor0
----
-64
-77
-80

query I rowsort
SELECT ALL - col2 * 80 * 29 FROM tab2 AS cor0
----
-60320
-62640
-88160

query I rowsort
SELECT DISTINCT + col0 + - tab0.col1 * tab0.col1 FROM tab0
----
-7372
-8192
-9374

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + - col1 * - col0 col2 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT ALL col1 + - cor0.col0 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT DISTINCT + - col1 + col1 * col0 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT + 12 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT DISTINCT - ( - col2 ) * - col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT + ( - col2 ) + + col1 + 20 * - col0 FROM tab1 AS cor0
----
-1327
-1683
-88

query I rowsort
SELECT ALL 96 * - col1 AS col0 FROM tab1
----
-1248
-2496
-960

query I rowsort
SELECT col1 + + tab0.col1 FROM tab0
----
172
182
194

query I rowsort
SELECT - 74 FROM tab0 AS cor0
----
-74
-74
-74

query I rowsort
SELECT 98 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2

query I rowsort
SELECT DISTINCT 23 FROM tab1
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col0 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT + ( + col2 ) + 37 AS col2 FROM tab1 AS cor0
----
133
91
94

query I rowsort
SELECT DISTINCT + + ( col0 ) + + 60 FROM tab0 AS cor0
----
149
84
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 61 col1 FROM tab0 AS cor0
----
61
61
61

query I rowsort
SELECT ALL + cor0.col1 AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT ALL - - ( - col2 ) * + 21 + 75 FROM tab0 AS cor0
----
-1647
-618
54

query I rowsort
SELECT ALL + + col2 + col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT DISTINCT tab2.col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
17
31
59

query I rowsort
SELECT - cor0.col0 AS col0 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT ALL - cor0.col0 * - col0 AS col2 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT DISTINCT - 54 AS col1 FROM tab2 AS cor0
----
-54

query I rowsort
SELECT DISTINCT 44 + col2 AS col2 FROM tab1 cor0
----
101
140
98

query I rowsort
SELECT - 38 AS col1 FROM tab2 AS cor0
----
-38
-38
-38

query I rowsort
SELECT ALL + cor0.col0 * cor0.col1 AS col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT + 5 * - col0 + + ( + 29 ) + col0 AS col0 FROM tab1 AS cor0
----
-227
-291
17

query I rowsort
SELECT ( cor0.col0 ) * - cor0.col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL - - cor0.col0 AS col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT + col1 * col1 AS col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT 67 AS col0 FROM tab2 AS cor0
----
67
67
67

query I rowsort
SELECT + col0 * - col1 + - 2 AS col0 FROM tab0 cor0
----
-2066
-3397
-8101

onlyif mysql # use DIV operator for integer division
query I rowsort label-3689
SELECT - col0 DIV 28 AS col0 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-3689
SELECT - col0 / 28 AS col0 FROM tab0 AS cor0
----
-1
-3
0

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab2 cor1, tab1, tab0 AS cor2
----
3645 values hashing to 9d746e15fdb5adcb43a7518cd9743eb3

query I rowsort
SELECT - + cor0.col0 AS col2 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT + col2 + - col2 * col1 AS col2 FROM tab0 AS cor0
----
-2805
-7380
-96

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0, tab0 AS cor1, tab2 AS cor2
----
972 values hashing to a9068b700464993db9fae6f630605fde

query I rowsort
SELECT tab2.col1 FROM tab2, tab0, tab2 cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT + col1 * col1 * - col0 FROM tab1
----
-13520
-2028
-6400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( col1 ) + col0 col1 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT + col1 * + col2 AS col1 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT col0 * + 74 FROM tab1 AS cor0
----
222
4736
5920

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3699
SELECT - col2 + - col2 * col2 * - CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3699
SELECT - col2 + - col2 * col2 * - CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 82 AS col0 FROM tab0 AS cor0
----
82
82
82

query I rowsort
SELECT DISTINCT + + ( col0 ) + col0 * col1 * + col0 FROM tab1 AS cor0
----
237
41024
83280

query I rowsort
SELECT + 92 * col2 * col0 FROM tab1 AS cor0
----
14904
335616
706560

query I rowsort
SELECT + col0 + - col1 + - ( col1 + col2 ) FROM tab1 AS cor0
----
-103
-13
-42

query I rowsort
SELECT + - 47 * cor0.col1 FROM tab1 AS cor0
----
-1222
-470
-611

query I rowsort
SELECT - col0 + - col2 - col2 * col2 FROM tab2 AS cor0
----
-1561
-763
-780

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3706
SELECT + 32 + col0 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3706
SELECT + 32 + col0 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3707
SELECT - col1 * - col2 + + ( + col2 ) + - cor0.col2 DIV - col0 AS col0 FROM tab2 AS cor0
----
1560
684
867

skipif mysql # not compatible
query I rowsort label-3707
SELECT - col1 * - col2 + + ( + col2 ) + - cor0.col2 / - col0 AS col0 FROM tab2 AS cor0
----
1560
684
867

query I rowsort
SELECT + 8 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af

query I rowsort
SELECT ALL tab1.col1 + col0 * col2 + col1 FROM tab1
----
214
3668
7706

query I rowsort
SELECT ALL - tab1.col0 + - 50 AS col0 FROM tab1
----
-114
-130
-53

query I rowsort
SELECT tab1.col2 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

onlyif mysql # use DIV operator for integer division
query I rowsort label-3712
SELECT DISTINCT - col2 * 18 + col1 DIV - CAST( - 77 AS SIGNED ) FROM tab2
----
-468
-486
-684

skipif mysql # not compatible
query I rowsort label-3712
SELECT DISTINCT - col2 * 18 + col1 / - CAST ( - 77 AS INTEGER ) FROM tab2
----
-468
-486
-684

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3713
SELECT ALL - ( col1 ) + col1 * CAST( NULL AS SIGNED ) * 42 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3713
SELECT ALL - ( col1 ) + col1 * CAST ( NULL AS INTEGER ) * 42 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( ( + col1 ) ) * - col2 + - tab0.col0 * - col0 * + col0 FROM tab0
----
16662
42972
712431

query I rowsort
SELECT col0 + col0 + + col1 * 95 FROM tab2
----
1773
2959
5761

query I rowsort
SELECT tab1.col1 * + 12 AS col0 FROM tab1
----
120
156
312

query I rowsort
SELECT ALL col1 + - col0 FROM tab1
----
-54
-67
23

query I rowsort
SELECT + cor1.col2 AS col1 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * col0 + - col1 * + col1 + - col0 col0 FROM tab0 cor0
----
-12839
-16469
-9484

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * 99 + col1 col2 FROM tab2 AS cor0
----
-2515
-2642
-3745

query I rowsort
SELECT ALL col2 * - cor0.col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT - tab1.col0 * - col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT + 25 + cor0.col2 FROM tab0 AS cor0
----
107
26
58

query I rowsort
SELECT + - ( col0 ) + + col1 * - 37 AS col1 FROM tab2 AS cor0
----
-1154
-2261
-708

query I rowsort
SELECT ALL cor0.col0 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT DISTINCT - 37 + col2 AS col0 FROM tab1 AS cor0
----
17
20
59

query I rowsort
SELECT 58 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query I rowsort
SELECT - col2 * + col1 AS col1 FROM tab0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col0 FROM tab0
----
1
33
82

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0, tab2, tab1 AS cor1
----
972 values hashing to 9364ef7545b07c67767dceb70f02c643

onlyif mysql # use DIV operator for integer division
query I rowsort label-3731
SELECT 2 DIV 59 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-3731
SELECT 2 / 59 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL + col2 * col0 + tab0.col0 FROM tab0
----
70
7387
816

query I rowsort
SELECT ( + col1 ) * + col2 AS col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT ALL col0 + col2 FROM tab1
----
121
176
57

query I rowsort
SELECT ( + col2 ) + - col0 * 4 FROM tab2
----
-1
-278
-286

query I rowsort
SELECT DISTINCT - 75 AS col1 FROM tab2
----
-75

query I rowsort
SELECT 94 FROM tab1
----
94
94
94

query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 cor0, tab0 cor1
----
243 values hashing to b3323704f6873113d863f8e27386b356

query I rowsort
SELECT cor0.col2 * + 5 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to eb014d3b44bcefac101824b69ab75e3d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col1 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT ALL 31 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query I rowsort
SELECT - col1 * - cor0.col0 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT + 5 FROM tab0
----
5
5
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col0 col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT ALL 10 FROM tab0
----
10
10
10

query I rowsort
SELECT - + col1 * cor0.col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT - col2 + + col2 * - ( col0 ) AS col2 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT - + cor0.col2 + 56 AS col1 FROM tab2 AS cor0
----
18
29
30

onlyif mysql # use DIV operator for integer division
query I rowsort label-3749
SELECT + + col2 * 14 DIV - col1 - + col0 AS col1 FROM tab1 cor0
----
-143
-183
-32

skipif mysql # not compatible
query I rowsort label-3749
SELECT + + col2 * 14 / - col1 - + col0 AS col1 FROM tab1 cor0
----
-143
-183
-32

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3750
SELECT col1 + CAST( + col0 AS SIGNED ) * col0 FROM tab0 AS cor0
----
1322
662
8012

skipif mysql # not compatible
query I rowsort label-3750
SELECT col1 + CAST ( + col0 AS INTEGER ) * col0 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT - - col0 + col2 FROM tab2 cor0
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col0 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT DISTINCT col1 + col2 AS col0 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL cor0.col1 - - 89 * col2 AS col0 FROM tab0 AS cor0
----
186
3023
7389

query I rowsort
SELECT ALL + col1 * ( - 44 ) * col1 - + 9 AS col0 FROM tab2 AS cor0
----
-12725
-153173
-42293

query I rowsort
SELECT cor0.col1 + + cor0.col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT ALL + cor0.col2 AS col0 FROM tab2 AS cor0
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-3758
SELECT DISTINCT + + col1 DIV - ( col1 ) + - cor0.col1 AS col2 FROM tab1 AS cor0
----
-11
-14
-27

skipif mysql # not compatible
query I rowsort label-3758
SELECT DISTINCT + + col1 / - ( col1 ) + - cor0.col1 AS col2 FROM tab1 AS cor0
----
-11
-14
-27

query I rowsort
SELECT + col2 - - col1 AS col1 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT - col1 * + col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT tab1.col1 + ( - ( + col0 ) ) AS col1 FROM tab1
----
-54
-67
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 82 - 52 col0 FROM tab2
----
108
109
37

query I rowsort
SELECT DISTINCT col1 + 39 - ( col1 ) * + col1 FROM tab1
----
-117
-51
-611

query I rowsort
SELECT DISTINCT col1 - - col1 AS col1 FROM tab0
----
172
182
194

query I rowsort
SELECT ALL col0 * 87 FROM tab2 AS cor0
----
609
6786
6873

query I rowsort
SELECT - col0 + 9 AS col0 FROM tab2 cor0
----
-69
-70
2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3767
SELECT + - col1 * CAST( - col2 * - col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-119808
-32490
-75816

skipif mysql # not compatible
query I rowsort label-3767
SELECT + - col1 * CAST ( - col2 * - col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-119808
-32490
-75816

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0, tab2 AS cor1, tab1 AS cor2
----
972 values hashing to 9364ef7545b07c67767dceb70f02c643

query I rowsort
SELECT ALL - col0 * ( + col0 ) FROM tab1 AS cor0
----
-4096
-6400
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT + 33 AS col0 FROM tab1 cor0
----
33

query I rowsort
SELECT DISTINCT - + ( col0 ) FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ALL col2 * ( col0 ) FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-3774
SELECT ALL - col1 DIV - col2 FROM tab0 cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-3774
SELECT ALL - col1 / - col2 FROM tab0 cor0
----
1
2
97

query I rowsort
SELECT + - col0 + + ( col1 ) * - 75 FROM tab2 cor0
----
-1354
-2332
-4503

query I rowsort
SELECT DISTINCT - 8 AS col2 FROM tab0 AS cor0
----
-8

query I rowsort
SELECT + col0 - - col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT - ( 13 ) * col1 - + col2 * - 89 * col0 FROM tab2 AS cor0
----
16418
179725
266957

query I rowsort
SELECT ALL + ( - col1 ) + cor0.col2 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT DISTINCT - + col0 * + 51 FROM tab1 AS cor0
----
-153
-3264
-4080

query I rowsort
SELECT DISTINCT - col0 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT - 42 + + col1 * col0 * 56 FROM tab2 AS cor0
----
12110
257670
75166

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * col0 col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL - 6 + + col2 FROM tab2 AS cor0
----
20
21
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-3785
SELECT DISTINCT + 5 DIV col1 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3785
SELECT DISTINCT + 5 / col1 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - - 27 AS col2 FROM tab0 AS cor0
----
27
27
27

query I rowsort
SELECT ALL 58 AS col0 FROM tab0 cor0
----
58
58
58

query I rowsort
SELECT - col1 * ( col1 * + 46 + col1 ) AS col2 FROM tab2 AS cor0
----
-13583
-163607
-45167

query I rowsort
SELECT DISTINCT + tab0.col0 - col2 AS col0 FROM tab0
----
-9
34
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3790
SELECT ALL + CAST( NULL AS SIGNED ) + + col0 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3790
SELECT ALL + CAST ( NULL AS INTEGER ) + + col0 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * col2 + col2 AS col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT + col0 * col2 + - col2 * col2 FROM tab1 AS cor0
----
-1536
-2754
399

query I rowsort
SELECT DISTINCT + ( 88 ) + col1 FROM tab2 AS cor0
----
105
119
147

query I rowsort
SELECT ALL 94 - col2 AS col1 FROM tab2 AS cor0
----
56
67
68

query I rowsort
SELECT - col1 + - col1 AS col0 FROM tab0 AS cor0
----
-172
-182
-194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col2 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT - 6 AS col2 FROM tab0 AS cor0
----
-6
-6
-6

query I rowsort
SELECT - + col0 + col2 FROM tab1 cor0
----
-7
16
51

query I rowsort
SELECT ALL + col2 + col0 AS col2 FROM tab0 cor0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col2 col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT 19 AS col0 FROM tab1 AS cor0
----
19
19
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 col2 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT - col2 + + cor0.col2 FROM tab1 cor0
----
0

query I rowsort
SELECT DISTINCT col2 * - col1 + - ( + 3 ) + col0 AS col0 FROM tab0 AS cor0
----
-2817
-65
-7376

query I rowsort
SELECT ALL col2 + col2 * + col1 FROM tab0 AS cor0
----
2871
7544
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 43 * + col1 col2 FROM tab0
----
3698
3913
4171

query I rowsort
SELECT DISTINCT 95 FROM tab1
----
95

query I rowsort
SELECT ALL + 80 AS col0 FROM tab0 AS cor0
----
80
80
80

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 DISTINCT col0 + col0 AS col1 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT DISTINCT col0 + col1 * ( - col1 ) FROM tab2 AS cor0
----
-210
-3403
-954

query I rowsort
SELECT col1 + col2 + 77 * col0 FROM tab1 AS cor0
----
311
4995
6269

query I rowsort
SELECT ALL + col0 * + col0 + 85 FROM tab1 cor0
----
4181
6485
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-3814
SELECT col0 DIV - ( col1 ) AS col1 FROM tab1 AS cor0
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-3814
SELECT col0 / - ( col1 ) AS col1 FROM tab1 AS cor0
----
-6
-6
0

query I rowsort
SELECT DISTINCT + col2 + - col1 * col2 * col0 FROM tab1 AS cor0
----
-36423
-4158
-99744

query I rowsort
SELECT ALL col0 * - 24 AS col2 FROM tab2 AS cor0
----
-168
-1872
-1896

query I rowsort
SELECT ALL col0 * + cor0.col0 + - ( col0 ) AS col0 FROM tab1 AS cor0
----
4032
6
6320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 4 col0 FROM tab0
----
4
4
4

query I rowsort
SELECT DISTINCT 67 AS col0 FROM tab2
----
67

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0, tab2, tab0 AS cor1
----
972 values hashing to 9345325155d9f4d7dc4986690c631cb9

query I rowsort
SELECT 64 - + col2 FROM tab0
----
-18
31
63

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3822
SELECT ALL - + CAST( 13 AS SIGNED ) + cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e0f802f3b3140051d933b924ef174d18

skipif mysql # not compatible
query I rowsort label-3822
SELECT ALL - + CAST ( 13 AS INTEGER ) + cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e0f802f3b3140051d933b924ef174d18

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( col0 AS REAL ) FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT + ( - col1 ) + col2 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT ALL - col1 + + ( col0 ) AS col2 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT - col2 + - col1 AS col0 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT DISTINCT - col0 + + col2 FROM tab1 cor0
----
-7
16
51

query I rowsort
SELECT DISTINCT + + 64 AS col1 FROM tab1 AS cor0
----
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col1 + col0 + - col1 col2 FROM tab0 AS cor0
----
2776
35
7460

onlyif mysql # use DIV operator for integer division
query I rowsort label-3830
SELECT col1 + col0 DIV col1 AS col0 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-3830
SELECT col1 + col0 / col1 AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT - col2 + - cor0.col2 FROM tab1 AS cor0
----
-108
-114
-192

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 cor0.col0 * 11 FROM tab1 AS cor0
----
33
704
880

query I rowsort
SELECT ALL - 43 * 68 + col0 FROM tab1 cor0
----
-2844
-2860
-2921

query I rowsort
SELECT 43 FROM tab0 AS cor0
----
43
43
43

query I rowsort
SELECT cor0.col2 * - 13 + col1 AS col2 FROM tab0 AS cor0
----
-343
-975
84

query I rowsort
SELECT DISTINCT - col2 + col0 AS col1 FROM tab2
----
-20
41
52

query I rowsort
SELECT - col1 * col0 + col1 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT DISTINCT tab0.col0 FROM tab0, tab1 AS cor0
----
24
35
89

query I rowsort
SELECT col1 + + col0 FROM tab1
----
29
74
93

query I rowsort
SELECT + cor0.col0 + col0 * col2 FROM tab1 AS cor0
----
165
3712
7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-3842
SELECT ALL - + 64 DIV + cor0.col1 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3842
SELECT ALL - + 64 / + cor0.col1 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT cor0.col2 + col1 * - col2 AS col0 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT DISTINCT - 41 + 85 FROM tab1 AS cor0
----
44

onlyif mysql # use DIV operator for integer division
query I rowsort label-3845
SELECT ALL - col2 DIV + col0 AS col2 FROM tab1 cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-3845
SELECT ALL - col2 / + col0 AS col2 FROM tab1 cor0
----
-1
-18
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3846
SELECT + 75 + col0 DIV col2 FROM tab0 AS cor0
----
110
75
76

skipif mysql # not compatible
query I rowsort label-3846
SELECT + 75 + col0 / col2 FROM tab0 AS cor0
----
110
75
76

query I rowsort
SELECT DISTINCT + 76 FROM tab2 AS cor0
----
76

query I rowsort
SELECT ALL + 14 AS col1 FROM tab0 AS cor0
----
14
14
14

query I rowsort
SELECT DISTINCT + 44 + cor0.col1 FROM tab2 AS cor0
----
103
61
75

query I rowsort
SELECT ALL + - 60 FROM tab0 AS cor0
----
-60
-60
-60

query I rowsort
SELECT + 4 * + col1 + col2 AS col1 FROM tab1 AS cor0
----
148
158
97

query I rowsort
SELECT + ( col2 ) * col1 FROM tab2
----
1534
646
837

query I rowsort
SELECT + col1 * - col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT 12 AS col0 FROM tab2, 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-3855
SELECT ALL CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3855
SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3856
SELECT - 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-3856
SELECT - CAST ( NULL AS INTEGER ) col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3857
SELECT 42 + + col1 DIV col0 FROM tab2
----
42
42
46

skipif mysql # not compatible
query I rowsort label-3857
SELECT 42 + + col1 / col0 FROM tab2
----
42
42
46

query I rowsort
SELECT ALL cor0.col1 AS col0 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT 92 FROM tab0, tab2 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

onlyif mysql # use DIV operator for integer division
query I rowsort label-3860
SELECT ALL - col1 DIV 44 FROM tab0 AS cor0
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-3860
SELECT ALL - col1 / 44 FROM tab0 AS cor0
----
-1
-2
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col1 col1 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT ALL cor0.col0 * 86 AS col2 FROM tab2 AS cor0
----
602
6708
6794

onlyif mysql # use DIV operator for integer division
query I rowsort label-3863
SELECT DISTINCT col0 DIV cor0.col2 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-3863
SELECT DISTINCT col0 / cor0.col2 FROM tab0 AS cor0
----
0
1
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-3864
SELECT DISTINCT - col1 + - ( - col1 ) DIV - col0 FROM tab2 AS cor0
----
-17
-35
-59

skipif mysql # not compatible
query I rowsort label-3864
SELECT DISTINCT - col1 + - ( - col1 ) / - col0 FROM tab2 AS cor0
----
-17
-35
-59

query I rowsort
SELECT DISTINCT - cor0.col2 AS col0 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT + col1 - col0 AS col0 FROM tab0
----
2
62
62

query I rowsort
SELECT ALL + col1 - + col2 AS col1 FROM tab2
----
-21
33
4

query I rowsort
SELECT DISTINCT - col0 * col0 + - col1 AS col1 FROM tab2
----
-6143
-6258
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3869
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3869
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL col2 + + col2 FROM tab0
----
164
2
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-3871
SELECT - col0 + + ( col1 ) DIV tab0.col0 col0 FROM tab0
----
-21
-33
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3871
SELECT - col0 + + ( col1 ) / tab0.col0 col0 FROM tab0
----
-21
-33
-88

query I rowsort
SELECT ALL + col0 + - col1 AS col0 FROM tab1
----
-23
54
67

query I rowsort
SELECT DISTINCT + tab1.col2 + col1 FROM tab1
----
109
67
80

query I rowsort
SELECT + col2 * ( + col1 * + col0 ) - + tab0.col0 * + col1 FROM tab0
----
0
656019
66048

query I rowsort
SELECT ALL col2 + col1 AS col0 FROM tab2
----
55
58
85

query I rowsort
SELECT DISTINCT col1 + col2 * + col0 FROM tab2
----
2087
220
3019

query I rowsort
SELECT - col0 * 69 AS col2 FROM tab1
----
-207
-4416
-5520

onlyif mysql # use DIV operator for integer division
query I rowsort label-3878
SELECT + col1 DIV ( col0 ) + + col2 - ( 88 ) * - col1 * - col2 AS col0 FROM tab1
----
-109728
-123490
-50103

skipif mysql # not compatible
query I rowsort label-3878
SELECT + col1 / ( col0 ) + + col2 - ( 88 ) * - col1 * - col2 AS col0 FROM tab1
----
-109728
-123490
-50103

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 cor0, tab2 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to 4805bcb9c04e49d1f6f82defa880d751

query I rowsort
SELECT ALL + + col2 + + cor0.col2 AS col0 FROM tab1 cor0
----
108
114
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col1 FROM tab2 AS cor0
----
-17
-31
-59

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 cor0, tab0 AS cor1, tab1, tab0 cor2
----
3645 values hashing to 5d94dfd9164033b5a92f743be8139ecc

query I rowsort
SELECT + cor0.col1 + + col1 AS col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT ALL col1 + + col0 FROM tab2
----
137
38
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT ALL col1 * CAST ( - col0 AS REAL ) + - col0 col0 FROM tab0
----
-2088
-3430
-8188

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3886
SELECT ALL - col1 + + CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3886
SELECT ALL - col1 + + CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 * col2 + + col2 AS col1 FROM tab2
----
-1406
-650
-702

query I rowsort
SELECT ALL - cor0.col1 * + 39 + col0 * cor0.col1 FROM tab1 cor0
----
-936
250
533

query IIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0, tab0 cor1
----
243 values hashing to 3581f59ff9574f9d6290fc6bca0b5e4d

onlyif mysql # use DIV operator for integer division
query I rowsort label-3890
SELECT DISTINCT + col0 DIV - 49 + col0 AS col1 FROM tab2
----
7
77
78

skipif mysql # not compatible
query I rowsort label-3890
SELECT DISTINCT + col0 / - 49 + col0 AS col1 FROM tab2
----
7
77
78

query I rowsort
SELECT - col0 * - col2 AS col2 FROM tab2 cor0
----
189
2028
3002

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + col1 AS REAL ) + col0 * col0 + - col1 AS col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT + - 82 * - col2 FROM tab2 AS cor0
----
2132
2214
3116

query I rowsort
SELECT 81 * + cor0.col0 + + col0 FROM tab2 AS cor0
----
574
6396
6478

query I rowsort
SELECT - col1 * - 86 FROM tab0
----
7396
7826
8342

query I rowsort
SELECT tab1.col1 + - col1 + col0 FROM tab1
----
3
64
80

query I rowsort
SELECT DISTINCT 93 FROM tab0
----
93

query I rowsort
SELECT 3 * col1 AS col1 FROM tab1
----
30
39
78

query I rowsort
SELECT DISTINCT - ( ( col1 ) ) * col1 AS col1 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT - col2 * + 10 FROM tab1
----
-540
-570
-960

query I rowsort
SELECT ( col2 ) * + col0 FROM tab2
----
189
2028
3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3902
SELECT + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3902
SELECT + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 72 + col0 AS col0 FROM tab0 AS cor0
----
107
161
96

query I rowsort
SELECT ALL col2 + col0 AS col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT + cor0.col2 - - col1 AS col0 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT - 72 AS col0 FROM tab2 AS cor0
----
-72
-72
-72

query I rowsort
SELECT 81 AS col0 FROM tab1
----
81
81
81

query I rowsort
SELECT + 4 FROM tab1
----
4
4
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 62 col0 FROM tab0
----
62
62
62

query I rowsort
SELECT + 92 FROM tab2
----
92
92
92

query I rowsort
SELECT DISTINCT - 10 * - col1 AS col1 FROM tab0
----
860
910
970

query I rowsort
SELECT DISTINCT ( + col2 ) FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT - cor0.col2 + col1 * - 16 FROM tab1 cor0
----
-217
-304
-470

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3914
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-3914
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL - 1 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9

query I rowsort
SELECT ALL + 43 FROM tab2
----
43
43
43

query I rowsort
SELECT - cor0.col1 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

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 DISTINCT + col1 * ( col0 ) FROM tab0 AS cor0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col2 FROM tab1 cor0
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3921
SELECT col2 DIV 61 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3921
SELECT col2 / 61 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 * + cor0.col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT col1 * + col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT col1 + - col2 * + col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT ALL - cor0.col2 * + col2 * cor0.col1 FROM tab2 AS cor0
----
-22599
-24548
-39884

query I rowsort
SELECT ALL + col1 * 80 FROM tab2 AS cor0
----
1360
2480
4720

onlyif mysql # use DIV operator for integer division
query I rowsort label-3927
SELECT DISTINCT + col2 DIV col0 col0 FROM tab0 AS cor0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3927
SELECT DISTINCT + col2 / col0 col0 FROM tab0 AS cor0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * - col1 col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL col0 + 41 AS col1 FROM tab2 AS cor0
----
119
120
48

query I rowsort
SELECT - cor0.col0 * + 95 AS col2 FROM tab1 AS cor0
----
-285
-6080
-7600

query I rowsort
SELECT 41 + tab2.col1 * - col1 AS col2 FROM tab2
----
-248
-3440
-920

query I rowsort
SELECT DISTINCT 30 AS col1 FROM tab2
----
30

query I rowsort
SELECT + cor0.col1 - - 14 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to bb68604ef1f6f68c2910791e2bf2607b

query I rowsort
SELECT - - col2 * + col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT + col2 + 38 AS col1 FROM tab0 AS cor0
----
120
39
71

query I rowsort
SELECT + col1 * col1 - - col0 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT 15 * col1 - col0 AS col0 FROM tab2 AS cor0
----
176
458
807

query I rowsort
SELECT - col1 * + col1 - col2 * + col0 FROM tab0 AS cor0
----
-15579
-8188
-9444

query I rowsort
SELECT ALL + 65 FROM tab1 AS cor0
----
65
65
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-3940
SELECT - tab0.col1 DIV col1 AS col2 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3940
SELECT - tab0.col1 / col1 AS col2 FROM tab0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 90 col2 FROM tab1
----
-90
-90
-90

query I rowsort
SELECT ALL - col0 AS col2 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT col1 * - col2 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT ALL - + cor0.col1 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT - col1 + col1 + - ( cor0.col0 * - col2 ) AS col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT + col2 * - 94 + 90 FROM tab0 AS cor0
----
-3012
-4
-7618

query I rowsort
SELECT + + col1 * col1 AS col2 FROM tab1 AS cor0
----
100
169
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-3948
SELECT col1 DIV 36 + - 71 FROM tab2 AS cor0
----
-70
-71
-71

skipif mysql # not compatible
query I rowsort label-3948
SELECT col1 / 36 + - 71 FROM tab2 AS cor0
----
-70
-71
-71

onlyif mysql # use DIV operator for integer division
query I rowsort label-3949
SELECT col1 DIV col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3949
SELECT col1 / col1 FROM tab1
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col1 col2 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT - col2 - - tab2.col2 AS col1 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col0 * tab1.col2 col0 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT ALL 17 AS col1 FROM tab1
----
17
17
17

query I rowsort
SELECT DISTINCT col0 * - tab2.col1 FROM tab2
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort
SELECT col2 * + tab1.col2 + CAST ( - 96 AS REAL ) - + col2 * ( - col1 + col1 * - col2 ) FROM tab1
----
130176
36213
80040

query I rowsort
SELECT + col0 - col1 AS col2 FROM tab0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT 61 FROM tab1, tab2 cor0
----
61

query I rowsort
SELECT + 64 * 88 + - col2 FROM tab2 cor0
----
5594
5605
5606

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab0 AS cor0
----
86
91
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3960
SELECT - CAST( NULL AS DECIMAL ) * - cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3960
SELECT - CAST ( NULL AS REAL ) * - cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( 23 ) AS col1 FROM tab2 cor0
----
23
23
23

query I rowsort
SELECT ALL + 79 AS col2 FROM tab1, tab2 cor0, tab1 AS cor1
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1

query I rowsort
SELECT DISTINCT - tab0.col2 FROM tab0, tab1, tab1 AS cor0
----
-1
-33
-82

query I rowsort
SELECT + ( col1 + col1 ) FROM tab0
----
172
182
194

query I rowsort
SELECT DISTINCT - ( tab1.col1 ) AS col2 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT - 24 FROM tab2 AS cor0
----
-24
-24
-24

query I rowsort
SELECT 67 + - col0 FROM tab0 AS cor0
----
-22
32
43

query I rowsort
SELECT + - 64 + 60 AS col2 FROM tab2 AS cor0
----
-4
-4
-4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3969
SELECT + - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3969
SELECT + - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 - + col2 * col2 FROM tab0
----
-1003
-6633
96

query I rowsort
SELECT ALL 42 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

onlyif mysql # use DIV operator for integer division
query I rowsort label-3972
SELECT ALL col1 DIV - 53 col2 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3972
SELECT ALL col1 / - 53 col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL 27 + + col1 FROM tab2 AS cor0
----
44
58
86

query I rowsort
SELECT DISTINCT + cor0.col1 AS col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT 13 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col2 col0 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT 81 FROM tab0
----
81

query I rowsort
SELECT - col0 * 86 FROM tab1 AS cor0
----
-258
-5504
-6880

query I rowsort
SELECT - 10 * cor0.col0 FROM tab2 cor0
----
-70
-780
-790

query I rowsort
SELECT - 80 FROM tab2, tab1 AS cor0
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

query I rowsort
SELECT col1 + tab2.col2 AS col1 FROM tab2
----
55
58
85

query I rowsort
SELECT ( 45 ) AS col1 FROM tab1
----
45
45
45

query I rowsort
SELECT 23 + tab1.col1 AS col2 FROM tab1
----
33
36
49

query I rowsort
SELECT ALL 43 AS col2 FROM tab2
----
43
43
43

query I rowsort
SELECT - cor0.col2 * col0 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT col0 * col0 AS col1 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT - - 98 * col1 * ( + col1 ) FROM tab0 AS cor0
----
724808
811538
922082

query I rowsort
SELECT ALL + + 86 * - col1 FROM tab2 AS cor0
----
-1462
-2666
-5074

query I rowsort
SELECT cor0.col1 * col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT - - col1 AS col2 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT - + 4 * - col0 * + ( + 56 ) + - cor0.col0 FROM tab1 AS cor0
----
14272
17840
669

query I rowsort
SELECT - col1 * + col2 * 57 AS col0 FROM tab0 AS cor0
----
-161766
-425334
-5529

query I rowsort
SELECT DISTINCT + - 45 * col2 + - cor0.col0 FROM tab2 cor0
----
-1222
-1248
-1789

query I rowsort
SELECT ALL - - col1 - col2 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT DISTINCT - - 17 FROM tab0 AS cor0
----
17

query I rowsort
SELECT + col1 * + col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT - col0 * + col1 FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-3998
SELECT ALL col2 DIV + col2 AS col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3998
SELECT ALL col2 / + col2 AS col2 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3999
SELECT ALL - col2 DIV col0 FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3999
SELECT ALL - col2 / col0 FROM tab0 cor0
----
-1
0
0

query I rowsort
SELECT ALL - col2 * - col1 + + cor0.col0 * - 64 FROM tab2 AS cor0
----
-3458
-4410
389

query I rowsort
SELECT DISTINCT 83 * + col0 - - col2 FROM tab2 AS cor0
----
608
6500
6595

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( cor0.col0 ) + - col1 col2 FROM tab1 AS cor0
----
-23
54
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 27 * - col2 col1 FROM tab0 AS cor0
----
-2214
-27
-891

query I rowsort
SELECT - 71 + - col0 FROM tab0 AS cor0
----
-106
-160
-95

query I rowsort
SELECT DISTINCT - col0 + - col2 * + col0 AS col1 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT DISTINCT - - col2 + col2 - 3 * col1 AS col1 FROM tab2 AS cor0
----
-125
-39
25

query I rowsort
SELECT 28 AS col1 FROM tab1 cor0
----
28
28
28

query I rowsort
SELECT DISTINCT + col0 + - 51 AS col1 FROM tab2
----
-44
27
28

query I rowsort
SELECT ALL col0 + 39 + + col1 AS col0 FROM tab2
----
135
176
77

query IIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 AS cor2
----
972 values hashing to 5342fb4caf4767cb98bd21989bad099f

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
243 values hashing to b3323704f6873113d863f8e27386b356

query I rowsort
SELECT - + col0 + col1 AS col0 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT ALL + + col2 AS col0 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT - col0 * 70 FROM tab0 AS cor0
----
-1680
-2450
-6230

query I rowsort
SELECT ALL - cor0.col0 * 43 AS col0 FROM tab2 AS cor0
----
-301
-3354
-3397

onlyif mysql # use DIV operator for integer division
query I rowsort label-4016
SELECT + col1 * 97 DIV + col1 AS col0 FROM tab1 AS cor0
----
97
97
97

skipif mysql # not compatible
query I rowsort label-4016
SELECT + col1 * 97 / + col1 AS col0 FROM tab1 AS cor0
----
97
97
97

query I rowsort
SELECT DISTINCT + + col0 + col0 * 49 AS col1 FROM tab1 AS cor0
----
150
3200
4000

query I rowsort
SELECT col2 + col2 - - col0 * - col0 FROM tab2 AS cor0
----
-6032
-6165
5

query I rowsort
SELECT DISTINCT - col1 * + col2 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * ( cor0.col0 ) * + cor0.col1 + + col2 col0 FROM tab0 AS cor0
----
-177471
-329314
-736927

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT 87 * 94 FROM tab2 AS cor0
----
8178

onlyif mysql # use DIV operator for integer division
query I rowsort label-4023
SELECT + 72 DIV + col1 FROM tab2 cor0
----
1
2
4

skipif mysql # not compatible
query I rowsort label-4023
SELECT + 72 / + col1 FROM tab2 cor0
----
1
2
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4024
SELECT - CAST( NULL AS SIGNED ) + col2 * + col2 * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4024
SELECT - CAST ( NULL AS INTEGER ) + col2 * + col2 * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4025
SELECT ALL - 5 DIV ( + col1 ) AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4025
SELECT ALL - 5 / ( + col1 ) AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 15 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 97c4e033347d2076218e240ed49af0a7

query I rowsort
SELECT - + col1 AS col2 FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT ALL col1 * 16 AS col0 FROM tab1
----
160
208
416

query I rowsort
SELECT - 91 FROM tab0 AS cor0
----
-91
-91
-91

query I rowsort
SELECT ALL + col0 * col0 + col0 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT - + col2 * + 57 AS col0 FROM tab1 AS cor0
----
-3078
-3249
-5472

query I rowsort
SELECT DISTINCT + 7 FROM tab2 AS cor0
----
7

query I rowsort
SELECT ALL col2 * + ( 69 ) + + col2 AS col2 FROM tab0
----
2310
5740
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-4034
SELECT col1 DIV 5 FROM tab1
----
2
2
5

skipif mysql # not compatible
query I rowsort label-4034
SELECT col1 / 5 FROM tab1
----
2
2
5

query I rowsort
SELECT tab0.col2 * 80 AS col0 FROM tab0
----
2640
6560
80

query I rowsort
SELECT ALL - col1 + - 54 * tab2.col0 FROM tab2
----
-409
-4271
-4283

query I rowsort
SELECT ALL col2 * col2 + + col2 + - col1 FROM tab0
----
-95
1036
6715

query I rowsort
SELECT + col1 + 39 AS col0 FROM tab1
----
49
52
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-4039
SELECT DISTINCT col0 + 52 DIV + col1 FROM tab1
----
5
69
84

skipif mysql # not compatible
query I rowsort label-4039
SELECT DISTINCT col0 + 52 / + col1 FROM tab1
----
5
69
84

query I rowsort
SELECT - col1 - + cor0.col1 AS col2 FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT DISTINCT + col0 - + col2 * - cor0.col2 FROM tab1 AS cor0
----
2919
3313
9296

query I rowsort
SELECT DISTINCT - + col0 * cor0.col1 + cor0.col0 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT DISTINCT col0 * - col0 - + col2 * col1 FROM tab1 cor0
----
-1413
-4666
-7648

query I rowsort
SELECT + col1 + ( + 7 ) AS col0 FROM tab0 AS cor0
----
104
93
98

query I rowsort
SELECT ALL tab1.col2 * + ( tab1.col2 ) + + col2 AS col1 FROM tab1
----
2970
3306
9312

query I rowsort
SELECT DISTINCT tab0.col1 AS col0 FROM tab0
----
86
91
97

query I rowsort
SELECT DISTINCT cor0.col2 * + col1 - - 54 AS col2 FROM tab2 AS cor0
----
1588
700
891

query I rowsort
SELECT - ( + col1 ) + - col1 FROM tab0 AS cor0
----
-172
-182
-194

onlyif mysql # use DIV operator for integer division
query I rowsort label-4049
SELECT + CAST( ( cor0.col2 ) AS SIGNED ) DIV + col0 + 97 DIV - col0 FROM tab2 AS cor0
----
-1
-1
-10

skipif mysql # not compatible
query I rowsort label-4049
SELECT + CAST ( ( cor0.col2 ) AS INTEGER ) / + col0 + 97 / - col0 FROM tab2 AS cor0
----
-1
-1
-10

query I rowsort
SELECT ALL - - col2 + 32 * col2 FROM tab0 AS cor0
----
1089
2706
33

query I rowsort
SELECT DISTINCT col2 * + col2 * - col2 FROM tab1 AS cor0
----
-157464
-185193
-884736

query I rowsort
SELECT ALL + col1 * col0 + col0 * - ( ( col2 ) ) - + 11 FROM tab0 AS cor0
----
1261
3349
790

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT ( col0 ) + + col2 AS col1 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT - ( - col0 ) AS col1 FROM tab0 AS cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-4056
SELECT - + 33 + col0 DIV col1 FROM tab1 AS cor0
----
-27
-27
-33

skipif mysql # not compatible
query I rowsort label-4056
SELECT - + 33 + col0 / col1 FROM tab1 AS cor0
----
-27
-27
-33

query I rowsort
SELECT 36 * - col0 + col0 FROM tab0 AS cor0
----
-1225
-3115
-840

query I rowsort
SELECT + col0 * col2 - col0 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT DISTINCT col1 + 87 AS col0 FROM tab1 AS cor0
----
100
113
97

query I rowsort
SELECT + + cor0.col1 * - col1 + col2 + - ( 45 ) FROM tab0 AS cor0
----
-7408
-8244
-9453

query I rowsort
SELECT - col0 * col0 + + col2 AS col2 FROM tab2 AS cor0
----
-22
-6058
-6203

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4062
SELECT - col0 * ( col1 ) - CAST( cor0.col2 AS SIGNED ) * - cor0.col0 * + col1 col2 FROM tab1 AS cor0
----
35840
4134
98800

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4062
SELECT - col0 * ( col1 ) - CAST ( cor0.col2 AS INTEGER ) * - cor0.col0 * + col1 col2 FROM tab1 AS cor0
----
35840
4134
98800

query I rowsort
SELECT 83 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
-2158
-2241
-3154

query I rowsort
SELECT ALL col2 + - col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col2 AS col0 FROM tab2 cor0
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-4066
SELECT + ( + col0 ) DIV + 16 FROM tab1 AS cor0
----
0
4
5

skipif mysql # not compatible
query I rowsort label-4066
SELECT + ( + col0 ) / + 16 FROM tab1 AS cor0
----
0
4
5

query I rowsort
SELECT DISTINCT col0 + + col0 + cor0.col0 * ( - col0 ) AS col0 FROM tab2 AS cor0
----
-35
-5928
-6083

query I rowsort
SELECT - - col2 + col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL ( - col0 ) FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT - - ( col1 ) * col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT + 78 AS col1 FROM tab2 AS cor0
----
78

query I rowsort
SELECT col2 * col0 AS col1 FROM tab0 AS cor0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col2 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT DISTINCT cor0.col1 + col0 * + col2 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT ALL + + ( col2 ) + 59 + 57 FROM tab0 AS cor0
----
117
149
198

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4076
SELECT ( - col0 ) * CAST( + col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241

skipif mysql # not compatible
query I rowsort label-4076
SELECT ( - col0 ) * CAST ( + col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT + col0 * cor0.col1 AS col1 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT cor0.col2 + col2 * 4 AS col1 FROM tab2 cor0
----
130
135
190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * - col1 col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT - cor0.col2 + 74 * col2 FROM tab2 AS cor0
----
1898
1971
2774

query I rowsort
SELECT - col2 * 57 AS col2 FROM tab0 AS cor0
----
-1881
-4674
-57

query I rowsort
SELECT - 79 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c9cc9510604e093bd158ca33928acaed

query I rowsort
SELECT ALL - + col1 + 22 * 8 AS col1 FROM tab2 AS cor0
----
117
145
159

query I rowsort
SELECT col0 * ( 89 ) AS col2 FROM tab1 AS cor0
----
267
5696
7120

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0, tab0 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to f8426cd4d01ba96a72d7348574fbbc8e

query I rowsort
SELECT 76 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da

query I rowsort
SELECT DISTINCT cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
86
91
97

query I rowsort
SELECT - tab0.col0 FROM tab0, tab1 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to 26e45cd9fe71a2b90a8bdef20c88e70d

query I rowsort
SELECT col2 * ( + 47 * + col2 + + 72 ) FROM tab1 AS cor0
----
140940
156807
440064

query I rowsort
SELECT 33 FROM tab1
----
33
33
33

query I rowsort
SELECT + - col0 AS col1 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT - - col1 + - ( - 39 ) * + col1 * 99 FROM tab2 cor0
----
119722
227858
65654

query I rowsort
SELECT + + col0 - + 47 AS col1 FROM tab0 AS cor0
----
-12
-23
42

query I rowsort
SELECT col0 + 66 + - col0 FROM tab1 AS cor0
----
66
66
66

query I rowsort
SELECT DISTINCT + - col2 * col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT col1 * - 29 * 19 FROM tab0
----
-47386
-50141
-53447

query I rowsort
SELECT DISTINCT + tab1.col2 * + 98 AS col2 FROM tab1, tab1 AS cor0
----
5292
5586
9408

onlyif mysql # use DIV operator for integer division
query I rowsort label-4098
SELECT col1 DIV 2 + + tab0.col2 FROM tab0
----
127
49
76

skipif mysql # not compatible
query I rowsort label-4098
SELECT col1 / 2 + + tab0.col2 FROM tab0
----
127
49
76

query I rowsort
SELECT - 8 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

query I rowsort
SELECT DISTINCT tab0.col2 AS col2 FROM tab0
----
1
33
82

query I rowsort
SELECT + ( + cor0.col0 ) * col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT + - 69 FROM tab2 cor0
----
-69
-69
-69

query I rowsort
SELECT ALL 14 AS col0 FROM tab0
----
14
14
14

query IIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 CROSS JOIN tab1
----
243 values hashing to 7e12d99d8ab63d9fd10e95cef9d78998

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col0 ) col1 FROM tab1
----
3
64
80

query I rowsort
SELECT - tab0.col2 + tab0.col1 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 0bd022e691ee49f12c598975818ed537

query I rowsort
SELECT col0 * + col0 AS col2 FROM tab2 cor0
----
49
6084
6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 col2 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT - + 8 * - 70 FROM tab2 AS cor0
----
560
560
560

query I rowsort
SELECT - 67 * tab2.col2 + col2 AS col2 FROM tab2
----
-1716
-1782
-2508

query I rowsort
SELECT + 89 + - 6 * col0 FROM tab0 AS cor0
----
-121
-445
-55

query I rowsort
SELECT 14 * - col2 FROM tab0 AS cor0
----
-1148
-14
-462

query I rowsort
SELECT - col2 * - col2 FROM tab1 cor0
----
2916
3249
9216

query I rowsort
SELECT ALL col2 + col1 AS col1 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT - cor0.col0 * + cor0.col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab2, tab2 AS cor1
----
972 values hashing to a47a9db07c7de4927c7c28efb4cd13f2

query I rowsort
SELECT DISTINCT + ( + cor1.col0 ) AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
24
35
89

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 cor0, tab2 AS cor1
----
243 values hashing to 5d85c5683e3ffd6d68920690d7302f7d

query I rowsort
SELECT ALL col0 + col2 AS col2 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT + col2 * - 29 FROM tab2 AS cor0
----
-1102
-754
-783

query I rowsort
SELECT 45 FROM tab2, tab0 AS cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0, tab0 cor1, tab2, tab0 cor2
----
3645 values hashing to 58b53d9f2c5d79e6fe94b4a97272440e

onlyif mysql # use DIV operator for integer division
query I rowsort label-4123
SELECT - + col1 DIV cor0.col0 FROM tab1 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-4123
SELECT - + col1 / cor0.col0 FROM tab1 AS cor0
----
-8
0
0

query I rowsort
SELECT + cor0.col2 + ( col1 * + col1 ) AS col0 FROM tab0 AS cor0
----
7429
8363
9410

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col0 col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT + col0 + + ( col2 ) FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL + col0 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT + - col0 AS col0 FROM tab0 cor0
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-4129
SELECT + col1 * col2 DIV 91 + col0 FROM tab2 AS cor0
----
16
86
94

skipif mysql # not compatible
query I rowsort label-4129
SELECT + col1 * col2 / 91 + col0 FROM tab2 AS cor0
----
16
86
94

query I rowsort
SELECT DISTINCT + - ( + cor0.col0 ) AS col1 FROM tab0 AS cor0
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-4131
SELECT ( col2 ) * col2 DIV ( - 86 ) col1 FROM tab2 cor0
----
-16
-7
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4131
SELECT ( col2 ) * col2 / ( - 86 ) col1 FROM tab2 cor0
----
-16
-7
-8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4132
SELECT ALL - CAST( - col0 AS SIGNED ) * col2 + 88 AS col1 FROM tab0 AS cor0
----
123
7386
880

skipif mysql # not compatible
query I rowsort label-4132
SELECT ALL - CAST ( - col0 AS INTEGER ) * col2 + 88 AS col1 FROM tab0 AS cor0
----
123
7386
880

query I rowsort
SELECT + col0 + - ( col1 ) AS col1 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT DISTINCT + cor0.col1 AS col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT + ( 65 ) FROM tab0 AS cor0
----
65
65
65

query I rowsort
SELECT ALL - ( col0 ) FROM tab2 AS cor0
----
-7
-78
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4137
SELECT - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4137
SELECT - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4138
SELECT ALL - + CAST( NULL AS DECIMAL ) * - 76 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4138
SELECT ALL - + CAST ( NULL AS REAL ) * - 76 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4139
SELECT ALL - CAST( col0 AS SIGNED ) DIV + cor0.col1 AS col2 FROM tab2 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-4139
SELECT ALL - CAST ( col0 AS INTEGER ) / + cor0.col1 AS col2 FROM tab2 AS cor0
----
-1
-4
0

query I rowsort
SELECT DISTINCT col0 * col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - ( - col2 ) + - col2 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4142
SELECT DISTINCT - col2 * + CAST( - col2 AS SIGNED ) FROM tab1
----
2916
3249
9216

skipif mysql # not compatible
query I rowsort label-4142
SELECT DISTINCT - col2 * + CAST ( - col2 AS INTEGER ) FROM tab1
----
2916
3249
9216

query I rowsort
SELECT DISTINCT tab0.col0 FROM tab0, tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL col2 * col1 + + 11 AS col0 FROM tab2
----
1545
657
848

query I rowsort
SELECT + col1 - + ( col2 ) AS col0 FROM tab0
----
53
9
96

query I rowsort
SELECT tab2.col2 * col2 AS col1 FROM tab2
----
1444
676
729

query I rowsort
SELECT ( 59 ) AS col2 FROM tab1, tab2 cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT ALL + col2 * col1 + col1 AS col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT + - 95 + - col1 * - cor0.col1 FROM tab2 cor0
----
194
3386
866

query I rowsort
SELECT ALL - 46 * col0 FROM tab1 AS cor0
----
-138
-2944
-3680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 46 + col1 * + col1 col0 FROM tab1 AS cor0
----
146
215
722

query I rowsort
SELECT - - ( col0 ) * + col1 + 43 * col2 FROM tab1 cor0
----
2400
3091
5168

query I rowsort
SELECT ALL + col2 + + col2 * col2 AS col1 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT ALL cor0.col0 FROM tab0, tab0 cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4155
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4155
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 42 FROM tab0 cor0
----
42

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0, tab2 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to 8d4d13f65f86e1b26b6004a6bdc662b3

query I rowsort
SELECT DISTINCT - 47 FROM tab2 AS cor0
----
-47

query I rowsort
SELECT - + cor0.col1 + - 80 FROM tab1 cor0
----
-106
-90
-93

query I rowsort
SELECT ALL 93 * col2 FROM tab1 AS cor0
----
5022
5301
8928

query I rowsort
SELECT col2 * col0 AS col2 FROM tab0
----
35
7298
792

query IIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
243 values hashing to 74e36edda45186a5c45856859d8e21f0

query I rowsort
SELECT 35 FROM tab1 AS cor0
----
35
35
35

query I rowsort
SELECT DISTINCT - col0 * cor0.col1 * + cor0.col0 + col0 FROM tab1 AS cor0
----
-231
-40896
-83120

onlyif mysql # use DIV operator for integer division
query I rowsort label-4165
SELECT col2 DIV col2 + col1 * + 13 AS col1 FROM tab1 cor0
----
131
170
339

skipif mysql # not compatible
query I rowsort label-4165
SELECT col2 / col2 + col1 * + 13 AS col1 FROM tab1 cor0
----
131
170
339

query I rowsort
SELECT + 47 * tab1.col2 + col0 FROM tab1
----
2541
2743
4592

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 3 col1 FROM tab1 AS cor0
----
3
3
3

query I rowsort
SELECT DISTINCT 27 * + cor0.col0 AS col1 FROM tab2, tab0, tab0 AS cor0
----
2403
648
945

query I rowsort
SELECT ALL ( + 29 ) AS col0 FROM tab2
----
29
29
29

query I rowsort
SELECT + col0 + col1 FROM tab1
----
29
74
93

query I rowsort
SELECT ( + col0 ) * tab2.col2 FROM tab2
----
189
2028
3002

query I rowsort
SELECT + + cor0.col1 * + col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT DISTINCT col2 * col2 AS col2 FROM tab2 AS cor0
----
1444
676
729

onlyif mysql # use DIV operator for integer division
query I rowsort label-4174
SELECT col2 * + tab2.col1 + + col2 DIV + 87 FROM tab2
----
1534
646
837

skipif mysql # not compatible
query I rowsort label-4174
SELECT col2 * + tab2.col1 + + col2 / + 87 FROM tab2
----
1534
646
837

query I rowsort
SELECT 56 + - col0 FROM tab1
----
-24
-8
53

query I rowsort
SELECT + tab2.col2 AS col2 FROM tab2
----
26
27
38

query I rowsort
SELECT DISTINCT - col0 - + col0 * col0 AS col2 FROM tab2
----
-56
-6162
-6320

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4178
SELECT DISTINCT + col1 * CAST( 93 + col0 AS SIGNED ) * 54 AS col2 FROM tab0 AS cor0
----
543348
670464
894348

skipif mysql # not compatible
query I rowsort label-4178
SELECT DISTINCT + col1 * CAST ( 93 + col0 AS INTEGER ) * 54 AS col2 FROM tab0 AS cor0
----
543348
670464
894348

query I rowsort
SELECT ALL col1 + col2 * + 32 FROM tab1 AS cor0
----
1754
1834
3085

query I rowsort
SELECT DISTINCT - col2 * 66 FROM tab1 AS cor0
----
-3564
-3762
-6336

query I rowsort
SELECT ALL - + col2 + + 44 FROM tab2 cor0
----
17
18
6

query I rowsort
SELECT - 1 + - tab0.col0 * 19 AS col1 FROM tab0
----
-1692
-457
-666

onlyif mysql # use DIV operator for integer division
query I rowsort label-4183
SELECT 8 * col1 DIV - col1 AS col1 FROM tab1
----
-8
-8
-8

skipif mysql # not compatible
query I rowsort label-4183
SELECT 8 * col1 / - col1 AS col1 FROM tab1
----
-8
-8
-8

onlyif mysql # use DIV operator for integer division
query I rowsort label-4184
SELECT col0 * col0 + + col1 DIV + col1 + col2 FROM tab0
----
1227
610
8004

skipif mysql # not compatible
query I rowsort label-4184
SELECT col0 * col0 + + col1 / + col1 + col2 FROM tab0
----
1227
610
8004

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - col2 col2 FROM tab2
----
-21
33
4

query I rowsort
SELECT col2 + + col2 AS col1 FROM tab0
----
164
2
66

query I rowsort
SELECT + col2 * ( col1 ) + + col2 * - 87 FROM tab1 AS cor0
----
-3294
-4389
-7104

query I rowsort
SELECT DISTINCT + + col2 + - cor0.col1 FROM tab1 cor0
----
28
47
83

query I rowsort
SELECT ALL col0 * + col2 * col1 AS col1 FROM tab1 AS cor0
----
36480
4212
99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-4190
SELECT DISTINCT - - col1 + col2 DIV col1 FROM tab1 AS cor0
----
15
20
28

skipif mysql # not compatible
query I rowsort label-4190
SELECT DISTINCT - - col1 + col2 / col1 FROM tab1 AS cor0
----
15
20
28

query I rowsort
SELECT DISTINCT - col1 + + col1 * col1 AS col2 FROM tab2 AS cor0
----
272
3422
930

query I rowsort
SELECT ALL col1 * + cor0.col2 AS col1 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT - col0 * - 49 + - col0 AS col2 FROM tab1 AS cor0
----
144
3072
3840

query I rowsort
SELECT ALL - col2 + col2 * col1 AS col1 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT + col1 * + 98 + col2 * + col2 AS col2 FROM tab1 AS cor0
----
10490
4229
5464

query I rowsort
SELECT DISTINCT - col2 * - col1 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT - col2 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
2916
3249
9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-4198
SELECT + col0 DIV ( 46 ) + + col1 FROM tab1 AS cor0
----
11
14
26

skipif mysql # not compatible
query I rowsort label-4198
SELECT + col0 / ( 46 ) + + col1 FROM tab1 AS cor0
----
11
14
26

query I rowsort
SELECT DISTINCT - col2 + + col2 * - col1 AS col1 FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT ALL - + cor0.col0 AS col2 FROM tab0 AS cor0
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-4201
SELECT ( + col2 ) + - col0 DIV - ( + col1 * + col1 ) FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-4201
SELECT ( + col2 ) + - col0 / - ( + col1 * + col1 ) FROM tab2
----
26
27
38

query I rowsort
SELECT 51 + - 79 * col0 FROM tab0
----
-1845
-2714
-6980

query I rowsort
SELECT - 24 + + col1 FROM tab0 AS cor0
----
62
67
73

query I rowsort
SELECT - - cor0.col1 * - col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT 94 FROM tab2
----
94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4206
SELECT - CAST( - col2 AS SIGNED ) FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-4206
SELECT - CAST ( - col2 AS INTEGER ) FROM tab2
----
26
27
38

query I rowsort
SELECT col1 * + tab0.col2 + col1 * - 80 FROM tab0
----
-4042
-7663
182

query I rowsort
SELECT ALL ( - col1 ) AS col2 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT - tab0.col0 * + ( col0 ) * col1 + - col0 AS col1 FROM tab0
----
-118860
-49560
-720900

onlyif mysql # use DIV operator for integer division
query I rowsort label-4210
SELECT col1 DIV - col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4210
SELECT col1 / - col1 FROM tab2
----
-1
-1
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4211
SELECT ALL 28 + - col2 / - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4211
SELECT ALL 28 + - col2 / - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + cor0.col1 + col2 AS col0 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT + cor0.col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT DISTINCT - ( col2 ) + ( + col1 ) AS col1 FROM tab2
----
-21
33
4

query I rowsort
SELECT - col0 + - cor0.col0 * ( col0 + col0 ) AS col0 FROM tab2 AS cor0
----
-105
-12246
-12561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 78 * col2 col0 FROM tab0 AS cor0
----
2574
6396
78

query I rowsort
SELECT ALL cor0.col1 * col0 + - ( - col1 ) + - cor0.col0 * + col2 AS col1 FROM tab2 AS cor0
----
-1642
2633
59

query I rowsort
SELECT + cor0.col0 + - col2 * + 96 AS col0 FROM tab0 AS cor0
----
-3144
-61
-7783

query I rowsort
SELECT ALL - + 69 FROM tab1 cor0
----
-69
-69
-69

query I rowsort
SELECT DISTINCT - 44 * + col2 + + 90 FROM tab0 cor0
----
-1362
-3518
46

query I rowsort
SELECT ALL + 54 FROM tab1 AS cor0
----
54
54
54

query I rowsort
SELECT + + col2 * - col1 + - col2 FROM tab0 AS cor0
----
-2871
-7544
-98

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT + - 88 * cor0.col0 - col1 AS col0 FROM tab0 AS cor0
----
-2198
-3177
-7923

query I rowsort
SELECT DISTINCT 68 + - col1 FROM tab1 AS cor0
----
42
55
58

query I rowsort
SELECT DISTINCT + + cor0.col2 + col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL - - col2 FROM tab1 cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4228
SELECT - + col0 DIV + col0 + col1 AS col2 FROM tab1 AS cor0
----
12
25
9

skipif mysql # not compatible
query I rowsort label-4228
SELECT - + col0 / + col0 + col1 AS col2 FROM tab1 AS cor0
----
12
25
9

query IIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2, tab2 cor1
----
243 values hashing to 5ac29bd6e3a9e69ed9c73ca7a34114f7

query I rowsort
SELECT DISTINCT + tab2.col0 * col1 AS col2 FROM tab2
----
1343
217
4602

query I rowsort
SELECT - col2 * - ( col1 ) FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT - col2 * + col1 * cor0.col1 AS col2 FROM tab1 AS cor0
----
-16224
-36504
-5700

query I rowsort
SELECT ALL - + cor0.col0 * 70 FROM tab2 AS cor0
----
-490
-5460
-5530

onlyif mysql # use DIV operator for integer division
query I rowsort label-4234
SELECT DISTINCT + col2 DIV - col1 AS col2 FROM tab2 AS cor0
----
-2
0

skipif mysql # not compatible
query I rowsort label-4234
SELECT DISTINCT + col2 / - col1 AS col2 FROM tab2 AS cor0
----
-2
0

query I rowsort
SELECT cor0.col1 * 80 AS col0 FROM tab0 AS cor0
----
6880
7280
7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-4236
SELECT DISTINCT - col1 DIV 77 AS col0 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4236
SELECT DISTINCT - col1 / 77 AS col0 FROM tab0 cor0
----
-1

query I rowsort
SELECT - col0 + + 51 * col2 FROM tab2 cor0
----
1248
1370
1859

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col0 + col2 * col2 + + 95 * - cor0.col2 col0 FROM tab1 AS cor0
----
-2292
-2806
-944

onlyif mysql # use DIV operator for integer division
query I rowsort label-4239
SELECT DISTINCT + + col0 + cor0.col1 DIV col1 AS col2 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-4239
SELECT DISTINCT + + col0 + cor0.col1 / col1 AS col2 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT ALL - col1 - + col0 AS col1 FROM tab0 AS cor0
----
-110
-132
-180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - ( - 9 ) col1 FROM tab2 cor0
----
63
702
711

query I rowsort
SELECT DISTINCT + cor0.col1 AS col0 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT - col2 * col0 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col1 col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT 49 * col0 AS col2 FROM tab2 AS cor0
----
343
3822
3871

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4246
SELECT DISTINCT + + CAST( col1 AS SIGNED ) col1 FROM tab0 AS cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4246
SELECT DISTINCT + + CAST ( col1 AS INTEGER ) col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT + col2 + col0 * + col0 FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT DISTINCT tab1.col0 * col2 AS col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT ALL cor0.col2 + - col2 + - col0 AS col0 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT ALL + - 88 FROM tab2 AS cor0
----
-88
-88
-88

query I rowsort
SELECT + 6 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query I rowsort
SELECT + 74 * - ( col2 * 63 + - col0 ) AS col0 FROM tab1 AS cor0
----
-251526
-260998
-441632

query I rowsort
SELECT ALL - 10 + - col2 FROM tab0 cor0
----
-11
-43
-92

query I rowsort
SELECT - + col0 AS col0 FROM tab1 AS cor0
----
-3
-64
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4255
SELECT ALL + CAST( NULL AS DECIMAL ) * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4255
SELECT ALL + CAST ( NULL AS REAL ) * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 57 AS col0 FROM tab1 AS cor0
----
-57
-57
-57

query I rowsort
SELECT 18 FROM tab2
----
18
18
18

onlyif mysql # use DIV operator for integer division
query I rowsort label-4258
SELECT col1 + + cor0.col0 DIV col1 AS col1 FROM tab2 AS cor0
----
21
31
60

skipif mysql # not compatible
query I rowsort label-4258
SELECT col1 + + cor0.col0 / col1 AS col1 FROM tab2 AS cor0
----
21
31
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + col0 col0 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT 22 + + 6 FROM tab1 AS cor0
----
28
28
28

query I rowsort
SELECT - col1 + 4 * col1 FROM tab2 AS cor0
----
177
51
93

query I rowsort
SELECT 3 * + col0 * col1 AS col0 FROM tab1 AS cor0
----
1920
234
3120

query I rowsort
SELECT - - col2 + ( cor0.col0 + + col1 ) * ( col1 ) AS col1 FROM tab1 AS cor0
----
1305
797
808

onlyif mysql # use DIV operator for integer division
query I rowsort label-4264
SELECT + + col0 DIV - 81 AS col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4264
SELECT + + col0 / - 81 AS col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT - ( 31 ) FROM tab2 AS cor0
----
-31
-31
-31

query I rowsort
SELECT + + ( col2 ) * col2 AS col0 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT - + col2 + col0 * cor0.col1 AS col1 FROM tab2 cor0
----
1305
190
4576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 + col2 col1 FROM tab1 AS cor0
----
-7
16
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-4269
SELECT - col2 DIV - col0 AS col2 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4269
SELECT - col2 / - col0 AS col2 FROM tab0 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col2 col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT + - col0 * cor0.col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT 56 + tab1.col2 FROM tab2, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to 69feccee554b986e31b44921f0653c32

query I rowsort
SELECT + + col1 - + 14 AS col2 FROM tab0 AS cor0
----
72
77
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-4274
SELECT DISTINCT - col1 DIV ( - col1 * - col1 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4274
SELECT DISTINCT - col1 / ( - col1 * - col1 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT 56 AS col2 FROM tab1, tab1 cor0, tab0 AS cor1
----
56

query I rowsort
SELECT + - col2 AS col0 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT col0 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT DISTINCT - + col0 * - col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT DISTINCT + tab2.col1 AS col1 FROM tab2, tab1, tab1 cor0
----
17
31
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4280
SELECT tab0.col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4280
SELECT tab0.col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4281
SELECT - - CAST( NULL AS DECIMAL ) * - col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4281
SELECT - - CAST ( NULL AS REAL ) * - col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * + col1 AS col0 FROM tab1
----
1248
1404
570

query I rowsort
SELECT ALL 28 FROM tab2, tab0 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT DISTINCT + col0 + + cor0.col2 * col0 FROM tab1 AS cor0
----
165
3712
7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-4285
SELECT DISTINCT - col1 DIV 76 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4285
SELECT DISTINCT - col1 / 76 AS col1 FROM tab2
----
0

query I rowsort
SELECT ALL col2 * - col1 + col2 + cor0.col0 * col2 * cor0.col1 AS col2 FROM tab2 AS cor0
----
118144
50426
5049

query I rowsort
SELECT ALL + 10 FROM tab1, tab2 AS cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4288
SELECT + col2 * CAST( NULL AS SIGNED ) * col0 + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4288
SELECT + col2 * CAST ( NULL AS INTEGER ) * col0 + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * + col0 FROM tab1
----
1040
640
78

query I rowsort
SELECT DISTINCT - 81 FROM tab0, tab1 AS cor0
----
-81

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0, tab1 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to e660b5944e34dd8d75740286862b3252

onlyif mysql # use DIV operator for integer division
query I rowsort label-4292
SELECT - + col0 + - 24 DIV - col2 AS col0 FROM tab1 cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-4292
SELECT - + col0 + - 24 / - col2 AS col0 FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT ALL + col2 + cor0.col1 AS col0 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT - cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT 84 FROM tab2
----
84
84
84

query I rowsort
SELECT - col2 + - col1 AS col1 FROM tab0 AS cor0
----
-119
-173
-98

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0, tab0, tab1 cor1
----
972 values hashing to 5621675b1bd32b061d284d0444c76601

query I rowsort
SELECT + col1 * col2 * 43 FROM tab0 AS cor0
----
122034
320866
4171

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab0 AS cor1, tab0, tab1 cor2
----
3645 values hashing to e5255b2277726ba4514ff55622dec830

query I rowsort
SELECT + 98 FROM tab0, tab0 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query I rowsort
SELECT col1 - col2 FROM tab2
----
-21
33
4

query I rowsort
SELECT ALL tab0.col1 AS col1 FROM tab0
----
86
91
97

query IIIIIIIII rowsort
SELECT * FROM tab0, tab2, tab1 cor0
----
243 values hashing to 098e223d780e18b6582523fd6f55eec9

query I rowsort
SELECT - col2 + + col2 AS col0 FROM tab2
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4305
SELECT 94 DIV 49 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif mysql # not compatible
query I rowsort label-4305
SELECT 94 / 49 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4306
SELECT ALL + + col2 + + CAST( NULL AS DECIMAL ) * 3 * col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4306
SELECT ALL + + col2 + + CAST ( NULL AS REAL ) * 3 * col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4307
SELECT ALL - col1 DIV - 37 + + col0 AS col2 FROM tab0 AS cor0
----
26
37
91

skipif mysql # not compatible
query I rowsort label-4307
SELECT ALL - col1 / - 37 + + col0 AS col2 FROM tab0 AS cor0
----
26
37
91

query I rowsort
SELECT - + cor0.col2 * col1 + 49 AS col1 FROM tab0 AS cor0
----
-2789
-48
-7413

query I rowsort
SELECT DISTINCT + col1 * - col1 * - col2 - + col1 FROM tab2 AS cor0
----
10965
25916
90447

query I rowsort
SELECT ALL col2 * ( - cor0.col2 ) + - col2 FROM tab0 AS cor0
----
-1122
-2
-6806

query I rowsort
SELECT + + col1 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT DISTINCT - col0 * col2 AS col1 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT tab2.col1 + - col2 FROM tab2
----
-21
33
4

query I rowsort
SELECT col1 * - ( col1 ) - - col1 FROM tab0
----
-7310
-8190
-9312

query I rowsort
SELECT - tab0.col1 AS col1 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT col2 * col0 AS col1 FROM tab2
----
189
2028
3002

query I rowsort
SELECT + col1 - col1 * - col0 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT - ( col2 ) AS col0 FROM tab0 AS cor0
----
-1
-33
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4319
SELECT - CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-4319
SELECT - CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT + - col2 + col2 * + col1 FROM tab0 cor0
----
2805
7380
96

query I rowsort
SELECT 75 + - col0 AS col2 FROM tab1 AS cor0
----
-5
11
72

query I rowsort
SELECT ( 1 ) FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT + 53 FROM tab1 AS cor0
----
53
53
53

query I rowsort
SELECT - + col2 + - col2 FROM tab0 AS cor0
----
-164
-2
-66

onlyif mysql # use DIV operator for integer division
query I rowsort label-4325
SELECT + + 52 DIV - col0 FROM tab2 AS cor0
----
-7
0
0

skipif mysql # not compatible
query I rowsort label-4325
SELECT + + 52 / - col0 FROM tab2 AS cor0
----
-7
0
0

query I rowsort
SELECT - 42 + - col0 FROM tab1 AS cor0
----
-106
-122
-45

query I rowsort
SELECT - - col2 + col2 FROM tab2 cor0
----
52
54
76

query I rowsort
SELECT - 22 + col2 AS col2 FROM tab0 AS cor0
----
-21
11
60

query I rowsort
SELECT ALL 64 FROM tab2
----
64
64
64

query I rowsort
SELECT DISTINCT - col0 * col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - 38 + col2 + 17 AS col2 FROM tab2 AS cor0
----
17
5
6

query I rowsort
SELECT ALL 24 AS col2 FROM tab1 AS cor0
----
24
24
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col0 + cor0.col1 col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT + 70 AS col2 FROM tab2 AS cor0
----
70
70
70

query I rowsort
SELECT ALL col2 * col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT - + col0 + + col1 * col1 FROM tab2 AS cor0
----
210
3403
954

onlyif mysql # use DIV operator for integer division
query I rowsort label-4337
SELECT ALL cor0.col1 DIV - col0 AS col0 FROM tab2 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-4337
SELECT ALL cor0.col1 / - col0 AS col0 FROM tab2 AS cor0
----
-4
0
0

query I rowsort
SELECT DISTINCT - cor0.col0 + - col2 AS col1 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT col1 * col1 AS col1 FROM tab2
----
289
3481
961

query I rowsort
SELECT tab1.col2 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT ALL 49 + - col2 + - col1 AS col1 FROM tab2
----
-36
-6
-9

query I rowsort
SELECT col1 + + cor0.col2 + + 86 * + col0 FROM tab1 cor0
----
338
5571
6989

query I rowsort
SELECT DISTINCT + col1 * col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL col1 * - col2 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT + ( - col1 ) * + ( 79 ) + col2 AS col1 FROM tab1 AS cor0
----
-2000
-733
-931

query I rowsort
SELECT + - cor0.col2 + + col0 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT + 3 AS col1 FROM tab1 cor0
----
3
3
3

query I rowsort
SELECT ALL - ( + col0 ) * cor0.col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL - - ( col2 ) FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT DISTINCT + + col1 + ( ( col1 ) ) FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT + col2 * - col1 + cor0.col1 * - col0 AS col0 FROM tab2 AS cor0
----
-1054
-1989
-6136

query I rowsort
SELECT ALL - col2 * + col2 AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4353
SELECT DISTINCT + col0 + CAST( col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-4353
SELECT DISTINCT + col0 + CAST ( col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT + col1 * + col2 AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL - cor0.col0 + ( col1 ) FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT DISTINCT - col1 + + ( + 79 ) AS col2 FROM tab2 AS cor0
----
20
48
62

query I rowsort
SELECT ALL - col2 AS col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT col1 * col1 * + cor0.col1 AS col0 FROM tab1 cor0
----
1000
17576
2197

query I rowsort
SELECT + col1 + - ( - ( + col1 ) ) FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT col1 + - col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - col2 + col2 + - col1 * col0 AS col1 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT col0 * - col0 + 61 * + col0 FROM tab0
----
-2492
888
910

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col0 ) * - ( col1 * col2 ) - col1 * tab0.col1 col2 FROM tab0
----
-12804
-672399
-75508

query I rowsort
SELECT col2 + col1 + col2 FROM tab2
----
111
85
93

query I rowsort
SELECT DISTINCT - tab0.col0 * tab0.col1 + - col2 FROM tab0
----
-2097
-3396
-8181

query I rowsort
SELECT ALL + 41 - col0 AS col2 FROM tab2 AS cor0
----
-37
-38
34

query I rowsort
SELECT ( col0 ) + - col1 * col1 AS col0 FROM tab1 AS cor0
----
-36
-673
-89

query I rowsort
SELECT ALL - 42 * col1 FROM tab0 cor0
----
-3612
-3822
-4074

query I rowsort
SELECT DISTINCT 53 * cor0.col2 AS col0 FROM tab1 AS cor0
----
2862
3021
5088

query I rowsort
SELECT DISTINCT + col1 + 72 FROM tab1 AS cor0
----
82
85
98

query I rowsort
SELECT - - 94 * - col2 AS col1 FROM tab2 AS cor0
----
-2444
-2538
-3572

onlyif mysql # use DIV operator for integer division
query I rowsort label-4373
SELECT ALL - col1 DIV col1 - - col1 AS col0 FROM tab1 AS cor0
----
12
25
9

skipif mysql # not compatible
query I rowsort label-4373
SELECT ALL - col1 / col1 - - col1 AS col0 FROM tab1 AS cor0
----
12
25
9

query I rowsort
SELECT cor0.col0 AS col0 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT ALL 22 * - 18 + + col2 FROM tab2 AS cor0
----
-358
-369
-370

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 39 + + col0 * + col2 col0 FROM tab1 AS cor0
----
201
3687
7719

query I rowsort
SELECT DISTINCT - + 19 + col0 FROM tab2 AS cor0
----
-12
59
60

query I rowsort
SELECT + + ( ( cor0.col0 ) ) FROM tab0 AS cor0
----
24
35
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4379
SELECT ALL - CAST( NULL AS SIGNED ) + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4379
SELECT ALL - CAST ( NULL AS INTEGER ) + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 61 * 65 - col1 AS col2 FROM tab0 AS cor0
----
3868
3874
3879

query I rowsort
SELECT + - ( col1 ) * + cor0.col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT ALL + - col1 AS col2 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT ALL + 42 AS col0 FROM tab1 AS cor0
----
42
42
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 39 col2 FROM tab0 AS cor0
----
-39
-39
-39

query I rowsort
SELECT DISTINCT + col0 + - col0 * - col2 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT DISTINCT - ( cor0.col0 ) + + col2 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT DISTINCT - 47 * + col0 + - cor0.col2 AS col2 FROM tab0 AS cor0
----
-1161
-1646
-4265

query I rowsort
SELECT - 43 - - tab2.col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to e3b50d9d54218003c009ab6db6e2bcfb

query I rowsort
SELECT 6 + col1 - + col0 AS col0 FROM tab1
----
-48
-61
29

query I rowsort
SELECT ALL - 93 * - col2 - + col2 FROM tab1
----
4968
5244
8832

query I rowsort
SELECT DISTINCT ( - ( col2 ) ) - ( col0 ) AS col1 FROM tab0
----
-171
-36
-57

query I rowsort
SELECT col2 + col2 AS col2 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT - col2 + - col1 + - col1 AS col2 FROM tab0
----
-195
-205
-264

query IIIIIIIII rowsort
SELECT * FROM tab2, tab0 cor0 CROSS JOIN tab1
----
243 values hashing to 26173f1193178352de9a2e4ca7f09d53

onlyif mysql # use DIV operator for integer division
query I rowsort label-4395
SELECT + - col0 DIV cor0.col0 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4395
SELECT + - col0 / cor0.col0 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + col2 * col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT 18 FROM tab1, tab2 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT + col0 + 31 AS col0 FROM tab1 AS cor0
----
111
34
95

query I rowsort
SELECT DISTINCT - - col0 * + col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT - col2 + cor0.col2 * cor0.col0 AS col1 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT DISTINCT col2 * + col2 FROM tab0
----
1
1089
6724

query I rowsort
SELECT 28 FROM tab2, tab1 cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT - col2 + + ( + col1 ) AS col2 FROM tab0
----
53
9
96

query I rowsort
SELECT col2 + col2 FROM tab2
----
52
54
76

query I rowsort
SELECT DISTINCT 66 FROM tab0, tab0 AS cor0
----
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4406
SELECT - CAST( 1 AS SIGNED ) FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4406
SELECT - CAST ( 1 AS INTEGER ) FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4407
SELECT + col1 DIV cor0.col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4407
SELECT + col1 / cor0.col1 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4408
SELECT ALL CAST( NULL AS SIGNED ) FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4408
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL col2 * + col0 AS col1 FROM tab0
----
35
7298
792

query I rowsort
SELECT col2 + - col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 * ( col2 * col0 ) FROM tab2
----
114076
5103
52728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col2 FROM tab2
----
26
27
38

query I rowsort
SELECT + col0 + col2 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT + ( + col0 ) FROM tab0 cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-4415
SELECT DISTINCT - col2 DIV 24 + + tab2.col0 * + 11 * col0 FROM tab2
----
538
66923
68650

skipif mysql # not compatible
query I rowsort label-4415
SELECT DISTINCT - col2 / 24 + + tab2.col0 * + 11 * col0 FROM tab2
----
538
66923
68650

query I rowsort
SELECT + 7 * - col2 FROM tab0 cor0
----
-231
-574
-7

query I rowsort
SELECT ALL + col2 * cor0.col2 AS col0 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT ALL + col0 * col2 + + 7 AS col0 FROM tab0 AS cor0
----
42
7305
799

query I rowsort
SELECT - cor0.col1 + - col1 AS col2 FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT 58 FROM tab1, tab2 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

onlyif mysql # use DIV operator for integer division
query I rowsort label-4421
SELECT 21 DIV + col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4421
SELECT 21 / + col1 FROM tab2
----
0
0
1

query I rowsort
SELECT - col0 * - 75 FROM tab1
----
225
4800
6000

query I rowsort
SELECT DISTINCT tab0.col0 + col1 * + col2 FROM tab0
----
132
2862
7551

onlyif mysql # use DIV operator for integer division
query I rowsort label-4424
SELECT DISTINCT col2 + col0 DIV col0 AS col0 FROM tab0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-4424
SELECT DISTINCT col2 + col0 / col0 AS col0 FROM tab0
----
2
34
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-4425
SELECT + tab0.col0 DIV - col2 + col2 FROM tab0
----
-34
33
81

skipif mysql # not compatible
query I rowsort label-4425
SELECT + tab0.col0 / - col2 + col2 FROM tab0
----
-34
33
81

query I rowsort
SELECT col2 + - tab2.col2 * col1 FROM tab2
----
-1508
-608
-810

query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 cor0, tab0 cor1
----
243 values hashing to 566180e0144350a78b0ef3318e8f4c00

query I rowsort
SELECT - 22 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

query I rowsort
SELECT + 26 + col0 FROM tab2 AS cor0
----
104
105
33

onlyif mysql # use DIV operator for integer division
query I rowsort label-4430
SELECT ALL + - ( + col0 ) DIV - 92 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4430
SELECT ALL + - ( + col0 ) / - 92 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 * col1 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT ALL + 57 AS col2 FROM tab0 AS cor0
----
57
57
57

query I rowsort
SELECT DISTINCT - col2 * - col0 AS col2 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-4434
SELECT - 67 * + col2 DIV col2 FROM tab0 AS cor0
----
-67
-67
-67

skipif mysql # not compatible
query I rowsort label-4434
SELECT - 67 * + col2 / col2 FROM tab0 AS cor0
----
-67
-67
-67

query I rowsort
SELECT DISTINCT - col1 * - col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL + 46 - cor0.col0 AS col0 FROM tab1 AS cor0
----
-18
-34
43

query I rowsort
SELECT + cor0.col2 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT 45 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca

query I rowsort
SELECT - 31 * col2 AS col0 FROM tab0
----
-1023
-2542
-31

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4440
SELECT + cor0.col0 / CAST( NULL AS SIGNED ) + - cor0.col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4440
SELECT + cor0.col0 / CAST ( NULL AS INTEGER ) + - cor0.col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col0 + - 51 + col2 * cor0.col2 FROM tab1 AS cor0
----
2862
3134
9085

query I rowsort
SELECT ALL - + col0 AS col0 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT ALL + col0 - col1 AS col0 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT ALL - ( col0 ) AS col1 FROM tab1
----
-3
-64
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col2 col1 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT 3 AS col0 FROM tab0
----
3
3
3

skipif mysql # not compatible
query I rowsort
SELECT + - col1 * + col0 + CAST ( ( + col2 ) AS REAL ) * col2 * col2 AS col0 FROM tab1 cor0
----
157386
184553
883696

query I rowsort
SELECT DISTINCT col0 * tab1.col1 AS col2 FROM tab1
----
1040
640
78

query I rowsort
SELECT col2 * - col1 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT 20 AS col0 FROM tab1
----
20
20
20

query I rowsort
SELECT + col2 * + cor0.col1 * - 52 + cor0.col0 AS col0 FROM tab0 AS cor0
----
-147552
-387935
-5009

query I rowsort
SELECT + col0 * cor0.col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT - + col0 + ( cor0.col1 + col2 ) FROM tab1 AS cor0
----
29
3
77

query I rowsort
SELECT col1 + col1 AS col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT + cor0.col2 * - cor0.col1 + col1 AS col0 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT col2 + col2 AS col0 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT DISTINCT col2 * 6 AS col0 FROM tab2
----
156
162
228

query I rowsort
SELECT DISTINCT - ( col1 ) * - col1 FROM tab1
----
100
169
676

query I rowsort
SELECT ALL col2 + + col1 FROM tab0
----
119
173
98

query I rowsort
SELECT + col1 * - tab1.col2 AS col1 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT - - ( - cor0.col2 ) AS col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT - col2 + cor0.col2 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - - 69 AS col0 FROM tab2 cor0
----
69

query I rowsort
SELECT DISTINCT + - col2 * 50 FROM tab1 AS cor0
----
-2700
-2850
-4800

query I rowsort
SELECT - + 89 FROM tab1 AS cor0
----
-89
-89
-89

query I rowsort
SELECT ALL 95 FROM tab0 AS cor0
----
95
95
95

query I rowsort
SELECT - + cor0.col0 * + col1 * col2 AS col0 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT DISTINCT + 90 FROM tab0 AS cor0
----
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-4469
SELECT col1 DIV + col0 AS col2 FROM tab0 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-4469
SELECT col1 / + col0 AS col2 FROM tab0 AS cor0
----
1
2
3

query I rowsort
SELECT - 49 * col0 - 43 AS col2 FROM tab1 AS cor0
----
-190
-3179
-3963

query I rowsort
SELECT ( - col0 ) * col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT 87 + - cor0.col2 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 1e6598709746d4c001b3c0584e4aed1b

query IIIIIIIII rowsort
SELECT * FROM tab0, tab1 cor0 CROSS JOIN tab1
----
243 values hashing to 7e12d99d8ab63d9fd10e95cef9d78998

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col0 * tab2.col2 + col2 col2 FROM tab2
----
-114038
-5076
-52702

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4475
SELECT DISTINCT CAST( NULL AS SIGNED ) + col2 AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4475
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col2 AS col0 FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL + 38 AS col0 FROM tab0 AS cor0
----
38
38
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4477
SELECT + CAST( NULL AS SIGNED ) + + col1 * + col2 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4477
SELECT + CAST ( NULL AS INTEGER ) + + col1 * + col2 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + - cor0.col2 AS col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 43 FROM tab2 AS cor0
----
43

query I rowsort
SELECT DISTINCT + col2 + col1 * + col0 * - col0 FROM tab2 AS cor0
----
-106059
-1492
-358930

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4481
SELECT ALL + CAST( NULL AS SIGNED ) / + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4481
SELECT ALL + CAST ( NULL AS INTEGER ) / + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4482
SELECT ALL - - CAST( NULL AS SIGNED ) * 22 * col2 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4482
SELECT ALL - - CAST ( NULL AS INTEGER ) * 22 * col2 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4483
SELECT - col1 * ( col2 ) + col1 DIV 55 AS col0 FROM tab0 AS cor0
----
-2837
-7461
-96

skipif mysql # not compatible
query I rowsort label-4483
SELECT - col1 * ( col2 ) + col1 / 55 AS col0 FROM tab0 AS cor0
----
-2837
-7461
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4484
SELECT + ( col0 ) DIV col1 col0 FROM tab0 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4484
SELECT + ( col0 ) / col1 col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT - cor0.col2 * + col2 AS col0 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT 38 * + col0 * col2 AS col1 FROM tab1 AS cor0
----
138624
291840
6156

query I rowsort
SELECT + + 80 + - col1 AS col0 FROM tab0 cor0
----
-11
-17
-6

query I rowsort
SELECT ALL + col2 * + 60 AS col0 FROM tab2 AS cor0
----
1560
1620
2280

onlyif mysql # use DIV operator for integer division
query I rowsort label-4489
SELECT DISTINCT - col1 DIV + 51 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-4489
SELECT DISTINCT - col1 / + 51 FROM tab0
----
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4490
SELECT col1 * 37 DIV + col0 AS col1 FROM tab1
----
320
5
6

skipif mysql # not compatible
query I rowsort label-4490
SELECT col1 * 37 / + col0 AS col1 FROM tab1
----
320
5
6

query I rowsort
SELECT DISTINCT ( + col1 ) AS col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL col0 * col2 + - col0 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT ALL - 64 * col2 + + col1 FROM tab2 AS cor0
----
-1605
-1697
-2415

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4494
SELECT DISTINCT - CAST( 90 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-4494
SELECT DISTINCT - CAST ( 90 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-90

query I rowsort
SELECT + col0 - + col2 AS col1 FROM tab2 AS cor0
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-4496
SELECT ALL + 86 DIV col1 + cor0.col0 FROM tab1 AS cor0
----
6
72
86

skipif mysql # not compatible
query I rowsort label-4496
SELECT ALL + 86 / col1 + cor0.col0 FROM tab1 AS cor0
----
6
72
86

query I rowsort
SELECT ALL col0 + col1 + col0 AS col2 FROM tab0
----
134
167
269

query I rowsort
SELECT ALL - + col1 * + col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL tab0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT - ( 18 ) + + col2 AS col0 FROM tab2
----
20
8
9

query I rowsort
SELECT - - ( - col1 ) * + col1 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT ( col1 ) FROM tab0
----
86
91
97

query I rowsort
SELECT - 54 * col1 + + col1 FROM tab0
----
-4558
-4823
-5141

query I rowsort
SELECT DISTINCT col2 * 75 FROM tab2 AS cor0
----
1950
2025
2850

query I rowsort
SELECT DISTINCT + col0 + col1 + - 8 FROM tab1 AS cor0
----
21
66
85

query I rowsort
SELECT DISTINCT + col0 + ( - ( + col0 ) ) AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT 79 FROM tab1, tab0 cor0
----
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col1 FROM tab0
----
24
35
89

query I rowsort
SELECT + col1 + ( 9 ) - tab2.col1 * 47 FROM tab2
----
-1417
-2705
-773

query I rowsort
SELECT + col2 + 74 FROM tab2
----
100
101
112

query I rowsort
SELECT col0 + - 82 + - col2 AS col0 FROM tab2
----
-102
-30
-41

query I rowsort
SELECT DISTINCT - col2 * + col2 AS col2 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT col0 - col0 AS col0 FROM tab2
----
0

query I rowsort
SELECT DISTINCT + col2 - col1 * 51 * col2 FROM tab0
----
-144705
-380480
-4946

query I rowsort
SELECT col1 + 93 FROM tab0 AS cor0
----
179
184
190

query I rowsort
SELECT - cor0.col1 * col1 - col2 * + col0 FROM tab0 cor0
----
-15579
-8188
-9444

query I rowsort
SELECT + + cor0.col1 FROM tab1 AS cor0
----
10
13
26

query IIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
243 values hashing to 89e3b35a4a4f02d7b83645addb9dcdc3

query I rowsort
SELECT col0 + - col0 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT 45 FROM tab0, tab2 AS cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT DISTINCT - col0 + - col0 AS col1 FROM tab1 AS cor0
----
-128
-160
-6

onlyif mysql # use DIV operator for integer division
query I rowsort label-4522
SELECT ALL + col0 DIV col0 + - col2 - col1 AS col0 FROM tab2 AS cor0
----
-54
-57
-84

skipif mysql # not compatible
query I rowsort label-4522
SELECT ALL + col0 / col0 + - col2 - col1 AS col0 FROM tab2 AS cor0
----
-54
-57
-84

query I rowsort
SELECT ALL col1 - col2 AS col2 FROM tab2 cor0
----
-21
33
4

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 * + 51 AS col2 FROM tab2 AS cor0
----
1326
1377
1938

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4526
SELECT ALL cor0.col1 + + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4526
SELECT ALL cor0.col1 + + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * col0 AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT 96 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query I rowsort
SELECT DISTINCT tab2.col0 * col0 FROM tab2
----
49
6084
6241

query IIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 AS cor2
----
972 values hashing to 63ccb67e72ebac679a0221202c067b9e

query I rowsort
SELECT - 87 * col1 + col0 * - ( + ( + col1 ) ) AS col1 FROM tab0 AS cor0
----
-11834
-16016
-9546

query I rowsort
SELECT DISTINCT col0 * col0 - + col0 AS col0 FROM tab2 cor0
----
42
6006
6162

query I rowsort
SELECT ALL + ( ( - col1 ) ) FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT + col1 * cor0.col1 - col0 * cor0.col0 FROM tab1 AS cor0
----
-3996
-6231
667

query I rowsort
SELECT ALL col2 * + col1 + col2 * - ( - ( - col0 ) * + col2 ) AS col2 FROM tab0
----
-23298
-590974
62

query I rowsort
SELECT ALL - 72 FROM tab1
----
-72
-72
-72

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4537
SELECT ALL + + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4537
SELECT ALL + + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 93 * 94 + - col1 FROM tab2 AS cor0
----
-8759
-8773
-8801

query I rowsort
SELECT + + col2 + col2 AS col0 FROM tab2 AS cor0
----
52
54
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4540
SELECT ALL - cor0.col2 / CAST( NULL AS DECIMAL ) FROM tab2, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4540
SELECT ALL - cor0.col2 / CAST ( NULL AS REAL ) FROM tab2, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - col1 + 39 * + col2 AS col2 FROM tab1 AS cor0
----
2080
2213
3731

onlyif mysql # use DIV operator for integer division
query I rowsort label-4542
SELECT ALL + col2 + col1 DIV col1 FROM tab2 AS cor0
----
27
28
39

skipif mysql # not compatible
query I rowsort label-4542
SELECT ALL + col2 + col1 / col1 FROM tab2 AS cor0
----
27
28
39

onlyif mysql # use DIV operator for integer division
query I rowsort label-4543
SELECT + cor0.col1 DIV cor0.col0 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 245313dc4e9fc19df7ee93651efe9bf2

skipif mysql # not compatible
query I rowsort label-4543
SELECT + cor0.col1 / cor0.col0 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 245313dc4e9fc19df7ee93651efe9bf2

query I rowsort
SELECT + cor1.col0 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query IIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0, tab2 cor1
----
243 values hashing to 5d85c5683e3ffd6d68920690d7302f7d

query I rowsort
SELECT ALL - col0 AS col2 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT + + col2 * col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT col2 * col0 AS col0 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT ALL - col0 * + col2 * + col2 FROM tab2 AS cor0
----
-114076
-5103
-52728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col1 col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT 52 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 76100d10f51995d20efdeb657e444d3c

query I rowsort
SELECT - + col2 * col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT - 22 FROM tab0
----
-22
-22
-22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * + col2 col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT + - col0 FROM tab0 cor0
----
-24
-35
-89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4556
SELECT ALL - + cor0.col0 + col2 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4556
SELECT ALL - + cor0.col0 + col2 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 * col2 AS col1 FROM tab2 AS cor0
----
-1444
-676
-729

onlyif mysql # use DIV operator for integer division
query I rowsort label-4558
SELECT DISTINCT 78 + col1 DIV ( - col1 ) FROM tab0 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-4558
SELECT DISTINCT 78 + col1 / ( - col1 ) FROM tab0 AS cor0
----
77

query I rowsort
SELECT - + col2 * - col1 AS col1 FROM tab2 AS cor0
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 43 * - 21 col0 FROM tab1, tab0 AS cor0
----
9 values hashing to cd2ba1ead8f9ba8f3d584c84e726c490

onlyif mysql # use DIV operator for integer division
query I rowsort label-4561
SELECT - col0 + - col2 DIV 84 FROM tab1 AS cor0
----
-3
-64
-81

skipif mysql # not compatible
query I rowsort label-4561
SELECT - col0 + - col2 / 84 FROM tab1 AS cor0
----
-3
-64
-81

query I rowsort
SELECT DISTINCT col0 * - col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT + col0 + + col2 * col0 AS col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT DISTINCT + ( col2 ) FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL - col1 + col2 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT ALL - col2 FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT DISTINCT + + col0 * - col2 FROM tab0 AS cor0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col0 FROM tab0 AS cor0
----
-1
-33
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4569
SELECT + col2 * CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4569
SELECT + col2 * CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * + 24 * col2 col1 FROM tab1 AS cor0
----
221184
69984
77976

query I rowsort
SELECT cor0.col1 * - col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT - cor0.col0 * ( cor0.col1 * cor0.col0 ) AS col0 FROM tab1 cor0
----
-234
-40960
-83200

query I rowsort
SELECT ALL - col1 + col0 AS col1 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT ALL + col0 - - col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT - + cor0.col1 + 71 FROM tab1 AS cor0
----
45
58
61

query I rowsort
SELECT ALL + col0 + col2 AS col2 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT DISTINCT - - col2 * 96 AS col0 FROM tab1 AS cor0
----
5184
5472
9216

query I rowsort
SELECT ALL cor0.col1 * + col0 AS col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT col0 * - cor0.col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL 47 AS col0 FROM tab0
----
47
47
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col2 FROM tab2
----
26
27
38

query I rowsort
SELECT ALL col2 * + col2 * col1 AS col2 FROM tab1
----
119808
32490
75816

query I rowsort
SELECT ALL col1 AS col2 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT + + col1 * ( - cor0.col1 * + col1 ) FROM tab0 AS cor0
----
-636056
-753571
-912673

query I rowsort
SELECT + col2 * 72 AS col2 FROM tab0 AS cor0
----
2376
5904
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 col2 FROM tab2
----
189
2028
3002

query I rowsort
SELECT DISTINCT ( col2 ) * - col1 * 76 AS col1 FROM tab0 AS cor0
----
-215688
-567112
-7372

onlyif mysql # use DIV operator for integer division
query I rowsort label-4588
SELECT - col2 + - col2 DIV 10 AS col0 FROM tab2 AS cor0
----
-28
-29
-41

skipif mysql # not compatible
query I rowsort label-4588
SELECT - col2 + - col2 / 10 AS col0 FROM tab2 AS cor0
----
-28
-29
-41

query I rowsort
SELECT DISTINCT + ( col1 ) * + 30 FROM tab0
----
2580
2730
2910

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col2 FROM tab0
----
24
35
89

query I rowsort
SELECT + + tab2.col0 AS col1 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT - + cor0.col2 AS col1 FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT ALL - col2 AS col0 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab0 AS cor0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-4595
SELECT ALL - cor0.col1 + col0 DIV col2 AS col1 FROM tab0 AS cor0
----
-62
-86
-90

skipif mysql # not compatible
query I rowsort label-4595
SELECT ALL - cor0.col1 + col0 / col2 AS col1 FROM tab0 AS cor0
----
-62
-86
-90

query I rowsort
SELECT DISTINCT - col1 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT - 69 AS col0 FROM tab2 AS cor0
----
-69
-69
-69

query I rowsort
SELECT + col1 + + 79 FROM tab1 AS cor0
----
105
89
92

query I rowsort
SELECT - col1 * col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT col1 * + 32 AS col1 FROM tab2 AS cor0
----
1888
544
992

query I rowsort
SELECT - col1 * + ( - 86 ) AS col2 FROM tab0 AS cor0
----
7396
7826
8342

query I rowsort
SELECT ALL + col1 + 18 * - col1 + - col0 AS col0 FROM tab1 AS cor0
----
-234
-301
-445

query I rowsort
SELECT DISTINCT + - cor0.col2 - - col1 AS col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT ALL col1 * + cor0.col1 FROM tab2 AS cor0
----
289
3481
961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 col0 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT - col1 * - cor0.col2 + 62 FROM tab1 AS cor0
----
1310
1466
632

query I rowsort
SELECT ALL - ( col2 ) AS col1 FROM tab2
----
-26
-27
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col0 FROM tab0
----
86
91
97

query I rowsort
SELECT + col1 * cor0.col1 AS col0 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT ALL - 91 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 6ec4feac5c635ab8e5da71006896acab

query I rowsort
SELECT - tab0.col2 AS col2 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT ALL - tab2.col2 + + col0 FROM tab2
----
-20
41
52

query I rowsort
SELECT DISTINCT + col2 * col2 + - tab0.col2 FROM tab0
----
0
1056
6642

query I rowsort
SELECT col1 * + col1 + col2 FROM tab0
----
7429
8363
9410

query I rowsort
SELECT ALL tab2.col0 FROM tab2
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col2 FROM tab0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col0 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT ALL tab0.col1 * + col1 * + tab0.col0 + col0 * + col1 AS col1 FROM tab0
----
179568
332710
745108

query I rowsort
SELECT col1 + + col2 * col2 FROM tab0
----
1175
6815
98

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE NOT ( NULL ) IN ( + col0 )
----

query I rowsort
SELECT - col2 * + col0 AS col0 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT ALL col2 + + col0 FROM tab1
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-4623
SELECT + col0 DIV - col0 col2 FROM tab1
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4623
SELECT + col0 / - col0 col2 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT + tab2.col1 * col2 AS col1 FROM tab2
----
1534
646
837

query I rowsort
SELECT ALL + col0 + col2 AS col1 FROM tab1
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-4626
SELECT ALL col0 DIV - col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4626
SELECT ALL col0 / - col0 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT col2 + + col1 - tab1.col2 AS col1 FROM tab1
----
10
13
26

query I rowsort
SELECT + tab2.col0 * col0 * + col2 AS col2 FROM tab2
----
1323
158184
237158

query I rowsort
SELECT col1 * + col0 * col0 AS col1 FROM tab1
----
234
40960
83200

onlyif mysql # use DIV operator for integer division
query I rowsort label-4630
SELECT ALL + tab2.col0 DIV tab2.col1 AS col1 FROM tab2
----
0
1
4

skipif mysql # not compatible
query I rowsort label-4630
SELECT ALL + tab2.col0 / tab2.col1 AS col1 FROM tab2
----
0
1
4

query I rowsort
SELECT - col2 AS col2 FROM tab2 WHERE NULL NOT IN ( col1 )
----

query I rowsort
SELECT DISTINCT tab1.col1 + + col0 + - col2 FROM tab1
----
-25
-3
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - col0 + col1 col1 FROM tab0
----
86
91
97

query I rowsort
SELECT - col2 * col1 - - col0 FROM tab1
----
-1168
-1401
-506

query I rowsort
SELECT ALL col0 * - col1 * col2 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT ALL col2 * - tab2.col0 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT col1 * col1 - - col0 * + col1 AS col2 FROM tab2
----
1178
1632
8083

query I rowsort
SELECT ALL - col2 * + col0 + col2 AS col0 FROM tab2
----
-162
-2002
-2964

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + tab1.col1 col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT col0 * col1 + - col1 FROM tab1
----
1027
52
630

query I rowsort
SELECT col0 + col0 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT DISTINCT col2 * col1 AS col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT col1 / + col1 + col1 + col0 / - col0 FROM tab1 WHERE ( col2 + - col1 ) <= - col0
----

query I rowsort
SELECT col1 + col1 FROM tab0
----
172
182
194

query I rowsort
SELECT DISTINCT col2 + col1 * col0 FROM tab2
----
1381
244
4628

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col1 col0 FROM tab1
----
10
13
26

query I rowsort
SELECT + col2 * col0 * - col0 FROM tab2
----
-1323
-158184
-237158

query I rowsort
SELECT - tab0.col2 + col0 * col2 + + col1 FROM tab0 WHERE NOT - col1 * + col2 BETWEEN col0 AND ( - col0 + col2 * col0 )
----
131
7307
845

query I rowsort
SELECT ALL + col2 * + tab0.col2 AS col1 FROM tab0
----
1
1089
6724

query I rowsort
SELECT DISTINCT - col2 * - tab0.col2 FROM tab0
----
1
1089
6724

query I rowsort
SELECT ALL col0 + - col0 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT tab0.col2 FROM tab0 WHERE NOT NULL NOT BETWEEN ( + col0 * col2 ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * tab1.col1 col1 FROM tab1
----
1040
640
78

query I rowsort
SELECT col0 * col2 * - col2 AS col2 FROM tab2
----
-114076
-5103
-52728

query I rowsort
SELECT ALL + tab1.col2 * col0 AS col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT + - col2 + + col2 * ( 32 ) AS col0 FROM tab1 AS cor0
----
1674
1767
2976

query I rowsort
SELECT + + 25 * - col1 - - ( - cor0.col0 ) AS col1 FROM tab2 AS cor0
----
-1553
-504
-782

onlyif mysql # use DIV operator for integer division
query I rowsort label-4658
SELECT cor0.col1 DIV + col1 + ( col1 ) FROM tab1 AS cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-4658
SELECT cor0.col1 / + col1 + ( col1 ) FROM tab1 AS cor0
----
11
14
27

query I rowsort
SELECT - + cor0.col0 AS col1 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT ( - cor0.col2 ) + + col0 * col1 AS col1 FROM tab2 AS cor0
----
1305
190
4576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 56 + col2 col0 FROM tab0 AS cor0
----
-23
-55
26

query I rowsort
SELECT + col0 * cor0.col1 AS col0 FROM tab1 cor0
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 45 col0 FROM tab0
----
45
45
45

query I rowsort
SELECT ( tab2.col0 ) * - col2 AS col2 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT 44 AS col0 FROM tab0
----
44
44
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 * - col1 col0 FROM tab1
----
-310
-403
-806

query I rowsort
SELECT - ( + col0 ) * + 60 FROM tab2
----
-420
-4680
-4740

query I rowsort
SELECT ALL - 10 FROM tab1
----
-10
-10
-10

query I rowsort
SELECT ALL 0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # use DIV operator for integer division
query I rowsort label-4670
SELECT - col1 + col1 DIV - col1 col0 FROM tab1 AS cor0
----
-11
-14
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4670
SELECT - col1 + col1 / - col1 col0 FROM tab1 AS cor0
----
-11
-14
-27

query I rowsort
SELECT col1 + - cor0.col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + + 62 AS col1 FROM tab1 AS cor0
----
62
62
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-4673
SELECT - col2 DIV - col2 AS col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4673
SELECT - col2 / - col2 AS col0 FROM tab0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4674
SELECT - ( - col2 ) + 44 DIV + col0 AS col1 FROM tab0 AS cor0
----
2
34
82

skipif mysql # not compatible
query I rowsort label-4674
SELECT - ( - col2 ) + 44 / + col0 AS col1 FROM tab0 AS cor0
----
2
34
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) col1 FROM tab1 cor0
----
-3
-64
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab0
----
24
35
89

query I rowsort
SELECT ALL cor1.col1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4678
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4678
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT - + col2 + + col0 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT ALL - + col0 * col0 + col2 FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT DISTINCT + - cor0.col0 AS col2 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT ALL col0 - 21 AS col2 FROM tab0 cor0
----
14
3
68

query I rowsort
SELECT + cor0.col0 AS col1 FROM tab1 AS cor0
----
3
64
80

query IIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
243 values hashing to 042fa16c43ab365359ee93c064e44127

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 AS cor2, tab1 AS cor3
----
3645 values hashing to d95cefa45985203e212af5af5dd9be5b

query I rowsort
SELECT - - 65 * ( col0 ) FROM tab2 AS cor0
----
455
5070
5135

query I rowsort
SELECT DISTINCT + 15 + col0 FROM tab1 AS cor0
----
18
79
95

query I rowsort
SELECT ALL - - col0 - + col1 FROM tab1 AS cor0
----
-23
54
67

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4689
SELECT + - CAST( col2 AS SIGNED ) AS col0 FROM tab1 cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-4689
SELECT + - CAST ( col2 AS INTEGER ) AS col0 FROM tab1 cor0
----
-54
-57
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col2 FROM tab0
----
1
33
82

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0, tab0 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to ae08f1949fd59e00b049f28175217e60

query I rowsort
SELECT ( - col0 ) FROM tab1 AS cor0
----
-3
-64
-80

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0, tab0 cor1, tab2, tab2 AS cor2
----
3645 values hashing to 489dc4a89dc53914f025e2426f93a929

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0, tab2 AS cor1, tab1 AS cor2
----
972 values hashing to dd771e0c15d524f62127686e9bd43f9a

query I rowsort
SELECT - + ( cor0.col0 ) AS col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT - col0 + col2 + col1 * col0 AS col0 FROM tab2 AS cor0
----
1302
237
4550

query I rowsort
SELECT - - col1 * col0 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT + + ( + col2 ) - + col0 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT + col0 * col2 AS col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT col2 * - col1 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT - 26 * - col2 AS col0 FROM tab2 AS cor0
----
676
702
988

query I rowsort
SELECT DISTINCT 61 AS col2 FROM tab0 cor0
----
61

query I rowsort
SELECT DISTINCT - + col1 * + col0 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT + cor0.col2 AS col1 FROM tab2 AS cor0
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 44 + - col2 * cor0.col2 col2 FROM tab1 AS cor0
----
-2872
-3205
-9172

query I rowsort
SELECT ALL - col0 * - col0 AS col2 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT - 87 FROM tab2 AS cor0
----
-87

query I rowsort
SELECT + cor0.col2 * col2 AS col0 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT ALL - col1 * + col1 * col1 FROM tab2 AS cor0
----
-205379
-29791
-4913

query I rowsort
SELECT DISTINCT col1 * + cor0.col0 + col2 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT ALL - cor0.col0 * + col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT - + col0 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT + 72 + col0 AS col2 FROM tab2 AS cor0
----
150
151
79

query I rowsort
SELECT ALL + + ( col1 ) * - col1 + + col2 AS col1 FROM tab2 AS cor0
----
-251
-3455
-934

query I rowsort
SELECT + + 23 + + col2 AS col1 FROM tab1 AS cor0
----
119
77
80

query I rowsort
SELECT + col2 + - col2 * + col2 FROM tab2 AS cor0
----
-1406
-650
-702

query I rowsort
SELECT cor0.col1 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT DISTINCT cor0.col1 * + col0 AS col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT - - col0 + col0 FROM tab0 cor0
----
178
48
70

query I rowsort
SELECT DISTINCT + cor0.col2 * cor0.col0 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-4721
SELECT ALL + cor0.col0 * cor0.col1 DIV col2 AS col2 FROM tab0 AS cor0
----
3395
62
98

skipif mysql # not compatible
query I rowsort label-4721
SELECT ALL + cor0.col0 * cor0.col1 / col2 AS col2 FROM tab0 AS cor0
----
3395
62
98

query I rowsort
SELECT ALL col2 + - col1 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT DISTINCT + col0 * - col2 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT + col1 + + col2 AS col0 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL 86 - col2 FROM tab0
----
4
53
85

query I rowsort
SELECT 4 * col2 FROM tab0
----
132
328
4

query I rowsort
SELECT col1 * + col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT - 84 * - col2 * + col2 FROM tab1
----
244944
272916
774144

onlyif mysql # use DIV operator for integer division
query I rowsort label-4729
SELECT ALL + - col2 + + col0 DIV col1 AS col2 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-4729
SELECT ALL + - col2 + + col0 / col1 AS col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ALL - col0 * 31 + - col0 AS col0 FROM tab2 cor0
----
-224
-2496
-2528

query I rowsort
SELECT DISTINCT cor0.col1 * col2 - cor0.col1 * col0 AS col2 FROM tab2 AS cor0
----
-3068
-697
620

query I rowsort
SELECT - ( + col0 ) * col0 AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT + - cor0.col2 + + col0 AS col0 FROM tab1 AS cor0
----
-16
-51
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4734
SELECT - CAST( - col2 AS SIGNED ) * col0 AS col0 FROM tab2 AS cor0
----
189
2028
3002

skipif mysql # not compatible
query I rowsort label-4734
SELECT - CAST ( - col2 AS INTEGER ) * col0 AS col0 FROM tab2 AS cor0
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 12 * + col0 + col2 col2 FROM tab0 AS cor0
----
1150
321
421

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 cor0, tab2, tab0 AS cor1
----
972 values hashing to 380241bbc503a31e70494611a87ffd99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 80 * + 73 col0 FROM tab1
----
-5840
-5840
-5840

query I rowsort
SELECT ALL + col1 AS col1 FROM tab2
----
17
31
59

query I rowsort
SELECT DISTINCT 42 FROM tab0 AS cor0
----
42

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4740
SELECT + CAST( col1 AS SIGNED ) FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-4740
SELECT + CAST ( col1 AS INTEGER ) FROM tab0
----
86
91
97

query I rowsort
SELECT + tab0.col0 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT + 69 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT ALL 98 AS col2 FROM tab1
----
98
98
98

query I rowsort
SELECT DISTINCT 36 FROM tab1
----
36

query I rowsort
SELECT DISTINCT - col2 * + col1 AS col1 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT - col2 + col0 FROM tab1
----
-16
-51
7

query I rowsort
SELECT + tab1.col1 * col0 - tab1.col1 FROM tab1
----
1027
52
630

onlyif mysql # use DIV operator for integer division
query I rowsort label-4748
SELECT DISTINCT col0 + col0 DIV + col0 AS col2 FROM tab1 AS cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-4748
SELECT DISTINCT col0 + col0 / + col0 AS col2 FROM tab1 AS cor0
----
4
65
81

query I rowsort
SELECT ALL cor0.col0 + col0 AS col2 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT ALL + cor0.col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL - tab0.col0 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT ALL - cor0.col1 AS col1 FROM tab0, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + tab1.col0 * - col0 + - col1 * - col1 col1 FROM tab1
----
-233372
-614231
190

query I rowsort
SELECT ALL - col2 + tab1.col1 AS col2 FROM tab1
----
-28
-47
-83

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) IN ( tab0.col1 )
----

query I rowsort
SELECT DISTINCT - col0 + + col2 FROM tab0
----
-34
-7
9

query I rowsort
SELECT + col2 + - col0 * + col0 * - tab2.col2 FROM tab2
----
1350
158210
237196

query I rowsort
SELECT DISTINCT + col2 * col0 + col1 * col1 AS col2 FROM tab1
----
3748
7849
838

query I rowsort
SELECT tab1.col2 * col2 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT DISTINCT tab0.col0 * - col2 + col0 * col2 AS col0 FROM tab0
----
0

query I rowsort
SELECT + col0 + col0 AS col1 FROM tab0
----
178
48
70

query I rowsort
SELECT ALL + col2 * + col0 + + col1 * col1 * - col1 FROM tab1
----
-17414
2648
5483

query I rowsort
SELECT DISTINCT cor0.col0 FROM tab2, tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL col2 + col2 AS col0 FROM tab0 cor0
----
164
2
66

query I rowsort
SELECT DISTINCT col1 + - cor0.col1 * - col0 FROM tab1 AS cor0
----
104
1053
650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col1 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT - col0 * + col2 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT ALL col2 - col0 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT + col0 + + col0 AS col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( col1 )
----

query I rowsort
SELECT ALL - col2 + col2 + col2 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-4771
SELECT col0 DIV col2 AS col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4771
SELECT col0 / col2 AS col2 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT col1 - col2 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT ALL col0 * col2 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT col0 - col1 * + col1 FROM tab0
----
-7372
-8192
-9374

query I rowsort
SELECT ALL - col1 + col1 * col0 FROM tab0
----
1978
3298
8008

query I rowsort
SELECT DISTINCT tab2.col2 + col1 + col2 FROM tab2
----
111
85
93

query I rowsort
SELECT + col1 + - col2 + - col2 * col0 FROM tab1
----
-190
-3695
-7763

query I rowsort
SELECT tab0.col1 + col1 * col1 * col0 AS col2 FROM tab0
----
177590
329412
737100

query I rowsort
SELECT - col2 * - col1 AS col1 FROM tab0
----
2838
7462
97

query I rowsort
SELECT col0 * col2 - tab1.col0 AS col2 FROM tab1
----
159
3584
7600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - tab2.col1 * col1 col0 FROM tab2
----
-272
-3422
-930

query I rowsort
SELECT col0 * - col0 AS col0 FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT + col1 + - cor0.col2 AS col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT + col1 + col0 * - col0 AS col0 FROM tab1 cor0
----
-4086
-6387
17

query I rowsort
SELECT ALL + cor0.col0 * col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL - col0 + col0 * col2 AS col1 FROM tab1
----
159
3584
7600

query I rowsort
SELECT ALL col0 + - col2 FROM tab2
----
-20
41
52

query I rowsort
SELECT ALL - tab0.col2 + - col2 * col1 + col2 * col1 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT ALL col2 - - cor0.col1 * + col2 AS col1 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT cor0.col2 + cor0.col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT col0 * col0 + + cor0.col1 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
4736
7440
87

query I rowsort
SELECT DISTINCT - cor0.col0 + + cor0.col0 * - col2 AS col2 FROM tab2 cor0
----
-196
-2106
-3081

query I rowsort
SELECT cor0.col2 + cor0.col1 FROM tab0 AS cor0
----
119
173
98

query III rowsort
SELECT * FROM tab1 WHERE NULL < + col1 * col0 * col2
----

query I rowsort
SELECT ALL - + col2 + col2 * + col2 AS col0 FROM tab2 cor0
----
1406
650
702

query I rowsort
SELECT DISTINCT + col1 + + col0 AS col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL - + col1 - col2 * + col2 FROM tab0 AS cor0
----
-1175
-6815
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + col1 col2 FROM tab1 AS cor0
----
-28
-47
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col1 col2 FROM tab0 cor0
----
172
182
194

query I rowsort
SELECT - + col0 AS col2 FROM tab1 cor0
----
-3
-64
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - - col2 * col2 col1 FROM tab0 AS cor0
----
-96
1003
6633

query I rowsort
SELECT ALL col1 + + col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT - col2 * col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL + + col1 + col1 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT - col0 * tab0.col1 * + col2 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT - col2 * cor0.col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL col1 * col1 * col0 AS col0 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT DISTINCT cor0.col2 + + col2 * col2 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT - col1 * col0 * - col2 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT DISTINCT + - col2 AS col1 FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT DISTINCT + - cor0.col1 AS col2 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT + col1 * - cor0.col1 + col2 FROM tab1 AS cor0
----
-43
-622
-73

onlyif mysql # use DIV operator for integer division
query I rowsort label-4813
SELECT + 42 DIV cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to afffde36d7941817c465a011d787f2b8

skipif mysql # not compatible
query I rowsort label-4813
SELECT + 42 / cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to afffde36d7941817c465a011d787f2b8

query IIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1 WHERE NOT ( NULL ) < NULL
----

query I rowsort
SELECT ALL col1 + + 85 FROM tab2
----
102
116
144

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab0 cor1
----
54 values hashing to 2a7467bc6f55dbb61fbd4aa2bd0646a9

query I rowsort
SELECT ALL - cor0.col1 * - 33 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to d3834505d5e42cb1b3ed13f8b694cb07

query I rowsort
SELECT col1 * - col1 FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT 24 AS col2 FROM tab0
----
24

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4820
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4820
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT ALL - 7 FROM tab0
----
-7
-7
-7

query I rowsort
SELECT + col0 * - col2 FROM tab2
----
-189
-2028
-3002

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 cor0, tab1 cor1
----
243 values hashing to 89e3b35a4a4f02d7b83645addb9dcdc3

query I rowsort
SELECT + ( - 63 ) FROM tab2
----
-63
-63
-63

query I rowsort
SELECT ALL cor1.col2 AS col1 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT ALL + 38 FROM tab2 AS cor0
----
38
38
38

query I rowsort
SELECT - 10 * - col0 FROM tab2 AS cor0
----
70
780
790

query I rowsort
SELECT 92 AS col2 FROM tab0 AS cor0
----
92
92
92

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col2 col2 FROM tab0
----
2838
7462
97

query I rowsort
SELECT ALL - - col1 * col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT - cor1.col1 AS col0 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT ALL + + 92 AS col1 FROM tab1 AS cor0
----
92
92
92

query I rowsort
SELECT ALL + - col1 + + col1 + ( - col0 ) * col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT - ( + tab0.col1 ) * 57 FROM tab0
----
-4902
-5187
-5529

query I rowsort
SELECT + 71 FROM tab1
----
71
71
71

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab0 AS cor1, tab0 AS cor2
----
972 values hashing to b2fa3f9d060540fe1eb4ad1c0754e163

query I rowsort
SELECT ALL 71 FROM tab0 AS cor0
----
71
71
71

query I rowsort
SELECT - col0 * - col2 * 4 FROM tab2 cor0
----
12008
756
8112

query I rowsort
SELECT ALL + - 64 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
448
4992
5056

onlyif mysql # use DIV operator for integer division
query I rowsort label-4841
SELECT DISTINCT + - col2 DIV + col1 FROM tab2 AS cor0
----
-2
0

skipif mysql # not compatible
query I rowsort label-4841
SELECT DISTINCT + - col2 / + col1 FROM tab2 AS cor0
----
-2
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4842
SELECT + col0 - col1 DIV - col2 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-4842
SELECT + col0 - col1 / - col2 FROM tab1 AS cor0
----
3
64
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4843
SELECT ALL - col1 + CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4843
SELECT ALL - col1 + CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * + cor0.col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL - col0 + - col1 * col1 + + col0 AS col2 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT ALL - + cor0.col2 + - cor0.col2 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT DISTINCT col0 + col0 FROM tab2 cor0
----
14
156
158

query I rowsort
SELECT + col2 * ( + col1 ) - col0 FROM tab1 AS cor0
----
1168
1401
506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 * + ( - col0 + + cor0.col1 ) col1 FROM tab0 AS cor0
----
182
5332
6014

query I rowsort
SELECT + - col1 AS col2 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT + col0 * - ( + col2 ) AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT col0 * 31 FROM tab2
----
217
2418
2449

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4853
SELECT - col1 + CAST( NULL AS SIGNED ) * 90 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4853
SELECT - col1 + CAST ( NULL AS INTEGER ) * 90 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * 91 FROM tab0 AS cor0
----
2184
3185
8099

query I rowsort
SELECT ALL - tab1.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

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-4857
SELECT - - col1 DIV - 18 FROM tab0 AS cor0
----
-4
-5
-5

skipif mysql # not compatible
query I rowsort label-4857
SELECT - - col1 / - 18 FROM tab0 AS cor0
----
-4
-5
-5

query I rowsort
SELECT col1 + - col1 * - col0 FROM tab0 AS cor0
----
2150
3492
8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-4859
SELECT ALL - col0 DIV - col0 AS col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4859
SELECT ALL - col0 / - col0 AS col2 FROM tab0 AS cor0
----
1
1
1

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 cor0, tab2 AS cor1, tab2 AS cor2
----
972 values hashing to a47a9db07c7de4927c7c28efb4cd13f2

query I rowsort
SELECT col0 * col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT 49 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

query I rowsort
SELECT ALL + col0 * col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT 13 * + col2 - + col1 FROM tab2 AS cor0
----
279
320
477

query I rowsort
SELECT DISTINCT + - ( col1 ) * - cor0.col1 AS col2 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT DISTINCT - ( + col2 ) * + col2 * + col2 AS col1 FROM tab0 AS cor0
----
-1
-35937
-551368

query I rowsort
SELECT ALL + - col1 FROM tab0 AS cor0
----
-86
-91
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4868
SELECT + CAST( NULL AS SIGNED ) - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4868
SELECT + CAST ( NULL AS INTEGER ) - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL cor0.col1 + + 35 FROM tab2 AS cor0
----
52
66
94

query I rowsort
SELECT ( col2 ) * col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL - + ( 20 ) FROM tab1 cor0
----
-20
-20
-20

query I rowsort
SELECT + - col1 * 28 AS col0 FROM tab2 AS cor0
----
-1652
-476
-868

query I rowsort
SELECT DISTINCT + cor0.col0 * + col1 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4874
SELECT CAST( NULL AS SIGNED ) * col1 + col2 * ( col0 ) * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4874
SELECT CAST ( NULL AS INTEGER ) * col1 + col2 * ( col0 ) * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( col2 ) AS col2 FROM tab2 AS cor0
----
26
27
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4876
SELECT ( - col0 ) * col1 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4876
SELECT ( - col0 ) * col1 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + ( + col0 ) * col2 + cor0.col2 AS col0 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT ALL - 60 + cor0.col0 FROM tab0 AS cor0
----
-25
-36
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col2 col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT DISTINCT - 91 FROM tab1 AS cor0
----
-91

query I rowsort
SELECT + + col2 + 10 FROM tab0 AS cor0
----
11
43
92

query I rowsort
SELECT DISTINCT - col2 * + col2 * + col2 AS col2 FROM tab0
----
-1
-35937
-551368

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col2 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT ALL ( - cor0.col2 ) FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

query I rowsort
SELECT - + cor0.col0 * + col2 + col1 + col2 FROM tab2 AS cor0
----
-131
-1943
-2947

query I rowsort
SELECT + col1 + + col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT cor0.col0 AS col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT + + 6 * col2 + 20 AS col1 FROM tab0 cor0
----
218
26
512

query I rowsort
SELECT - col2 * + col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT + - cor0.col2 AS col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT + col2 + col0 AS col2 FROM tab0 AS cor0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * cor0.col0 col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT - cor0.col0 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

query I rowsort
SELECT + col1 AS col0 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT DISTINCT - ( cor0.col1 ) AS col0 FROM tab0, tab1, tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT ALL col1 + + col2 * - col0 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT ALL - cor0.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

query I rowsort
SELECT - cor0.col1 * col1 AS col1 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT 12 FROM tab2
----
12
12
12

query I rowsort
SELECT 87 + 35 FROM tab2
----
122
122
122

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col1 col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT + 29 * col1 FROM tab2 cor0
----
1711
493
899

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL ( col1 + tab2.col0 ) FROM tab2
----
137
38
96

query I rowsort
SELECT + + 18 FROM tab0 AS cor0
----
18
18
18

query I rowsort
SELECT - + ( + col0 ) FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT ALL 73 * + col0 AS col2 FROM tab0 AS cor0
----
1752
2555
6497

query I rowsort
SELECT ALL - ( cor0.col2 ) * col0 - col2 AS col2 FROM tab2 AS cor0
----
-2054
-216
-3040

query I rowsort
SELECT DISTINCT - 99 * col1 FROM tab2 AS cor0
----
-1683
-3069
-5841

query I rowsort
SELECT DISTINCT + + col0 + col2 + 14 AS col1 FROM tab2 AS cor0
----
118
131
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col2 col1 FROM tab1 AS cor0
----
-2916
-3249
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col2 * - ( cor0.col1 ) + + col1 col1 FROM tab2 AS cor0
----
22630
24565
39943

query I rowsort
SELECT DISTINCT 15 + + col1 FROM tab2 AS cor0
----
32
46
74

query I rowsort
SELECT 61 + cor0.col0 * - ( cor0.col1 * col0 ) AS col1 FROM tab1 AS cor0
----
-173
-40899
-83139

query I rowsort
SELECT - + cor0.col1 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT + - 0 AS col2 FROM tab2 cor0
----
0

query I rowsort
SELECT + col1 + cor0.col0 * - col0 AS col1 FROM tab2 AS cor0
----
-18
-6025
-6224

query I rowsort
SELECT ALL - - 68 * - cor0.col2 + + 85 FROM tab0 AS cor0
----
-2159
-5491
17

query I rowsort
SELECT + - col1 FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT ( + col2 ) FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT - 4 AS col0 FROM tab2 AS cor0
----
-4

query I rowsort
SELECT ALL col0 * col1 + + col1 - - col2 FROM tab2 AS cor0
----
1398
275
4687

query I rowsort
SELECT ALL - col2 + + col0 + col0 * - 93 AS col2 FROM tab0 AS cor0
----
-2241
-3221
-8270

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4924
SELECT DISTINCT col2 * cor0.col0 - CAST( - 97 AS SIGNED ) FROM tab0 cor0
----
132
7395
889

skipif mysql # not compatible
query I rowsort label-4924
SELECT DISTINCT col2 * cor0.col0 - CAST ( - 97 AS INTEGER ) FROM tab0 cor0
----
132
7395
889

query I rowsort
SELECT DISTINCT + col1 * col0 + col2 AS col0 FROM tab0
----
2097
3396
8181

query I rowsort
SELECT ALL - col1 * - col1 + - tab1.col2 * col1 AS col1 FROM tab1
----
-1079
-470
-728

query I rowsort
SELECT 81 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 AS cor2
----
972 values hashing to 380241bbc503a31e70494611a87ffd99

query I rowsort
SELECT + - col2 + - col0 + - col1 * col0 FROM tab0 AS cor0
----
-2121
-3431
-8270

query I rowsort
SELECT DISTINCT - col2 + + 35 * + col1 FROM tab2 AS cor0
----
1058
2039
557

query I rowsort
SELECT + + col1 * - col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL + col0 * - col2 FROM tab0 AS cor0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - ( col1 ) * cor0.col1 col1 FROM tab1 AS cor0
----
-43
-622
-73

onlyif mysql # use DIV operator for integer division
query I rowsort label-4934
SELECT DISTINCT + col1 DIV 3 - + col1 * + col1 AS col2 FROM tab0 AS cor0
----
-7368
-8251
-9377

skipif mysql # not compatible
query I rowsort label-4934
SELECT DISTINCT + col1 / 3 - + col1 * + col1 AS col2 FROM tab0 AS cor0
----
-7368
-8251
-9377

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT cor0.col0 + col1 AS col1 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT + col2 * 47 FROM tab1 AS cor0
----
2538
2679
4512

query I rowsort
SELECT col1 + + ( 44 ) * + cor0.col0 + - col0 * - col2 FROM tab0 AS cor0
----
11305
1672
1934

query I rowsort
SELECT - col2 * - col0 + - 51 + - col0 FROM tab1 AS cor0
----
108
3533
7549

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4940
SELECT CAST( NULL AS SIGNED ) + 53 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4940
SELECT CAST ( NULL AS INTEGER ) + 53 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 60 * col0 + + col1 * 25 FROM tab2 AS cor0
----
1195
5165
6155

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4942
SELECT ALL - - CAST( NULL AS SIGNED ) - 66 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4942
SELECT ALL - - CAST ( NULL AS INTEGER ) - 66 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( - col0 ) AS col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL cor0.col1 + - ( + col1 ) FROM tab1 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 38 col0 FROM tab1 AS cor0
----
38
38
38

query I rowsort
SELECT ALL col0 + col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT cor0.col2 * col0 + col2 AS col2 FROM tab2 AS cor0
----
2054
216
3040

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4948
SELECT ALL col2 * - CAST( - col1 AS SIGNED ) AS col0 FROM tab1
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-4948
SELECT ALL col2 * - CAST ( - col1 AS INTEGER ) AS col0 FROM tab1
----
1248
1404
570

query I rowsort
SELECT ALL col0 * 50 FROM tab1 AS cor0
----
150
3200
4000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * col0 * - cor0.col0 col0 FROM tab2 AS cor0
----
1323
158184
237158

query I rowsort
SELECT - cor0.col1 FROM tab1, tab0 cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

query I rowsort
SELECT ALL - - 24 * 78 FROM tab2 AS cor0
----
1872
1872
1872

query I rowsort
SELECT - + cor0.col0 + 25 AS col0 FROM tab2 AS cor0
----
-53
-54
18

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-4955
SELECT DISTINCT + CAST( + col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-4955
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL ( 81 ) * + col1 AS col2 FROM tab2 cor0
----
1377
2511
4779

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4957
SELECT - CAST( NULL AS DECIMAL ) + - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4957
SELECT - CAST ( NULL AS REAL ) + - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 69 FROM tab2 AS cor0
----
69
69
69

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 CROSS JOIN tab2, tab0, tab0 AS cor1
----
3645 values hashing to a5677c50b23f70287df35c2388a1c9bf

query I rowsort
SELECT DISTINCT + - ( - col1 ) FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT - ( - col0 ) + col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT + 74 + col1 AS col1 FROM tab1 AS cor0
----
100
84
87

query I rowsort
SELECT DISTINCT - col0 + ( + tab2.col2 ) AS col0 FROM tab2
----
-41
-52
20

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4964
SELECT col1 - CAST( NULL AS SIGNED ) * + col1 * col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4964
SELECT col1 - CAST ( NULL AS INTEGER ) * + col1 * col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 43 * - col1 AS col0 FROM tab2 AS cor0
----
1333
2537
731

onlyif mysql # use DIV operator for integer division
query I rowsort label-4966
SELECT + - CAST( col0 AS SIGNED ) DIV col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4966
SELECT + - CAST ( col0 AS INTEGER ) / col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + - 83 + col0 AS col0 FROM tab2 AS cor0
----
-4
-5
-76

query I rowsort
SELECT ALL - 41 FROM tab1 AS cor0
----
-41
-41
-41

query I rowsort
SELECT - + cor0.col2 * col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ALL col0 * - cor0.col2 + col1 * - col2 * cor0.col2 FROM tab0 AS cor0
----
-132
-619182
-94446

query I rowsort
SELECT + col0 * col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT tab0.col0 FROM tab0
----
24
35
89

query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 cor0, tab1 cor1
----
243 values hashing to 2464a6f4cfabe66aeca50fcb4cd85bf5

query I rowsort
SELECT ALL tab0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT tab1.col0 * col2 * col2 + - col1 FROM tab1
----
207926
737267
8722

query I rowsort
SELECT ALL + col2 + col0 AS col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL ( + cor0.col1 ) FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4978
SELECT ALL - + col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4978
SELECT ALL - + col2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + + col0 * - 34 * - col0 FROM tab2 AS cor0
----
1693
206882
212232

query I rowsort
SELECT ALL - - col1 + - col0 FROM tab0 AS cor0
----
2
62
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 29 * + col0 - col1 col2 FROM tab0 AS cor0
----
1015
2581
696

query I rowsort
SELECT DISTINCT cor0.col2 + + 11 FROM tab0 AS cor0
----
12
44
93

query I rowsort
SELECT ALL - cor0.col1 * + col0 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col0 * + 39 * col1 col1 FROM tab2 cor0
----
179504
52415
8490

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col1 col2 FROM tab2, tab2 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT DISTINCT + col2 * 89 + - col0 FROM tab2
----
2236
2396
3303

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab2 cor1
----
243 values hashing to d489341cd587fd6eb0b972c5464c6ddc

query I rowsort
SELECT ALL tab2.col1 + col0 FROM tab2
----
137
38
96

query I rowsort
SELECT col2 + 11 * col1 + + col1 FROM tab0
----
1065
1165
1174

query I rowsort
SELECT DISTINCT col0 * + col2 + col1 + col0 FROM tab2
----
2165
227
3098

query I rowsort
SELECT - col0 + + col0 FROM tab0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4992
SELECT ALL - col1 * CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4992
SELECT ALL - col1 * CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + col0 AS col1 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT ALL + ( + ( + cor0.col0 ) ) AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + 9 + - col2 col2 FROM tab2
----
36
673
676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( cor0.col0 ) col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT - col2 + col0 FROM tab0 cor0
----
-9
34
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-4998
SELECT + - cor0.col2 + - cor0.col1 DIV - 99 AS col2 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-4998
SELECT + - cor0.col2 + - cor0.col1 / - 99 AS col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT + - cor0.col2 FROM tab2 AS cor0
----
-26
-27
-38

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0, tab1, tab1 AS cor1
----
972 values hashing to f8fe28681e8720551e1ec173631fc529

query I rowsort
SELECT ALL + 65 AS col2 FROM tab1
----
65
65
65

query I rowsort
SELECT col2 * + col2 + col1 FROM tab0
----
1175
6815
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-5003
SELECT ALL + 21 DIV col1 AS col2 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5003
SELECT ALL + 21 / col1 AS col2 FROM tab2
----
0
0
1

query I rowsort
SELECT ( col2 ) + - col1 + col2 FROM tab2
----
-7
23
59

query I rowsort
SELECT ALL + 55 + col2 * col0 FROM tab2
----
2083
244
3057

query I rowsort
SELECT 31 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336

query I rowsort
SELECT cor0.col1 AS col2 FROM tab2 AS cor0
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-5008
SELECT DISTINCT col0 DIV col1 + - ( col0 ) FROM tab1 AS cor0
----
-3
-58
-74

skipif mysql # not compatible
query I rowsort label-5008
SELECT DISTINCT col0 / col1 + - ( col0 ) FROM tab1 AS cor0
----
-3
-58
-74

query I rowsort
SELECT ALL + 11 AS col0 FROM tab1
----
11
11
11

query I rowsort
SELECT 10 FROM tab2, tab1 AS cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query I rowsort
SELECT + 10 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176

query I rowsort
SELECT + 85 + col1 FROM tab2 AS cor0
----
102
116
144

query I rowsort
SELECT DISTINCT + 61 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
61

query I rowsort
SELECT + col1 + col2 FROM tab2
----
55
58
85

query I rowsort
SELECT - ( 49 ) FROM tab2, tab1 cor0
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

query I rowsort
SELECT ALL - col0 * - 16 * col2 + col2 * + 3 FROM tab1 AS cor0
----
123168
2754
58539

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5017
SELECT ALL - col1 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5017
SELECT ALL - col1 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + col1 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + tab2.col0 * col0 AS col0 FROM tab2
----
49
6084
6241

query I rowsort
SELECT 93 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query I rowsort
SELECT DISTINCT + - col2 * 67 + + col1 * col0 AS col2 FROM tab2 cor0
----
-1203
-1592
2860

query I rowsort
SELECT DISTINCT - + col0 * - col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - col1 + 91 FROM tab2 AS cor0
----
32
60
74

query I rowsort
SELECT ALL + - cor0.col0 + col2 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT ( 76 ) FROM tab2 AS cor0
----
76
76
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5026
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5026
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + + ( col1 ) FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT + 57 FROM tab2 AS cor0
----
57
57
57

query I rowsort
SELECT ( col0 ) AS col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL col1 * - col1 + - cor0.col1 FROM tab2 AS cor0
----
-306
-3540
-992

query I rowsort
SELECT DISTINCT 7 AS col0 FROM tab2 AS cor0
----
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-5032
SELECT ALL + col1 DIV 80 + + col1 AS col2 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-5032
SELECT ALL + col1 / 80 + + col1 AS col2 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT - ( - cor0.col1 ) * + col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT + 9 + col2 FROM tab2 AS cor0
----
35
36
47

query I rowsort
SELECT ALL + - 52 * 35 + + cor0.col1 FROM tab1 AS cor0
----
-1794
-1807
-1810

query I rowsort
SELECT DISTINCT - col2 - cor0.col1 * - col2 AS col1 FROM tab1 AS cor0
----
1152
1350
513

onlyif mysql # use DIV operator for integer division
query I rowsort label-5037
SELECT ALL + - col1 DIV + 91 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5037
SELECT ALL + - col1 / + 91 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT 74 FROM tab1 AS cor0
----
74
74
74

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5039
SELECT - CAST( + 27 AS SIGNED ) col1 FROM tab0
----
-27
-27
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5039
SELECT - CAST ( + 27 AS INTEGER ) col1 FROM tab0
----
-27
-27
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col2 FROM tab1
----
54
57
96

query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0, tab0 cor1
----
243 values hashing to 3581f59ff9574f9d6290fc6bca0b5e4d

query I rowsort
SELECT DISTINCT + 34 FROM tab1, tab0 AS cor0
----
34

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 cor0, tab2 AS cor1, tab1 AS cor2
----
972 values hashing to 9364ef7545b07c67767dceb70f02c643

query I rowsort
SELECT + 75 FROM tab0, tab2 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0, tab2 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to e3f81e329d34d83e4528a9ef7b933946

query I rowsort
SELECT - col1 * col2 * + col2 AS col1 FROM tab0 AS cor0
----
-611884
-93654
-97

query I rowsort
SELECT ALL col1 + + col0 FROM tab0
----
110
132
180

query I rowsort
SELECT col0 + ( col2 + + ( col1 ) ) * col2 FROM tab2
----
1573
2169
2288

query I rowsort
SELECT - 26 * col0 FROM tab1 AS cor0
----
-1664
-2080
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col2 col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT + 22 AS col0 FROM tab2 AS cor0
----
22
22
22

query I rowsort
SELECT + ( + col0 ) AS col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL col1 * col1 AS col0 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT ALL - + 66 * col0 + - ( + col1 ) FROM tab1 AS cor0
----
-224
-4234
-5293

query I rowsort
SELECT DISTINCT - - col2 + + col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT + + col2 * + col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT - - cor0.col0 * col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL - ( - col2 ) AS col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT + col1 + col0 * + col1 * col2 FROM tab1 AS cor0
----
36490
4238
99853

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 col1 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT cor0.col1 + col1 - cor0.col2 AS col2 FROM tab2 AS cor0
----
-4
35
92

query I rowsort
SELECT col2 * + col2 - - col2 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT - col0 * col1 + + col1 * 20 FROM tab0 cor0
----
-1455
-344
-6279

query I rowsort
SELECT DISTINCT + cor0.col1 FROM tab0, tab2 AS cor0
----
17
31
59

query I rowsort
SELECT cor0.col2 AS col1 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT cor1.col1 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT DISTINCT col2 * + 44 FROM tab2
----
1144
1188
1672

query I rowsort
SELECT cor1.col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT + col0 * + col1 + - col0 * - 67 FROM tab0 AS cor0
----
14062
3672
5740

query I rowsort
SELECT + col1 * - col1 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT tab0.col2 + col1 + col2 AS col0 FROM tab0
----
152
255
99

query I rowsort
SELECT ALL - + col1 * cor0.col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT + col0 + + 88 FROM tab2 AS cor0
----
166
167
95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5074
SELECT ALL col0 * CAST( NULL AS DECIMAL ) + col1 + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5074
SELECT ALL col0 * CAST ( NULL AS REAL ) + col1 + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 54 + + col0 * - col1 * - col0 col0 FROM tab0 cor0
----
118879
51318
725239

onlyif mysql # use DIV operator for integer division
query I rowsort label-5076
SELECT ALL + col2 DIV col0 + - 76 AS col2 FROM tab2 AS cor0
----
-73
-76
-76

skipif mysql # not compatible
query I rowsort label-5076
SELECT ALL + col2 / col0 + - 76 AS col2 FROM tab2 AS cor0
----
-73
-76
-76

query I rowsort
SELECT + - col1 AS col1 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT 32 AS col1 FROM tab2
----
32
32
32

query I rowsort
SELECT ALL + col1 + cor0.col1 * col0 + - cor0.col0 FROM tab2 AS cor0
----
1281
241
4583

query I rowsort
SELECT + + col1 AS col2 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL + - col2 * cor0.col1 + col2 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT + + col1 * - 94 FROM tab1 AS cor0
----
-1222
-2444
-940

query I rowsort
SELECT - col2 * col2 - + col2 AS col2 FROM tab2
----
-1482
-702
-756

query I rowsort
SELECT ALL + 10 + col0 FROM tab2
----
17
88
89

query I rowsort
SELECT + tab0.col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT + 42 + col0 * 51 FROM tab0
----
1266
1827
4581

query I rowsort
SELECT col2 + col1 + col0 FROM tab2
----
134
163
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-5088
SELECT DISTINCT + 20 * col2 + 90 DIV + 78 FROM tab1
----
1081
1141
1921

skipif mysql # not compatible
query I rowsort label-5088
SELECT DISTINCT + 20 * col2 + 90 / + 78 FROM tab1
----
1081
1141
1921

query I rowsort
SELECT - col1 + - col0 AS col0 FROM tab0
----
-110
-132
-180

onlyif mysql # use DIV operator for integer division
query I rowsort label-5090
SELECT col2 DIV col1 - + col2 AS col2 FROM tab0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-5090
SELECT col2 / col1 - + col2 AS col2 FROM tab0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-5091
SELECT DISTINCT + - col0 DIV + col0 + - ( cor0.col1 ) * col2 AS col0 FROM tab0 AS cor0
----
-2839
-7463
-98

skipif mysql # not compatible
query I rowsort label-5091
SELECT DISTINCT + - col0 / + col0 + - ( cor0.col1 ) * col2 AS col0 FROM tab0 AS cor0
----
-2839
-7463
-98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5092
SELECT ALL - col0 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5092
SELECT ALL - col0 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col2 * col1 * - cor0.col1 FROM tab2 AS cor0
----
-10982
-25947
-90506

query I rowsort
SELECT ALL + + cor0.col2 FROM tab2 AS cor0
----
26
27
38

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
972 values hashing to 3a31dab513390ca6bd05c71a3d9c50f0

query I rowsort
SELECT - col2 + col2 + + col0 FROM tab1
----
3
64
80

query I rowsort
SELECT + 33 FROM tab1, tab0 cor0 CROSS JOIN tab0
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80

query I rowsort
SELECT - cor0.col0 + 34 FROM tab1 AS cor0
----
-30
-46
31

onlyif mysql # use DIV operator for integer division
query I rowsort label-5099
SELECT - col1 DIV - col1 + cor0.col1 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-5099
SELECT - col1 / - col1 + cor0.col1 FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT + - 13 FROM tab2 AS cor0
----
-13
-13
-13

query I rowsort
SELECT DISTINCT + - 77 AS col1 FROM tab2, tab0 cor0
----
-77

query I rowsort
SELECT DISTINCT col0 * + col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT - col2 AS col0 FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT col0 + - cor0.col0 * col0 FROM tab0 AS cor0
----
-1190
-552
-7832

query I rowsort
SELECT DISTINCT - 10 + + col2 AS col0 FROM tab2 AS cor0
----
16
17
28

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5106
SELECT DISTINCT - 63 + - col2 * - CAST( - col2 AS SIGNED ) * col1 FROM tab2 AS cor0
----
-22662
-24611
-39947

skipif mysql # not compatible
query I rowsort label-5106
SELECT DISTINCT - 63 + - col2 * - CAST ( - col2 AS INTEGER ) * col1 FROM tab2 AS cor0
----
-22662
-24611
-39947

query I rowsort
SELECT ALL - 62 * col2 FROM tab2 AS cor0
----
-1612
-1674
-2356

query I rowsort
SELECT DISTINCT + col1 + + col1 * - 68 FROM tab2 AS cor0
----
-1139
-2077
-3953

query I rowsort
SELECT - + col1 AS col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT - - col0 + - col1 * col0 FROM tab2 cor0
----
-1264
-210
-4524

query I rowsort
SELECT ALL 3 * col1 FROM tab1 cor0
----
30
39
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5112
SELECT + col2 + + col0 / - CAST( NULL AS SIGNED ) + + col1 * + tab1.col2 * + 24 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5112
SELECT + col2 + + col0 / - CAST ( NULL AS INTEGER ) + + col1 * + tab1.col2 * + 24 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col0 * col2 AS col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT - col2 FROM tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT - tab2.col1 * - tab2.col0 + - tab2.col2 FROM tab2
----
1305
190
4576

query I rowsort
SELECT DISTINCT + 78 * col0 FROM tab0 AS cor0
----
1872
2730
6942

query I rowsort
SELECT - col0 * col0 + cor0.col2 + - col1 FROM tab1 AS cor0
----
-4049
-6317
19

query I rowsort
SELECT ALL col2 * col1 AS col1 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT - cor0.col2 - + col1 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT DISTINCT + 31 - col1 AS col1 FROM tab0 AS cor0
----
-55
-60
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 34 + cor0.col1 col2 FROM tab1 AS cor0
----
44
47
60

query I rowsort
SELECT ALL - col2 * - col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT + 41 * + cor0.col1 FROM tab0 AS cor0
----
3526
3731
3977

query I rowsort
SELECT DISTINCT + ( col1 ) * col0 AS col1 FROM tab1 AS cor0
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + - col0 * col1 + 49 col0 FROM tab1 AS cor0
----
-1087
-648
-83

query I rowsort
SELECT col0 - col1 * cor0.col2 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL - col0 + col2 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT ALL cor0.col2 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT + col0 * col2 + col2 * + col0 FROM tab1 AS cor0
----
15360
324
7296

query I rowsort
SELECT DISTINCT col2 * cor0.col0 AS col1 FROM tab0 AS cor0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 61 * col1 + col0 + - col1 col1 FROM tab0 AS cor0
----
-5308
-5553
-5979

query I rowsort
SELECT DISTINCT - cor0.col2 * col1 + 13 FROM tab1 AS cor0
----
-1235
-1391
-557

query I rowsort
SELECT DISTINCT + + cor0.col0 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT + + cor0.col0 AS col0 FROM tab1 AS cor0
----
3
64
80

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 - 32 * + col0 FROM tab2 cor0
----
-224
-2496
-2528

query I rowsort
SELECT ALL - col2 + - 64 AS col1 FROM tab0 AS cor0
----
-146
-65
-97

query I rowsort
SELECT DISTINCT 2 + 12 * col0 FROM tab2 AS cor0
----
86
938
950

onlyif mysql # use DIV operator for integer division
query I rowsort label-5140
SELECT 25 DIV + ( cor0.col0 + + col0 ) AS col1 FROM tab1 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-5140
SELECT 25 / + ( cor0.col0 + + col0 ) AS col1 FROM tab1 AS cor0
----
0
0
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) * + col1 col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT col2 * cor0.col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT + - col0 FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT - - col0 AS col1 FROM tab0 AS cor0
----
24
35
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5145
SELECT ALL - CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5145
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0, tab1 AS cor1, tab2, tab0 cor2
----
3645 values hashing to 5acb69cde71208fe580e10b8b669428e

query I rowsort
SELECT ALL - + 5 + - col2 AS col0 FROM tab2 AS cor0
----
-31
-32
-43

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0, tab2, tab1 AS cor1
----
972 values hashing to 92235dbc382d83baa93d6546ed489b0c

query I rowsort
SELECT DISTINCT + tab1.col1 FROM tab1
----
10
13
26

query I rowsort
SELECT 65 * + 13 FROM tab0 AS cor0
----
845
845
845

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5151
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + col2 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5151
SELECT DISTINCT + CAST ( NULL AS REAL ) + col2 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + 60 FROM tab1, tab2 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT DISTINCT col2 - col1 FROM tab2
----
-33
-4
21

skipif mysql # not compatible
query I rowsort
SELECT CAST ( + col2 AS REAL ) / col2 FROM tab0
----
1
1
1

query I rowsort
SELECT DISTINCT + - 82 * - col2 FROM tab2 AS cor0
----
2132
2214
3116

query I rowsort
SELECT ALL - 80 FROM tab0 AS cor0
----
-80
-80
-80

query I rowsort
SELECT col2 - col0 * - 26 FROM tab1 AS cor0
----
132
1721
2176

query I rowsort
SELECT ALL - - col0 * cor0.col2 + ( + cor0.col1 ) FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT + 79 + - col0 * cor0.col0 + - cor0.col2 AS col0 FROM tab0 AS cor0
----
-1147
-530
-7924

query I rowsort
SELECT DISTINCT - col1 * - col1 * - col1 FROM tab2 AS cor0
----
-205379
-29791
-4913

query I rowsort
SELECT DISTINCT tab0.col0 AS col2 FROM tab0, tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT - 41 AS col1 FROM tab2
----
-41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + 8 + col0 ) col2 FROM tab0
----
32
43
97

query I rowsort
SELECT + 60 * tab0.col2 + + col2 AS col2 FROM tab0
----
2013
5002
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-5165
SELECT col2 DIV col2 + + tab1.col2 * tab1.col0 AS col2 FROM tab1
----
163
3649
7681

skipif mysql # not compatible
query I rowsort label-5165
SELECT col2 / col2 + + tab1.col2 * tab1.col0 AS col2 FROM tab1
----
163
3649
7681

query I rowsort
SELECT DISTINCT 90 FROM tab2, tab1, tab2 cor0
----
90

query I rowsort
SELECT ALL + 38 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col0 * + tab0.col0 - col0 * col1 col2 FROM tab0
----
-2170
16944
641423

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col1 FROM tab1
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + col2 col1 FROM tab2
----
55
58
85

query I rowsort
SELECT + col2 * - col1 AS col0 FROM tab1
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * tab0.col2 col2 FROM tab0 WHERE NOT col1 BETWEEN NULL AND col0 * - col2 * - col0
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5173
SELECT ALL col2 DIV - col1 + col2 AS col2 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-5173
SELECT ALL col2 / - col1 + col2 AS col2 FROM tab0
----
1
33
82

query I rowsort
SELECT + col2 + col1 AS col1 FROM tab1
----
109
67
80

query III rowsort
SELECT * FROM tab2 WHERE NULL = ( col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5176
SELECT col2 DIV col0 AS col2 FROM tab2
----
0
0
3

skipif mysql # not compatible
query I rowsort label-5176
SELECT col2 / col0 AS col2 FROM tab2
----
0
0
3

query I rowsort
SELECT DISTINCT + col1 + - col0 FROM tab2
----
-19
-62
24

query I rowsort
SELECT col1 + + col0 * col2 * - col0 + - col2 FROM tab0
----
-1129
-18955
-649513

query I rowsort
SELECT - tab0.col0 * + col1 + - tab0.col1 FROM tab0
----
-2150
-3492
-8190

query I rowsort
SELECT ALL col1 * - col2 AS col0 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT + col2 + col1 * + col1 - col2 * - col0 AS col2 FROM tab0
----
15661
8221
9445

query I rowsort
SELECT DISTINCT - tab0.col2 * tab0.col0 * - col2 AS col0 FROM tab0
----
26136
35
598436

query I rowsort
SELECT - tab2.col0 * tab2.col2 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT ALL col2 * - col1 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT - col0 * col2 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT + col1 * + tab1.col0 AS col0 FROM tab1
----
1040
640
78

query I rowsort
SELECT - tab1.col2 * - col0 FROM tab1
----
162
3648
7680

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) IN ( - col2 * tab2.col1 )
----

query I rowsort
SELECT tab0.col0 + col1 + - col0 AS col0 FROM tab0
----
86
91
97

query I rowsort
SELECT - col1 * col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT + cor0.col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT DISTINCT - tab0.col1 + col2 * col0 * col2 FROM tab0 WHERE NULL NOT BETWEEN NULL AND ( col1 + - col1 * - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + tab2.col2 * - col1 col2 FROM tab2
----
-1508
-608
-810

query I rowsort
SELECT - col1 * - col1 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT - col1 + tab1.col2 AS col0 FROM tab1
----
28
47
83

query I rowsort
SELECT ALL - col2 - col0 AS col1 FROM tab0
----
-171
-36
-57

query I rowsort
SELECT ALL + tab2.col2 FROM tab2
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col0 FROM tab0
----
86
91
97

query I rowsort
SELECT col2 - + col0 * col2 FROM tab2
----
-162
-2002
-2964

query I rowsort
SELECT + col2 * col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT + col1 + col1 * + col1 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT + col0 AS col2 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT DISTINCT col2 * - col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 < NULL
----

query I rowsort
SELECT cor0.col2 * - col0 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-5206
SELECT ALL col1 DIV col2 col1 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5206
SELECT ALL col1 / col2 col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 * + col2 FROM tab0
----
1
1089
6724

query I rowsort
SELECT DISTINCT + tab1.col0 + col1 FROM tab1
----
29
74
93

query I rowsort
SELECT col1 FROM tab2 WHERE NULL NOT IN ( + col1 * col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col0 col1 FROM tab0
----
110
132
180

query I rowsort
SELECT DISTINCT col0 + + col1 FROM tab1
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-5212
SELECT + col2 * tab0.col0 + - col0 DIV - col0 FROM tab0
----
36
7299
793

skipif mysql # not compatible
query I rowsort label-5212
SELECT + col2 * tab0.col0 + - col0 / - col0 FROM tab0
----
36
7299
793

query I rowsort
SELECT - col0 + + col1 AS col0 FROM tab1
----
-54
-67
23

query I rowsort
SELECT col2 * col0 FROM tab2
----
189
2028
3002

query I rowsort
SELECT - col1 * col0 AS col1 FROM tab1
----
-1040
-640
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col2 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT ALL col1 + - col0 * col0 * - col1 AS col1 FROM tab2
----
106114
1550
359015

query I rowsort
SELECT DISTINCT col2 + - col1 + tab1.col2 AS col0 FROM tab1 WHERE NOT NULL = NULL
----

query I rowsort
SELECT + col2 * col2 AS col0 FROM tab0
----
1
1089
6724

query I rowsort
SELECT col2 * col0 - + col1 AS col1 FROM tab2
----
158
1969
2985

query I rowsort
SELECT ALL + col0 + + col0 * col1 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT + col0 * col0 + + col0 FROM tab1
----
12
4160
6480

onlyif mysql # use DIV operator for integer division
query I rowsort label-5223
SELECT col1 + col2 DIV + col2 AS col0 FROM tab0 cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-5223
SELECT col1 + col2 / + col2 AS col0 FROM tab0 cor0
----
87
92
98

query I rowsort
SELECT ALL + col2 * col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT tab1.col2 + col1 * + col1 FROM tab1
----
157
265
730

query I rowsort
SELECT DISTINCT tab0.col0 AS col0 FROM tab0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-5227
SELECT DISTINCT + col2 - - col1 DIV col2 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-5227
SELECT DISTINCT + col2 - - col1 / col2 FROM tab1
----
54
57
96

query I rowsort
SELECT ALL col2 + + col2 * - col1 FROM tab1
----
-1152
-1350
-513

query I rowsort
SELECT DISTINCT - col1 + col0 AS col0 FROM tab0
----
-2
-62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5230
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5230
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * + col1 + col1 FROM tab1 AS cor0
----
-156
-650
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT - - col2 * + ( - col2 ) AS col2 FROM tab2 AS cor0
----
-1444
-676
-729

onlyif mysql # use DIV operator for integer division
query I rowsort label-5234
SELECT - - col0 + col2 DIV col2 FROM tab1 AS cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-5234
SELECT - - col0 + col2 / col2 FROM tab1 AS cor0
----
4
65
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 col1 FROM tab2 AS cor0
----
26
27
38

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0, tab0 cor1, tab0, tab0 AS cor2
----
3645 values hashing to db9b93cf4fdd5de4106f0487a66ce0a5

query I rowsort
SELECT - col0 * 3 FROM tab0 AS cor0
----
-105
-267
-72

skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( + col0 AS INTEGER ) * col1 * CAST ( col1 AS REAL ) AS col0 FROM tab0 AS cor0
----
177504
329315
737009

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0, tab2, tab0 cor1
----
972 values hashing to 9345325155d9f4d7dc4986690c631cb9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT ( + 70 ) FROM tab1, tab0 AS cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

query I rowsort
SELECT + col2 * ( - col1 ) FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT ALL + ( - col2 ) + + col0 + 67 * 70 FROM tab1
----
4639
4674
4697

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5244
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - col0 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5244
SELECT DISTINCT CAST ( NULL AS REAL ) * - col0 AS col1 FROM tab2
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5245
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5245
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * + col2 FROM tab2
----
1444
676
729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 col1 FROM tab2, tab2 cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT - col2 * 30 FROM tab0 AS cor0
----
-2460
-30
-990

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5249
SELECT + CAST( NULL AS SIGNED ) * 68 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5249
SELECT + CAST ( NULL AS INTEGER ) * 68 FROM tab0 AS cor0
----
NULL
NULL
NULL

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0, tab1 AS cor0, tab2
----
972 values hashing to f0b9665afa0b835e4e5097af17c51766

query I rowsort
SELECT - - col1 * + cor0.col0 AS col0 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT - - ( col1 ) FROM tab1 AS cor0
----
10
13
26

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0, tab2 AS cor0, tab1
----
972 values hashing to 75a813ebd5ec5ec2e67a66d0593ff763

query I rowsort
SELECT DISTINCT - 38 AS col1 FROM tab1
----
-38

query I rowsort
SELECT ALL 35 AS col1 FROM tab2
----
35
35
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-5256
SELECT + 6 DIV - col2 FROM tab0
----
-6
0
0

skipif mysql # not compatible
query I rowsort label-5256
SELECT + 6 / - col2 FROM tab0
----
-6
0
0

query I rowsort
SELECT tab2.col1 * col1 FROM tab2
----
289
3481
961

query I rowsort
SELECT - 80 FROM tab0
----
-80
-80
-80

query I rowsort
SELECT ALL 23 FROM tab0
----
23
23
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-5260
SELECT - col1 DIV - col0 AS col0 FROM tab0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-5260
SELECT - col1 / - col0 AS col0 FROM tab0
----
1
2
3

query I rowsort
SELECT - 47 AS col1 FROM tab1
----
-47
-47
-47

query I rowsort
SELECT + tab0.col1 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT ALL - 88 * - col2 * - tab0.col0 AS col0 FROM tab0
----
-3080
-642224
-69696

query I rowsort
SELECT + col2 * col2 + col0 AS col1 FROM tab1 AS cor0
----
2919
3313
9296

query I rowsort
SELECT col1 * ( - col1 ) * col0 + - 44 FROM tab1 AS cor0
----
-13564
-2072
-6444

query I rowsort
SELECT - - col0 - + col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col1 * 2 AS col2 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT ALL - col0 * 56 FROM tab0 AS cor0
----
-1344
-1960
-4984

query I rowsort
SELECT + col0 - 57 FROM tab2 cor0
----
-50
21
22

query I rowsort
SELECT ALL - col0 * col1 + 41 AS col0 FROM tab1 AS cor0
----
-37
-599
-999

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col1 col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL col0 + - cor0.col1 FROM tab0 AS cor0
----
-2
-62
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 98 col1 FROM tab2 AS cor0
----
105
176
177

query I rowsort
SELECT + col0 + - col1 AS col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT col0 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT ALL + - col0 * - col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT - cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT cor0.col0 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT ALL - ( + col1 * col2 ) + + col0 FROM tab2
----
-1456
-567
-830

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5280
SELECT - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5280
SELECT - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5281
SELECT ( - col2 ) DIV col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5281
SELECT ( - col2 ) / col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL 12 * 34 + col1 * - tab2.col2 * + col1 FROM tab2
----
-10574
-25539
-90098

query I rowsort
SELECT DISTINCT - - 41 * - col2 AS col1 FROM tab2 cor0
----
-1066
-1107
-1558

query I rowsort
SELECT DISTINCT 7 * 29 * col0 AS col0 FROM tab1 AS cor0
----
12992
16240
609

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5285
SELECT ALL - CAST( 48 AS SIGNED ) * - col1 AS col2 FROM tab1 cor0
----
1248
480
624

skipif mysql # not compatible
query I rowsort label-5285
SELECT ALL - CAST ( 48 AS INTEGER ) * - col1 AS col2 FROM tab1 cor0
----
1248
480
624

query I rowsort
SELECT DISTINCT ( 90 ) * - col2 FROM tab2 cor0
----
-2340
-2430
-3420

query I rowsort
SELECT DISTINCT + ( col0 ) AS col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL + - col0 AS col2 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT - ( - col0 ) FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT col2 * + cor0.col2 * - col2 + col0 AS col1 FROM tab2 AS cor0
----
-17498
-19676
-54793

query I rowsort
SELECT ALL + col0 * - col0 - col1 * - col0 AS col0 FROM tab2 AS cor0
----
-1482
-4898
168

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + cor0.col2 * - cor0.col0 col1 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT - - col2 + cor0.col2 FROM tab2 AS cor0
----
52
54
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-5294
SELECT ALL + ( + col1 ) DIV col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5294
SELECT ALL + ( + col1 ) / col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - col1 * + col0 * + col1 + col0 - - col2 FROM tab2 AS cor0
----
-22714
-271414
-6693

query I rowsort
SELECT DISTINCT col2 * + col2 + col0 AS col0 FROM tab1 AS cor0
----
2919
3313
9296

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 79 col1 FROM tab2 cor0
----
-79
-79
-79

query I rowsort
SELECT ALL + 82 AS col0 FROM tab0 AS cor0
----
82
82
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5299
SELECT + CAST( - col1 AS SIGNED ) * + col1 AS col1 FROM tab0
----
-7396
-8281
-9409

skipif mysql # not compatible
query I rowsort label-5299
SELECT + CAST ( - col1 AS INTEGER ) * + col1 AS col1 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT col2 + - 62 FROM tab2
----
-24
-35
-36

query I rowsort
SELECT - col0 * + col0 * + col0 + col2 * col1 FROM tab2
----
-473018
-492393
494

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + ( col0 ) col2 FROM tab0
----
171
36
57

query I rowsort
SELECT 49 FROM tab2
----
49
49
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col2 * col2 col1 FROM tab1
----
2890
3239
9203

query I rowsort
SELECT + col0 + col2 AS col2 FROM tab2
----
104
117
34

query I rowsort
SELECT + 77 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query I rowsort
SELECT - ( - col0 ) * col2 * - col2 AS col1 FROM tab2
----
-114076
-5103
-52728

onlyif mysql # use DIV operator for integer division
query I rowsort label-5308
SELECT cor0.col1 DIV 39 AS col2 FROM tab0 cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-5308
SELECT cor0.col1 / 39 AS col2 FROM tab0 cor0
----
2
2
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 col2 FROM tab1 AS cor0
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col0 col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col2 * + 72 * + col0 FROM tab1 AS cor0
----
-11664
-262656
-552960

query I rowsort
SELECT ALL - + col2 + 59 FROM tab0 AS cor0
----
-23
26
58

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col1 * - CAST ( + col1 AS REAL ) FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT - + col2 * - 16 FROM tab2 AS cor0
----
416
432
608

onlyif mysql # use DIV operator for integer division
query I rowsort label-5315
SELECT + + col0 DIV + ( col2 ) FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-5315
SELECT + + col0 / + ( col2 ) FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT DISTINCT + col2 * - col1 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL - - col2 * + ( - ( col0 ) ) FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL + col1 * + cor0.col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT DISTINCT - + col2 + 75 * col2 AS col1 FROM tab1 AS cor0
----
3996
4218
7104

query I rowsort
SELECT + + col2 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5322
SELECT ALL - col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5322
SELECT ALL - col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5323
SELECT DISTINCT + cor0.col0 DIV + 48 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-5323
SELECT DISTINCT + cor0.col0 / + 48 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT + col1 - tab1.col2 * col2 FROM tab1
----
-2890
-3239
-9203

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * cor0.col2 col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT - cor0.col1 * col2 + col1 AS col0 FROM tab0 AS cor0
----
-2752
-7371
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5327
SELECT - col2 + - 67 DIV col2 + - col2 FROM tab1
----
-109
-115
-192

skipif mysql # not compatible
query I rowsort label-5327
SELECT - col2 + - 67 / col2 + - col2 FROM tab1
----
-109
-115
-192

query I rowsort
SELECT DISTINCT - cor0.col1 + tab1.col2 FROM tab1, tab1 AS cor0
----
28
31
41
44
47
70
83
86

query I rowsort
SELECT DISTINCT - 68 FROM tab0, tab0 cor0
----
-68

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab1 cor1
----
243 values hashing to 26173f1193178352de9a2e4ca7f09d53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab2.col2 * + 3 - col0 col2 FROM tab2
----
0
35
74

query IIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
243 values hashing to 021da207cdc2a046fb0a79bf7cfc38ae

query I rowsort
SELECT ALL + col0 - - ( + 48 ) * col2 FROM tab1
----
2595
2800
4688

onlyif mysql # use DIV operator for integer division
query I rowsort label-5334
SELECT - tab0.col2 DIV 99 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5334
SELECT - tab0.col2 / 99 FROM tab0
----
0
0
0

query I rowsort
SELECT - col2 + - 34 FROM tab0 AS cor0
----
-116
-35
-67

query I rowsort
SELECT col2 + col2 * col0 FROM tab2 AS cor0
----
2054
216
3040

query IIIIIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab0, tab1 AS cor1
----
243 values hashing to 9ed1a6a444254225f040123c46b7f70c

query I rowsort
SELECT ALL col1 + ( 61 ) + - col1 FROM tab1
----
61
61
61

query I rowsort
SELECT + col2 * + col1 + - col0 * + col0 * - col0 AS col1 FROM tab0
----
16662
42972
712431

query I rowsort
SELECT + col1 + + tab0.col1 AS col1 FROM tab0
----
172
182
194

query I rowsort
SELECT + col1 + col0 AS col0 FROM tab0 AS cor0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-5342
SELECT - col0 * - cor0.col2 DIV cor0.col2 AS col0 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-5342
SELECT - col0 * - cor0.col2 / cor0.col2 AS col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT tab0.col0 + - col1 * - col0 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT - col1 + col1 FROM tab0
----
0
0
0

query I rowsort
SELECT col0 + col0 * + col1 AS col2 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT col2 + + col1 FROM tab0
----
119
173
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-5347
SELECT tab0.col1 * col1 DIV - col2 AS col2 FROM tab0
----
-100
-224
-9409

skipif mysql # not compatible
query I rowsort label-5347
SELECT tab0.col1 * col1 / - col2 AS col2 FROM tab0
----
-100
-224
-9409

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) NOT IN ( - tab1.col2 + + col2 * + col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5349
SELECT - col0 DIV tab0.col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5349
SELECT - col0 / tab0.col1 FROM tab0
----
0
0
0

query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0 CROSS JOIN tab2
----
243 values hashing to 60bd71ee2159222231bb3b5819bc5dca

query I rowsort
SELECT ALL col1 + col2 AS col0 FROM tab0
----
119
173
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-5352
SELECT DISTINCT - col1 * - col0 DIV col0 FROM tab2
----
17
31
59

skipif mysql # not compatible
query I rowsort label-5352
SELECT DISTINCT - col1 * - col0 / col0 FROM tab2
----
17
31
59

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2
----
54 values hashing to fe43263cad63144a098cccb9cd58c32a

query I rowsort
SELECT DISTINCT - col0 + - cor0.col1 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT ALL + + col0 FROM tab1 AS cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - - col2 * col1 col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT DISTINCT + col0 + col0 * - col2 * + col0 FROM tab0 cor0
----
-1190
-18984
-649433

query I rowsort
SELECT - col1 + col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT + cor0.col1 * + col1 - + col2 AS col1 FROM tab1 AS cor0
----
43
622
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-5360
SELECT ALL col0 + col1 DIV col0 AS col0 FROM tab0 AS cor0
----
27
37
90

skipif mysql # not compatible
query I rowsort label-5360
SELECT ALL col0 + col1 / col0 AS col0 FROM tab0 AS cor0
----
27
37
90

query I rowsort
SELECT + col1 + col1 * + cor0.col1 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT DISTINCT cor0.col0 AS col1 FROM tab0 cor0
----
24
35
89

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 tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT + - col1 * - col2 + + col0 * cor0.col1 + col1 * col2 * col2 FROM tab1 AS cor0
----
122096
33700
77298

query I rowsort
SELECT DISTINCT - col1 + col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - col0 * - col2 - - col2 FROM tab0 AS cor0
----
36
7380
825

onlyif mysql # use DIV operator for integer division
query I rowsort label-5368
SELECT DISTINCT col1 + col2 DIV - col2 AS col2 FROM tab0 AS cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-5368
SELECT DISTINCT col1 + col2 / - col2 AS col2 FROM tab0 AS cor0
----
85
90
96

query I rowsort
SELECT ALL - col0 * col2 + cor0.col1 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT - col2 + col2 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT + + cor0.col2 * + col2 + - col1 AS col1 FROM tab2 cor0
----
1427
617
698

query I rowsort
SELECT DISTINCT col0 + - col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT ALL - 77 + - col1 * + col0 AS col0 FROM tab0 AS cor0
----
-2141
-3472
-8176

query I rowsort
SELECT + col2 + col2 * + col2 AS col2 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT DISTINCT - - 5 * cor0.col0 FROM tab1 AS cor0
----
15
320
400

onlyif mysql # use DIV operator for integer division
query I rowsort label-5376
SELECT - col2 DIV + col1 + col2 FROM tab2
----
26
27
36

skipif mysql # not compatible
query I rowsort label-5376
SELECT - col2 / + col1 + col2 FROM tab2
----
26
27
36

query I rowsort
SELECT DISTINCT - - col1 * cor0.col2 AS col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT col0 * cor0.col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL - 67 * + col2 AS col0 FROM tab2 AS cor0
----
-1742
-1809
-2546

query I rowsort
SELECT + col2 * col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT - 67 * col2 FROM tab2 AS cor0
----
-1742
-1809
-2546

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col0 col2 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT ALL col1 + col1 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT + + col0 AS col2 FROM tab0 cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-5385
SELECT ALL cor0.col0 DIV col2 + col2 AS col0 FROM tab1 cor0
----
54
58
96

skipif mysql # not compatible
query I rowsort label-5385
SELECT ALL cor0.col0 / col2 + col2 AS col0 FROM tab1 cor0
----
54
58
96

query I rowsort
SELECT DISTINCT cor0.col2 + - cor0.col1 * + col0 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT ALL col0 * + col1 - + col1 FROM tab0 AS cor0
----
1978
3298
8008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col1 col0 FROM tab0
----
86
91
97

query I rowsort
SELECT DISTINCT col1 * + col2 + + col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT DISTINCT - col0 + + col2 AS col2 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT ALL - cor0.col0 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

query I rowsort
SELECT - - col0 AS col2 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT + col1 + + col0 * + col2 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT DISTINCT 47 AS col0 FROM tab0
----
47

onlyif mysql # use DIV operator for integer division
query I rowsort label-5395
SELECT col0 + col2 * 98 DIV 79 AS col2 FROM tab2
----
110
126
40

skipif mysql # not compatible
query I rowsort label-5395
SELECT col0 + col2 * 98 / 79 AS col2 FROM tab2
----
110
126
40

query I rowsort
SELECT - + cor0.col0 + - col2 * + cor0.col2 + col2 FROM tab2 AS cor0
----
-1485
-709
-728

query I rowsort
SELECT - cor0.col2 + cor0.col2 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col2 * col0 + - ( + col1 * cor0.col0 ) + ( - col2 ) * - col0 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
35
663317
66840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5399
SELECT DISTINCT + ( - col0 ) * CAST( col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241

skipif mysql # not compatible
query I rowsort label-5399
SELECT DISTINCT + ( - col0 ) * CAST ( col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-5400
SELECT ALL - cor0.col1 DIV + col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5400
SELECT ALL - cor0.col1 / + col1 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - col0 + + col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT col1 * + cor0.col0 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-5403
SELECT col1 * + col2 + + col1 DIV col1 AS col2 FROM tab0 AS cor0
----
2839
7463
98

skipif mysql # not compatible
query I rowsort label-5403
SELECT col1 * + col2 + + col1 / col1 AS col2 FROM tab0 AS cor0
----
2839
7463
98

query I rowsort
SELECT - - col0 * 72 AS col1 FROM tab1 AS cor0
----
216
4608
5760

query I rowsort
SELECT col1 * 14 + - 19 AS col0 FROM tab2 AS cor0
----
219
415
807

query I rowsort
SELECT DISTINCT + 18 * + 77 * col2 FROM tab2 AS cor0
----
36036
37422
52668

query I rowsort
SELECT DISTINCT + 7 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab1 AS cor2
----
7

query I rowsort
SELECT - 69 FROM tab1 AS cor0
----
-69
-69
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - cor0.col1 col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT - + col1 AS col2 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT 11 FROM tab2
----
11
11
11

onlyif mysql # use DIV operator for integer division
query I rowsort label-5412
SELECT + col0 DIV + col1 AS col0 FROM tab1 AS cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-5412
SELECT + col0 / + col1 AS col0 FROM tab1 AS cor0
----
0
6
6

query I rowsort
SELECT - - 93 - col0 AS col2 FROM tab1 AS cor0
----
13
29
90

query I rowsort
SELECT + ( - 67 ) * + col0 AS col1 FROM tab0 AS cor0
----
-1608
-2345
-5963

query I rowsort
SELECT DISTINCT - + col2 * - col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT cor0.col0 - 20 FROM tab1 AS cor0
----
-17
44
60

query I rowsort
SELECT 82 + + col0 AS col1 FROM tab2 cor0
----
160
161
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 15 - + col0 col2 FROM tab1 AS cor0
----
-49
-65
12

query I rowsort
SELECT - - cor0.col2 AS col2 FROM tab0 cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-5420
SELECT + col1 DIV - cor0.col0 + col1 FROM tab1 AS cor0
----
10
13
18

skipif mysql # not compatible
query I rowsort label-5420
SELECT + col1 / - cor0.col0 + col1 FROM tab1 AS cor0
----
10
13
18

query I rowsort
SELECT - + col2 FROM tab1 cor0
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5422
SELECT DISTINCT 52 * ( col0 * + col1 ) + - col2 DIV col0 FROM tab0
----
107327
176540
421148

skipif mysql # not compatible
query I rowsort label-5422
SELECT DISTINCT 52 * ( col0 * + col1 ) + - col2 / col0 FROM tab0
----
107327
176540
421148

onlyif mysql # use DIV operator for integer division
query I rowsort label-5423
SELECT DISTINCT - ( - tab0.col0 ) DIV col0 + + col2 DIV + col0 FROM tab0
----
1
2

skipif mysql # not compatible
query I rowsort label-5423
SELECT DISTINCT - ( - tab0.col0 ) / col0 + + col2 / + col0 FROM tab0
----
1
2

query I rowsort
SELECT ALL + col0 + ( col2 * tab1.col1 ) + col1 * col1 FROM tab1
----
1497
2083
734

query I rowsort
SELECT - 38 FROM tab0
----
-38
-38
-38

query I rowsort
SELECT ALL - tab0.col2 AS col0 FROM tab0, tab1, tab1 cor0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT col2 + 64 + - col0 FROM tab2
----
12
23
84

query I rowsort
SELECT - - 74 * col2 FROM tab0 cor0
----
2442
6068
74

query I rowsort
SELECT + - col2 * - col2 * 45 - - col2 AS col1 FROM tab1 AS cor0
----
131274
146262
414816

onlyif mysql # use DIV operator for integer division
query I rowsort label-5430
SELECT - + col0 DIV col1 + col0 - 16 * cor0.col0 FROM tab2 AS cor0
----
-105
-1171
-1189

skipif mysql # not compatible
query I rowsort label-5430
SELECT - + col0 / col1 + col0 - 16 * cor0.col0 FROM tab2 AS cor0
----
-105
-1171
-1189

query I rowsort
SELECT - col0 - + col2 * - ( - 80 ) FROM tab1 AS cor0
----
-4323
-4624
-7760

query I rowsort
SELECT + 37 AS col1 FROM tab0
----
37
37
37

query I rowsort
SELECT + cor0.col2 * col2 FROM tab0 cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT - - col0 * cor0.col0 AS col2 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT DISTINCT 54 FROM tab2
----
54

query I rowsort
SELECT col2 * ( 59 ) * col2 + ( + col2 ) * - col0 AS col1 FROM tab2 AS cor0
----
37856
42822
82194

query I rowsort
SELECT ALL col1 * ( 30 ) FROM tab1 AS cor0
----
300
390
780

query I rowsort
SELECT + + cor0.col2 * col0 AS col0 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT + - cor0.col2 + cor0.col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 42 FROM tab0
----
42
42
42

query I rowsort
SELECT 13 - + col0 AS col1 FROM tab0
----
-11
-22
-76

query I rowsort
SELECT + 16 + - col2 + col1 FROM tab2
----
-5
20
49

query I rowsort
SELECT - col1 + + col2 FROM tab2
----
-33
-4
21

query I rowsort
SELECT - 54 FROM tab1
----
-54
-54
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - tab1.col2 ) col1 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT - 73 AS col0 FROM tab0 AS cor0
----
-73
-73
-73

query I rowsort
SELECT ALL 59 * + 86 * + cor0.col1 FROM tab2 AS cor0
----
157294
299366
86258

query I rowsort
SELECT + col0 + 46 AS col1 FROM tab2
----
124
125
53

query I rowsort
SELECT + + col1 + 68 * - col1 AS col1 FROM tab0 AS cor0
----
-5762
-6097
-6499

onlyif mysql # use DIV operator for integer division
query I rowsort label-5450
SELECT ALL + col0 DIV ( - col2 ) AS col2 FROM tab0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-5450
SELECT ALL + col0 / ( - col2 ) AS col2 FROM tab0
----
-1
-35
0

query I rowsort
SELECT ( col2 ) FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT 29 * - 13 * col2 FROM tab0 AS cor0
----
-12441
-30914
-377

query I rowsort
SELECT ALL + ( col0 ) FROM tab0
----
24
35
89

query I rowsort
SELECT - + col2 + cor0.col2 * col1 AS col1 FROM tab0 AS cor0
----
2805
7380
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5455
SELECT tab1.col2 DIV + col2 + col0 FROM tab1
----
4
65
81

skipif mysql # not compatible
query I rowsort label-5455
SELECT tab1.col2 / + col2 + col0 FROM tab1
----
4
65
81

query I rowsort
SELECT - col2 + + ( + col0 ) + col1 FROM tab2
----
11
111
58

query I rowsort
SELECT + col0 + + 94 * 54 + - tab1.col2 * + 91 * col1 FROM tab1
----
-108412
-122685
-46730

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5458
SELECT tab2.col2 + CAST( NULL AS DECIMAL ) - - 93 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5458
SELECT tab2.col2 + CAST ( NULL AS REAL ) - - 93 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5459
SELECT ALL col1 / - CAST( NULL AS SIGNED ) - 65 * col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5459
SELECT ALL col1 / - CAST ( NULL AS INTEGER ) - 65 * col0 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 - + ( - 12 ) FROM tab1
----
22
25
38

query I rowsort
SELECT DISTINCT + col1 - - col1 * 95 FROM tab2
----
1632
2976
5664

query I rowsort
SELECT DISTINCT - - cor0.col2 * + col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL col2 * - cor0.col0 - - col0 AS col0 FROM tab2 AS cor0
----
-182
-1950
-2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-5464
SELECT ALL - cor0.col0 DIV - col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5464
SELECT ALL - cor0.col0 / - col0 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + ( col2 ) + col1 * 62 AS col1 FROM tab0 AS cor0
----
5365
5724
6015

query I rowsort
SELECT + col1 + - col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 + - 96 * col2 FROM tab1 cor0
----
-5187
-5536
-9296

query I rowsort
SELECT + - ( + col0 ) + - col1 * 6 FROM tab2 cor0
----
-181
-193
-432

query I rowsort
SELECT ALL - ( + col1 ) * col1 + col1 AS col1 FROM tab2 AS cor0
----
-272
-3422
-930

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col2 - col1 col2 FROM tab2 AS cor0
----
1427
617
698

query I rowsort
SELECT DISTINCT - 39 * col1 + + col0 AS col2 FROM tab0 cor0
----
-3330
-3460
-3748

query I rowsort
SELECT col0 + - ( + col0 ) AS col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL - 71 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
6106
6461
6887

query I rowsort
SELECT + - 21 - cor0.col2 AS col0 FROM tab2 cor0
----
-47
-48
-59

query I rowsort
SELECT + 25 + col2 AS col0 FROM tab0 AS cor0
----
107
26
58

query I rowsort
SELECT ALL + + ( col0 ) * col0 AS col2 FROM tab2 cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT - col2 + col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + - cor0.col1 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT ALL 89 * cor0.col0 + + col0 FROM tab0 AS cor0
----
2160
3150
8010

query I rowsort
SELECT DISTINCT 20 AS col1 FROM tab1 cor0
----
20

query I rowsort
SELECT DISTINCT - - col1 - cor0.col0 AS col2 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT + col1 - + cor0.col2 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT ALL - + ( - 84 ) + - col1 FROM tab2 AS cor0
----
25
53
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 56 + - 62 col0 FROM tab0 AS cor0
----
-6
-6
-6

query I rowsort
SELECT ALL + col1 - col2 * + 82 FROM tab2
----
-2073
-2183
-3099

query I rowsort
SELECT ALL 36 + + col0 + + col0 AS col0 FROM tab2 AS cor0
----
192
194
50

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5487
SELECT DISTINCT cor0.col2 - - cor0.col1 * col0 * CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5487
SELECT DISTINCT cor0.col2 - - cor0.col1 * col0 * CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - + 25 * col2 FROM tab1 AS cor0
----
-1350
-1425
-2400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col2 col2 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5490
SELECT ALL CAST( + col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-5490
SELECT ALL CAST ( + col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT + - ( col0 ) FROM tab0 cor0
----
-24
-35
-89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5492
SELECT DISTINCT - CAST( + col2 AS SIGNED ) * col2 FROM tab2 AS cor0
----
-1444
-676
-729

skipif mysql # not compatible
query I rowsort label-5492
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) * col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT + - col0 + col1 * - 56 FROM tab2 AS cor0
----
-1031
-1743
-3382

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL + cor0.col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT - ( col2 ) AS col2 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT + - col2 AS col1 FROM tab2 cor0
----
-26
-27
-38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5498
SELECT CAST( NULL AS SIGNED ) * - col2 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5498
SELECT CAST ( NULL AS INTEGER ) * - col2 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * - 19 FROM tab1
----
190
247
494

query I rowsort
SELECT 19 AS col1 FROM tab0
----
19
19
19

query I rowsort
SELECT 38 FROM tab1
----
38
38
38

query I rowsort
SELECT - 74 * + col1 FROM tab1 AS cor0
----
-1924
-740
-962

query I rowsort
SELECT cor0.col0 + cor0.col2 * + col1 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT ALL - - 33 * - cor0.col2 + 98 FROM tab1 AS cor0
----
-1684
-1783
-3070

query I rowsort
SELECT + col2 + col0 * col0 AS col2 FROM tab0 AS cor0
----
1226
609
8003

query IIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - cor0.col2 * + col0 + col2 FROM tab0 AS cor0
----
-34
-7216
-759

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col2 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT - cor0.col1 * col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT ( col2 ) AS col2 FROM tab2
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col1 - - col0 * 89 col0 FROM tab1
----
293
5706
7133

query I rowsort
SELECT DISTINCT col2 + - col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + - col0 + col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5514
SELECT ALL - - cor0.col0 + col0 DIV ( + col0 ) AS col2 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-5514
SELECT ALL - - cor0.col0 + col0 / ( + col0 ) AS col2 FROM tab0 AS cor0
----
25
36
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-5515
SELECT + col1 * + col0 DIV - col0 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-5515
SELECT + col1 * + col0 / - col0 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT + - col1 * 85 FROM tab1 AS cor0
----
-1105
-2210
-850

onlyif mysql # use DIV operator for integer division
query I rowsort label-5517
SELECT col1 DIV ( col0 ) FROM tab2 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-5517
SELECT col1 / ( col0 ) FROM tab2 AS cor0
----
0
0
4

query I rowsort
SELECT col1 * + col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT DISTINCT + cor0.col0 AS col2 FROM tab0 AS cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-5520
SELECT col1 DIV 68 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5520
SELECT col1 / 68 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL col0 * col1 AS col1 FROM tab2 cor0
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL - + col1 + cor0.col0 AS col0 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT ALL 73 FROM tab1
----
73
73
73

query I rowsort
SELECT - cor0.col2 + 81 AS col0 FROM tab0 AS cor0
----
-1
48
80

query I rowsort
SELECT + - col0 * col1 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col1 FROM tab0
----
1
33
82

query IIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 AS cor2
----
972 values hashing to 0be13143d898cc667fe1a2dd93b34703

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2 cor2, tab1 AS cor3
----
3645 values hashing to 07504092eb64a26979c0bde05f7718cb

query I rowsort
SELECT ALL col1 * ( col0 ) + col2 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT ALL - + col1 + 91 FROM tab2 cor0
----
32
60
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col1 * + ( - col0 ) col1 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT - 4 AS col0 FROM tab0, tab0 cor0 CROSS JOIN tab2
----
27 values hashing to 39ed23475412c3cbba02ecdd2d7018e6

query I rowsort
SELECT 19 + + col1 * ( - col2 ) + - col0 FROM tab2 AS cor0
----
-1593
-706
-825

query I rowsort
SELECT 88 * - 32 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 52481262d633245f6b9bbf49b8a68ceb

query I rowsort
SELECT 5 * col1 AS col1 FROM tab0 cor0
----
430
455
485

query I rowsort
SELECT DISTINCT - ( col2 * + col2 ) + + tab2.col2 AS col2 FROM tab2
----
-1406
-650
-702

query I rowsort
SELECT ( col1 ) * - col1 AS col1 FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT 40 * + col0 AS col0 FROM tab1 AS cor0
----
120
2560
3200

query I rowsort
SELECT - + col2 + col2 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + 86 * col0 + col1 + + 60 * col0 FROM tab0
----
13085
3590
5207

query I rowsort
SELECT ALL 4 + col1 FROM tab0
----
101
90
95

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
972 values hashing to 5342fb4caf4767cb98bd21989bad099f

query I rowsort
SELECT col2 * - col2 AS col2 FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT col0 * col0 FROM tab1
----
4096
6400
9

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0, tab0 cor1, tab1 AS cor2
----
972 values hashing to 88213a0de4c0a44aaefe8bbffbcaf44a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 col2 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT ( col1 ) * ( ( col2 ) ) AS col0 FROM tab0
----
2838
7462
97

query I rowsort
SELECT cor0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT ALL - col2 + cor0.col1 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT ALL + + col0 + - col2 FROM tab0 cor0
----
-9
34
7

query I rowsort
SELECT DISTINCT + 68 * col1 FROM tab0 AS cor0
----
5848
6188
6596

query I rowsort
SELECT ALL + - 55 FROM tab1 AS cor0
----
-55
-55
-55

query I rowsort
SELECT DISTINCT - - cor0.col0 + + col2 AS col2 FROM tab2 AS cor0
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col1 col2 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col1 col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT + col2 + col2 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT - ( ( + col2 ) ) * 72 + - ( col1 ) + - col1 AS col0 FROM tab1 AS cor0
----
-3940
-4124
-6938

query I rowsort
SELECT col1 * cor0.col2 + - col2 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT - - 96 * 75 + + col1 * + col0 AS col2 FROM tab2 AS cor0
----
11802
7417
8543

query I rowsort
SELECT 19 AS col1 FROM tab1 AS cor0
----
19
19
19

query I rowsort
SELECT ALL - col0 + - col0 + + col0 AS col0 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab2 cor0
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 90 * ( col1 ) col1 FROM tab0 AS cor0
----
-7740
-8190
-8730

query I rowsort
SELECT - col2 * - col0 + - col1 - + ( col2 ) FROM tab1 AS cor0
----
3581
7571
82

query I rowsort
SELECT - col0 * - col2 AS col1 FROM tab1
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col1 FROM tab0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5568
SELECT ALL + 29 + + col2 DIV col0 AS col0 FROM tab0 AS cor0
----
29
29
30

skipif mysql # not compatible
query I rowsort label-5568
SELECT ALL + 29 + + col2 / col0 AS col0 FROM tab0 AS cor0
----
29
29
30

query I rowsort
SELECT + tab2.col1 AS col0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT + col0 * + col1 AS col2 FROM tab2
----
1343
217
4602

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT + 64 AS col2 FROM tab1, tab2 AS cor0 CROSS JOIN tab0
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9

query I rowsort
SELECT + col2 * col1 AS col0 FROM tab2
----
1534
646
837

query I rowsort
SELECT 58 * col2 AS col1 FROM tab2
----
1508
1566
2204

query I rowsort
SELECT + 83 + + cor0.col0 + + col2 FROM tab0 AS cor0
----
119
140
254

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5576
SELECT - + CAST( ( col2 ) AS SIGNED ) + + col0 AS col1 FROM tab0 AS cor0
----
-9
34
7

skipif mysql # not compatible
query I rowsort label-5576
SELECT - + CAST ( ( col2 ) AS INTEGER ) + + col0 AS col1 FROM tab0 AS cor0
----
-9
34
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-5577
SELECT ALL col0 DIV + col1 FROM tab1
----
0
6
6

skipif mysql # not compatible
query I rowsort label-5577
SELECT ALL col0 / + col1 FROM tab1
----
0
6
6

query I rowsort
SELECT ALL - col2 AS col1 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT ALL + 54 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

skipif mysql # not compatible
query I rowsort
SELECT + col2 * CAST ( + col2 AS REAL ) FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT DISTINCT - col0 + col1 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT + col1 * + col1 AS col0 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT ALL - + col2 FROM tab0 AS cor0
----
-1
-33
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5584
SELECT DISTINCT + - ( cor0.col2 ) + + CAST( 87 AS SIGNED ) FROM tab0 AS cor0
----
5
54
86

skipif mysql # not compatible
query I rowsort label-5584
SELECT DISTINCT + - ( cor0.col2 ) + + CAST ( 87 AS INTEGER ) FROM tab0 AS cor0
----
5
54
86

query I rowsort
SELECT ALL - ( + col2 * - col0 ) AS col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT ALL col1 * + 5 + + cor0.col1 FROM tab0 AS cor0
----
516
546
582

onlyif mysql # use DIV operator for integer division
query I rowsort label-5587
SELECT - col0 DIV col0 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5587
SELECT - col0 / col0 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL tab0.col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT + + col1 * + ( + ( - col0 ) ) FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT + - col1 + col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col1 + + col0 AS col0 FROM tab0 AS cor0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-5592
SELECT - col0 * col1 DIV + tab2.col0 + col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5592
SELECT - col0 * col1 / + tab2.col0 + col1 FROM tab2
----
0
0
0

query I rowsort
SELECT col2 - 66 AS col2 FROM tab2
----
-28
-39
-40

query I rowsort
SELECT col0 * 51 AS col2 FROM tab2 AS cor0
----
357
3978
4029

query I rowsort
SELECT - col0 + - col2 FROM tab1 AS cor0
----
-121
-176
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-5596
SELECT DISTINCT - col1 DIV col0 FROM tab2 cor0
----
-4
0

skipif mysql # not compatible
query I rowsort label-5596
SELECT DISTINCT - col1 / col0 FROM tab2 cor0
----
-4
0

query I rowsort
SELECT - col0 + col0 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL cor1.col0 AS col2 FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT + col2 * - cor0.col1 - col0 AS col0 FROM tab0 AS cor0
----
-132
-2862
-7551

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( ( + cor0.col2 ) ) * ( col0 ) + + col1 col1 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT ALL - - 74 + - col1 AS col2 FROM tab0 AS cor0
----
-12
-17
-23

query I rowsort
SELECT cor1.col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT + - col0 AS col2 FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT + 93 AS col0 FROM tab1 AS cor0
----
93

query I rowsort
SELECT ALL - + ( col0 ) + + col2 AS col0 FROM tab0 AS cor0
----
-34
-7
9

query IIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 WHERE NULL <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 - 54 col1 FROM tab1 AS cor0
----
26
26
26

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( + col0 AS REAL ) FROM tab0 cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 89 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query I rowsort
SELECT ALL 21 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT - + col2 * + col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT cor0.col2 AS col1 FROM tab2 AS cor0
----
26
27
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5613
SELECT 73 * + col0 + + CAST( - col0 + - col0 AS SIGNED ) * col1 FROM tab2
----
-3510
3081
77

skipif mysql # not compatible
query I rowsort label-5613
SELECT 73 * + col0 + + CAST ( - col0 + - col0 AS INTEGER ) * col1 FROM tab2
----
-3510
3081
77

query I rowsort
SELECT ALL + col2 * - col1 AS col2 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT 5 + - col0 * col0 FROM tab2 AS cor0
----
-44
-6079
-6236

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5616
SELECT DISTINCT - col0 * col0 + CAST( col0 + - col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-6032
-6200
-69

skipif mysql # not compatible
query I rowsort label-5616
SELECT DISTINCT - col0 * col0 + CAST ( col0 + - col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-6032
-6200
-69

query I rowsort
SELECT + ( col1 ) * col1 + col2 FROM tab1 AS cor0
----
157
265
730

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab1 AS cor1, tab2 cor2
----
972 values hashing to 0fcd8d0934383dd58863be894b07a6ed

query I rowsort
SELECT DISTINCT - col1 FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT + - col1 * col1 - + 16 AS col2 FROM tab2 AS cor0
----
-305
-3497
-977

query I rowsort
SELECT ALL - col1 * 65 AS col0 FROM tab0 cor0
----
-5590
-5915
-6305

query I rowsort
SELECT DISTINCT + col1 + - col0 + col2 FROM tab1 AS cor0
----
29
3
77

query I rowsort
SELECT DISTINCT - + col0 + 85 FROM tab0 AS cor0
----
-4
50
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col2 col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL - col0 * cor0.col0 + 63 AS col0 FROM tab1 AS cor0
----
-4033
-6337
54

query I rowsort
SELECT - + col2 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT ALL + + cor0.col1 + - ( - col2 * + col0 + - 45 ) AS col0 FROM tab1 AS cor0
----
233
3703
7738

query I rowsort
SELECT - 28 * tab0.col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c9954691d7f1f1e96a58cdf189c94605

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 25 * - col0 col2 FROM tab2
----
-175
-1950
-1975

query I rowsort
SELECT DISTINCT - 46 + - col1 AS col1 FROM tab2
----
-105
-63
-77

onlyif mysql # use DIV operator for integer division
query I rowsort label-5631
SELECT DISTINCT + col0 DIV col0 + col0 + - ( + col0 + tab1.col2 ) * + col1 FROM tab1
----
-1145
-1478
-2207

skipif mysql # not compatible
query I rowsort label-5631
SELECT DISTINCT + col0 / col0 + col0 + - ( + col0 + tab1.col2 ) * + col1 FROM tab1
----
-1145
-1478
-2207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col2 + - col1 col1 FROM tab2
----
-55
-58
-85

query I rowsort
SELECT ALL col1 * + col1 + - 14 FROM tab1
----
155
662
86

query I rowsort
SELECT DISTINCT tab0.col1 * - tab0.col2 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT ALL + col1 * tab0.col1 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT ALL + col2 * - col1 AS col1 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT ALL + col0 + col1 FROM tab2 cor0
----
137
38
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + col1 * col0 col1 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT ALL - - 25 AS col0 FROM tab1 cor0
----
25
25
25

query I rowsort
SELECT DISTINCT 73 FROM tab0
----
73

query I rowsort
SELECT ( - 81 ) * + tab1.col1 + col0 AS col2 FROM tab1
----
-2103
-746
-973

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 cor0, tab0 AS cor1
----
243 values hashing to 74e36edda45186a5c45856859d8e21f0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab0.col1 col2 FROM tab0
----
86
91
97

query I rowsort
SELECT DISTINCT + col1 * - col1 AS col2 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL + 35 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc

query I rowsort
SELECT col0 + tab0.col1 * - col2 FROM tab0
----
-2814
-62
-7373

query I rowsort
SELECT + tab1.col0 + + col2 FROM tab1
----
121
176
57

query I rowsort
SELECT + tab1.col0 + + tab1.col1 * 12 FROM tab1
----
184
236
315

onlyif mysql # use DIV operator for integer division
query I rowsort label-5649
SELECT ALL - 0 + col0 DIV 17 AS col0 FROM tab1 AS cor0
----
0
3
4

skipif mysql # not compatible
query I rowsort label-5649
SELECT ALL - 0 + col0 / 17 AS col0 FROM tab1 AS cor0
----
0
3
4

query I rowsort
SELECT DISTINCT + 59 FROM tab1, tab0, tab0 AS cor0
----
59

query I rowsort
SELECT ( + col2 ) AS col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT + - col1 AS col1 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT cor0.col0 * col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT DISTINCT - col2 + col1 FROM tab1 AS cor0
----
-28
-47
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-5656
SELECT col1 * ( col2 ) + col2 DIV col2 AS col0 FROM tab1
----
1249
1405
571

skipif mysql # not compatible
query I rowsort label-5656
SELECT col1 * ( col2 ) + col2 / col2 AS col0 FROM tab1
----
1249
1405
571

query I rowsort
SELECT ALL col2 + + 16 * + ( col2 ) FROM tab0
----
1394
17
561

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5658
SELECT + CAST( - 25 AS SIGNED ) AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

skipif mysql # not compatible
query I rowsort label-5658
SELECT + CAST ( - 25 AS INTEGER ) AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

query I rowsort
SELECT col2 * ( + tab0.col0 ) + + col0 AS col2 FROM tab0
----
70
7387
816

query I rowsort
SELECT col0 - col2 FROM tab0
----
-9
34
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5661
SELECT col0 * + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5661
SELECT col0 * + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - col0 col1 FROM tab1
----
-7
16
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5663
SELECT DISTINCT + col1 + - CAST( - col1 * col1 AS SIGNED ) FROM tab1
----
110
182
702

skipif mysql # not compatible
query I rowsort label-5663
SELECT DISTINCT + col1 + - CAST ( - col1 * col1 AS INTEGER ) FROM tab1
----
110
182
702

query I rowsort
SELECT DISTINCT 44 FROM tab2, tab1 AS cor0
----
44

query I rowsort
SELECT DISTINCT + cor0.col0 + col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT + col1 * ( + col1 ) + + col2 * + col0 + col0 FROM tab1
----
3812
7929
841

query I rowsort
SELECT ALL - tab0.col1 + col2 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT + col0 + ( - 98 ) AS col1 FROM tab1 AS cor0
----
-18
-34
-95

query I rowsort
SELECT - + 95 FROM tab2 AS cor0
----
-95
-95
-95

query I rowsort
SELECT ALL - + 64 AS col2 FROM tab0 cor0
----
-64
-64
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT 62 * + col0 + col0 * - 81 FROM tab0 AS cor0
----
-1691
-456
-665

query I rowsort
SELECT - col1 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT ALL + + 1 + + cor0.col0 * + col1 AS col0 FROM tab2 AS cor0
----
1344
218
4603

query I rowsort
SELECT - ( col2 ) FROM tab1
----
-54
-57
-96

query I rowsort
SELECT ALL - ( + col0 ) * col2 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL - ( 18 ) * - col2 + + 48 + 84 AS col1 FROM tab2 AS cor0
----
600
618
816

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5678
SELECT DISTINCT CAST( NULL AS SIGNED ) * col0 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5678
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5679
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + cor0.col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5679
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + cor0.col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ( - col2 ) + col0 FROM tab1 AS cor0
----
-16
-51
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col1 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT - + ( - col2 ) + cor0.col1 * col1 AS col0 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT - - 25 * col2 AS col2 FROM tab0 AS cor0
----
2050
25
825

query I rowsort
SELECT 0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - - 28 + col1 AS col2 FROM tab1 AS cor0
----
38
41
54

query I rowsort
SELECT cor0.col2 * - 23 * - col2 + - 43 AS col2 FROM tab0 AS cor0
----
-20
154609
25004

query I rowsort
SELECT ALL - - ( + 65 ) + col0 * col2 * 40 FROM tab1 AS cor0
----
145985
307265
6545

query I rowsort
SELECT DISTINCT ( + cor0.col0 ) AS col2 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT + col1 * cor0.col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT - - 38 + + col0 * col0 * col1 AS col0 FROM tab1 AS cor0
----
272
40998
83238

query I rowsort
SELECT + col0 + + col1 * col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT col0 * - 64 + col1 AS col1 FROM tab1 AS cor0
----
-166
-4086
-5107

query I rowsort
SELECT DISTINCT col2 + + 52 FROM tab0 AS cor0
----
134
53
85

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT 36 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query I rowsort
SELECT + 67 AS col0 FROM tab2
----
67
67
67

query I rowsort
SELECT DISTINCT 23 AS col0 FROM tab0
----
23

query I rowsort
SELECT ALL - 53 AS col2 FROM tab1 AS cor0
----
-53
-53
-53

query I rowsort
SELECT DISTINCT + col2 * col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - - 97 * - col0 AS col2 FROM tab2 AS cor0
----
-679
-7566
-7663

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT DISTINCT cor2.col2 AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1, tab2 AS cor2
----
26
27
38

query I rowsort
SELECT - col2 * col0 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT - col1 + 87 * col0 AS col2 FROM tab2 AS cor0
----
578
6727
6856

query I rowsort
SELECT ALL - ( col1 ) AS col0 FROM tab0 AS cor0
----
-86
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT - - col0 * col2 * ( cor0.col0 ) FROM tab0 cor0
----
1225
19008
649522

query I rowsort
SELECT ALL - 94 FROM tab1 AS cor0
----
-94
-94
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col0 col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT + + 83 * + col0 + ( 53 ) FROM tab0 cor0
----
2045
2958
7440

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 col2 col1 FROM tab2 AS cor0
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 60 col1 FROM tab2
----
60
60
60

query I rowsort
SELECT col0 + col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL + col2 AS col0 FROM tab0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-5716
SELECT - col0 + - 96 DIV - 99 FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-5716
SELECT - col0 + - 96 / - 99 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT - - cor0.col1 AS col2 FROM tab1 AS cor0
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + 14 * col0 col0 FROM tab0 AS cor0
----
1164
303
489

query I rowsort
SELECT DISTINCT cor0.col1 * - ( - col2 ) * col0 AS col0 FROM tab2 AS cor0
----
119652
51034
5859

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col2 col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT - - col0 * - col1 FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-5722
SELECT ALL - cor0.col2 + - col1 DIV - col2 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-5722
SELECT ALL - cor0.col2 + - col1 / - col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT + + cor0.col2 * - col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL - col2 * 60 * col0 + col1 AS col1 FROM tab1 AS cor0
----
-218870
-460787
-9694

query I rowsort
SELECT - col2 * + ( 87 ) + + cor0.col1 FROM tab2 AS cor0
----
-2203
-2318
-3289

query I rowsort
SELECT DISTINCT + col1 * col0 + col0 + + col0 FROM tab1 cor0
----
1200
768
84

query I rowsort
SELECT + col1 + cor0.col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL - cor0.col2 * + cor0.col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT + col2 * col1 - + col1 * - cor0.col0 * ( col1 ) AS col0 FROM tab2 AS cor0
----
23477
273052
7564

query I rowsort
SELECT DISTINCT + 37 + - tab0.col2 - 14 FROM tab0
----
-10
-59
22

query IIIIIIIII rowsort
SELECT * FROM tab0, tab1 cor0, tab0 cor1
----
243 values hashing to 74e36edda45186a5c45856859d8e21f0

query I rowsort
SELECT 50 - col1 FROM tab1
----
24
37
40

query I rowsort
SELECT - cor0.col1 + - 27 * + col2 AS col1 FROM tab0 AS cor0
----
-124
-2305
-977

query I rowsort
SELECT + - cor0.col1 * col0 + + col0 + col1 FROM tab2 AS cor0
----
-1247
-179
-4465

query I rowsort
SELECT col2 * 51 - col2 FROM tab1 cor0
----
2700
2850
4800

query I rowsort
SELECT - - col2 + + col1 * col1 FROM tab1 AS cor0
----
157
265
730

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5737
SELECT CAST( col1 AS SIGNED ) + cor0.col2 AS col1 FROM tab2 cor0
----
55
58
85

skipif mysql # not compatible
query I rowsort label-5737
SELECT CAST ( col1 AS INTEGER ) + cor0.col2 AS col1 FROM tab2 cor0
----
55
58
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col1 col0 FROM tab0 AS cor0
----
119
173
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-5739
SELECT col1 DIV 75 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5739
SELECT col1 / 75 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT col0 * - ( col2 * - col1 ) + ( col2 ) FROM tab0
----
3396
664200
68145

query IIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
243 values hashing to 2248b8c3b6efacb4e8fc6d9f81b7df8b

query IIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
243 values hashing to 3a953203ced079e372111d61dbd9e35f

query I rowsort
SELECT - - col2 * - col1 AS col1 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT col1 * - cor0.col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT + ( + col2 ) * col0 AS col0 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT + col1 * + col2 AS col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT + 42 * - col1 AS col1 FROM tab1 AS cor0
----
-1092
-420
-546

query I rowsort
SELECT + - ( + col2 ) AS col0 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT 14 FROM tab1
----
14
14
14

query I rowsort
SELECT DISTINCT ( 35 ) AS col0 FROM tab2
----
35

query I rowsort
SELECT - cor0.col1 * col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT 18 * + col0 AS col0 FROM tab2 AS cor0
----
126
1404
1422

query I rowsort
SELECT + + col2 AS col0 FROM tab1 AS cor0
----
54
57
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5754
SELECT DISTINCT CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5754
SELECT DISTINCT CAST ( NULL AS REAL ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5755
SELECT ALL - col1 * CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5755
SELECT ALL - col1 * CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 + - ( 10 ) + - col0 col1 FROM tab1 cor0
----
-64
-77
13

query I rowsort
SELECT col2 * col2 + col1 AS col2 FROM tab2 cor0
----
1461
735
760

query I rowsort
SELECT DISTINCT - cor0.col2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-26
-27
-38

query I rowsort
SELECT ALL + ( 28 ) FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 8a39580587f2831072e93c319ff94bbf

query I rowsort
SELECT - col2 * + col0 AS col0 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT - col1 * + tab0.col2 FROM tab0
----
-2838
-7462
-97

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0, tab2 cor1, tab2 AS cor2
----
972 values hashing to 64ce0e736818e884f0a9ecd075da5eb7

query I rowsort
SELECT col1 * - col1 AS col2 FROM tab1
----
-100
-169
-676

query I rowsort
SELECT 27 + 69 * - col1 AS col2 FROM tab1 AS cor0
----
-1767
-663
-870

query I rowsort
SELECT ALL + 33 + - cor0.col2 FROM tab1, tab0 cor0
----
9 values hashing to 83e4bc30b21ec896ad4f646514786833

query I rowsort
SELECT DISTINCT col0 * + col2 AS col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT 79 AS col1 FROM tab1
----
79
79
79

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( + col0 AS REAL ) * + col2 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT 97 FROM tab2
----
97
97
97

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0, tab0 AS cor1, tab0 AS cor2
----
972 values hashing to d522b52b67b20888d3544d25cb98f232

query I rowsort
SELECT 98 FROM tab2
----
98
98
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-5772
SELECT DISTINCT col1 DIV + 62 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5772
SELECT DISTINCT col1 / + 62 AS col0 FROM tab2
----
0

query I rowsort
SELECT DISTINCT cor0.col1 * 64 + col0 * - cor0.col0 AS col0 FROM tab0 cor0
----
-2097
4928
4983

query I rowsort
SELECT - 96 FROM tab1 cor0
----
-96
-96
-96

query I rowsort
SELECT DISTINCT + 40 AS col1 FROM tab2 cor0
----
40

query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0 CROSS JOIN tab1 WHERE NULL > ( NULL )
----

query I rowsort
SELECT DISTINCT - 48 FROM tab0, tab2 AS cor0
----
-48

query I rowsort
SELECT - 57 * col1 FROM tab0 AS cor0
----
-4902
-5187
-5529

query I rowsort
SELECT DISTINCT + - 6 + - col2 FROM tab1 AS cor0
----
-102
-60
-63

query I rowsort
SELECT ALL cor0.col0 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT ALL + 36 + col2 + col2 * 59 FROM tab0 AS cor0
----
2016
4956
96

query I rowsort
SELECT + cor0.col2 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 cor0 CROSS JOIN tab2
----
243 values hashing to ea21cea53be47edd19229592e3d26141

query I rowsort
SELECT tab0.col1 + + col1 AS col0 FROM tab0
----
172
182
194

query I rowsort
SELECT + col0 + - col2 AS col2 FROM tab2 cor0
----
-20
41
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col1 col2 FROM tab1
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5787
SELECT tab2.col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5787
SELECT tab2.col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + col2 * - col0 - + 36 AS col0 FROM tab0
----
-71
-7334
-828

query I rowsort
SELECT col2 + col0 * + col2 FROM tab1
----
216
3705
7776

query I rowsort
SELECT ALL tab0.col1 * - col0 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT - - col0 + cor0.col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT ALL + + 60 - col2 AS col0 FROM tab1 AS cor0
----
-36
3
6

query I rowsort
SELECT + col1 * + col0 + cor0.col2 * + col1 AS col0 FROM tab0 AS cor0
----
15561
3492
4902

query I rowsort
SELECT DISTINCT col1 + col1 AS col0 FROM tab0 cor0
----
172
182
194

query I rowsort
SELECT ALL - col0 - cor0.col1 AS col0 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT 30 * + col2 AS col1 FROM tab2 cor0
----
1140
780
810

query I rowsort
SELECT ALL + - col1 * - cor0.col2 + col0 FROM tab1 AS cor0
----
1328
1407
634

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab1 AS cor1, tab1 AS cor2
----
972 values hashing to 635619591835474e6aa6acdff4ab166c

query I rowsort
SELECT - cor0.col1 AS col0 FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT col0 * 66 - tab2.col0 * tab2.col1 FROM tab2
----
245
3871
546

query I rowsort
SELECT - col0 * col1 - col1 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT ALL + col2 - col2 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT col0 + col2 * 46 - + tab2.col1 FROM tab2
----
1215
1218
1810

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT ALL - 75 * + cor0.col1 FROM tab2, tab2 AS cor0
----
9 values hashing to a77762a19d8b57fb4a2d312cd7894615

query I rowsort
SELECT cor0.col1 * col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT + col0 * + 3 FROM tab0 AS cor0
----
105
267
72

query I rowsort
SELECT - + col1 * + col0 * ( + col1 ) + + ( - ( - col1 ) ) FROM tab2 AS cor0
----
-22814
-271459
-6696

onlyif mysql # use DIV operator for integer division
query I rowsort label-5809
SELECT + col0 DIV - col0 - - col2 FROM tab1 AS cor0
----
53
56
95

skipif mysql # not compatible
query I rowsort label-5809
SELECT + col0 / - col0 - - col2 FROM tab1 AS cor0
----
53
56
95

query I rowsort
SELECT DISTINCT col0 * 30 FROM tab0 AS cor0
----
1050
2670
720

query I rowsort
SELECT ALL - cor0.col2 + + col1 AS col0 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT cor0.col1 * - 69 + col0 FROM tab2 AS cor0
----
-1094
-2132
-3993

query I rowsort
SELECT + + 98 + cor0.col2 AS col2 FROM tab0 AS cor0
----
131
180
99

query I rowsort
SELECT + 94 AS col0 FROM tab2 AS cor0
----
94
94
94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5815
SELECT ALL - - CAST( NULL AS SIGNED ) * col1 + + cor0.col0 * ( col0 ) + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5815
SELECT ALL - - CAST ( NULL AS INTEGER ) * col1 + + cor0.col0 * ( col0 ) + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 + - 68 * - col2 - + col1 AS col1 FROM tab2 AS cor0
----
1787
1812
2646

query I rowsort
SELECT DISTINCT + cor0.col2 * + col0 * col1 - col2 FROM tab0 AS cor0
----
3394
664036
68079

query I rowsort
SELECT - col0 + col1 * col1 FROM tab2 cor0
----
210
3403
954

query I rowsort
SELECT ALL cor0.col1 AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT + ( ( + col2 ) ) AS col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT - 94 + + col0 + cor0.col2 AS col1 FROM tab0 cor0
----
-37
-58
77

query I rowsort
SELECT DISTINCT + col1 - - col2 AS col0 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL + 93 FROM tab2 AS cor0
----
93
93
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 * + col0 col1 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-5825
SELECT + - col0 DIV + 28 FROM tab1 AS cor0
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-5825
SELECT + - col0 / + 28 FROM tab1 AS cor0
----
-2
-2
0

query I rowsort
SELECT - col2 * ( col0 ) + col1 AS col1 FROM tab2 AS cor0
----
-158
-1969
-2985

onlyif mysql # use DIV operator for integer division
query I rowsort label-5827
SELECT DISTINCT + col0 DIV + col1 FROM tab1 AS cor0
----
0
6

skipif mysql # not compatible
query I rowsort label-5827
SELECT DISTINCT + col0 / + col1 FROM tab1 AS cor0
----
0
6

query I rowsort
SELECT ALL - col0 * - 56 FROM tab1 AS cor0
----
168
3584
4480

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5829
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5829
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL - col2 * + ( col2 + + col1 ) FROM tab1 cor0
----
-10464
-3819
-4320

query I rowsort
SELECT - col1 * + col1 AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT col2 * 43 * + col0 FROM tab1 AS cor0
----
156864
330240
6966

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5833
SELECT ALL - - col2 / + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5833
SELECT ALL - - col2 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query IIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0, tab1 cor1
----
243 values hashing to 26173f1193178352de9a2e4ca7f09d53

query I rowsort
SELECT + 97 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

onlyif mysql # use DIV operator for integer division
query I rowsort label-5836
SELECT - col0 DIV + col1 FROM tab1 AS cor0
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-5836
SELECT - col0 / + col1 FROM tab1 AS cor0
----
-6
-6
0

query I rowsort
SELECT + col2 * 10 FROM tab2 AS cor0
----
260
270
380

query I rowsort
SELECT + 50 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5839
SELECT ALL 86 + + col0 * + col2 * + ( col2 * CAST( 73 AS SIGNED ) ) + col2 FROM tab1
----
15179471
53821622
638744

skipif mysql # not compatible
query I rowsort label-5839
SELECT ALL 86 + + col0 * + col2 * + ( col2 * CAST ( 73 AS INTEGER ) ) + col2 FROM tab1
----
15179471
53821622
638744

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - ( - 42 ) * col2 col2 FROM tab2
----
126084
7938
85176

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2, tab0 cor0, tab0
----
972 values hashing to 09b120a8ff13ebafea7af10c2152241b

query I rowsort
SELECT + cor0.col0 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT + 99 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query I rowsort
SELECT DISTINCT col0 * + ( col2 ) FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT + col1 * - 67 * col2 FROM tab0 cor0
----
-190146
-499954
-6499

query I rowsort
SELECT ALL - col2 * + 15 FROM tab0 AS cor0
----
-1230
-15
-495

query I rowsort
SELECT ALL - 99 FROM tab0, tab0 cor0
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

query I rowsort
SELECT ALL col1 * col1 * + 72 FROM tab1
----
12168
48672
7200

query IIIIIIIII rowsort
SELECT * FROM tab0, tab1, tab0 AS cor0 WHERE NULL >= NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5850
SELECT DISTINCT col2 DIV - tab0.col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-5850
SELECT DISTINCT col2 / - tab0.col2 FROM tab0
----
-1

query I rowsort
SELECT DISTINCT + + col0 - + col1 FROM tab2 AS cor0
----
-24
19
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-5852
SELECT col2 DIV col2 + + col2 AS col0 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-5852
SELECT col2 / col2 + + col2 AS col0 FROM tab1 AS cor0
----
55
58
97

query I rowsort
SELECT ALL + - col2 FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT + - col0 * col2 - col2 AS col0 FROM tab1 AS cor0
----
-216
-3705
-7776

onlyif mysql # use DIV operator for integer division
query I rowsort label-5855
SELECT col1 + - col0 - ( col2 ) * col0 DIV col0 FROM tab1 AS cor0
----
-111
-163
-31

skipif mysql # not compatible
query I rowsort label-5855
SELECT col1 + - col0 - ( col2 ) * col0 / col0 FROM tab1 AS cor0
----
-111
-163
-31

query I rowsort
SELECT + - ( col0 ) FROM tab1 AS cor0
----
-3
-64
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col0 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL + + 24 AS col0 FROM tab1 AS cor0
----
24
24
24

query I rowsort
SELECT DISTINCT + - col2 AS col1 FROM tab1 AS cor0
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5860
SELECT - 56 + ( col2 ) DIV col1 + + 64 AS col1 FROM tab2
----
10
8
8

skipif mysql # not compatible
query I rowsort label-5860
SELECT - 56 + ( col2 ) / col1 + + 64 AS col1 FROM tab2
----
10
8
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-5861
SELECT - col0 DIV col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5861
SELECT - col0 / col1 FROM tab0
----
0
0
0

query I rowsort
SELECT col2 * + 62 FROM tab1
----
3348
3534
5952

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5863
SELECT 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-5863
SELECT CAST ( NULL AS INTEGER ) col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5864
SELECT ALL - CAST( NULL AS SIGNED ) * col1 - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5864
SELECT ALL - CAST ( NULL AS INTEGER ) * col1 - col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + cor0.col0 AS col0 FROM tab2, tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT col1 + col0 AS col2 FROM tab0
----
110
132
180

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0, tab0, tab0 AS cor1
----
972 values hashing to 3a31dab513390ca6bd05c71a3d9c50f0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5868
SELECT + 85 DIV + col1 + + 83 FROM tab0
----
83
83
83

skipif mysql # not compatible
query I rowsort label-5868
SELECT + 85 / + col1 + + 83 FROM tab0
----
83
83
83

query I rowsort
SELECT 20 + - col2 AS col0 FROM tab1 AS cor0
----
-34
-37
-76

query I rowsort
SELECT col1 + - tab0.col1 * col2 + - ( + col1 ) AS col1 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT + col0 + col0 AS col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT - cor0.col0 * - col0 + + col1 FROM tab0 AS cor0
----
1322
662
8012

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col2 + - 94 col2 FROM tab1 AS cor0
----
2822
3155
9122

query I rowsort
SELECT ALL + - col0 * col2 FROM tab0 cor0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col2 col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL + + cor0.col1 + cor0.col1 FROM tab0 AS cor0
----
172
182
194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col1 * 39 col1 FROM tab2 AS cor0
----
1216
2379
742

onlyif mysql # use DIV operator for integer division
query I rowsort label-5878
SELECT DISTINCT - 5 DIV col2 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5878
SELECT DISTINCT - 5 / col2 AS col0 FROM tab1 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

query I rowsort
SELECT ALL col2 + col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL - - 38 + + cor0.col0 FROM tab1 AS cor0
----
102
118
41

query I rowsort
SELECT ALL - + ( + col0 ) * + col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT + ( + cor0.col2 ) + 90 * + ( - cor0.col0 ) FROM tab1 AS cor0
----
-216
-5703
-7104

onlyif mysql # use DIV operator for integer division
query I rowsort label-5884
SELECT DISTINCT - 96 DIV + col0 AS col0 FROM tab2 AS cor0
----
-1
-13

skipif mysql # not compatible
query I rowsort label-5884
SELECT DISTINCT - 96 / + col0 AS col0 FROM tab2 AS cor0
----
-1
-13

query I rowsort
SELECT DISTINCT - + 97 AS col0 FROM tab0 AS cor0
----
-97

query I rowsort
SELECT ALL - - cor0.col1 + - col0 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT ALL col0 + col1 AS col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT + 25 + - col2 FROM tab2
----
-1
-13
-2

query I rowsort
SELECT DISTINCT + 79 + + col0 FROM tab1
----
143
159
82

query I rowsort
SELECT DISTINCT tab2.col0 * col0 + ( - col1 ) AS col0 FROM tab2
----
18
6025
6224

query I rowsort
SELECT - col2 * col1 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT ALL + tab2.col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT + 97 FROM tab0
----
97
97
97

query I rowsort
SELECT DISTINCT col2 * col0 + 83 * col0 FROM tab1
----
14320
411
8960

query I rowsort
SELECT ALL - cor0.col1 * - col0 - 30 AS col1 FROM tab0 AS cor0
----
2034
3365
8069

query I rowsort
SELECT + + col1 - - col2 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT cor0.col1 FROM tab1, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT 4 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 730dff78e83112374961ea711f98ebaa

onlyif mysql # use DIV operator for integer division
query I rowsort label-5899
SELECT DISTINCT + + 5 + col0 DIV + col1 col2 FROM tab0 AS cor0
----
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5899
SELECT DISTINCT + + 5 + col0 / + col1 col2 FROM tab0 AS cor0
----
5

query I rowsort
SELECT ALL + ( col1 ) FROM tab0
----
86
91
97

query I rowsort
SELECT DISTINCT + 57 AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
57

query I rowsort
SELECT tab0.col0 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT ALL 89 * col0 FROM tab0
----
2136
3115
7921

query I rowsort
SELECT DISTINCT - col1 * ( - col2 ) + - col2 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT DISTINCT - col0 + 48 FROM tab0 AS cor0
----
-41
13
24

query I rowsort
SELECT ALL - cor0.col1 AS col0 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT - + col1 * + col1 + + 72 FROM tab0 AS cor0
----
-7324
-8209
-9337

query I rowsort
SELECT ALL + + col1 * - col1 + 24 AS col2 FROM tab1 AS cor0
----
-145
-652
-76

query I rowsort
SELECT ALL + col2 * + col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - col1 * + col2 + cor0.col2 * col2 AS col1 FROM tab2 AS cor0
----
-108
-858
798

query I rowsort
SELECT ALL + col1 * 41 FROM tab0 AS cor0
----
3526
3731
3977

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5912
SELECT ALL - col0 * col0 + + ( - col2 ) + - CAST( + 4 AS SIGNED ) FROM tab1 AS cor0
----
-4157
-6500
-67

skipif mysql # not compatible
query I rowsort label-5912
SELECT ALL - col0 * col0 + + ( - col2 ) + - CAST ( + 4 AS INTEGER ) FROM tab1 AS cor0
----
-4157
-6500
-67

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 + - col0 + col0 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + + col0 * - ( col0 ) AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT + col1 + col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT - - col0 + col1 * + col2 AS col2 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT + cor0.col1 FROM tab0 AS cor0
----
86
91
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5919
SELECT + CAST( - col1 AS SIGNED ) AS col0 FROM tab2
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-5919
SELECT + CAST ( - col1 AS INTEGER ) AS col0 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT - ( - col2 ) AS col1 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT ALL - - col1 + col0 AS col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT col0 * 96 * + col2 AS col0 FROM tab2 AS cor0
----
18144
194688
288192

query I rowsort
SELECT DISTINCT - 53 FROM tab0 cor0
----
-53

query I rowsort
SELECT DISTINCT ( - col1 ) FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT + col2 + cor0.col0 * cor0.col2 * col1 AS col2 FROM tab1 AS cor0
----
36537
4266
99936

query I rowsort
SELECT DISTINCT + + 40 FROM tab2 AS cor0
----
40

query I rowsort
SELECT DISTINCT 39 AS col2 FROM tab0, tab2 AS cor0
----
39

query I rowsort
SELECT ALL ( + col0 ) FROM tab2
----
7
78
79

query I rowsort
SELECT + 20 AS col1 FROM tab1, tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
27 values hashing to 0a35fe98f3e7d5fc8ff2ae815bd20ef4

query I rowsort
SELECT DISTINCT + + col2 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT 32 FROM tab0 AS cor0
----
32
32
32

query I rowsort
SELECT ALL - - 29 * col1 FROM tab2 AS cor0
----
1711
493
899

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5933
SELECT - CAST( ( col0 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-5933
SELECT - CAST ( ( col0 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT - - 95 * - col0 AS col0 FROM tab1 AS cor0
----
-285
-6080
-7600

query I rowsort
SELECT ALL - ( + col0 ) AS col0 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT - - 97 * - 57 FROM tab2 AS cor0
----
-5529
-5529
-5529

query I rowsort
SELECT DISTINCT + col1 * + col1 AS col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT ( col1 ) AS col0 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT ALL + 63 AS col0 FROM tab1 AS cor0
----
63
63
63

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5940
SELECT ALL + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5940
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col1 * col2 * col1 FROM tab1 AS cor0
----
16224
36504
5700

query I rowsort
SELECT DISTINCT - + 19 * - ( - col0 ) AS col1 FROM tab2 AS cor0
----
-133
-1482
-1501

query I rowsort
SELECT DISTINCT + 33 FROM tab2 AS cor0
----
33

query I rowsort
SELECT ALL - 39 + col2 FROM tab0 AS cor0
----
-38
-6
43

query I rowsort
SELECT - + col2 AS col2 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT - col1 * - col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT col0 AS col0 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT ALL + cor0.col1 * col2 + col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT DISTINCT col2 + - col1 * - 34 FROM tab2 AS cor0
----
1081
2032
616

query I rowsort
SELECT - cor0.col2 * col1 AS col0 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT + 32 FROM tab1, tab2 cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5953
SELECT DISTINCT + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5953
SELECT DISTINCT + CAST ( NULL AS REAL ) FROM tab0
----
NULL

query I rowsort
SELECT 50 AS col0 FROM tab0
----
50
50
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 67 col1 FROM tab1
----
67
67
67

query I rowsort
SELECT - tab0.col2 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT ALL - tab2.col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT 47 + col2 FROM tab1 AS cor0
----
101
104
143

query I rowsort
SELECT DISTINCT - 9 AS col0 FROM tab2, tab2 AS cor0
----
-9

query I rowsort
SELECT ALL + col0 + - 5 AS col0 FROM tab1
----
-2
59
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-5961
SELECT + + col2 * col1 DIV 9 AS col0 FROM tab2 AS cor0
----
170
71
93

skipif mysql # not compatible
query I rowsort label-5961
SELECT + + col2 * col1 / 9 AS col0 FROM tab2 AS cor0
----
170
71
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-5962
SELECT + 15 + + col0 * 68 DIV - col2 FROM tab1 cor0
----
-41
-61
12

skipif mysql # not compatible
query I rowsort label-5962
SELECT + 15 + + col0 * 68 / - col2 FROM tab1 cor0
----
-41
-61
12

query I rowsort
SELECT 39 + + col1 FROM tab2 AS cor0
----
56
70
98

query I rowsort
SELECT + 51 AS col2 FROM tab1 AS cor0
----
51
51
51

query I rowsort
SELECT + col1 + col1 AS col2 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT DISTINCT - 81 * cor0.col1 + ( col1 ) FROM tab1 AS cor0
----
-1040
-2080
-800

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5967
SELECT DISTINCT 25 * col2 - CAST( col0 AS SIGNED ) FROM tab1 cor0
----
1347
1361
2320

skipif mysql # not compatible
query I rowsort label-5967
SELECT DISTINCT 25 * col2 - CAST ( col0 AS INTEGER ) FROM tab1 cor0
----
1347
1361
2320

query I rowsort
SELECT DISTINCT - 95 FROM tab2
----
-95

query I rowsort
SELECT + 2 FROM tab1 cor0
----
2
2
2

query I rowsort
SELECT ALL + 55 * col0 AS col1 FROM tab1 AS cor0
----
165
3520
4400

query I rowsort
SELECT ALL col0 * - col0 + col1 FROM tab1 AS cor0
----
-4086
-6387
17

query I rowsort
SELECT DISTINCT ( col1 ) + - cor0.col0 AS col0 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT + ( - cor0.col2 ) AS col0 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT - col2 * col1 + col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT col0 * col1 + cor0.col0 * col1 AS col0 FROM tab2 AS cor0
----
2686
434
9204

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 col0 FROM tab1 AS cor0
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - ( col2 ) + + col0 col0 FROM tab2 AS cor0
----
-13
120
130

query I rowsort
SELECT + - col2 * 66 AS col0 FROM tab0 AS cor0
----
-2178
-5412
-66

query I rowsort
SELECT - - col2 + + 23 AS col1 FROM tab2 AS cor0
----
49
50
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-5980
SELECT + col0 * + 30 + col2 DIV col1 FROM tab0 cor0
----
1050
2670
720

skipif mysql # not compatible
query I rowsort label-5980
SELECT + col0 * + 30 + col2 / col1 FROM tab0 cor0
----
1050
2670
720

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5981
SELECT col1 - CAST( - col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-5981
SELECT col1 - CAST ( - col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ( - ( + col2 ) ) + - ( + cor0.col1 ) AS col0 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT DISTINCT cor0.col1 AS col1 FROM tab1, tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL - col2 + 43 * - col2 + cor0.col1 FROM tab1 AS cor0
----
-2350
-2498
-4211

query I rowsort
SELECT + cor0.col1 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col1 col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT - ( + col1 ) + col0 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT col0 * - col0 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT 72 AS col2 FROM tab2, tab0 cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query I rowsort
SELECT col0 * 56 FROM tab1
----
168
3584
4480

query I rowsort
SELECT - col0 * - 61 * + col2 FROM tab0
----
2135
445178
48312

query I rowsort
SELECT - + cor0.col0 * - col1 + + cor0.col1 AS col0 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT ALL col2 + 79 FROM tab2 AS cor0
----
105
106
117

query I rowsort
SELECT DISTINCT + ( 15 ) AS col2 FROM tab2 AS cor0
----
15

query I rowsort
SELECT ALL - 89 * + ( cor0.col2 ) AS col2 FROM tab0 cor0
----
-2937
-7298
-89

query I rowsort
SELECT + + ( col1 ) + - col2 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT DISTINCT + + ( - cor0.col2 ) * + col0 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT - 14 AS col1 FROM tab2 AS cor0
----
-14

query I rowsort
SELECT - + 43 * col0 FROM tab1 cor0
----
-129
-2752
-3440

query I rowsort
SELECT ALL col0 AS col1 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT - + col1 * + col2 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT - - cor0.col0 + 47 AS col2 FROM tab0 cor0
----
136
71
82

query I rowsort
SELECT - + col2 * col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT - + col0 AS col0 FROM tab1 AS cor0
----
-3
-64
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6005
SELECT ALL CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6005
SELECT ALL CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * cor0.col1 + cor0.col2 col1 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT ALL cor0.col0 + cor0.col0 AS col2 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT 93 AS col1 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7

query I rowsort
SELECT DISTINCT - col0 * col0 + cor0.col0 AS col0 FROM tab0 AS cor0
----
-1190
-552
-7832

query I rowsort
SELECT ALL + - cor0.col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT - col2 * col1 FROM tab2 cor0
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( - col0 * col1 AS REAL ) + - col1 FROM tab2
----
-1360
-248
-4661

query IIIIIIIII rowsort
SELECT * FROM tab1, tab0 cor0, tab1 cor1
----
243 values hashing to 70c6a01760d7239f3003db4da92180a4

query I rowsort
SELECT 17 FROM tab2 AS cor0
----
17
17
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col1 col2 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT col1 * col2 + + col0 FROM tab1
----
1328
1407
634

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab1.col1 * - col0 * col1 + 74 col0 FROM tab1
----
13594
2102
6474

query IIIIIIIII rowsort
SELECT * FROM tab1, tab0 cor0, tab1 AS cor1
----
243 values hashing to 70c6a01760d7239f3003db4da92180a4

onlyif mysql # use DIV operator for integer division
query I rowsort label-6019
SELECT + + col1 + - col2 DIV col0 FROM tab1 AS cor0
----
10
12
8

skipif mysql # not compatible
query I rowsort label-6019
SELECT + + col1 + - col2 / col0 FROM tab1 AS cor0
----
10
12
8

query I rowsort
SELECT ALL - cor0.col2 * - col0 AS col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT tab1.col0 - ( 71 ) AS col0 FROM tab1, tab1 cor0
----
-68
-7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-6022
SELECT + col0 + + 52 + col2 DIV col0 AS col2 FROM tab2
----
130
131
62

skipif mysql # not compatible
query I rowsort label-6022
SELECT + col0 + + 52 + col2 / col0 AS col2 FROM tab2
----
130
131
62

query I rowsort
SELECT col1 + ( col1 * tab1.col2 ) FROM tab1
----
1261
1430
580

query I rowsort
SELECT col1 * col1 * - 75 FROM tab2
----
-21675
-261075
-72075

onlyif mysql # use DIV operator for integer division
query I rowsort label-6025
SELECT col1 DIV col0 AS col2 FROM tab2
----
0
0
4

skipif mysql # not compatible
query I rowsort label-6025
SELECT col1 / col0 AS col2 FROM tab2
----
0
0
4

query I rowsort
SELECT tab0.col0 - 8 FROM tab0, tab1 AS cor0
----
9 values hashing to 5ec957df53dcff87c98bcb10bd0bb0d5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6027
SELECT col2 + - ( + col1 * - col1 ) + - CAST( - col0 AS SIGNED ) FROM tab1
----
221
345
733

skipif mysql # not compatible
query I rowsort label-6027
SELECT col2 + - ( + col1 * - col1 ) + - CAST ( - col0 AS INTEGER ) FROM tab1
----
221
345
733

query I rowsort
SELECT ( 46 ) FROM tab1, tab1 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

query I rowsort
SELECT + - col2 - col0 AS col2 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT ALL - - cor0.col0 AS col2 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT ALL 6 FROM tab0, tab2 AS cor0, tab2 cor1
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6033
SELECT + col0 DIV - col0 + - col2 * - col2 - + col0 AS col1 FROM tab2 AS cor0
----
1364
597
721

skipif mysql # not compatible
query I rowsort label-6033
SELECT + col0 / - col0 + - col2 * - col2 - + col0 AS col1 FROM tab2 AS cor0
----
1364
597
721

query I rowsort
SELECT col2 + col2 + 84 FROM tab0
----
150
248
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab2
----
7
78
79

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0, tab2, tab0 AS cor1
----
972 values hashing to deaaa983f771be544ffdc26f04a18657

query I rowsort
SELECT DISTINCT col0 + + col0 FROM tab2
----
14
156
158

query I rowsort
SELECT ALL + cor1.col0 AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT DISTINCT 14 + cor0.col1 AS col2 FROM tab0 AS cor0
----
100
105
111

query I rowsort
SELECT - 0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col2 * col0 - - 61 * 3 AS col2 FROM tab0 AS cor0
----
218
7481
975

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 col1 FROM tab1 cor0
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-6043
SELECT ALL - col2 DIV + col1 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6043
SELECT ALL - col2 / + col1 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 41 + - col1 col2 FROM tab0 AS cor0
----
-45
-50
-56

query I rowsort
SELECT DISTINCT - col1 * + col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT + - 32 * - col2 - col1 AS col1 FROM tab2 AS cor0
----
1199
773
833

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6047
SELECT DISTINCT - col2 + cor0.col1 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6047
SELECT DISTINCT - col2 + cor0.col1 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6048
SELECT - ( col0 ) DIV col0 + - col0 * col0 DIV ( col2 ) col0 FROM tab1 AS cor0
----
-1
-67
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6048
SELECT - ( col0 ) / col0 + - col0 * col0 / ( col2 ) col0 FROM tab1 AS cor0
----
-1
-67
-72

query I rowsort
SELECT ALL + col0 * - col0 * col2 FROM tab2 AS cor0
----
-1323
-158184
-237158

onlyif mysql # use DIV operator for integer division
query I rowsort label-6050
SELECT - ( + col1 ) DIV cor0.col1 + 27 AS col2 FROM tab0 AS cor0
----
26
26
26

skipif mysql # not compatible
query I rowsort label-6050
SELECT - ( + col1 ) / cor0.col1 + 27 AS col2 FROM tab0 AS cor0
----
26
26
26

query I rowsort
SELECT DISTINCT + col1 + + col0 * col0 AS col1 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT ALL - col2 - - col0 FROM tab1 cor0
----
-16
-51
7

query I rowsort
SELECT + col2 * + col0 + + col1 AS col1 FROM tab0 AS cor0
----
132
7389
878

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 + - col0 * 89 col0 FROM tab2 AS cor0
----
-592
-6911
-7000

onlyif mysql # use DIV operator for integer division
query I rowsort label-6055
SELECT DISTINCT - col2 + cor0.col0 * + col1 + - col0 DIV col2 AS col2 FROM tab1 AS cor0
----
24
582
944

skipif mysql # not compatible
query I rowsort label-6055
SELECT DISTINCT - col2 + cor0.col0 * + col1 + - col0 / col2 AS col2 FROM tab1 AS cor0
----
24
582
944

query I rowsort
SELECT - 64 FROM tab0, tab1 AS cor0
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

query I rowsort
SELECT + cor0.col1 + + 31 AS col2 FROM tab1 AS cor0
----
41
44
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6058
SELECT DISTINCT - - cor0.col0 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6058
SELECT DISTINCT - - cor0.col0 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + col1 * 63 + + col2 FROM tab0 AS cor0
----
5451
5815
6112

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6060
SELECT ALL - col0 * CAST( + col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

skipif mysql # not compatible
query I rowsort label-6060
SELECT ALL - col0 * CAST ( + col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT - col2 * 63 AS col0 FROM tab1 AS cor0
----
-3402
-3591
-6048

query I rowsort
SELECT - - col2 * ( + col1 ) AS col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL + cor0.col2 + + 50 * - cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a1fba82283a71fb25b2ccf63b61d0d99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6064
SELECT - + CAST( NULL AS SIGNED ) * + 5 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6064
SELECT - + CAST ( NULL AS INTEGER ) * + 5 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6065
SELECT col2 * ( - 27 ) + + col2 * CAST( col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-380
108
832

skipif mysql # not compatible
query I rowsort label-6065
SELECT col2 * ( - 27 ) + + col2 * CAST ( col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-380
108
832

skipif mysql # not compatible
query I rowsort
SELECT cor0.col0 + CAST ( col1 AS REAL ) FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT cor0.col0 - - 90 FROM tab1 AS cor0
----
154
170
93

query I rowsort
SELECT col1 * + col0 AS col1 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-6069
SELECT ALL col0 DIV + ( + col0 ) + ( - col0 ) AS col1 FROM tab0 AS cor0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-6069
SELECT ALL col0 / + ( + col0 ) + ( - col0 ) AS col1 FROM tab0 AS cor0
----
-23
-34
-88

query I rowsort
SELECT + ( col0 ) AS col1 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT DISTINCT - + ( 90 ) FROM tab0 AS cor0
----
-90

query I rowsort
SELECT - - col1 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT - 37 FROM tab0 cor0
----
-37
-37
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col1 ) * col2 col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL + cor0.col2 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT DISTINCT - + col0 + - 37 FROM tab0 AS cor0
----
-126
-61
-72

query I rowsort
SELECT ALL + + ( col0 ) * - col2 - + col2 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT - col1 + col0 FROM tab0 cor0
----
-2
-62
-62

query I rowsort
SELECT ALL + + cor0.col0 * col1 AS col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT col1 + col2 * + col0 FROM tab2 cor0
----
2087
220
3019

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2, tab1 AS cor3
----
3645 values hashing to 97b2ae21242e1e40418ee2ad06544f7a

query I rowsort
SELECT DISTINCT - 97 * - col2 AS col2 FROM tab0 AS cor0
----
3201
7954
97

query I rowsort
SELECT ALL - col1 * col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL col2 - + col2 FROM tab0
----
0
0
0

query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0, tab2 cor1
----
243 values hashing to 6506b295d3a7bcc5ed65956f5b4e38b0

query I rowsort
SELECT ALL - col0 - col2 AS col2 FROM tab1
----
-121
-176
-57

query I rowsort
SELECT + tab0.col2 AS col1 FROM tab0
----
1
33
82

query I rowsort
SELECT DISTINCT 95 * col1 FROM tab1 AS cor0
----
1235
2470
950

query I rowsort
SELECT cor0.col0 - - col0 * + col0 AS col1 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT ALL + 17 FROM tab1 cor0
----
17
17
17

query I rowsort
SELECT + + ( - col2 ) * + ( - col1 ) * - col1 FROM tab0 AS cor0
----
-244068
-679042
-9409

query I rowsort
SELECT + - ( + col1 ) * - 71 - + col1 FROM tab1 AS cor0
----
1820
700
910

query I rowsort
SELECT - col1 + + col1 * 81 AS col0 FROM tab1 AS cor0
----
1040
2080
800

query I rowsort
SELECT col2 * col0 + col0 * 45 * col2 + col1 * ( + col2 ) FROM tab2
----
138738
94822
9531

query I rowsort
SELECT 69 + - col2 FROM tab2
----
31
42
43

onlyif mysql # use DIV operator for integer division
query I rowsort label-6096
SELECT ALL col2 DIV - 71 - - col1 FROM tab0
----
86
90
97

skipif mysql # not compatible
query I rowsort label-6096
SELECT ALL col2 / - 71 - - col1 FROM tab0
----
86
90
97

query I rowsort
SELECT DISTINCT + tab1.col1 - + tab1.col2 AS col2 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT ALL col2 - col0 AS col1 FROM tab1
----
-7
16
51

query I rowsort
SELECT ALL col1 + + 86 * + col2 AS col1 FROM tab0
----
183
2924
7143

query I rowsort
SELECT + + col0 * + col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT cor0.col1 * + col0 FROM tab1 cor0
----
1040
640
78

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 cor0, tab1 AS cor1, tab1 AS cor2
----
972 values hashing to fe55095fff3a5ecc2f113d14a8c6f823

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0, tab2, tab0 AS cor1
----
972 values hashing to 380241bbc503a31e70494611a87ffd99

query I rowsort
SELECT DISTINCT - 17 * + cor0.col1 FROM tab1, tab2 AS cor0
----
-1003
-289
-527

query I rowsort
SELECT + col1 * + col2 AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT - cor1.col0 FROM tab1, tab2 AS cor0, tab1 AS cor1, tab2, tab1 AS cor2
----
243 values hashing to f74ca4a9760ae5a015b067d560a14502

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
972 values hashing to dd771e0c15d524f62127686e9bd43f9a

query I rowsort
SELECT DISTINCT + 20 AS col1 FROM tab1
----
20

query I rowsort
SELECT DISTINCT col1 + - col1 AS col2 FROM tab1
----
0

query I rowsort
SELECT + 21 * col2 + - col0 * + 39 FROM tab2
----
-2283
-2496
294

query I rowsort
SELECT col2 + - col1 * col2 FROM tab0
----
-2805
-7380
-96

query I rowsort
SELECT - 28 FROM tab0
----
-28
-28
-28

query I rowsort
SELECT ALL col0 + col1 FROM tab0 AS cor0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-6114
SELECT ALL - col2 DIV - col2 AS col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6114
SELECT ALL - col2 / - col2 AS col1 FROM tab1
----
1
1
1

query I rowsort
SELECT ALL + ( + col2 ) * col0 * 84 AS col1 FROM tab0
----
2940
613032
66528

query I rowsort
SELECT - col2 + 29 * - col1 AS col2 FROM tab1
----
-347
-473
-808

query I rowsort
SELECT + cor0.col1 AS col0 FROM tab2 AS cor0
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-6118
SELECT ALL + col2 DIV 11 + + col2 FROM tab1 AS cor0
----
104
58
62

skipif mysql # not compatible
query I rowsort label-6118
SELECT ALL + col2 / 11 + + col2 FROM tab1 AS cor0
----
104
58
62

query I rowsort
SELECT + - col0 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL - 81 FROM tab2, tab1 AS cor0
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6122
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6122
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL 70 AS col1 FROM tab2 AS cor0
----
70
70
70

query I rowsort
SELECT col0 * ( + col2 ) AS col0 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT - 65 * col2 AS col1 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 AS cor0
----
-10
-13
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-6127
SELECT + 42 DIV col1 FROM tab2 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-6127
SELECT + 42 / col1 FROM tab2 AS cor0
----
0
1
2

query I rowsort
SELECT + cor0.col0 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT col0 + col2 * + col0 FROM tab2 AS cor0
----
196
2106
3081

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6130
SELECT CAST( + 98 AS SIGNED ) AS col1 FROM tab0 cor0
----
98
98
98

skipif mysql # not compatible
query I rowsort label-6130
SELECT CAST ( + 98 AS INTEGER ) AS col1 FROM tab0 cor0
----
98
98
98

query I rowsort
SELECT ALL + col2 * - col2 AS col0 FROM tab2 AS cor0
----
-1444
-676
-729

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6132
SELECT ALL CAST( NULL AS SIGNED ) + - 95 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6132
SELECT ALL CAST ( NULL AS INTEGER ) + - 95 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + - 13 * cor0.col0 AS col2 FROM tab2 AS cor0
----
-1040
-1065
-118

query I rowsort
SELECT + + cor0.col0 AS col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT - 86 FROM tab1 AS cor0
----
-86
-86
-86

onlyif mysql # use DIV operator for integer division
query I rowsort label-6136
SELECT - + col2 DIV 78 + + 33 FROM tab2 AS cor0
----
33
33
33

skipif mysql # not compatible
query I rowsort label-6136
SELECT - + col2 / 78 + + 33 FROM tab2 AS cor0
----
33
33
33

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6137
SELECT ALL + col1 * + CAST( NULL AS DECIMAL ) + - col2 / - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6137
SELECT ALL + col1 * + CAST ( NULL AS REAL ) + - col2 / - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT cor0.col2 + col1 * + 23 FROM tab1 AS cor0
----
287
395
652

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT - + col0 * + cor0.col2 * - col2 AS col0 FROM tab2 AS cor0
----
114076
5103
52728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 col0 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT - col1 * + col1 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT - 43 - col0 AS col0 FROM tab1
----
-107
-123
-46

query I rowsort
SELECT tab0.col2 * - col0 + - tab0.col2 FROM tab0
----
-36
-7380
-825

query I rowsort
SELECT - 2 * - col1 FROM tab0
----
172
182
194

query I rowsort
SELECT + 46 * tab0.col2 FROM tab0
----
1518
3772
46

query I rowsort
SELECT + col1 * - 38 + - cor0.col2 + + col0 FROM tab1 cor0
----
-1039
-373
-510

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 AS cor2, tab1 AS cor3
----
3645 values hashing to 8d4d13f65f86e1b26b6004a6bdc662b3

query I rowsort
SELECT + + col0 + col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT - col2 + + 67 AS col1 FROM tab2 AS cor0
----
29
40
41

query I rowsort
SELECT + - col2 * - col1 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-6152
SELECT + col0 DIV 89 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6152
SELECT + col0 / 89 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + - col2 * + 65 FROM tab2 AS cor0
----
-1690
-1755
-2470

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0, tab2, tab1 AS cor1
----
972 values hashing to 9364ef7545b07c67767dceb70f02c643

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col0 + - col0 ) * + ( ( + tab1.col0 ) ) col1 FROM tab1
----
0

query I rowsort
SELECT 95 + - col0 * + col2 FROM tab0 cor0
----
-697
-7203
60

query I rowsort
SELECT - ( + cor0.col0 ) * col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT 1 + ( col1 ) * - 35 FROM tab0 AS cor0
----
-3009
-3184
-3394

query I rowsort
SELECT - - 2 * col1 FROM tab0 cor0
----
172
182
194

query I rowsort
SELECT DISTINCT - col0 + - 68 FROM tab2 AS cor0
----
-146
-147
-75

onlyif mysql # use DIV operator for integer division
query I rowsort label-6161
SELECT + col0 DIV - col2 + - col2 AS col2 FROM tab0 AS cor0
----
-33
-36
-83

skipif mysql # not compatible
query I rowsort label-6161
SELECT + col0 / - col2 + - col2 AS col2 FROM tab0 AS cor0
----
-33
-36
-83

query I rowsort
SELECT ALL - cor0.col2 AS col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT + + 95 + col2 AS col0 FROM tab1 AS cor0
----
149
152
191

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6164
SELECT - col2 * cor0.col1 + CAST( + col2 AS SIGNED ) * col1 * cor0.col0 FROM tab2 AS cor0
----
118118
5022
50388

skipif mysql # not compatible
query I rowsort label-6164
SELECT - col2 * cor0.col1 + CAST ( + col2 AS INTEGER ) * col1 * cor0.col0 FROM tab2 AS cor0
----
118118
5022
50388

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6165
SELECT - 62 * - col0 * + 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-6165
SELECT - 62 * - col0 * + CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 70 FROM tab1 AS cor0
----
70
70
70

query I rowsort
SELECT ALL tab0.col0 AS col0 FROM tab1, tab1 cor0 CROSS JOIN tab0, tab2 AS cor1
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994

query I rowsort
SELECT - + col2 * + col1 + 94 * + col0 AS col0 FROM tab1 AS cor0
----
-1122
5446
6272

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col1 col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - + cor0.col2 + + 99 FROM tab0, tab2 AS cor0
----
9 values hashing to 0cfc9014804ff3e8f265e0be1ed13610

query I rowsort
SELECT - 22 FROM tab1 AS cor0
----
-22
-22
-22

query I rowsort
SELECT col1 + + col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT - 75 - col2 * col2 FROM tab0 AS cor0
----
-1164
-6799
-76

query I rowsort
SELECT + - col1 + col0 * - 74 * + col2 FROM tab1 cor0
----
-12014
-269962
-568333

query I rowsort
SELECT ALL - col2 + col1 - ( col0 * col1 ) AS col1 FROM tab2
----
-1364
-213
-4569

query I rowsort
SELECT ALL col1 - - col1 FROM tab1
----
20
26
52

query I rowsort
SELECT ALL 94 + - col0 FROM tab0
----
5
59
70

query I rowsort
SELECT ALL col0 * col1 AS col2 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT + + col1 + + cor0.col2 + col0 AS col0 FROM tab1 cor0
----
131
189
83

query I rowsort
SELECT - + col1 * + col0 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL col1 * + col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT ALL - + col2 + + col1 AS col1 FROM tab2 AS cor0
----
-21
33
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-6183
SELECT - col2 DIV + col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6183
SELECT - col2 / + col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL col2 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT DISTINCT + 19 FROM tab2 cor0
----
19

query I rowsort
SELECT DISTINCT + col1 * - col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT - - col2 * - col2 AS col0 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT + 44 * col2 + ( - col0 ) FROM tab1 cor0
----
2373
2444
4144

query I rowsort
SELECT col2 + cor0.col2 AS col2 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT ALL + col2 + + col2 AS col0 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT + col2 + col0 * + col0 AS col1 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT DISTINCT + col1 * - col1 * + col2 AS col0 FROM tab2 cor0
----
-10982
-25947
-90506

query I rowsort
SELECT DISTINCT + - col2 + + col1 * col0 FROM tab2 AS cor0
----
1305
190
4576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab0 AS cor0
----
24
35
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6195
SELECT ALL + col2 * CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
-1
-1089
-6724

skipif mysql # not compatible
query I rowsort label-6195
SELECT ALL + col2 * CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
-1
-1089
-6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col1 + - 63 col1 FROM tab2 AS cor0
----
226
3418
898

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6197
SELECT - - col2 * CAST( - col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

skipif mysql # not compatible
query I rowsort label-6197
SELECT - - col2 * CAST ( - col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT + col1 * + ( - cor0.col0 ) + + cor0.col0 AS col2 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT DISTINCT - col2 * 75 FROM tab0 cor0
----
-2475
-6150
-75

query I rowsort
SELECT DISTINCT col2 - col2 AS col1 FROM tab1
----
0

query I rowsort
SELECT DISTINCT ( + 47 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
47

query I rowsort
SELECT col2 * + col2 AS col0 FROM tab0
----
1
1089
6724

query I rowsort
SELECT DISTINCT 92 AS col2 FROM tab2 AS cor0
----
92

query I rowsort
SELECT - - 79 * ( col0 + col2 ) * col2 AS col0 FROM tab1 AS cor0
----
1334784
243162
544863

query I rowsort
SELECT 98 * cor0.col1 AS col2 FROM tab2 AS cor0
----
1666
3038
5782

query I rowsort
SELECT 65 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT DISTINCT - col1 * 5 AS col1 FROM tab1 AS cor0
----
-130
-50
-65

onlyif mysql # use DIV operator for integer division
query I rowsort label-6208
SELECT - - col2 DIV col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6208
SELECT - - col2 / col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT 23 FROM tab1, tab1 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query I rowsort
SELECT ALL + - cor0.col2 FROM tab2 cor0
----
-26
-27
-38

query IIIIIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab0, tab2 AS cor1
----
243 values hashing to 2248b8c3b6efacb4e8fc6d9f81b7df8b

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0, tab0 AS cor1, tab2 AS cor2
----
972 values hashing to e486ce227b61d9db6f8414f9d6361094

query I rowsort
SELECT DISTINCT - 95 * col0 AS col2 FROM tab1 AS cor0
----
-285
-6080
-7600

query I rowsort
SELECT DISTINCT - tab2.col1 * - 19 FROM tab2
----
1121
323
589

query I rowsort
SELECT 11 FROM tab2, tab1 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query I rowsort
SELECT ALL 55 FROM tab1
----
55
55
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col2 col0 FROM tab2 AS cor0
----
-1444
-676
-729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 * col1 + + col2 col1 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT - 87 FROM tab0
----
-87
-87
-87

query I rowsort
SELECT - ( + tab2.col0 * + col0 + 79 ) FROM tab2
----
-128
-6163
-6320

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2, tab2 AS cor0, tab1 AS cor1
----
972 values hashing to 980274175fafec015a83080672486a9a

query I rowsort
SELECT ALL col2 * tab1.col2 AS col0 FROM tab1
----
2916
3249
9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-6223
SELECT DISTINCT 75 DIV 8 FROM tab1 cor0 CROSS JOIN tab0, tab2 AS cor1, tab2, tab1 AS cor2, tab1 cor3
----
9

skipif mysql # not compatible
query I rowsort label-6223
SELECT DISTINCT 75 / 8 FROM tab1 cor0 CROSS JOIN tab0, tab2 AS cor1, tab2, tab1 AS cor2, tab1 cor3
----
9

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab0, tab2 cor1, tab2 AS cor2
----
972 values hashing to 617c9545df26d6d983e3967864e8e9e4

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
243 values hashing to 566180e0144350a78b0ef3318e8f4c00

query I rowsort
SELECT 24 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 AS cor2, tab1 AS cor3
----
3645 values hashing to a1a9b1c1e9ca8f59e89e834a7cdebbd0

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 cor0, tab1, tab0 AS cor1
----
972 values hashing to b51b4342db121ebc2d3d353dcd8ed521

query I rowsort
SELECT DISTINCT + + col1 + col0 + 98 FROM tab0 AS cor0
----
208
230
278

query I rowsort
SELECT DISTINCT + col2 - 54 AS col2 FROM tab1 AS cor0
----
0
3
42

query I rowsort
SELECT ALL - - cor0.col2 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT ALL col0 * + col0 + + col2 FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT ALL + 58 * 75 AS col0 FROM tab1 AS cor0
----
4350
4350
4350

query I rowsort
SELECT col1 * ( col2 ) + + 66 - col0 AS col2 FROM tab0 AS cor0
----
128
2880
7439

query I rowsort
SELECT ALL + + col0 + - col2 + cor0.col0 * col0 FROM tab2 AS cor0
----
29
6136
6282

query I rowsort
SELECT ALL + col1 AS col1 FROM tab0 cor0
----
86
91
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6237
SELECT DISTINCT col2 + tab1.col1 * - col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6237
SELECT DISTINCT col2 + tab1.col1 * - col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT ALL + 54 FROM tab2
----
54
54
54

query I rowsort
SELECT ALL + col2 * - 2 FROM tab2
----
-52
-54
-76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6240
SELECT DISTINCT + + CAST( NULL AS SIGNED ) - - col1 * - col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6240
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) - - col1 * - col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + + 68 AS col2 FROM tab2 AS cor0
----
68
68
68

query I rowsort
SELECT DISTINCT + col1 * cor0.col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT + 41 + 4 AS col1 FROM tab2 AS cor0
----
45
45
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col2 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT + cor0.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT ALL cor0.col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT cor0.col0 + + 34 * - cor1.col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 185080ecc01a627dea94704dd71b8e5f

query I rowsort
SELECT DISTINCT - - cor0.col1 + - cor0.col2 + 78 * - col0 AS col2 FROM tab0 AS cor0
----
-1819
-2634
-6933

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * cor0.col1 col2 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT ALL tab1.col1 * + col2 FROM tab1
----
1248
1404
570

query I rowsort
SELECT + 8 FROM tab2
----
8
8
8

query I rowsort
SELECT DISTINCT + ( + col1 ) AS col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT - col1 * - col0 AS col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT - - col2 + + col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL + + col2 + + col0 AS col1 FROM tab2 cor0
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT + ( - col2 ) * + col2 AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-6258
SELECT ALL - col0 DIV + col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6258
SELECT ALL - col0 / + col0 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - - 3 FROM tab1 AS cor0
----
3
3
3

query I rowsort
SELECT ALL - col1 * col1 * 68 AS col2 FROM tab1 AS cor0
----
-11492
-45968
-6800

query I rowsort
SELECT DISTINCT + + cor0.col0 + + ( - col1 ) FROM tab0 AS cor0
----
-2
-62

query I rowsort
SELECT DISTINCT + - col2 + - ( - 14 ) * - col2 + col1 * cor0.col2 FROM tab2 cor0
----
1144
432
76

query I rowsort
SELECT col2 * - col0 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT + col1 AS col1 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT ALL - col2 + + col0 AS col2 FROM tab1 AS cor0
----
-16
-51
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-6266
SELECT DISTINCT + col2 DIV + col0 + + col2 + + col1 FROM tab2 cor0
----
55
61
85

skipif mysql # not compatible
query I rowsort label-6266
SELECT DISTINCT + col2 / + col0 + + col2 + + col1 FROM tab2 cor0
----
55
61
85

query I rowsort
SELECT col2 * + col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL + col0 * 20 AS col2 FROM tab0 AS cor0
----
1780
480
700

query I rowsort
SELECT + - col2 * 99 FROM tab1 AS cor0
----
-5346
-5643
-9504

query I rowsort
SELECT ALL + col0 * cor0.col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT + + col2 AS col1 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT ALL - - col1 + ( + 75 ) FROM tab0 AS cor0
----
161
166
172

query I rowsort
SELECT DISTINCT col2 + cor0.col2 FROM tab0 cor0
----
164
2
66

query I rowsort
SELECT DISTINCT - - col1 * cor0.col1 + cor0.col2 AS col1 FROM tab1 AS cor0
----
157
265
730

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT col0 - + col2 FROM tab1
----
-16
-51
7

query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0, tab2 cor1
----
243 values hashing to 5d85c5683e3ffd6d68920690d7302f7d

query I rowsort
SELECT ALL - + col1 - ( col1 + col2 ) AS col1 FROM tab0 AS cor0
----
-195
-205
-264

query I rowsort
SELECT DISTINCT col1 + + col2 * col1 FROM tab0 AS cor0
----
194
2924
7553

onlyif mysql # use DIV operator for integer division
query I rowsort label-6280
SELECT DISTINCT col2 DIV col0 FROM tab2 AS cor0
----
0
3

skipif mysql # not compatible
query I rowsort label-6280
SELECT DISTINCT col2 / col0 FROM tab2 AS cor0
----
0
3

query I rowsort
SELECT + col2 * + col1 AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL col2 + + 91 * col1 AS col0 FROM tab2 AS cor0
----
1585
2848
5395

query I rowsort
SELECT - + col0 * + col0 AS col1 FROM tab2 cor0
----
-49
-6084
-6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col1 + col2 col2 FROM tab2 AS cor0
----
-251
-3455
-934

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 + 10 col2 FROM tab2 AS cor0
----
1353
227
4612

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col1 col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT - - 26 FROM tab2 AS cor0
----
26
26
26

query I rowsort
SELECT - + col0 * + 61 FROM tab2 AS cor0
----
-427
-4758
-4819

query I rowsort
SELECT - + ( + 6 ) FROM tab0 AS cor0
----
-6
-6
-6

query I rowsort
SELECT + col1 * col0 + + 91 FROM tab1 cor0
----
1131
169
731

query I rowsort
SELECT ( col2 ) + + col1 AS col0 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT + ( - col0 ) + col2 FROM tab1 cor0
----
-7
16
51

query I rowsort
SELECT DISTINCT + col2 + col2 AS col2 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT ALL + col2 * col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT 8 + + col0 AS col2 FROM tab2 AS cor0
----
15
86
87

query I rowsort
SELECT 79 * col0 AS col0 FROM tab2 AS cor0
----
553
6162
6241

query I rowsort
SELECT - col1 * + 43 FROM tab2
----
-1333
-2537
-731

query I rowsort
SELECT + 4 AS col2 FROM tab2
----
4
4
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6299
SELECT CAST( + 26 AS SIGNED ) * + col1 col1 FROM tab1
----
260
338
676

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6299
SELECT CAST ( + 26 AS INTEGER ) * + col1 col1 FROM tab1
----
260
338
676

query I rowsort
SELECT - 36 * 69 + col2 FROM tab1
----
-2388
-2427
-2430

query I rowsort
SELECT col2 * + col2 FROM tab2
----
1444
676
729

query I rowsort
SELECT DISTINCT - 15 + - col0 FROM tab2
----
-22
-93
-94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6303
SELECT + CAST( col1 AS SIGNED ) AS col1 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-6303
SELECT + CAST ( col1 AS INTEGER ) AS col1 FROM tab1
----
10
13
26

query I rowsort
SELECT DISTINCT col2 + - col2 AS col0 FROM tab0
----
0

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab2, tab1 AS cor1
----
972 values hashing to dd771e0c15d524f62127686e9bd43f9a

query I rowsort
SELECT ALL - cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

query I rowsort
SELECT DISTINCT ( col0 + + col0 ) FROM tab1
----
128
160
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-6308
SELECT - - ( col2 ) DIV - col1 FROM tab2 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-6308
SELECT - - ( col2 ) / - col1 FROM tab2 AS cor0
----
-2
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6309
SELECT DISTINCT + col0 DIV - col1 + + col2 * 90 AS col0 FROM tab2 AS cor0
----
2339
2430
3416

skipif mysql # not compatible
query I rowsort label-6309
SELECT DISTINCT + col0 / - col1 + + col2 * 90 AS col0 FROM tab2 AS cor0
----
2339
2430
3416

query I rowsort
SELECT - 95 + col2 AS col0 FROM tab0 AS cor0
----
-13
-62
-94

onlyif mysql # use DIV operator for integer division
query I rowsort label-6311
SELECT ALL + 5 DIV - col0 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6311
SELECT ALL + 5 / - col0 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 * - col2 AS col0 FROM tab1 cor0
----
-2916
-3249
-9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-6313
SELECT - + 58 + - col2 DIV + col1 FROM tab2 AS cor0
----
-58
-58
-60

skipif mysql # not compatible
query I rowsort label-6313
SELECT - + 58 + - col2 / + col1 FROM tab2 AS cor0
----
-58
-58
-60

query I rowsort
SELECT DISTINCT + - col1 * col2 + - cor0.col2 FROM tab2 cor0
----
-1560
-684
-864

query I rowsort
SELECT DISTINCT + col2 * col1 + + cor0.col2 AS col2 FROM tab1 AS cor0
----
1344
1458
627

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col1 ) * col0 col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT - col0 * cor0.col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT + 16 * + col1 - col2 * 85 AS col2 FROM tab0 cor0
----
-1429
-5514
1467

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6319
SELECT DISTINCT - - CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-6319
SELECT DISTINCT - - CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
24
35
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6320
SELECT ALL + cor0.col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6320
SELECT ALL + cor0.col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - 83 * col2 * col0 FROM tab1 AS cor0
----
-13446
-302784
-637440

query I rowsort
SELECT ALL - 84 FROM tab2, tab1 AS cor0
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f

query I rowsort
SELECT - 99 - + ( col1 ) FROM tab2 AS cor0
----
-116
-130
-158

query I rowsort
SELECT - 70 * + col0 AS col1 FROM tab1 AS cor0
----
-210
-4480
-5600

query I rowsort
SELECT DISTINCT tab2.col0 * + 41 AS col2 FROM tab2, tab1 cor0
----
287
3198
3239

query I rowsort
SELECT ALL col2 * col2 * - tab0.col1 FROM tab0
----
-611884
-93654
-97

query I rowsort
SELECT - col2 * col2 AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 * - col2 col1 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ALL 45 FROM tab0 AS cor0
----
45
45
45

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6330
SELECT ALL CAST( - 39 AS SIGNED ) FROM tab0
----
-39
-39
-39

skipif mysql # not compatible
query I rowsort label-6330
SELECT ALL CAST ( - 39 AS INTEGER ) FROM tab0
----
-39
-39
-39

query I rowsort
SELECT 35 FROM tab0
----
35
35
35

query I rowsort
SELECT DISTINCT + 19 AS col1 FROM tab1 cor0
----
19

query I rowsort
SELECT ALL - col2 + col2 * - cor0.col1 AS col1 FROM tab1 cor0
----
-1344
-1458
-627

query I rowsort
SELECT ( col1 ) AS col2 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT - 40 + - col1 AS col2 FROM tab1 AS cor0
----
-50
-53
-66

query I rowsort
SELECT ALL 5 * col0 FROM tab2 AS cor0
----
35
390
395

query I rowsort
SELECT DISTINCT - col2 * cor0.col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL + col2 * col2 AS col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT DISTINCT 29 FROM tab2, tab0 cor0
----
29

query I rowsort
SELECT - col0 AS col0 FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT + col1 * cor0.col0 * - col0 FROM tab1 AS cor0
----
-234
-40960
-83200

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6342
SELECT + CAST( NULL AS SIGNED ) * 26 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6342
SELECT + CAST ( NULL AS INTEGER ) * 26 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( + 52 ) + col1 FROM tab2
----
111
69
83

query I rowsort
SELECT DISTINCT - col1 * col0 + - col2 AS col1 FROM tab2
----
-1381
-244
-4628

query I rowsort
SELECT ALL col2 + + col2 * col2 AS col1 FROM tab2
----
1482
702
756

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 42 * + col1 col0 FROM tab0
----
142590
340158
86688

query I rowsort
SELECT ALL - col1 * 2 * 21 FROM tab2 AS cor0
----
-1302
-2478
-714

query I rowsort
SELECT + + col1 * + 6 * - 75 FROM tab0 AS cor0
----
-38700
-40950
-43650

query I rowsort
SELECT ALL - - col0 * col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT + cor0.col0 * ( cor0.col2 ) + col1 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT DISTINCT cor0.col2 FROM tab0, tab2 AS cor0
----
26
27
38

query I rowsort
SELECT col2 + col2 * tab2.col2 * + 38 AS col2 FROM tab2
----
25714
27729
54910

query I rowsort
SELECT DISTINCT cor0.col0 + + col1 AS col0 FROM tab1 AS cor0
----
29
74
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6354
SELECT DISTINCT col2 * - CAST( 19 AS SIGNED ) AS col1 FROM tab2
----
-494
-513
-722

skipif mysql # not compatible
query I rowsort label-6354
SELECT DISTINCT col2 * - CAST ( 19 AS INTEGER ) AS col1 FROM tab2
----
-494
-513
-722

query I rowsort
SELECT DISTINCT - 86 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
-86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6356
SELECT ALL col1 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6356
SELECT ALL col1 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col1 AS col0 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT - col2 + 32 AS col1 FROM tab2
----
-6
5
6

query I rowsort
SELECT col1 * - ( - 50 ) + col1 FROM tab0
----
4386
4641
4947

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col1 FROM tab2
----
17
31
59

query I rowsort
SELECT ALL + col1 * - col0 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT 29 FROM tab2 AS cor0
----
29

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6363
SELECT ALL - CAST( col2 AS SIGNED ) + col1 FROM tab2 AS cor0
----
-21
33
4

skipif mysql # not compatible
query I rowsort label-6363
SELECT ALL - CAST ( col2 AS INTEGER ) + col1 FROM tab2 AS cor0
----
-21
33
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( cor0.col1 ) col0 FROM tab1 AS cor0
----
-10
-13
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-6365
SELECT ALL - CAST( 5 AS SIGNED ) * col1 + + col0 DIV col0 FROM tab2 AS cor0
----
-154
-294
-84

skipif mysql # not compatible
query I rowsort label-6365
SELECT ALL - CAST ( 5 AS INTEGER ) * col1 + + col0 / col0 FROM tab2 AS cor0
----
-154
-294
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab2
----
7
78
79

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2, tab0 AS cor0, tab2 cor1
----
972 values hashing to 42e69ecdafb3c81046bc5cb4c98b1666

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * 6 col1 FROM tab2 AS cor0
----
102
186
354

query I rowsort
SELECT DISTINCT + col2 + + col1 * col1 * - ( - 73 ) FROM tab2 AS cor0
----
21135
254139
70180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col0 col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL 49 + + col0 AS col0 FROM tab2
----
127
128
56

query I rowsort
SELECT ALL - + 42 * - col2 + cor0.col1 FROM tab1 AS cor0
----
2294
2404
4045

query I rowsort
SELECT + col2 * cor0.col1 AS col2 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT + col1 * ( cor0.col0 ) AS col1 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-6375
SELECT DISTINCT - ( cor0.col2 ) * - col2 + + 78 DIV 59 FROM tab2 AS cor0
----
1445
677
730

skipif mysql # not compatible
query I rowsort label-6375
SELECT DISTINCT - ( cor0.col2 ) * - col2 + + 78 / 59 FROM tab2 AS cor0
----
1445
677
730

query I rowsort
SELECT col0 + ( + col2 ) FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL + + 52 + 24 * + col1 FROM tab2 AS cor0
----
1468
460
796

onlyif mysql # use DIV operator for integer division
query I rowsort label-6378
SELECT ALL - 12 DIV col1 + col2 DIV col1 FROM tab1 AS cor0
----
2
4
7

skipif mysql # not compatible
query I rowsort label-6378
SELECT ALL - 12 / col1 + col2 / col1 FROM tab1 AS cor0
----
2
4
7

query I rowsort
SELECT + ( + col1 ) AS col0 FROM tab2 AS cor0
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 62 ) + + cor0.col0 * 66 col0 FROM tab0 AS cor0
----
1646
2372
5936

query I rowsort
SELECT DISTINCT - cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT 77 AS col0 FROM tab2 AS cor0
----
77

query I rowsort
SELECT DISTINCT - + 27 AS col2 FROM tab1 AS cor0
----
-27

query I rowsort
SELECT + - ( 98 ) AS col1 FROM tab0 cor0
----
-98
-98
-98

query I rowsort
SELECT - col2 * - col2 FROM tab0 AS cor0
----
1
1089
6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - ( col2 ) ) + ( cor0.col2 ) * + col1 col1 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT DISTINCT - col1 + col2 AS col0 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT col2 * - 75 FROM tab1 AS cor0
----
-4050
-4275
-7200

query I rowsort
SELECT ALL + 60 * col0 FROM tab2 cor0
----
420
4680
4740

query I rowsort
SELECT DISTINCT - - cor0.col0 + 78 AS col1 FROM tab2 AS cor0
----
156
157
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-6391
SELECT ALL - col0 + + col1 DIV + col1 FROM tab1
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-6391
SELECT ALL - col0 + + col1 / + col1 FROM tab1
----
-2
-63
-79

query I rowsort
SELECT - col0 * + col1 + col2 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT DISTINCT + col1 * col2 + ( cor0.col2 ) * col2 FROM tab0 AS cor0
----
14186
3927
98

query I rowsort
SELECT ALL - col2 * col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL - 23 - col2 AS col2 FROM tab1 cor0
----
-119
-77
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 + col0 col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT ALL + - cor0.col1 * + col1 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT col2 + col0 AS col1 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT + col2 * - col1 FROM tab0 cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6400
SELECT - + 14 DIV col2 + 72 FROM tab1 AS cor0
----
72
72
72

skipif mysql # not compatible
query I rowsort label-6400
SELECT - + 14 / col2 + 72 FROM tab1 AS cor0
----
72
72
72

query I rowsort
SELECT + col2 + col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT - 46 * - col1 + ( + ( col2 ) ) FROM tab0 cor0
----
3989
4268
4463

query I rowsort
SELECT DISTINCT + col0 + col1 FROM tab2 cor0
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6404
SELECT ALL + - col1 DIV col2 + col0 AS col0 FROM tab0 AS cor0
----
-62
22
88

skipif mysql # not compatible
query I rowsort label-6404
SELECT ALL + - col1 / col2 + col0 AS col0 FROM tab0 AS cor0
----
-62
22
88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6405
SELECT ALL col1 * + CAST( NULL AS SIGNED ) * - col0 + + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6405
SELECT ALL col1 * + CAST ( NULL AS INTEGER ) * - col0 + + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * 64 FROM tab1 AS cor0
----
192
4096
5120

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6407
SELECT ALL + col0 - CAST( 76 + + col1 AS SIGNED ) * + 30 AS col2 FROM tab1 cor0
----
-2516
-2590
-3057

skipif mysql # not compatible
query I rowsort label-6407
SELECT ALL + col0 - CAST ( 76 + + col1 AS INTEGER ) * + 30 AS col2 FROM tab1 cor0
----
-2516
-2590
-3057

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + 24 col1 FROM tab1 AS cor0
----
120
78
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-6409
SELECT ALL - col2 DIV + col0 + col1 AS col1 FROM tab2 AS cor0
----
17
28
59

skipif mysql # not compatible
query I rowsort label-6409
SELECT ALL - col2 / + col0 + col1 AS col1 FROM tab2 AS cor0
----
17
28
59

query I rowsort
SELECT DISTINCT - col0 + col2 + col1 FROM tab1 AS cor0
----
29
3
77

query I rowsort
SELECT ALL + col2 * + col0 + 7 AS col0 FROM tab0 AS cor0
----
42
7305
799

query I rowsort
SELECT DISTINCT col2 * col0 + - col1 * + col2 FROM tab2 AS cor0
----
-648
2356
494

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT ALL - col2 AS col0 FROM tab0
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col2 col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT - col1 * cor0.col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT 91 FROM tab0 cor0
----
91
91
91

query I rowsort
SELECT col0 * col0 AS col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT + - 33 FROM tab0 AS cor0
----
-33

query I rowsort
SELECT ( + col0 ) + col1 * col1 AS col1 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT ALL col2 * - col0 AS col1 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL - col1 * col2 * + ( col1 ) AS col2 FROM tab0 AS cor0
----
-244068
-679042
-9409

query I rowsort
SELECT ALL - col1 * - col0 AS col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT + col2 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT + col0 * - col1 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL col2 FROM tab0 cor0
----
1
33
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6427
SELECT DISTINCT + - col0 / col2 + CAST( NULL AS SIGNED ) + 72 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6427
SELECT DISTINCT + - col0 / col2 + CAST ( NULL AS INTEGER ) + 72 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - - col2 * + col0 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6429
SELECT - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6429
SELECT - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * col2 * - col0 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT ( + col2 ) FROM tab1
----
54
57
96

query I rowsort
SELECT ALL tab0.col1 AS col2 FROM tab0
----
86
91
97

query I rowsort
SELECT - - cor0.col0 * - col0 * - ( cor0.col2 ) FROM tab0 AS cor0
----
1225
19008
649522

query I rowsort
SELECT DISTINCT 4 FROM tab2
----
4

query I rowsort
SELECT - col1 * + col0 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL + 96 * col1 * - tab0.col1 FROM tab0
----
-710016
-794976
-903264

query I rowsort
SELECT ALL + col2 * - tab1.col2 FROM tab1
----
-2916
-3249
-9216

query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab0 cor1
----
54 values hashing to 2a7467bc6f55dbb61fbd4aa2bd0646a9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col0 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT col2 * + col1 + tab1.col1 * + 90 FROM tab1
----
1470
2418
3744

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT tab1.col1 * col2 AS col1 FROM tab1
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 col2 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT - 48 * - col0 FROM tab0 AS cor0
----
1152
1680
4272

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab2, tab1 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to 944e54872ec2718f5c1c2710e1806e36

query I rowsort
SELECT col0 + col2 AS col2 FROM tab0 AS cor0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 26 + - col0 col0 FROM tab2 cor0
----
-52
-53
19

query I rowsort
SELECT col2 * 6 * + col2 + col1 FROM tab2
----
4115
4405
8681

query I rowsort
SELECT DISTINCT 53 AS col1 FROM tab0, tab2 AS cor0
----
53

query I rowsort
SELECT DISTINCT - + col1 * col1 AS col2 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT ALL + col0 + - tab2.col1 + - col2 FROM tab2
----
-51
-7
24

query I rowsort
SELECT DISTINCT col2 * - col2 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT ( + 13 ) FROM tab1
----
13

query I rowsort
SELECT + cor1.col0 AS col0 FROM tab0, tab1 AS cor0, tab0 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( col2 AS REAL ) * + col2 * 23 col2 FROM tab0 AS cor0
----
154652
23
25047

query I rowsort
SELECT ALL ( - cor0.col2 ) * col0 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT - col1 * col2 FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-6458
SELECT ALL + - ( 54 ) DIV col1 FROM tab2 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-6458
SELECT ALL + - ( 54 ) / col1 FROM tab2 AS cor0
----
-1
-3
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT - 0 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # use DIV operator for integer division
query I rowsort label-6461
SELECT DISTINCT CAST( + 41 AS SIGNED ) DIV - col1 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6461
SELECT DISTINCT CAST ( + 41 AS INTEGER ) / - col1 AS col2 FROM tab0 AS cor0
----
0

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab2 cor1, tab1 AS cor2
----
972 values hashing to 75a813ebd5ec5ec2e67a66d0593ff763

query I rowsort
SELECT + - ( - col2 ) * - col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT 29 FROM tab2 cor0
----
29

query I rowsort
SELECT ALL - 77 * col1 + col0 FROM tab2 AS cor0
----
-1230
-2380
-4465

query I rowsort
SELECT - 78 AS col1 FROM tab0
----
-78
-78
-78

query I rowsort
SELECT 5 FROM tab1
----
5
5
5

query I rowsort
SELECT col1 * 10 FROM tab1
----
100
130
260

query I rowsort
SELECT + 28 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT DISTINCT + 47 * - cor0.col1 + - col1 FROM tab2 AS cor0
----
-1488
-2832
-816

query I rowsort
SELECT DISTINCT + col0 * + ( col0 ) FROM tab2 cor0
----
49
6084
6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab2 cor0
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 col0 FROM tab1 AS cor0
----
-54
-57
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6474
SELECT - + CAST( col0 AS SIGNED ) * - cor0.col0 + + col0 FROM tab2 cor0
----
56
6162
6320

skipif mysql # not compatible
query I rowsort label-6474
SELECT - + CAST ( col0 AS INTEGER ) * - cor0.col0 + + col0 FROM tab2 cor0
----
56
6162
6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-6475
SELECT ALL 58 DIV ( col0 ) + col2 FROM tab1 AS cor0
----
57
73
96

skipif mysql # not compatible
query I rowsort label-6475
SELECT ALL 58 / ( col0 ) + col2 FROM tab1 AS cor0
----
57
73
96

query I rowsort
SELECT - - 83 + col1 AS col1 FROM tab0 cor0
----
169
174
180

query I rowsort
SELECT - - cor0.col0 * - col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT + 33 + + col2 AS col0 FROM tab2
----
59
60
71

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab1 AS cor1, tab2 AS cor2
----
972 values hashing to f0b9665afa0b835e4e5097af17c51766

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0, tab0 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to 4c5172baaab682f997bd09d2b5cf0d22

query I rowsort
SELECT + - 67 * + col0 * 80 AS col2 FROM tab2 AS cor0
----
-37520
-418080
-423440

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6482
SELECT + + col1 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6482
SELECT + + col1 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1, tab1 cor0, tab0
----
972 values hashing to 909b7ebab62aff8f69dc42ccbb5c2eae

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col0 + + 9 col2 FROM tab2 AS cor0
----
-69
-70
2

query I rowsort
SELECT col1 - + col0 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT 76 FROM tab0, tab2, tab2 AS cor0, tab1
----
81 values hashing to a8a6c4c5005303c62d4e50b6c96b584f

query I rowsort
SELECT col1 * ( - col0 ) FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT ALL + col2 * tab0.col2 AS col0 FROM tab0
----
1
1089
6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - ( col1 ) * + col0 col2 FROM tab2 AS cor0
----
-1326
-186
-4543

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 35 col0 FROM tab1, tab2 cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query I rowsort
SELECT - - col1 + col0 * col1 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT + + col2 + col2 * col1 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT cor0.col2 * col2 AS col0 FROM tab2 AS cor0
----
1444
676
729

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6494
SELECT ALL + col2 + + CAST( NULL AS SIGNED ) - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6494
SELECT ALL + col2 + + CAST ( NULL AS INTEGER ) - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 38 + + 22 FROM tab2 AS cor0
----
-16
-16
-16

query I rowsort
SELECT - cor0.col0 + col1 AS col2 FROM tab0 cor0
----
2
62
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 48 + col0 col0 FROM tab1 AS cor0
----
-45
16
32

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6498
SELECT - + CAST( NULL AS SIGNED ) / - col2 + - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6498
SELECT - + CAST ( NULL AS INTEGER ) / - col2 + - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6499
SELECT + col2 * - col0 + col2 DIV 94 AS col0 FROM tab2 cor0
----
-189
-2028
-3002

skipif mysql # not compatible
query I rowsort label-6499
SELECT + col2 * - col0 + col2 / 94 AS col0 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT + col0 * + col0 AS col2 FROM tab2
----
49
6084
6241

query I rowsort
SELECT DISTINCT - col2 * - tab0.col1 FROM tab0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 * ( 50 ) * col0 col2 FROM tab1
----
182400
384000
8100

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6503
SELECT ALL + CAST( 0 AS SIGNED ) AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-6503
SELECT ALL + CAST ( 0 AS INTEGER ) AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT 19 * + 47 FROM tab0, tab2 AS cor0
----
9 values hashing to b0afa99aa72ba24b7f2311fc66fb6429

query I rowsort
SELECT ALL col0 * col0 + + tab1.col2 FROM tab1
----
4153
63
6496

onlyif mysql # use DIV operator for integer division
query I rowsort label-6506
SELECT col0 + col1 DIV + col0 FROM tab1
----
11
64
80

skipif mysql # not compatible
query I rowsort label-6506
SELECT col0 + col1 / + col0 FROM tab1
----
11
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + col1 * col1 col1 FROM tab2
----
327
3507
988

query I rowsort
SELECT ALL tab1.col0 * + tab1.col1 + + tab1.col2 * tab1.col1 FROM tab1
----
1210
1482
2288

query I rowsort
SELECT ALL - col0 + col2 AS col2 FROM tab0
----
-34
-7
9

query I rowsort
SELECT - col1 + col1 * col1 FROM tab2
----
272
3422
930

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT + cor0.col2 NOT BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT + col0 * cor0.col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT ALL - cor0.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

query I rowsort
SELECT DISTINCT cor0.col1 AS col0 FROM tab2, tab0 AS cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 col2 FROM tab0, tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT - col2 * col2 * - col2 + - col2 * col0 AS col1 FROM tab0
----
-34
35145
544070

query I rowsort
SELECT DISTINCT col0 * + col0 AS col1 FROM tab2
----
49
6084
6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col0 + + col1 col2 FROM tab0
----
132
7389
878

query I rowsort
SELECT ALL - col2 AS col2 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT DISTINCT + tab1.col0 * col0 FROM tab1
----
4096
6400
9

query III rowsort
SELECT * FROM tab1 WHERE NULL > ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6522
SELECT ALL tab0.col0 * - col2 + col2 DIV - tab0.col2 + col2 AS col2 FROM tab0
----
-35
-7217
-760

skipif mysql # not compatible
query I rowsort label-6522
SELECT ALL tab0.col0 * - col2 + col2 / - tab0.col2 + col2 AS col2 FROM tab0
----
-35
-7217
-760

query I rowsort
SELECT DISTINCT col0 * col1 AS col0 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT - col2 * col1 AS col2 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT + tab2.col0 AS col0 FROM tab2
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-6526
SELECT ALL - col1 + - col1 DIV + col1 AS col2 FROM tab0
----
-87
-92
-98

skipif mysql # not compatible
query I rowsort label-6526
SELECT ALL - col1 + - col1 / + col1 AS col2 FROM tab0
----
-87
-92
-98

query I rowsort
SELECT tab0.col2 * - col1 + + tab0.col2 FROM tab0
----
-2805
-7380
-96

query I rowsort
SELECT tab0.col0 * + tab0.col1 AS col0 FROM tab0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col1 + + col0 col2 FROM tab1
----
164
249
679

query I rowsort
SELECT + tab0.col2 - - col1 FROM tab0
----
119
173
98

query I rowsort
SELECT - tab1.col1 AS col2 FROM tab1
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab1.col2 col0 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT DISTINCT col1 + col0 FROM tab0
----
110
132
180

query III rowsort
SELECT * FROM tab2 WHERE col2 >= + col0
----
7
31
27

query I rowsort
SELECT + col1 * + col0 AS col0 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-6536
SELECT + col1 DIV - col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6536
SELECT + col1 / - col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6537
SELECT cor0.col1 DIV - col2 + - col0 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-6537
SELECT cor0.col1 / - col2 + - col0 FROM tab1 AS cor0
----
-3
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6538
SELECT - cor0.col0 DIV cor0.col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6538
SELECT - cor0.col0 / cor0.col0 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6539
SELECT ALL - col1 DIV col0 FROM tab0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-6539
SELECT ALL - col1 / col0 FROM tab0
----
-1
-2
-3

query I rowsort
SELECT col1 * - col1 FROM tab1
----
-100
-169
-676

query I rowsort
SELECT col1 + col1 * col2 * col1 AS col2 FROM tab2 AS cor0
----
10999
25978
90565

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * + col0 col0 FROM tab0 AS cor0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col1 col2 FROM tab0 AS cor0
----
7396
8281
9409

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 NOT IN ( col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab0
----
54 values hashing to 3352c458f45211cf9aa3236c2cd6dd38

query I rowsort
SELECT DISTINCT - col0 * + col1 + col2 * col2 FROM tab0
----
-1375
-3394
-975

query I rowsort
SELECT - - col0 + + col0 AS col0 FROM tab1 AS cor0
----
128
160
6

query III rowsort
SELECT * FROM tab1 WHERE + col2 * - col0 NOT BETWEEN NULL AND - col2
----

query I rowsort
SELECT - col2 * 54 + col2 FROM tab2 AS cor0
----
-1378
-1431
-2014

query I rowsort
SELECT - - col1 * + 95 FROM tab0 cor0
----
8170
8645
9215

query I rowsort
SELECT + 50 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 314aace40e704c20a6be06204a329f80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6552
SELECT DISTINCT - col1 DIV col0 + 17 FROM tab0 AS cor0
----
14
15
16

skipif mysql # not compatible
query I rowsort label-6552
SELECT DISTINCT - col1 / col0 + 17 FROM tab0 AS cor0
----
14
15
16

query I rowsort
SELECT - + cor0.col1 AS col0 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT col2 + + 25 * - col2 FROM tab2 AS cor0
----
-624
-648
-912

query I rowsort
SELECT ALL + + col1 AS col1 FROM tab2 AS cor0
----
17
31
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6556
SELECT + col2 * CAST( 68 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
3672
3876
6528

skipif mysql # not compatible
query I rowsort label-6556
SELECT + col2 * CAST ( 68 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
3672
3876
6528

query I rowsort
SELECT ALL + col2 + ( col1 ) * col0 * col1 FROM tab2 cor0
----
22869
271544
6754

query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT 65 + + col2 AS col1 FROM tab1
----
119
122
161

query I rowsort
SELECT ALL tab2.col0 + tab2.col0 AS col2 FROM tab2
----
14
156
158

query I rowsort
SELECT DISTINCT 68 * col0 FROM tab0
----
1632
2380
6052

query IIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
243 values hashing to 2ba47a833971d4c4b0287e849fb0cfb8

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
243 values hashing to 021da207cdc2a046fb0a79bf7cfc38ae

query I rowsort
SELECT col0 - - 66 FROM tab2
----
144
145
73

query I rowsort
SELECT DISTINCT + col1 + - col2 * col1 AS col2 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT ALL + + col2 + col2 * col0 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT cor0.col0 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT ALL cor0.col2 AS col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT - col2 * + 64 AS col1 FROM tab2 AS cor0
----
-1664
-1728
-2432

query I rowsort
SELECT ALL cor0.col1 + ( col2 ) FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT - - col1 AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT + cor0.col0 * 26 + - col2 FROM tab2 cor0
----
155
2002
2016

query I rowsort
SELECT + col0 * 10 FROM tab2 AS cor0
----
70
780
790

query I rowsort
SELECT + tab2.col1 AS col2 FROM tab2
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-6575
SELECT - col0 DIV + col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6575
SELECT - col0 / + col0 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT DISTINCT col2 * col0 * tab0.col1 + col0 + col1 FROM tab0
----
3527
664298
68222

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) > NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6578
SELECT col1 DIV - col2 - - col1 FROM tab0
----
0
84
90

skipif mysql # not compatible
query I rowsort label-6578
SELECT col1 / - col2 - - col1 FROM tab0
----
0
84
90

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL > col2 * - col2
----

query I rowsort
SELECT ALL tab2.col0 AS col2 FROM tab2
----
7
78
79

query I rowsort
SELECT col0 * col2 + col1 * - col1 + - col1 FROM tab2
----
-1512
-803
2696

query I rowsort
SELECT ALL col0 * - col2 AS col0 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT col1 * - col1 + col0 + col1 * - col1 AS col2 FROM tab1
----
-1349
-136
-258

query I rowsort
SELECT col0 * col0 FROM tab2 WHERE NULL > ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6586
SELECT DISTINCT - tab0.col0 DIV col1 + + col2 * col1 + - col0 * - col0 AS col2 FROM tab0
----
1322
15383
3414

skipif mysql # not compatible
query I rowsort label-6586
SELECT DISTINCT - tab0.col0 / col1 + + col2 * col1 + - col0 * - col0 AS col2 FROM tab0
----
1322
15383
3414

query I rowsort
SELECT DISTINCT - col2 * - col1 FROM tab2
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-6588
SELECT ALL col2 DIV col0 col0 FROM tab2
----
0
0
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6588
SELECT ALL col2 / col0 col0 FROM tab2
----
0
0
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-6589
SELECT DISTINCT col0 DIV tab0.col2 FROM tab0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-6589
SELECT DISTINCT col0 / tab0.col2 FROM tab0
----
0
1
35

query I rowsort
SELECT col2 * + col2 FROM tab0
----
1
1089
6724

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE col2 - col2 * - col1 NOT IN ( col0 + - col0 )
----
1
33
82

query I rowsort
SELECT + col2 * col2 + col2 * + col2 + col1 FROM tab2
----
1411
1489
2905

query I rowsort
SELECT tab1.col2 AS col1 FROM tab1 WHERE col1 + col2 * col1 <> NULL
----

query I rowsort
SELECT + col1 * col2 * col1 AS col1 FROM tab1
----
16224
36504
5700

onlyif mysql # use DIV operator for integer division
query I rowsort label-6595
SELECT DISTINCT - col0 DIV + col2 FROM tab0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-6595
SELECT DISTINCT - col0 / + col2 FROM tab0
----
-1
-35
0

query I rowsort
SELECT DISTINCT col0 * + col1 * col0 FROM tab2
----
106097
1519
358956

onlyif mysql # use DIV operator for integer division
query I rowsort label-6597
SELECT + tab1.col1 DIV - col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6597
SELECT + tab1.col1 / - col1 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT DISTINCT tab2.col2 * col0 AS col2 FROM tab2
----
189
2028
3002

query I rowsort
SELECT ALL ( col2 ) * ( - col0 ) + + col0 AS col0 FROM tab1
----
-159
-3584
-7600

query I rowsort
SELECT ALL col2 + col2 FROM tab1
----
108
114
192

query I rowsort
SELECT ALL - - col1 * + col1 AS col2 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT - col0 + - col2 AS col1 FROM tab1 AS cor0
----
-121
-176
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * - col1 col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL - col1 + 16 - - col1 * col2 FROM tab2 cor0
----
1491
645
822

onlyif mysql # use DIV operator for integer division
query I rowsort label-6605
SELECT ALL - + col1 * ( + col0 ) DIV - col1 AS col0 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-6605
SELECT ALL - + col1 * ( + col0 ) / - col1 AS col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL - col0 * 88 FROM tab2 AS cor0
----
-616
-6864
-6952

query I rowsort
SELECT - col0 * + col1 * col0 + - col0 FROM tab1 AS cor0
----
-237
-41024
-83280

query I rowsort
SELECT DISTINCT + cor0.col0 + col2 AS col1 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL - col1 + - col0 * + col0 AS col0 FROM tab0 AS cor0
----
-1322
-662
-8012

query I rowsort
SELECT - col1 * 95 AS col0 FROM tab2 AS cor0
----
-1615
-2945
-5605

query I rowsort
SELECT DISTINCT + cor0.col0 * 84 AS col1 FROM tab1 AS cor0
----
252
5376
6720

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6612
SELECT DISTINCT col1 + CAST( - 99 AS SIGNED ) FROM tab1 cor0
----
-73
-86
-89

skipif mysql # not compatible
query I rowsort label-6612
SELECT DISTINCT col1 + CAST ( - 99 AS INTEGER ) FROM tab1 cor0
----
-73
-86
-89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6613
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab2, tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6613
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2, tab0 cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6614
SELECT ALL + col0 * CAST( NULL AS SIGNED ) col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6614
SELECT ALL + col0 * CAST ( NULL AS INTEGER ) col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + 52 * 70 FROM tab0 AS cor0
----
3664
3675
3729

query I rowsort
SELECT 9 + + cor0.col1 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to 8fd3904064045c50b480b92450be9101

query I rowsort
SELECT 43 FROM tab1
----
43
43
43

onlyif mysql # use DIV operator for integer division
query I rowsort label-6618
SELECT DISTINCT - 71 * tab2.col0 DIV - tab2.col1 + + col2 FROM tab2
----
119
367
43

skipif mysql # not compatible
query I rowsort label-6618
SELECT DISTINCT - 71 * tab2.col0 / - tab2.col1 + + col2 FROM tab2
----
119
367
43

query I rowsort
SELECT - col1 * + 7 AS col2 FROM tab2 AS cor0
----
-119
-217
-413

query I rowsort
SELECT + col1 + - col1 * ( col2 ) FROM tab0 AS cor0
----
-2752
-7371
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6621
SELECT ALL - col2 + + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6621
SELECT ALL - col2 + + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6622
SELECT col0 * ( col0 ) + + col2 DIV cor0.col2 FROM tab1 AS cor0
----
10
4097
6401

skipif mysql # not compatible
query I rowsort label-6622
SELECT col0 * ( col0 ) + + col2 / cor0.col2 FROM tab1 AS cor0
----
10
4097
6401

query I rowsort
SELECT - - col1 * + 86 FROM tab2 AS cor0
----
1462
2666
5074

query I rowsort
SELECT - cor0.col1 AS col2 FROM tab0, tab1 cor0, tab1, tab0 AS cor1
----
81 values hashing to 96e9ef2950805bca93a295eeea43ef5b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6625
SELECT + + CAST( NULL AS DECIMAL ) * - col1 * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6625
SELECT + + CAST ( NULL AS REAL ) * - col1 * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 38 AS col0 FROM tab2 cor0
----
38
38
38

query I rowsort
SELECT DISTINCT 32 FROM tab1, tab1 AS cor0
----
32

query IIIIIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0, tab0 cor1
----
243 values hashing to 3e8bd9634a3f5947d8becd5f5799bb7f

query I rowsort
SELECT - col2 * + 35 + - 10 * + col0 AS col2 FROM tab1
----
-1920
-2635
-4160

query I rowsort
SELECT + col2 + + col2 * col0 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT - 97 * + col2 FROM tab2 AS cor0
----
-2522
-2619
-3686

onlyif mysql # use DIV operator for integer division
query I rowsort label-6632
SELECT ALL col1 + col1 + col0 * + col2 DIV - col2 FROM tab0 AS cor0
----
148
159
93

skipif mysql # not compatible
query I rowsort label-6632
SELECT ALL col1 + col1 + col0 * + col2 / - col2 FROM tab0 AS cor0
----
148
159
93

query I rowsort
SELECT - col1 * col1 FROM tab0 cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT - cor0.col1 FROM tab2 cor0
----
-17
-31
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT + - col1 AS col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT col2 + col0 * - col0 - + col0 * - col0 FROM tab2
----
26
27
38

query IIIIIIIII rowsort
SELECT * FROM tab0, tab2 cor0 CROSS JOIN tab2
----
243 values hashing to 5d85c5683e3ffd6d68920690d7302f7d

query I rowsort
SELECT DISTINCT tab0.col2 * col1 - - col0 FROM tab0
----
132
2862
7551

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col2 col2 FROM tab0
----
-1
-1089
-6724

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6641
SELECT - 9 + col2 + + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6641
SELECT - 9 + col2 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * + col2 FROM tab1
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-6643
SELECT ALL - col0 + + col1 * 19 DIV - 30 AS col0 FROM tab0
----
-146
-78
-96

skipif mysql # not compatible
query I rowsort label-6643
SELECT ALL - col0 + + col1 * 19 / - 30 AS col0 FROM tab0
----
-146
-78
-96

query I rowsort
SELECT DISTINCT - col2 + col0 AS col1 FROM tab1
----
-16
-51
7

query I rowsort
SELECT - tab2.col0 AS col2 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT DISTINCT tab2.col1 + col2 AS col2 FROM tab2
----
55
58
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col0 + col1 col0 FROM tab0
----
110
132
180

query I rowsort
SELECT col0 * col1 + + col2 FROM tab0
----
2097
3396
8181

skipif mysql # not compatible
query I rowsort
SELECT - ( + col2 * - CAST ( ( col2 ) AS REAL ) ) - col0 * col2 FROM tab1
----
-399
1536
2754

onlyif mysql # use DIV operator for integer division
query I rowsort label-6650
SELECT DISTINCT + 91 DIV - col0 AS col2 FROM tab1 cor0
----
-1
-30

skipif mysql # not compatible
query I rowsort label-6650
SELECT DISTINCT + 91 / - col0 AS col2 FROM tab1 cor0
----
-1
-30

query I rowsort
SELECT - cor0.col2 * + col1 + cor0.col1 * + col2 - col1 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT ALL + col1 + col1 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT ALL ( col2 ) + col0 + + col0 FROM tab2
----
182
196
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - tab0.col1 ) + + tab0.col2 col2 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT - - col1 * + col1 + - col1 AS col1 FROM tab1 AS cor0
----
156
650
90

query I rowsort
SELECT col0 * col2 + col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT 68 * tab2.col2 FROM tab2
----
1768
1836
2584

query I rowsort
SELECT tab1.col2 + col2 + + col1 FROM tab1
----
124
134
205

onlyif mysql # use DIV operator for integer division
query I rowsort label-6659
SELECT 62 DIV col0 FROM tab1
----
0
0
20

skipif mysql # not compatible
query I rowsort label-6659
SELECT 62 / col0 FROM tab1
----
0
0
20

query I rowsort
SELECT - col0 * + col2 AS col2 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT col2 * - col0 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT col1 * - col2 AS col2 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT ALL - - col2 * col2 AS col2 FROM tab0 AS cor0
----
1
1089
6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-6664
SELECT ALL - col0 DIV + col1 AS col1 FROM tab2
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-6664
SELECT ALL - col0 / + col1 AS col1 FROM tab2
----
-1
-4
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6665
SELECT col0 DIV col1 AS col1 FROM tab2 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-6665
SELECT col0 / col1 AS col1 FROM tab2 AS cor0
----
0
1
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-6666
SELECT + col2 DIV cor0.col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6666
SELECT + col2 / cor0.col0 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6667
SELECT + - col1 DIV - col0 FROM tab2 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-6667
SELECT + - col1 / - col0 FROM tab2 AS cor0
----
0
0
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-6668
SELECT + + col2 DIV - col2 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6668
SELECT + + col2 / - col2 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - 7 + ( col0 ) * - col1 AS col2 FROM tab1
----
-1047
-647
-85

query I rowsort
SELECT - ( - col1 + - col1 ) FROM tab2
----
118
34
62

query I rowsort
SELECT 44 AS col1 FROM tab1
----
44
44
44

query I rowsort
SELECT 99 * - col0 * + col0 + col0 FROM tab0
----
-121240
-57000
-784090

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-6674
SELECT DISTINCT col2 DIV - 98 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6674
SELECT DISTINCT col2 / - 98 AS col0 FROM tab0
----
0

query I rowsort
SELECT DISTINCT + - 19 + + ( col2 ) * col0 FROM tab1 cor0
----
143
3629
7661

query I rowsort
SELECT - col1 AS col2 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT + col1 - col0 * + col0 FROM tab2 AS cor0
----
-18
-6025
-6224

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6678
SELECT ALL - - CAST( - col0 AS SIGNED ) + + col1 + col2 FROM tab2 cor0
----
-24
51
7

skipif mysql # not compatible
query I rowsort label-6678
SELECT ALL - - CAST ( - col0 AS INTEGER ) + + col1 + col2 FROM tab2 cor0
----
-24
51
7

query I rowsort
SELECT ( col2 ) AS col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT + 80 AS col0 FROM tab0
----
80

query I rowsort
SELECT ALL col2 * col0 * + col2 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT + - 83 + + ( - col0 ) FROM tab0 cor0
----
-107
-118
-172

query I rowsort
SELECT DISTINCT - + col1 + + col0 * col1 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT + 20 + - col2 + col0 FROM tab1 cor0
----
-31
27
4

query I rowsort
SELECT - col0 + col2 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT ( + col2 ) * + col2 + col1 * + col2 * col0 + cor0.col0 FROM tab2 AS cor0
----
120406
52557
6595

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * - col0 + + col0 col1 FROM tab1 AS cor0
----
-4032
-6
-6320

query I rowsort
SELECT DISTINCT + 31 * col1 + col1 FROM tab2 AS cor0
----
1888
544
992

query I rowsort
SELECT ALL - + col1 + cor0.col2 - col2 AS col0 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT - col2 + + col2 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col2 * - col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT col0 * + cor0.col0 + - col1 * cor0.col2 AS col2 FROM tab1 cor0
----
-1395
3526
5152

query I rowsort
SELECT ALL + 76 + col2 FROM tab1 AS cor0
----
130
133
172

query I rowsort
SELECT col1 * + col2 + col1 - - col2 * col0 * col2 AS col2 FROM tab2 AS cor0
----
114739
54321
5971

query I rowsort
SELECT DISTINCT + + col2 * cor0.col1 + col0 AS col2 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT + - ( cor0.col1 ) FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT ALL - cor0.col2 + col2 * col2 AS col2 FROM tab2 AS cor0
----
1406
650
702

query I rowsort
SELECT DISTINCT col2 + + col1 * + col2 + 67 FROM tab0 cor0
----
165
2938
7611

query I rowsort
SELECT 75 FROM tab1 cor0
----
75
75
75

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0 CROSS JOIN tab2, tab2 cor1
----
972 values hashing to 163d7732097d78f1cda7f65c2cea5a08

query I rowsort
SELECT + - 91 * - col2 + col1 * ( 67 ) FROM tab0 AS cor0
----
13559
6590
8765

query I rowsort
SELECT - - col0 + col2 * - cor0.col2 FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT ALL + col1 + + ( - col2 + 8 ) FROM tab0
----
104
17
61

query I rowsort
SELECT + tab2.col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT + col1 * cor0.col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL - col1 * + col1 AS col1 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT + + 80 AS col1 FROM tab1 AS cor0
----
80

query I rowsort
SELECT ALL - - 15 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
1290
1365
1455

query I rowsort
SELECT DISTINCT + 67 AS col0 FROM tab0 cor0
----
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-6710
SELECT - col2 DIV cor0.col1 FROM tab1 cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-6710
SELECT - col2 / cor0.col1 FROM tab1 cor0
----
-2
-5
-7

query I rowsort
SELECT col2 * + col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT col2 * col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL + + 30 AS col2 FROM tab0 AS cor0
----
30
30
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col2 col1 FROM tab2 cor0
----
26
27
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6715
SELECT ALL col2 + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6715
SELECT ALL col2 + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + tab0.col2 + ( col2 ) AS col2 FROM tab0
----
164
2
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6717
SELECT + tab1.col2 * CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6717
SELECT + tab1.col2 * CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + + col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT - + 99 FROM tab2, tab1 AS cor0
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

query I rowsort
SELECT ALL + 10 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query I rowsort
SELECT + col2 + - col0 AS col0 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT + 4 FROM tab0 AS cor0
----
4
4
4

query I rowsort
SELECT + ( - col0 ) AS col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL - col0 + + 1 * - col1 AS col2 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT DISTINCT - 12 FROM tab2 AS cor0
----
-12

query I rowsort
SELECT - ( - 30 ) + col0 * col2 + col2 FROM tab0 AS cor0
----
66
7410
855

query I rowsort
SELECT DISTINCT + - col0 + - col0 AS col1 FROM tab0 AS cor0
----
-178
-48
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col0 * - col1 col0 FROM tab0 cor0
----
-118825
-49536
-720811

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + - 12 col2 FROM tab2 AS cor0
----
-29
-43
-71

query I rowsort
SELECT - col2 * cor0.col2 + + col1 AS col2 FROM tab1 AS cor0
----
-2890
-3239
-9203

query I rowsort
SELECT ALL - tab0.col0 AS col2 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT 16 * cor0.col1 FROM tab1 AS cor0
----
160
208
416

query I rowsort
SELECT ALL - 17 + col0 * - col1 AS col0 FROM tab2 AS cor0
----
-1360
-234
-4619

query I rowsort
SELECT col1 * + col2 + - col1 * - 58 + ( + col0 * col1 ) AS col0 FROM tab0 AS cor0
----
20839
9118
9890

query I rowsort
SELECT ALL - + col0 + - col1 FROM tab0 cor0
----
-110
-132
-180

query I rowsort
SELECT DISTINCT - col1 * 14 FROM tab1 AS cor0
----
-140
-182
-364

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6737
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * 38 + col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6737
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * 38 + col0 FROM tab0 AS cor0
----
NULL

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 cor0, tab1 AS cor1, tab1 AS cor2
----
972 values hashing to 635619591835474e6aa6acdff4ab166c

query I rowsort
SELECT ALL - cor0.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

query I rowsort
SELECT DISTINCT 71 AS col2 FROM tab1 AS cor0
----
71

query I rowsort
SELECT DISTINCT + + 61 * col2 AS col0 FROM tab0 AS cor0
----
2013
5002
61

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6742
SELECT ALL - + 53 * - col1 + col1 + CAST( NULL AS SIGNED ) * cor0.col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6742
SELECT ALL - + 53 * - col1 + col1 + CAST ( NULL AS INTEGER ) * cor0.col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort
SELECT + 42 + col1 * col0 + + CAST ( col0 AS REAL ) FROM tab2
----
1464
266
4722

query I rowsort
SELECT ALL col2 + tab1.col1 FROM tab1
----
109
67
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col2 * cor1.col2 col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 255bedb67400f83d272763889db4ca4f

onlyif mysql # use DIV operator for integer division
query I rowsort label-6746
SELECT DISTINCT - col1 DIV + cor0.col2 + + col2 + - 86 FROM tab1 AS cor0
----
-29
-32
10

skipif mysql # not compatible
query I rowsort label-6746
SELECT DISTINCT - col1 / + cor0.col2 + + col2 + - 86 FROM tab1 AS cor0
----
-29
-32
10

query I rowsort
SELECT DISTINCT - cor0.col2 + - 31 AS col0 FROM tab0 AS cor0
----
-113
-32
-64

query I rowsort
SELECT - - col2 + + 74 FROM tab1 AS cor0
----
128
131
170

query I rowsort
SELECT DISTINCT - - col2 + col0 AS col0 FROM tab2 AS cor0
----
104
117
34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6750
SELECT DISTINCT - CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6750
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL col1 * col2 AS col0 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT + 41 AS col0 FROM tab1 AS cor0
----
41
41
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 42 col2 FROM tab1 cor0
----
42
42
42

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0, tab0 AS cor1, tab1 cor2
----
972 values hashing to 0210050fb1701e2797a9b17e1ebac91e

query I rowsort
SELECT + cor0.col1 + - col1 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6756
SELECT col0 * col2 * CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
1225
19008
649522

skipif mysql # not compatible
query I rowsort label-6756
SELECT col0 * col2 * CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
1225
19008
649522

query I rowsort
SELECT DISTINCT + - 22 * cor0.col0 - col0 AS col2 FROM tab2 AS cor0
----
-161
-1794
-1817

query I rowsort
SELECT DISTINCT - cor0.col0 AS col0 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT - ( col1 ) FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT col1 + cor0.col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT cor0.col1 * col2 + + 38 FROM tab1 AS cor0
----
1286
1442
608

query I rowsort
SELECT ALL + - col0 + + col1 AS col1 FROM tab2 AS cor0
----
-19
-62
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + + col2 col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL - + cor0.col0 - + cor0.col0 FROM tab2 AS cor0
----
-14
-156
-158

query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0, tab2 cor1
----
243 values hashing to 2248b8c3b6efacb4e8fc6d9f81b7df8b

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2, tab1 AS cor0, tab1
----
972 values hashing to fe55095fff3a5ecc2f113d14a8c6f823

query I rowsort
SELECT ALL 16 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query I rowsort
SELECT DISTINCT + 31 AS col2 FROM tab1, tab2 AS cor0
----
31

query I rowsort
SELECT ALL - 79 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

query I rowsort
SELECT + col1 * - col1 + tab2.col0 AS col0 FROM tab2
----
-210
-3403
-954

query I rowsort
SELECT ALL - col2 * col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT - - col1 * - ( col0 ) + - cor0.col1 FROM tab2 cor0
----
-1360
-248
-4661

query I rowsort
SELECT ALL cor0.col0 AS col2 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT ALL - + cor0.col2 + col1 AS col0 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT DISTINCT - col0 * 41 AS col1 FROM tab0 AS cor0
----
-1435
-3649
-984

query I rowsort
SELECT + + col0 AS col2 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT + col0 * - 9 - col1 FROM tab0 AS cor0
----
-302
-412
-892

query I rowsort
SELECT ALL - + col0 + - col1 * 75 AS col1 FROM tab0 cor0
----
-6474
-6914
-7310

query I rowsort
SELECT - - col0 * col1 FROM tab1 AS cor0
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 + ( col1 ) col1 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT ALL - cor0.col0 * 4 FROM tab1 AS cor0
----
-12
-256
-320

query I rowsort
SELECT - col0 - + col0 AS col2 FROM tab1
----
-128
-160
-6

query I rowsort
SELECT + col0 * - col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT cor0.col1 AS col2 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT ALL + - col0 AS col0 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ALL - - col0 * + col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT ALL 17 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to e0dd9155e4d67132637a04c18ef46b2a

query I rowsort
SELECT DISTINCT + 16 * col1 FROM tab0
----
1376
1456
1552

query I rowsort
SELECT + 69 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

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-6792
SELECT DISTINCT + col2 * - col2 - 42 DIV col2 FROM tab0
----
-1090
-43
-6724

skipif mysql # not compatible
query I rowsort label-6792
SELECT DISTINCT + col2 * - col2 - 42 / col2 FROM tab0
----
-1090
-43
-6724

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6793
SELECT - col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6793
SELECT - col2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 + + 2 AS col0 FROM tab0 cor0
----
-31
-80
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6795
SELECT + col2 + col0 DIV + col0 col2 FROM tab0
----
2
34
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6795
SELECT + col2 + col0 / + col0 col2 FROM tab0
----
2
34
83

query I rowsort
SELECT 42 AS col0 FROM tab0
----
42
42
42

query I rowsort
SELECT + 48 + col2 AS col2 FROM tab2
----
74
75
86

query I rowsort
SELECT - 91 + + tab2.col1 FROM tab2
----
-32
-60
-74

query I rowsort
SELECT ALL + ( col0 ) * - col1 + col2 AS col0 FROM tab2
----
-1305
-190
-4576

query I rowsort
SELECT cor0.col2 - + cor0.col1 FROM tab1 AS cor0
----
28
47
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6801
SELECT DISTINCT + col1 + cor0.col0 + CAST( NULL AS SIGNED ) * cor0.col0 * - col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6801
SELECT DISTINCT + col1 + cor0.col0 + CAST ( NULL AS INTEGER ) * cor0.col0 * - col0 FROM tab0 cor0
----
NULL

query I rowsort
SELECT - ( col0 ) FROM tab0 AS cor0
----
-24
-35
-89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6803
SELECT - cor0.col2 * CAST( NULL AS SIGNED ) FROM tab1, tab2, tab2 AS cor0, tab2 cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-6803
SELECT - cor0.col2 * CAST ( NULL AS INTEGER ) FROM tab1, tab2, tab2 AS cor0, tab2 cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

onlyif mysql # use DIV operator for integer division
query I rowsort label-6804
SELECT col2 * tab0.col2 DIV 84 FROM tab0
----
0
12
80

skipif mysql # not compatible
query I rowsort label-6804
SELECT col2 * tab0.col2 / 84 FROM tab0
----
0
12
80

query I rowsort
SELECT 15 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 71dda9a71fc978ea7b0ac5d8cd2ef1f0

query I rowsort
SELECT ALL + ( + 94 ) AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089

onlyif mysql # use DIV operator for integer division
query I rowsort label-6807
SELECT DISTINCT - col0 DIV - cor0.col1 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6807
SELECT DISTINCT - col0 / - cor0.col1 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL cor0.col0 + + cor0.col1 FROM tab1 AS cor0
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT - col1 * - col0 + + ( col2 ) * col0 AS col2 FROM tab1 AS cor0
----
240
4288
8720

onlyif mysql # use DIV operator for integer division
query I rowsort label-6811
SELECT ALL + col0 DIV - col2 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6811
SELECT ALL + col0 / - col2 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT - 85 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

query I rowsort
SELECT ALL + cor0.col1 + - col0 * col1 AS col0 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT ALL - col2 * + ( - col2 ) AS col1 FROM tab0 cor0
----
1
1089
6724

query I rowsort
SELECT col0 * + cor0.col0 * - col2 AS col2 FROM tab0 AS cor0
----
-1225
-19008
-649522

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6816
SELECT col2 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6816
SELECT col2 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6817
SELECT - col2 DIV - 55 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6817
SELECT - col2 / - 55 FROM tab2 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6818
SELECT col1 * col0 DIV + col1 AS col2 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-6818
SELECT col1 * col0 / + col1 AS col2 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT col2 * + ( 5 * col2 + cor0.col0 ) AS col0 FROM tab0 AS cor0
----
40
40918
6237

onlyif mysql # use DIV operator for integer division
query I rowsort label-6820
SELECT - - col0 DIV col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6820
SELECT - - col0 / col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort
SELECT CAST ( + col0 AS REAL ) AS col1 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT + 84 * 78 FROM tab1 AS cor0
----
6552

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab2 AS cor0
----
-7
-78
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6824
SELECT ALL + + CAST( NULL AS SIGNED ) col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6824
SELECT ALL + + CAST ( NULL AS INTEGER ) col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 AS col1 FROM tab0 cor0
----
-1
-33
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6826
SELECT ALL - - CAST( NULL AS DECIMAL ) * cor0.col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6826
SELECT ALL - - CAST ( NULL AS REAL ) * cor0.col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 71 col2 FROM tab1 AS cor0
----
71

query I rowsort
SELECT ALL col1 * col2 AS col2 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-6829
SELECT ALL col1 DIV col0 + cor0.col2 * 25 * 80 FROM tab2 AS cor0
----
52000
54004
76000

skipif mysql # not compatible
query I rowsort label-6829
SELECT ALL col1 / col0 + cor0.col2 * 25 * 80 FROM tab2 AS cor0
----
52000
54004
76000

query I rowsort
SELECT DISTINCT 79 * 9 - + col0 * col0 FROM tab2 AS cor0
----
-5373
-5530
662

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) * col2 col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL - 96 * + col0 + cor0.col2 * - ( - cor0.col1 ) * - cor0.col2 FROM tab0 cor0
----
-3457
-620428
-95958

query I rowsort
SELECT DISTINCT + col0 + col1 * cor0.col2 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT ( + 31 ) AS col2 FROM tab0 AS cor0
----
31
31
31

query I rowsort
SELECT DISTINCT + - 5 AS col2 FROM tab2 AS cor0
----
-5

query I rowsort
SELECT DISTINCT - cor0.col0 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL - + col2 * + col2 + cor0.col0 AS col0 FROM tab2 AS cor0
----
-1365
-598
-722

query I rowsort
SELECT ALL + - 14 * - cor0.col0 + col1 * col2 + - col1 FROM tab0 AS cor0
----
3088
490
8617

query I rowsort
SELECT 75 + - col2 AS col2 FROM tab2 AS cor0
----
37
48
49

onlyif mysql # use DIV operator for integer division
query I rowsort label-6840
SELECT ALL - ( col2 ) DIV - cor0.col2 + - col1 * - col0 + cor0.col0 FROM tab0 cor0
----
2089
3431
8189

skipif mysql # not compatible
query I rowsort label-6840
SELECT ALL - ( col2 ) / - cor0.col2 + - col1 * - col0 + cor0.col0 FROM tab0 cor0
----
2089
3431
8189

query I rowsort
SELECT - + col0 * col0 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT col2 + + col1 AS col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT + col2 * - cor0.col2 + - ( + col1 ) FROM tab0 cor0
----
-1175
-6815
-98

query I rowsort
SELECT ALL + - col2 + + col2 * col1 - cor0.col0 AS col1 FROM tab2 AS cor0
----
1430
529
803

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab2 AS cor1, tab0 AS cor2
----
972 values hashing to 58757c5bbbd4217c03cf2ac0b6126e55

query I rowsort
SELECT ALL + - 39 FROM tab1 AS cor0
----
-39
-39
-39

query I rowsort
SELECT col1 + + col0 * 87 FROM tab0 AS cor0
----
2174
3142
7834

query I rowsort
SELECT - col0 * col1 * + ( + col2 ) FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT - - ( + col1 ) AS col2 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT - + cor0.col0 AS col2 FROM tab1 AS cor0
----
-3
-64
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * + cor0.col0 + 16 col1 FROM tab1 AS cor0
----
1056
656
94

query I rowsort
SELECT 90 * col2 FROM tab0 AS cor0
----
2970
7380
90

query I rowsort
SELECT + 37 FROM tab1 AS cor0
----
37
37
37

query I rowsort
SELECT 83 AS col0 FROM tab1 AS cor0
----
83
83
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 67 + col2 * + cor0.col2 col2 FROM tab1 AS cor0
----
2983
3316
9283

query I rowsort
SELECT ALL + - 80 AS col2 FROM tab2, tab1, tab0 AS cor0, tab0
----
81 values hashing to a3c8e513c78e2eef41ad24aabcbeff52

query I rowsort
SELECT - - col2 * - col2 AS col1 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT ALL 27 AS col2 FROM tab0
----
27
27
27

query I rowsort
SELECT ALL + - col0 * 24 + col2 FROM tab0 AS cor0
----
-2054
-543
-839

query I rowsort
SELECT ALL - - cor0.col2 * - 49 AS col1 FROM tab1 AS cor0
----
-2646
-2793
-4704

query I rowsort
SELECT - col0 + col2 * col1 AS col1 FROM tab1 AS cor0
----
1168
1401
506

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0, tab0 cor1, tab1 AS cor2
----
972 values hashing to 0a9194f200a4220e419d35c461f9fcfe

query I rowsort
SELECT ALL - - 91 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT - col0 * col1 AS col1 FROM tab1
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-6865
SELECT - + col2 DIV col2 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6865
SELECT - + col2 / col2 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT col0 * - col2 AS col2 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT - tab0.col0 * 45 FROM tab0
----
-1080
-1575
-4005

query I rowsort
SELECT - col1 + + 37 AS col2 FROM tab1
----
11
24
27

onlyif mysql # use DIV operator for integer division
query I rowsort label-6869
SELECT DISTINCT col2 DIV col1 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6869
SELECT DISTINCT col2 / col1 AS col0 FROM tab0
----
0

query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2, tab0 cor0
----
243 values hashing to 566180e0144350a78b0ef3318e8f4c00

query I rowsort
SELECT DISTINCT 78 FROM tab2
----
78

query I rowsort
SELECT 79 FROM tab2
----
79
79
79

query I rowsort
SELECT + 16 FROM tab1
----
16
16
16

query I rowsort
SELECT 96 FROM tab1
----
96
96
96

query I rowsort
SELECT DISTINCT - - 21 + col2 AS col1 FROM tab1 AS cor0
----
117
75
78

query I rowsort
SELECT 16 AS col0 FROM tab1 AS cor0
----
16
16
16

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6877
SELECT ALL - CAST( - 52 AS SIGNED ) * col1 AS col1 FROM tab1 AS cor0
----
1352
520
676

skipif mysql # not compatible
query I rowsort label-6877
SELECT ALL - CAST ( - 52 AS INTEGER ) * col1 AS col1 FROM tab1 AS cor0
----
1352
520
676

query I rowsort
SELECT ALL - + col0 + + ( - col0 ) FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab2 AS cor0
----
26
27
38

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0, tab1 AS cor1, tab0, tab1 AS cor2
----
3645 values hashing to 9a402ad2669465fb284445c499a48f2c

query I rowsort
SELECT + - col2 + - 11 FROM tab1 AS cor0
----
-107
-65
-68

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6882
SELECT - - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6882
SELECT - - CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT - 92 + tab2.col0 * ( - tab2.col2 ) - - tab2.col1 FROM tab2
----
-2061
-250
-3077

query I rowsort
SELECT - col0 + col2 + + col1 AS col0 FROM tab0
----
63
84
95

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0, tab2, tab1 AS cor1
----
972 values hashing to 980274175fafec015a83080672486a9a

onlyif mysql # use DIV operator for integer division
query I rowsort label-6886
SELECT ALL - col1 DIV - col0 FROM tab0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-6886
SELECT ALL - col1 / - col0 FROM tab0
----
1
2
3

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2, tab1 AS cor0, tab1
----
972 values hashing to fe55095fff3a5ecc2f113d14a8c6f823

query I rowsort
SELECT DISTINCT + col1 * 38 AS col1 FROM tab1
----
380
494
988

query I rowsort
SELECT DISTINCT - cor0.col1 FROM tab0, tab1, tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT - col2 * tab1.col1 FROM tab1
----
-1248
-1404
-570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6891
SELECT col1 * CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6891
SELECT col1 * CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 50 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 314aace40e704c20a6be06204a329f80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 62 col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query I rowsort
SELECT DISTINCT col2 * col2 * col1 + + col2 FROM tab0
----
611966
93687
98

query I rowsort
SELECT DISTINCT col0 * 26 + tab2.col0 AS col2 FROM tab2
----
189
2106
2133

query I rowsort
SELECT ALL col1 + col2 * - 90 AS col2 FROM tab1
----
-4834
-5120
-8627

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col2 * + col1 col1 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT col1 * + col2 FROM tab1
----
1248
1404
570

query I rowsort
SELECT ALL - col1 * - col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT - + col2 * - cor0.col2 - ( col0 + col2 ) FROM tab0 AS cor0
----
-35
1032
6553

query I rowsort
SELECT DISTINCT + + ( cor0.col2 ) FROM tab2, tab0, tab0 AS cor0
----
1
33
82

query I rowsort
SELECT 46 * - col2 FROM tab0
----
-1518
-3772
-46

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6903
SELECT DISTINCT - CAST( col2 + + col2 AS SIGNED ) AS col0 FROM tab0
----
-164
-2
-66

skipif mysql # not compatible
query I rowsort label-6903
SELECT DISTINCT - CAST ( col2 + + col2 AS INTEGER ) AS col0 FROM tab0
----
-164
-2
-66

query I rowsort
SELECT + 38 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT ALL - ( - tab0.col2 ) AS col2 FROM tab0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 14 col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - 51 ) * + col2 col1 FROM tab2
----
-1326
-1377
-1938

query I rowsort
SELECT DISTINCT - 87 FROM tab1, tab1 AS cor0
----
-87

query I rowsort
SELECT + - col0 - col2 AS col2 FROM tab1 cor0
----
-121
-176
-57

query I rowsort
SELECT - - 34 + col0 FROM tab2 AS cor0
----
112
113
41

query I rowsort
SELECT col0 * col0 * + ( col1 ) + + tab0.col0 - col2 AS col2 FROM tab0
----
118859
49527
720818

query I rowsort
SELECT DISTINCT - 56 + col1 FROM tab0
----
30
35
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 + + col2 col1 FROM tab2 AS cor0
----
55
58
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 col0 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT + 77 * col1 + + col2 - col2 * - cor0.col0 AS col1 FROM tab0 AS cor0
----
14387
7447
7505

query I rowsort
SELECT ALL - 98 + col1 + col1 AS col1 FROM tab0 AS cor0
----
74
84
96

query I rowsort
SELECT + cor0.col2 * - col2 + + col1 AS col1 FROM tab2 AS cor0
----
-1427
-617
-698

query I rowsort
SELECT ALL + - col0 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT cor0.col2 + col2 * col1 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT DISTINCT + + 71 + + col1 FROM tab2 AS cor0
----
102
130
88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6921
SELECT + col0 + - col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6921
SELECT + col0 + - col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6922
SELECT - col0 DIV + col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6922
SELECT - col0 / + col0 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT 15 AS col2 FROM tab0 AS cor0
----
15
15
15

query I rowsort
SELECT - col2 + + col2 * + cor0.col2 * col1 - + col0 FROM tab2 AS cor0
----
22565
24431
39780

query I rowsort
SELECT DISTINCT col2 + + col1 FROM tab0
----
119
173
98

query I rowsort
SELECT col1 * - col0 + tab1.col1 + ( + col0 + col2 ) FROM tab1
----
-509
-851
5

query I rowsort
SELECT col2 * + col1 AS col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT ( - tab1.col0 ) + - ( col2 ) AS col1 FROM tab1
----
-121
-176
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-6929
SELECT - col1 DIV + col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6929
SELECT - col1 / + col1 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT col1 + - tab0.col2 * - col2 FROM tab0
----
1175
6815
98

query I rowsort
SELECT + 34 + + tab2.col0 FROM tab2
----
112
113
41

query I rowsort
SELECT + col0 + - col0 AS col1 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6933
SELECT DISTINCT + 86 + + col2 DIV - 17 FROM tab2
----
84
85

skipif mysql # not compatible
query I rowsort label-6933
SELECT DISTINCT + 86 + + col2 / - 17 FROM tab2
----
84
85

query I rowsort
SELECT ALL 26 + col0 * - 30 * 86 FROM tab2
----
-18034
-201214
-203794

query I rowsort
SELECT ALL + - col0 * col2 + + col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT + col2 * col0 - + cor0.col0 AS col1 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT DISTINCT 96 + + col1 FROM tab0 AS cor0
----
182
187
193

query I rowsort
SELECT + ( - col2 ) * + 54 AS col1 FROM tab1 AS cor0
----
-2916
-3078
-5184

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col1 ) col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT - tab0.col1 * + col0 + ( + tab0.col1 ) * - col1 * + 47 AS col2 FROM tab0
----
-349676
-397306
-445618

query I rowsort
SELECT col2 * col1 + + ( col0 * - col0 + + ( + col1 ) ) FROM tab1 AS cor0
----
-3516
-5139
1421

query I rowsort
SELECT DISTINCT - 40 * + 83 AS col1 FROM tab0, tab1 cor0
----
-3320

query I rowsort
SELECT ALL + ( col0 ) + col1 AS col0 FROM tab1 cor0
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-6944
SELECT ALL - - cor0.col2 DIV col0 FROM tab1 AS cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-6944
SELECT ALL - - cor0.col2 / col0 FROM tab1 AS cor0
----
0
1
18

query I rowsort
SELECT ALL 73 AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 3933a906d17a820ccf95467e2206df8f

query I rowsort
SELECT - col2 * + col1 AS col1 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL + - col1 * 76 FROM tab0 AS cor0
----
-6536
-6916
-7372

query I rowsort
SELECT DISTINCT - + cor0.col1 * + 77 AS col2 FROM tab1 cor0
----
-1001
-2002
-770

query I rowsort
SELECT ALL - col0 AS col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT + col1 * + col0 + + col1 AS col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT ALL col1 * + cor0.col2 * - col2 FROM tab2 cor0
----
-22599
-24548
-39884

query I rowsort
SELECT - col2 + + col2 - col0 AS col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT + col0 + 90 AS col0 FROM tab0 AS cor0
----
114
125
179

query I rowsort
SELECT ALL col2 + 64 * - col1 FROM tab2 AS cor0
----
-1050
-1957
-3750

query I rowsort
SELECT col0 + col0 * col0 * + col2 FROM tab2 cor0
----
1330
158262
237237

query I rowsort
SELECT DISTINCT - - col2 + + col1 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT DISTINCT + col2 * 38 + col1 AS col0 FROM tab0 cor0
----
1340
135
3207

query I rowsort
SELECT col0 + + 31 FROM tab2 AS cor0
----
109
110
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-6959
SELECT ALL + col2 DIV - col0 col1 FROM tab0 AS cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6959
SELECT ALL + col2 / - col0 col1 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL + col0 - - col0 * 38 * col1 AS col1 FROM tab2 AS cor0
----
174954
51113
8253

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6961
SELECT - cor0.col0 * + CAST( col2 AS SIGNED ) + - col0 FROM tab0 AS cor0
----
-70
-7387
-816

skipif mysql # not compatible
query I rowsort label-6961
SELECT - cor0.col0 * + CAST ( col2 AS INTEGER ) + - col0 FROM tab0 AS cor0
----
-70
-7387
-816

query I rowsort
SELECT DISTINCT - - col1 + + 23 AS col0 FROM tab0 cor0
----
109
114
120

query I rowsort
SELECT DISTINCT col2 * col0 + 4 * + col2 AS col1 FROM tab2 AS cor0
----
2132
297
3154

query I rowsort
SELECT - + col2 * col1 + 82 FROM tab2 AS cor0
----
-1452
-564
-755

query I rowsort
SELECT DISTINCT col2 * + 62 FROM tab2 AS cor0
----
1612
1674
2356

query I rowsort
SELECT + col1 + ( + col2 ) FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL + col2 + 68 * 65 AS col0 FROM tab2 AS cor0
----
4446
4447
4458

onlyif mysql # use DIV operator for integer division
query I rowsort label-6968
SELECT cor0.col0 DIV col1 + cor0.col2 AS col0 FROM tab1 AS cor0
----
102
54
63

skipif mysql # not compatible
query I rowsort label-6968
SELECT cor0.col0 / col1 + cor0.col2 AS col0 FROM tab1 AS cor0
----
102
54
63

query I rowsort
SELECT DISTINCT - col2 * + col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL + col0 + - col2 AS col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT + + col0 AS col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL + 81 - + col2 AS col2 FROM tab1 AS cor0
----
-15
24
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 4 col0 FROM tab1 AS cor0
----
-4

query I rowsort
SELECT DISTINCT - 81 + + cor0.col1 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
-1329
-1485
-651

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6975
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * + 8 + - col0 col0 FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6975
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * + 8 + - col0 col0 FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + 70 * - cor0.col1 + col2 col0 FROM tab2 AS cor0
----
15217
322166
94048

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 CROSS JOIN tab1, tab2, tab2 AS cor1
----
3645 values hashing to 1a92b418ae3c05ba566f88a890a407ae

query I rowsort
SELECT col2 * + col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - col1 * - col1 AS col0 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT - col1 FROM tab2 cor0
----
-17
-31
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + cor0.col2 ) + col0 * col0 col0 FROM tab1 cor0
----
-45
4039
6304

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6982
SELECT ALL + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6982
SELECT ALL + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 7 * - 66 FROM tab1 AS cor0
----
-462
-462
-462

query I rowsort
SELECT DISTINCT + - cor0.col1 + cor0.col0 AS col2 FROM tab1 cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT - + col2 + col0 + - col0 AS col2 FROM tab1 cor0
----
-54
-57
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6986
SELECT CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6986
SELECT CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 + + cor0.col1 * - col0 AS col0 FROM tab2 AS cor0
----
-1381
-244
-4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-6988
SELECT DISTINCT cor0.col0 - + col2 DIV + col0 FROM tab0 AS cor0
----
23
35
89

skipif mysql # not compatible
query I rowsort label-6988
SELECT DISTINCT cor0.col0 - + col2 / + col0 FROM tab0 AS cor0
----
23
35
89

query I rowsort
SELECT ALL + col0 * col0 * col0 FROM tab1 cor0
----
262144
27
512000

query IIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
243 values hashing to 89e3b35a4a4f02d7b83645addb9dcdc3

query I rowsort
SELECT ALL ( tab2.col1 ) AS col2 FROM tab2
----
17
31
59

query I rowsort
SELECT ALL col1 + col0 * 91 FROM tab0 AS cor0
----
2270
3282
8190

query I rowsort
SELECT ALL - col0 + col2 AS col0 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT DISTINCT - - col0 AS col0 FROM tab1 AS cor0
----
3
64
80

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0, tab1, tab0 cor1
----
972 values hashing to 5e655b1287771868a8f868574a94d749

query I rowsort
SELECT cor0.col2 - 28 FROM tab1 AS cor0
----
26
29
68

query I rowsort
SELECT - col1 + + ( + 73 ) FROM tab0
----
-13
-18
-24

query I rowsort
SELECT - col2 + - col2 * 17 FROM tab0
----
-1476
-18
-594

query I rowsort
SELECT + - col1 * col2 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT + + col1 * - 54 - col2 FROM tab0 AS cor0
----
-4677
-4996
-5239

query I rowsort
SELECT - ( + 40 ) * - col0 FROM tab0 AS cor0
----
1400
3560
960

query I rowsort
SELECT ALL - ( - 41 ) FROM tab1, tab2 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 cor0, tab0 AS cor1
----
243 values hashing to 3a953203ced079e372111d61dbd9e35f

query I rowsort
SELECT 15 - tab0.col1 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 23890fb138101a5f68f77cf58d0af4bf

onlyif mysql # use DIV operator for integer division
query I rowsort label-7005
SELECT DISTINCT col2 DIV col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-7005
SELECT DISTINCT col2 / col2 FROM tab1
----
1

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0, tab2 cor0, tab2 AS cor1
----
972 values hashing to a698694a7dac245e42212ff0316bdf45

query I rowsort
SELECT ( + ( cor0.col2 ) ) FROM tab1, tab1 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7008
SELECT DISTINCT col0 / + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7008
SELECT DISTINCT col0 / + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7009
SELECT + col1 DIV + 43 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7009
SELECT + col1 / + 43 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT + tab0.col0 * - tab0.col0 FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT ALL 63 * + col2 FROM tab1
----
3402
3591
6048

query I rowsort
SELECT ALL - ( cor0.col0 ) * col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT col1 * - col2 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-7014
SELECT DISTINCT - + 43 DIV - col0 col1 FROM tab1 AS cor0
----
0
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7014
SELECT DISTINCT - + 43 / - col0 col1 FROM tab1 AS cor0
----
0
14

onlyif mysql # use DIV operator for integer division
query I rowsort label-7015
SELECT + 47 DIV col2 + cor0.col0 * ( + 14 ) + + col0 AS col0 FROM tab0 AS cor0
----
1335
361
572

skipif mysql # not compatible
query I rowsort label-7015
SELECT + 47 / col2 + cor0.col0 * ( + 14 ) + + col0 AS col0 FROM tab0 AS cor0
----
1335
361
572

query I rowsort
SELECT 19 * col2 - - col2 FROM tab0 AS cor0
----
1640
20
660

query I rowsort
SELECT + 40 * - col2 * - col0 AS col1 FROM tab1 AS cor0
----
145920
307200
6480

query I rowsort
SELECT 23 + - 55 + + col0 * + col0 FROM tab2 AS cor0
----
17
6052
6209

query I rowsort
SELECT cor0.col1 AS col0 FROM tab0, tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91

query I rowsort
SELECT DISTINCT - 91 AS col2 FROM tab0 AS cor0
----
-91

query I rowsort
SELECT DISTINCT - col0 * col1 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL + - 6 * - col2 AS col0 FROM tab0 AS cor0
----
198
492
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-7023
SELECT - ( + ( + col1 ) ) - ( ( + col0 ) ) DIV - 62 AS col2 FROM tab0 AS cor0
----
-86
-90
-97

skipif mysql # not compatible
query I rowsort label-7023
SELECT - ( + ( + col1 ) ) - ( ( + col0 ) ) / - 62 AS col2 FROM tab0 AS cor0
----
-86
-90
-97

query I rowsort
SELECT DISTINCT + + 33 + - col1 FROM tab1 AS cor0
----
20
23
7

query I rowsort
SELECT + cor0.col0 + + col2 * cor0.col2 + ( - col2 + - col0 ) * - col2 FROM tab0 AS cor0
----
20835
2994
72

query I rowsort
SELECT DISTINCT col0 * col1 FROM tab1
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 7 col2 FROM tab1
----
7
7
7

query I rowsort
SELECT - + 25 FROM tab1 AS cor0
----
-25
-25
-25

query I rowsort
SELECT ALL + col2 + + col0 AS col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT cor0.col2 + + cor0.col1 AS col2 FROM tab2 cor0
----
55
58
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT + col1 * col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT + 28 + col1 FROM tab2 AS cor0
----
45
59
87

query I rowsort
SELECT ALL + - col2 * col0 + + 63 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
-12905
-2240
-2304

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab0, tab0 AS cor1
----
972 values hashing to 8b4fcda7f1ca76bad7c7d728f54a51e0

query I rowsort
SELECT ALL + 54 FROM tab1 cor0
----
54
54
54

query I rowsort
SELECT DISTINCT col2 + cor0.col0 * + ( + cor0.col0 ) AS col2 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT + 69 AS col0 FROM tab0 AS cor0
----
69
69
69

query I rowsort
SELECT ALL + cor0.col1 AS col0 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT - col1 + + 7 FROM tab0 AS cor0
----
-79
-84
-90

query I rowsort
SELECT ALL - col1 * + col2 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL cor0.col1 + - col2 * 55 * col2 FROM tab2 AS cor0
----
-37121
-40064
-79403

query I rowsort
SELECT DISTINCT + col1 * + col1 FROM tab2 cor0
----
289
3481
961

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7044
SELECT cor0.col2 * CAST( - ( col1 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-7044
SELECT cor0.col2 * CAST ( - ( col1 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL - cor0.col2 + ( 30 ) FROM tab2 AS cor0
----
-8
3
4

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0, tab0 cor1, tab1, tab0 AS cor2
----
3645 values hashing to 9046c86f4ecdb3416770671e3173d46c

query I rowsort
SELECT ALL - col0 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT col2 * + 72 FROM tab0 AS cor0
----
2376
5904
72

query I rowsort
SELECT - + cor0.col2 * - 13 AS col0 FROM tab0 AS cor0
----
1066
13
429

query I rowsort
SELECT ALL cor0.col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT + cor0.col1 * col1 AS col1 FROM tab2 cor0
----
289
3481
961

query I rowsort
SELECT col1 + col2 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT - col2 + + col0 FROM tab2 cor0
----
-20
41
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7054
SELECT col0 * CAST( col2 AS SIGNED ) + - cor0.col2 * 36 AS col1 FROM tab2 AS cor0
----
-783
1092
1634

skipif mysql # not compatible
query I rowsort label-7054
SELECT col0 * CAST ( col2 AS INTEGER ) + - cor0.col2 * 36 AS col1 FROM tab2 AS cor0
----
-783
1092
1634

query I rowsort
SELECT - - col1 AS col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT col2 AS col1 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT + + col1 AS col0 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT + - col1 AS col2 FROM tab2 cor0
----
-17
-31
-59

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab2 AS cor1, tab2 AS cor2
----
972 values hashing to 617c9545df26d6d983e3967864e8e9e4

query IIIIIIIII rowsort
SELECT * FROM tab2, tab2 cor0, tab0 cor1
----
243 values hashing to b3323704f6873113d863f8e27386b356

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0, tab2 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to a5677c50b23f70287df35c2388a1c9bf

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab1
----
10
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7063
SELECT + - CAST( + 33 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-33
-33
-33

skipif mysql # not compatible
query I rowsort label-7063
SELECT + - CAST ( + 33 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-33
-33
-33

query IIIIIIIII rowsort
SELECT * FROM tab0, tab1 cor0, tab1 cor1
----
243 values hashing to 7e12d99d8ab63d9fd10e95cef9d78998

query I rowsort
SELECT - col0 + + col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT + cor0.col1 AS col1 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT DISTINCT - + col2 * - col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT DISTINCT col0 * col0 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT + col2 * - col2 AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ( cor0.col2 ) FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab2, tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT + ( + col1 ) + col2 FROM tab2
----
55
58
85

query I rowsort
SELECT cor0.col2 * cor0.col0 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to e1120e7b687b32270ef70393236e7341

query I rowsort
SELECT ALL + 41 * col2 AS col1 FROM tab2
----
1066
1107
1558

query I rowsort
SELECT DISTINCT 51 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
51

query I rowsort
SELECT - - col0 + ( ( - col1 ) ) AS col0 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT - - col1 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT + + col2 * + 30 FROM tab0 AS cor0
----
2460
30
990

query I rowsort
SELECT - + col2 FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT - 30 * - tab2.col0 AS col0 FROM tab2
----
210
2340
2370

query I rowsort
SELECT ALL 83 * col1 * ( - col1 ) AS col1 FROM tab1
----
-14027
-56108
-8300

query I rowsort
SELECT ALL - cor0.col1 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) NOT IN ( - col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) >= ( NULL )
----

query I rowsort
SELECT - col1 + cor0.col1 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + + cor0.col2 AS col0 FROM tab2 AS cor0
----
26
27
38

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2
----
54 values hashing to d8165ceb99ded93f34ad83c310a80ea7

query I rowsort
SELECT ALL col2 + tab2.col0 FROM tab2
----
104
117
34

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab2
----
54 values hashing to d8165ceb99ded93f34ad83c310a80ea7

query I rowsort
SELECT ALL col0 + col2 AS col1 FROM tab1
----
121
176
57

query I rowsort
SELECT DISTINCT cor0.col0 + - col1 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT ALL - col1 + + col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col2 * col0 + - col2 * col1 FROM tab0 AS cor0
----
-132
-14760
-3630

query I rowsort
SELECT DISTINCT col2 * col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT + col0 - col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 - col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col1 * - col2 + + col1 FROM tab2 cor0
----
1593
663
868

query I rowsort
SELECT DISTINCT - cor0.col0 - col0 AS col1 FROM tab2 AS cor0
----
-14
-156
-158

query I rowsort
SELECT DISTINCT + cor0.col0 + col2 AS col1 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL col1 * col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT col0 * - col2 + col2 FROM tab2 AS cor0
----
-162
-2002
-2964

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - - col1 col0 FROM tab0 cor0
----
172
182
194

query I rowsort
SELECT - - col0 * cor0.col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT - col2 * cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - cor0.col2 col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT cor0.col0 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT DISTINCT - col0 + col2 + + col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT cor0.col2 + cor0.col1 AS col0 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ALL cor0.col2 + col1 AS col2 FROM tab0 AS cor0
----
119
173
98

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( + col1 + + col1 )
----

query I rowsort
SELECT ALL cor0.col2 * col1 * + col0 AS col2 FROM tab0 AS cor0
----
3395
664118
68112

query IIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col1 * + col0 + + col0 AS col1 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT DISTINCT - cor0.col0 AS col2 FROM tab2, tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT + tab2.col1 - col0 FROM tab2
----
-19
-62
24

query I rowsort
SELECT + col1 * col0 + col0 - - col2 FROM tab0
----
2121
3431
8270

query I rowsort
SELECT ALL - col1 - + tab2.col0 FROM tab2
----
-137
-38
-96

query I rowsort
SELECT col0 * + tab0.col2 AS col2 FROM tab0
----
35
7298
792

query I rowsort
SELECT tab0.col0 * - tab0.col2 AS col2 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT + col1 * - col0 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT - col1 * + tab0.col2 AS col2 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT - col1 - col1 AS col1 FROM tab1
----
-20
-26
-52

query I rowsort
SELECT ALL + 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 col0 FROM tab2, tab2 cor0
----
7
78
79

query I rowsort
SELECT - cor0.col1 AS col0 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT col2 * + col0 * col1 FROM tab1 cor0
----
36480
4212
99840

query I rowsort
SELECT DISTINCT col2 + col2 * + col2 - col2 AS col0 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT cor0.col1 AS col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL col2 + + col1 - - col0 FROM tab1 AS cor0
----
131
189
83

query I rowsort
SELECT DISTINCT col0 * - col1 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT tab1.col2 AS col0 FROM tab1
----
54
57
96

query I rowsort
SELECT ALL tab2.col1 * col1 * col1 AS col1 FROM tab2
----
205379
29791
4913

query I rowsort
SELECT - - col1 * - col2 - - col1 * + cor0.col1 FROM tab2 AS cor0
----
-357
124
1947

query I rowsort
SELECT ALL - + col0 + col0 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT tab2.col0 AS col2 FROM tab2
----
7
78
79

query III rowsort
SELECT * FROM tab1 WHERE ( - col0 * col1 ) > ( NULL ) AND NOT + col0 * + col2 <= - tab1.col2
----

query I rowsort
SELECT col0 + col1 + + col2 FROM tab2
----
134
163
65

query I rowsort
SELECT 16 + - col1 * + ( + col0 ) FROM tab1 AS cor0
----
-1024
-62
-624

query I rowsort
SELECT - + col1 * + col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL + col2 AS col1 FROM tab0
----
1
33
82

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN col1 * - col0 / col1 AND ( tab1.col1 * - col0 / + col1 )
----

query I rowsort
SELECT col0 + - col0 + + tab2.col1 FROM tab2
----
17
31
59

query I rowsort
SELECT col0 * col0 + - col0 AS col2 FROM tab2 WHERE NOT ( col1 ) <> NULL
----

query I rowsort
SELECT - col2 * + col1 AS col2 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT col2 + col0 + + col2 FROM tab0
----
253
37
90

query I rowsort
SELECT - col2 AS col0 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col2 * col1 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT + col0 + tab2.col1 * col1 AS col0 FROM tab2
----
3559
368
968

onlyif mysql # use DIV operator for integer division
query I rowsort label-7150
SELECT tab2.col1 DIV col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7150
SELECT tab2.col1 / col1 FROM tab2
----
1
1
1

query I rowsort
SELECT col1 * + col1 AS col0 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT + col1 * - col1 AS col0 FROM tab1
----
-100
-169
-676

query I rowsort
SELECT ALL - col0 * col0 AS col1 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT 73 AS col1 FROM tab1
----
73
73
73

query I rowsort
SELECT DISTINCT - col0 * col0 FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT + 22 * col1 AS col2 FROM tab0
----
1892
2002
2134

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1, tab1 AS cor0, tab2
----
972 values hashing to 0fcd8d0934383dd58863be894b07a6ed

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col2 + col2 col1 FROM tab2
----
1482
702
756

query I rowsort
SELECT ALL - + cor0.col0 * col0 FROM tab1 cor0
----
-4096
-6400
-9

query I rowsort
SELECT ALL ( + col0 ) AS col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT - ( col0 ) * col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT + + col1 + cor0.col1 * + col2 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT ALL 4 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 730dff78e83112374961ea711f98ebaa

query I rowsort
SELECT DISTINCT - + cor0.col1 * - col0 - cor0.col1 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT - - 1 + - col0 FROM tab2 AS cor0
----
-6
-77
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * cor0.col2 col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT col1 * - col1 + col2 - - tab2.col2 AS col1 FROM tab2
----
-213
-3429
-907

query I rowsort
SELECT ALL col1 * col1 * col2 AS col0 FROM tab0
----
244068
679042
9409

query I rowsort
SELECT ALL col2 + + col1 AS col1 FROM tab1
----
109
67
80

query I rowsort
SELECT + tab1.col0 * + col2 * col1 + + col2 + - col0 FROM tab1
----
36473
4263
99856

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( col1 )
----

query I rowsort
SELECT DISTINCT col2 + - col0 FROM tab1
----
-7
16
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - tab0.col2 col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL col1 + col0 * col2 FROM tab0
----
132
7389
878

query I rowsort
SELECT ALL col1 * + col2 + col2 FROM tab1
----
1344
1458
627

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 col0 FROM tab0
----
1225
576
7921

query I rowsort
SELECT DISTINCT tab0.col1 + - col2 FROM tab0
----
53
9
96

query I rowsort
SELECT + col1 + col1 FROM tab2
----
118
34
62

query I rowsort
SELECT ALL tab1.col1 + + col0 * col1 * col0 AS col2 FROM tab1
----
260
40970
83213

query I rowsort
SELECT ALL col0 / + col1 AS col1 FROM tab2 WHERE NOT ( NULL ) IN ( col1 )
----

query I rowsort
SELECT col0 FROM tab2 cor0 WHERE NOT cor0.col1 * + col0 NOT IN ( col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-7183
SELECT cor0.col2 DIV col0 FROM tab1 AS cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-7183
SELECT cor0.col2 / col0 FROM tab1 AS cor0
----
0
1
18

query I rowsort
SELECT DISTINCT - cor0.col1 * - col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT tab0.col0 AS col0 FROM tab0 WHERE NOT - col0 + + col2 NOT BETWEEN ( + col2 / + col0 ) AND NULL
----

query I rowsort
SELECT col2 * + col1 * + col0 AS col1 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT col1 * - col2 AS col0 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT col1 * - col2 * col1 AS col2 FROM tab2
----
-10982
-25947
-90506

query I rowsort
SELECT ALL - col1 + - col2 FROM tab1
----
-109
-67
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - col2 col1 FROM tab2
----
-20
41
52

query I rowsort
SELECT tab0.col2 * col2 FROM tab0
----
1
1089
6724

query I rowsort
SELECT DISTINCT + tab2.col2 AS col1 FROM tab2
----
26
27
38

query I rowsort
SELECT ALL col1 + col1 * - col2 AS col1 FROM tab1
----
-1235
-1378
-560

query I rowsort
SELECT col2 + + col1 * + col1 FROM tab2
----
327
3507
988

query I rowsort
SELECT tab2.col0 - col1 AS col1 FROM tab2
----
-24
19
62

query I rowsort
SELECT ALL - col0 * tab1.col0 FROM tab1 WHERE NOT NULL <> NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 = ( NULL )
----

query I rowsort
SELECT ALL + col1 + + col0 FROM tab2 WHERE NULL NOT BETWEEN NULL AND - col0 * - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col1 * col1 col2 FROM tab1
----
157
265
730

query I rowsort
SELECT + tab2.col1 * col1 + + col1 FROM tab2
----
306
3540
992

query I rowsort
SELECT ALL - col0 AS col2 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT ALL + tab2.col0 + col0 AS col2 FROM tab2
----
14
156
158

query I rowsort
SELECT DISTINCT + tab2.col0 + col1 AS col2 FROM tab2
----
137
38
96

query I rowsort
SELECT + col2 * + col0 + - col0 AS col2 FROM tab0
----
0
7209
768

query I rowsort
SELECT ALL - ( col1 ) AS col0 FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT ALL - 1 + col0 FROM tab0 AS cor0
----
23
34
88

query I rowsort
SELECT - + col1 + col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + + col2 * col2 AS col2 FROM tab2 AS cor0
----
1444
676
729

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7209
SELECT col1 + CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
-21
33
4

skipif mysql # not compatible
query I rowsort label-7209
SELECT col1 + CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT + 61 AS col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55

query I rowsort
SELECT DISTINCT + 13 AS col0 FROM tab1
----
13

query I rowsort
SELECT DISTINCT 81 AS col0 FROM tab1
----
81

query I rowsort
SELECT + col1 * col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT 30 * col0 + + col1 * col1 FROM tab1 cor0
----
2020
2569
766

onlyif mysql # use DIV operator for integer division
query I rowsort label-7215
SELECT col0 DIV col0 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7215
SELECT col0 / col0 AS col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT - - col2 + + cor0.col2 * - col0 FROM tab0 cor0
----
-34
-7216
-759

query I rowsort
SELECT - col2 * 92 * col2 + - 63 FROM tab1 AS cor0
----
-268335
-298971
-847935

query I rowsort
SELECT - 43 FROM tab2 AS cor0
----
-43
-43
-43

onlyif mysql # use DIV operator for integer division
query I rowsort label-7219
SELECT - 52 + 77 DIV - col0 AS col0 FROM tab0 cor0
----
-52
-54
-55

skipif mysql # not compatible
query I rowsort label-7219
SELECT - 52 + 77 / - col0 AS col0 FROM tab0 cor0
----
-52
-54
-55

onlyif mysql # use DIV operator for integer division
query I rowsort label-7220
SELECT - col2 + 49 DIV col1 FROM tab2
----
-26
-26
-36

skipif mysql # not compatible
query I rowsort label-7220
SELECT - col2 + 49 / col1 FROM tab2
----
-26
-26
-36

query I rowsort
SELECT DISTINCT + col2 * col0 AS col2 FROM tab0
----
35
7298
792

query I rowsort
SELECT DISTINCT cor0.col2 AS col1 FROM tab2, tab0 AS cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 70 col1 FROM tab2
----
70
70
70

query I rowsort
SELECT DISTINCT + 80 AS col1 FROM tab1
----
80

query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
243 values hashing to 3e8bd9634a3f5947d8becd5f5799bb7f

query I rowsort
SELECT col0 * tab2.col2 AS col0 FROM tab2
----
189
2028
3002

query I rowsort
SELECT - 92 FROM tab0, tab1 cor0
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

query I rowsort
SELECT ALL col1 + + col2 * - col1 * - cor0.col1 FROM tab1 AS cor0
----
16237
36530
5710

query I rowsort
SELECT + col2 * - cor0.col1 * cor0.col1 FROM tab2 AS cor0
----
-10982
-25947
-90506

query I rowsort
SELECT DISTINCT + + 63 AS col1 FROM tab2 AS cor0
----
63

query I rowsort
SELECT DISTINCT ( - ( - col2 ) ) * col1 - ( + col0 * - col1 ) FROM tab1 AS cor0
----
1210
1482
2288

query I rowsort
SELECT ALL + + ( col2 ) * - col2 FROM tab2 AS cor0
----
-1444
-676
-729

onlyif mysql # use DIV operator for integer division
query I rowsort label-7233
SELECT col1 DIV - 5 + - col1 AS col1 FROM tab1 AS cor0
----
-12
-15
-31

skipif mysql # not compatible
query I rowsort label-7233
SELECT col1 / - 5 + - col1 AS col1 FROM tab1 AS cor0
----
-12
-15
-31

query I rowsort
SELECT DISTINCT - + col2 * - 38 AS col1 FROM tab2 cor0
----
1026
1444
988

query I rowsort
SELECT ALL 45 + - col1 * col2 AS col0 FROM tab0 AS cor0
----
-2793
-52
-7417

query I rowsort
SELECT ( + cor0.col0 ) FROM tab2 AS cor0
----
7
78
79

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0, tab0, tab0 cor1
----
972 values hashing to 8b4fcda7f1ca76bad7c7d728f54a51e0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7238
SELECT ALL + 4 + + col2 DIV + col1 FROM tab2 AS cor0
----
4
4
6

skipif mysql # not compatible
query I rowsort label-7238
SELECT ALL + 4 + + col2 / + col1 FROM tab2 AS cor0
----
4
4
6

query I rowsort
SELECT 5 * 82 + cor0.col1 FROM tab1 AS cor0
----
420
423
436

query I rowsort
SELECT ALL - ( - 14 ) FROM tab1
----
14
14
14

query I rowsort
SELECT ALL + 99 AS col2 FROM tab0
----
99
99
99

query I rowsort
SELECT DISTINCT - col1 + col0 FROM tab0 cor0
----
-2
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-7243
SELECT + ( + col1 ) DIV col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7243
SELECT + ( + col1 ) / col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - - 7 + + col2 * col0 AS col2 FROM tab2 AS cor0
----
196
2035
3009

query I rowsort
SELECT + col1 + - col2 * + col0 * - col2 AS col2 FROM tab1 cor0
----
207946
737293
8774

query I rowsort
SELECT ALL - col0 * col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL + col1 * - col0 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-7248
SELECT DISTINCT ( col0 ) DIV cor0.col2 AS col0 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-7248
SELECT DISTINCT ( col0 ) / cor0.col2 AS col0 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT + col2 * col2 + col2 FROM tab1 cor0
----
2970
3306
9312

query I rowsort
SELECT ALL + cor0.col0 + col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT DISTINCT col0 * + cor0.col0 + + cor0.col1 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT DISTINCT - col2 * - ( + col1 * tab1.col2 ) AS col2 FROM tab1
----
119808
32490
75816

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7253
SELECT DISTINCT + CAST( 34 AS SIGNED ) + col2 FROM tab2
----
60
61
72

skipif mysql # not compatible
query I rowsort label-7253
SELECT DISTINCT + CAST ( 34 AS INTEGER ) + col2 FROM tab2
----
60
61
72

query I rowsort
SELECT ALL - 0 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # use DIV operator for integer division
query I rowsort label-7255
SELECT + col0 DIV + ( + col1 ) - - tab1.col1 * col0 AS col2 FROM tab1
----
1046
646
78

skipif mysql # not compatible
query I rowsort label-7255
SELECT + col0 / + ( + col1 ) - - tab1.col1 * col0 AS col2 FROM tab1
----
1046
646
78

query I rowsort
SELECT 18 * col2 + - col2 * - col0 + + col0 * + col2 FROM tab0
----
16072
2178
88

query I rowsort
SELECT DISTINCT - ( col0 ) * tab2.col2 + - tab2.col0 * + col1 FROM tab2
----
-406
-4345
-6630

query I rowsort
SELECT + col2 * col0 + col2 AS col0 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT + + 92 * + col2 FROM tab2 AS cor0
----
2392
2484
3496

query I rowsort
SELECT cor0.col2 * + cor0.col2 + - col1 * col0 FROM tab1 cor0
----
2609
2838
8176

query I rowsort
SELECT + + 97 + - col1 AS col1 FROM tab2 AS cor0
----
38
66
80

query I rowsort
SELECT - + ( - col2 ) * col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT + 52 * cor0.col2 * col0 AS col0 FROM tab0 AS cor0
----
1820
379496
41184

query I rowsort
SELECT - 91 + col2 * col1 FROM tab2 AS cor0
----
1443
555
746

query I rowsort
SELECT col2 * - col1 AS col0 FROM tab1 cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-7266
SELECT col2 DIV col0 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7266
SELECT col2 / col0 FROM tab0
----
0
0
1

query I rowsort
SELECT ALL + tab1.col2 FROM tab1
----
54
57
96

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 cor0, tab2, tab0 AS cor1
----
972 values hashing to e4c748f267e8d2a0e6d563281e1fb975

query I rowsort
SELECT DISTINCT - tab0.col1 AS col1 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT col1 * col0 AS col2 FROM tab0
----
2064
3395
8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7271
SELECT - col1 / CAST( NULL AS SIGNED ) - col2 / - col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7271
SELECT - col1 / CAST ( NULL AS INTEGER ) - col2 / - col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col1 * col1 - - col1 * col2 AS col1 FROM tab2 AS cor0
----
1798
5015
935

query I rowsort
SELECT col0 AS col0 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT DISTINCT - col1 * + col2 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab0 AS cor0
----
24
35
89

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 ALL col1 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT + 16 + 15 FROM tab1, tab1 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query I rowsort
SELECT - 93 * - 40 + col0 AS col1 FROM tab0 AS cor0
----
3744
3755
3809

query IIIIII rowsort
SELECT * FROM tab1, tab2 cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT DISTINCT - 64 AS col1 FROM tab0, tab0 AS cor0
----
-64

onlyif mysql # use DIV operator for integer division
query I rowsort label-7282
SELECT ALL col2 DIV - col2 - col0 * col0 col1 FROM tab1 cor0
----
-10
-4097
-6401

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7282
SELECT ALL col2 / - col2 - col0 * col0 col1 FROM tab1 cor0
----
-10
-4097
-6401

query I rowsort
SELECT DISTINCT + col2 + col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT + 83 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query I rowsort
SELECT DISTINCT - col2 * col0 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT - 40 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

query I rowsort
SELECT - - ( col1 ) + + cor0.col0 * - col2 FROM tab1 cor0
----
-136
-3638
-7667

query I rowsort
SELECT DISTINCT + ( + 73 ) * col2 + col2 FROM tab0 AS cor0
----
2442
6068
74

query I rowsort
SELECT DISTINCT - + ( + 66 ) * cor0.col2 FROM tab0 AS cor0
----
-2178
-5412
-66

query I rowsort
SELECT + col0 * + col0 - - col2 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT + + 65 + - col2 * + col1 AS col1 FROM tab2 AS cor0
----
-1469
-581
-772

query I rowsort
SELECT ALL + 16 + cor0.col1 FROM tab0 cor0
----
102
107
113

query I rowsort
SELECT DISTINCT + + col2 * - 16 FROM tab0 AS cor0
----
-1312
-16
-528

query I rowsort
SELECT - 34 AS col2 FROM tab0
----
-34
-34
-34

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 cor0, tab0 cor1, tab2, tab2 AS cor2
----
3645 values hashing to f8426cd4d01ba96a72d7348574fbbc8e

query I rowsort
SELECT cor0.col0 FROM tab2, tab1 cor0, tab0, tab0 AS cor1
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7297
SELECT DISTINCT - CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-7297
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-7298
SELECT cor0.col0 DIV ( - col2 ) - cor0.col2 FROM tab0 AS cor0
----
-33
-36
-83

skipif mysql # not compatible
query I rowsort label-7298
SELECT cor0.col0 / ( - col2 ) - cor0.col2 FROM tab0 AS cor0
----
-33
-36
-83

query I rowsort
SELECT 38 FROM tab0, tab1 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT DISTINCT - col1 + + col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - - col0 * + 78 FROM tab1 AS cor0
----
234
4992
6240

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab1 AS cor1, tab1 cor2
----
972 values hashing to d222ba302bd1ddd1c8b2ddf1a4d0b07a

query I rowsort
SELECT 2 AS col0 FROM tab0 AS cor0
----
2
2
2

query I rowsort
SELECT + 7 AS col0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607

query I rowsort
SELECT DISTINCT - cor0.col1 FROM tab0, tab2, tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT + tab0.col2 + - col2 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - col1 + + col0 FROM tab1
----
-23
54
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-7308
SELECT col2 DIV col1 - 38 * - col0 FROM tab0
----
1330
3382
912

skipif mysql # not compatible
query I rowsort label-7308
SELECT col2 / col1 - 38 * - col0 FROM tab0
----
1330
3382
912

query I rowsort
SELECT col1 + col2 FROM tab2
----
55
58
85

query I rowsort
SELECT + + 5 AS col0 FROM tab1 AS cor0
----
5
5
5

query I rowsort
SELECT DISTINCT - + col0 + + cor0.col2 FROM tab2 AS cor0
----
-41
-52
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col1 + ( col2 ) col1 FROM tab2 cor0
----
1560
684
864

onlyif mysql # use DIV operator for integer division
query I rowsort label-7313
SELECT DISTINCT ( - col1 ) DIV - col2 + col1 AS col1 FROM tab0 AS cor0
----
194
88
92

skipif mysql # not compatible
query I rowsort label-7313
SELECT DISTINCT ( - col1 ) / - col2 + col1 AS col1 FROM tab0 AS cor0
----
194
88
92

query I rowsort
SELECT - col0 + col0 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 - col2 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7316
SELECT - CAST( + 34 AS SIGNED ) * tab2.col0 FROM tab2
----
-238
-2652
-2686

skipif mysql # not compatible
query I rowsort label-7316
SELECT - CAST ( + 34 AS INTEGER ) * tab2.col0 FROM tab2
----
-238
-2652
-2686

query I rowsort
SELECT 66 * col1 FROM tab2 AS cor0
----
1122
2046
3894

query I rowsort
SELECT DISTINCT - col2 - col1 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT - col1 * + col1 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT ALL col2 * + 50 + - 28 FROM tab1 AS cor0
----
2672
2822
4772

query I rowsort
SELECT DISTINCT col1 * col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL + col0 * + ( col2 ) + - col0 * col1 AS col2 FROM tab2 AS cor0
----
-2574
-28
1659

query I rowsort
SELECT ALL - - col0 AS col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT + col0 * 85 AS col1 FROM tab0 AS cor0
----
2040
2975
7565

query I rowsort
SELECT ALL + col2 + + ( + ( - col2 ) * 18 ) AS col2 FROM tab2 AS cor0
----
-442
-459
-646

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col1 col0 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT ALL - - col0 * - col1 - - col2 AS col1 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT col1 * col2 FROM tab0
----
2838
7462
97

query I rowsort
SELECT DISTINCT + ( tab0.col0 ) * col0 * col0 + - col0 FROM tab0
----
13800
42840
704880

query I rowsort
SELECT + 58 FROM tab2
----
58
58
58

query I rowsort
SELECT - + col0 + + ( + col2 ) FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT DISTINCT - + col2 * col2 + - col1 * - col0 AS col2 FROM tab2 AS cor0
----
-101
-512
3926

query I rowsort
SELECT DISTINCT cor0.col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
24
35
89

query I rowsort
SELECT ALL + col2 - 56 FROM tab1 cor0
----
-2
1
40

query I rowsort
SELECT - col0 + ( col2 ) * - col1 FROM tab2 cor0
----
-1612
-725
-844

query I rowsort
SELECT DISTINCT - col0 * cor0.col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT ALL cor0.col0 + col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT cor0.col0 * - ( 83 * + col0 ) FROM tab1 AS cor0
----
-339968
-531200
-747

onlyif mysql # use DIV operator for integer division
query I rowsort label-7339
SELECT DISTINCT + cor0.col0 DIV - ( col0 ) AS col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7339
SELECT DISTINCT + cor0.col0 / - ( col0 ) AS col0 FROM tab1 AS cor0
----
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-7340
SELECT - col2 DIV 62 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7340
SELECT - col2 / 62 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort
SELECT ALL col0 + - col0 + - CAST ( 65 AS REAL ) FROM tab0
----
-65
-65
-65

query I rowsort
SELECT DISTINCT - - col1 + + 1 AS col1 FROM tab1 cor0
----
11
14
27

query I rowsort
SELECT ALL col2 + col0 * + col1 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT ALL col0 * - col1 - - cor0.col0 * - col2 FROM tab2 AS cor0
----
-406
-4345
-6630

query I rowsort
SELECT col0 - + col2 FROM tab2
----
-20
41
52

query I rowsort
SELECT DISTINCT - col0 * col2 AS col0 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT col1 + + 39 * + tab0.col1 FROM tab0
----
3440
3640
3880

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-7349
SELECT + CAST( NULL AS SIGNED ) * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7349
SELECT + CAST ( NULL AS INTEGER ) * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 - - col2 col1 FROM tab2
----
55
58
85

query I rowsort
SELECT DISTINCT + 14 AS col0 FROM tab1, tab0 AS cor0
----
14

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-7353
SELECT DISTINCT - - col2 DIV + col1 AS col2 FROM tab2 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-7353
SELECT DISTINCT - - col2 / + col1 AS col2 FROM tab2 AS cor0
----
0
2

query I rowsort
SELECT DISTINCT + tab2.col2 * 29 AS col0 FROM tab2
----
1102
754
783

query I rowsort
SELECT ALL - col1 AS col0 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT ALL col1 - + 87 * - col0 AS col0 FROM tab0
----
2174
3142
7834

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0, tab2 AS cor0, tab1 cor1
----
972 values hashing to 9364ef7545b07c67767dceb70f02c643

query I rowsort
SELECT - ( col2 ) FROM tab1 AS cor0
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-7359
SELECT ALL + col2 DIV col0 + + 74 + col2 * col2 AS col2 FROM tab0 cor0
----
1164
6798
75

skipif mysql # not compatible
query I rowsort label-7359
SELECT ALL + col2 / col0 + + 74 + col2 * col2 AS col2 FROM tab0 cor0
----
1164
6798
75

query I rowsort
SELECT + 57 + + cor0.col0 AS col0 FROM tab1 cor0
----
121
137
60

query I rowsort
SELECT ALL + 57 AS col1 FROM tab1 AS cor0
----
57
57
57

query I rowsort
SELECT ALL + - 42 AS col1 FROM tab1 AS cor0
----
-42
-42
-42

query I rowsort
SELECT + - col2 * - col2 AS col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT + + col1 * - col0 + + 49 * col1 FROM tab1 AS cor0
----
-150
-403
1196

query I rowsort
SELECT ALL + col2 + col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL + col1 + + 78 * tab2.col2 FROM tab2
----
2087
2137
2981

query I rowsort
SELECT cor0.col1 FROM tab1, tab1 cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT tab0.col1 + 96 + col2 FROM tab0
----
194
215
269

query I rowsort
SELECT DISTINCT - 35 - + col2 AS col0 FROM tab2
----
-61
-62
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col0 FROM tab1
----
10
13
26

query I rowsort
SELECT DISTINCT + col2 * - cor0.col2 AS col2 FROM tab1 cor0
----
-2916
-3249
-9216

query I rowsort
SELECT + col2 + + col0 AS col1 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT + - col2 * - col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT + col1 * + col0 AS col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL - ( col2 ) + - 14 FROM tab0 AS cor0
----
-15
-47
-96

query I rowsort
SELECT - col2 * col2 + ( cor0.col1 + cor0.col0 ) FROM tab1 cor0
----
-2887
-3175
-9123

query I rowsort
SELECT DISTINCT - + 12 AS col1 FROM tab1 AS cor0
----
-12

query I rowsort
SELECT 12 * col1 + ( - col0 * + col2 ) AS col1 FROM tab0 AS cor0
----
-6206
1129
240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL + col0 * + cor0.col1 * - col1 FROM tab2 AS cor0
----
-22831
-271518
-6727

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT - cor0.col1 * - col0 AS col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL 30 * cor0.col2 AS col1 FROM tab0 AS cor0
----
2460
30
990

query I rowsort
SELECT ALL - col1 + + col2 FROM tab1 AS cor0
----
28
47
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7385
SELECT + col2 + cor0.col1 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7385
SELECT + col2 + cor0.col1 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * + col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL 62 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 87 * - col1 col1 FROM tab1 AS cor0
----
-1131
-2262
-870

query I rowsort
SELECT ALL + ( - 93 * - col0 ) FROM tab2
----
651
7254
7347

query I rowsort
SELECT - - col1 * col1 AS col0 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT + - col2 * + col1 * - col2 + - ( + col2 ) * col1 AS col0 FROM tab0 AS cor0
----
0
604422
90816

query I rowsort
SELECT ALL - + ( col1 ) AS col0 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT + 1 * ( col2 ) FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL col2 * + col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL + - ( col0 ) + + col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT - 54 FROM tab2 AS cor0
----
-54
-54
-54

query I rowsort
SELECT ALL - 35 * - col2 FROM tab0 cor0
----
1155
2870
35

query I rowsort
SELECT - - col2 AS col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT - - col0 * col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-7400
SELECT 22 DIV col0 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7400
SELECT 22 / col0 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - 3 * + 37 AS col2 FROM tab1
----
-111
-111
-111

query I rowsort
SELECT col1 + + col1 * + col0 AS col0 FROM tab0 cor0
----
2150
3492
8190

query I rowsort
SELECT ALL + + col2 AS col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT + - col1 AS col0 FROM tab2 cor0
----
-17
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-7405
SELECT + + col2 DIV + col0 + + col2 + + col0 FROM tab2 AS cor0
----
104
117
37

skipif mysql # not compatible
query I rowsort label-7405
SELECT + + col2 / + col0 + + col2 + + col0 FROM tab2 AS cor0
----
104
117
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * ( + col0 ) col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - col0 + + col1 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT - col0 - 50 FROM tab2 AS cor0
----
-128
-129
-57

query I rowsort
SELECT DISTINCT col2 * 99 FROM tab0 cor0
----
3267
8118
99

query I rowsort
SELECT ALL + cor0.col0 + 75 * - col0 AS col0 FROM tab0 AS cor0
----
-1776
-2590
-6586

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * cor0.col1 col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL + cor0.col0 AS col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT + + cor0.col0 FROM tab2 cor0
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 * - ( col1 ) col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT - + col0 + + 6 FROM tab0 AS cor0
----
-18
-29
-83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7416
SELECT ALL col0 + CAST( NULL AS SIGNED ) * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7416
SELECT ALL col0 + CAST ( NULL AS INTEGER ) * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col1 * - 82 - col0 FROM tab2 AS cor0
----
-1473
-2549
-4916

query I rowsort
SELECT DISTINCT - - col1 * - 38 AS col0 FROM tab1 AS cor0
----
-380
-494
-988

query I rowsort
SELECT DISTINCT + cor0.col2 + - 92 AS col1 FROM tab0 AS cor0
----
-10
-59
-91

query I rowsort
SELECT col0 + - col1 * col2 AS col2 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT ALL + col0 - col1 * col2 FROM tab2
----
-1456
-567
-830

query I rowsort
SELECT col0 * + col2 * - cor0.col0 + col2 AS col2 FROM tab2 AS cor0
----
-1296
-158158
-237120

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7423
SELECT ALL col2 + + CAST( NULL AS SIGNED ) * - col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7423
SELECT ALL col2 + + CAST ( NULL AS INTEGER ) * - col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 40 * + col2 + col0 FROM tab0 AS cor0
----
-1296
-3191
-5

query I rowsort
SELECT - 49 FROM tab0, tab1 AS cor0
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
243 values hashing to 74e36edda45186a5c45856859d8e21f0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7427
SELECT col2 DIV + col2 AS col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7427
SELECT col2 / + col2 AS col1 FROM tab1
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7428
SELECT col0 * + ( + col0 * CAST( NULL AS SIGNED ) ) + + ( col0 ) - CAST( + col0 AS SIGNED ) * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7428
SELECT col0 * + ( + col0 * CAST ( NULL AS INTEGER ) ) + + ( col0 ) - CAST ( + col0 AS INTEGER ) * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col2 + + 72 * - col2 + col0 AS col0 FROM tab0 AS cor0
----
-2385
-38
-5897

query I rowsort
SELECT + col2 * - 21 - - col0 FROM tab0 AS cor0
----
-1633
-669
14

query I rowsort
SELECT DISTINCT col1 * col1 - col1 AS col0 FROM tab1 cor0
----
156
650
90

query I rowsort
SELECT DISTINCT + - col1 AS col2 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT - col1 + - col0 * + col2 AS col0 FROM tab2 AS cor0
----
-2087
-220
-3019

query I rowsort
SELECT - + 31 + col0 AS col0 FROM tab1 cor0
----
-28
33
49

query I rowsort
SELECT col0 * col2 - + col2 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT ALL - col0 * col2 * col1 AS col0 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT - tab1.col2 * 12 AS col1 FROM tab1
----
-1152
-648
-684

query I rowsort
SELECT ALL + + 94 - cor0.col1 AS col2 FROM tab2 AS cor0
----
35
63
77

query I rowsort
SELECT DISTINCT 65 AS col0 FROM tab0, tab1 cor0
----
65

query I rowsort
SELECT col2 + + col1 * - col2 * col1 FROM tab2
----
-10944
-25920
-90480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col1 col2 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT col0 * col2 * col2 FROM tab1
----
207936
737280
8748

query I rowsort
SELECT DISTINCT + col2 * ( - tab1.col2 ) FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT + cor0.col1 * 81 + + cor0.col1 FROM tab1 cor0
----
1066
2132
820

query I rowsort
SELECT - + col2 * + col2 + col2 FROM tab2 AS cor0
----
-1406
-650
-702

query I rowsort
SELECT col1 * col2 + - col1 + col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT + tab2.col2 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT cor0.col2 * col2 * + col0 AS col0 FROM tab1 cor0
----
207936
737280
8748

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7449
SELECT col0 * col1 + - CAST( - col1 + - col0 AS SIGNED ) FROM tab1
----
107
1133
714

skipif mysql # not compatible
query I rowsort label-7449
SELECT col0 * col1 + - CAST ( - col1 + - col0 AS INTEGER ) FROM tab1
----
107
1133
714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 34 + col1 * + col1 col2 FROM tab1
----
134
203
710

query I rowsort
SELECT DISTINCT - cor0.col0 AS col1 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ALL 89 + - col0 AS col1 FROM tab0 cor0
----
0
54
65

query I rowsort
SELECT - 15 AS col0 FROM tab1 AS cor0
----
-15
-15
-15

query I rowsort
SELECT DISTINCT + - col1 * col2 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * - 61 + + cor0.col0 col2 FROM tab0 AS cor0
----
1488
2170
5518

onlyif mysql # use DIV operator for integer division
query I rowsort label-7456
SELECT DISTINCT col1 DIV 21 FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-7456
SELECT DISTINCT col1 / 21 FROM tab0
----
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-7457
SELECT ALL tab2.col0 DIV 28 FROM tab2, tab2 cor0
----
9 values hashing to dcf0bdb0a33a97c73a81c5b823899d40

skipif mysql # not compatible
query I rowsort label-7457
SELECT ALL tab2.col0 / 28 FROM tab2, tab2 cor0
----
9 values hashing to dcf0bdb0a33a97c73a81c5b823899d40

query I rowsort
SELECT ALL + 90 + + 2 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT - col1 * ( + tab1.col2 ) AS col0 FROM tab1
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-7460
SELECT - col2 + col0 DIV + col0 AS col0 FROM tab0 AS cor0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-7460
SELECT - col2 + col0 / + col0 AS col0 FROM tab0 AS cor0
----
-32
-81
0

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0, tab0 AS cor1, tab2 AS cor2
----
972 values hashing to 42e69ecdafb3c81046bc5cb4c98b1666

query I rowsort
SELECT DISTINCT + cor0.col2 * + col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - + col2 * col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT ( - col1 ) + 40 AS col0 FROM tab0 AS cor0
----
-46
-51
-57

query I rowsort
SELECT ALL col0 * col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT col0 * - col2 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL 26 FROM tab0 AS cor0
----
26
26
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7468
SELECT DISTINCT - + col1 * col2 * CAST( + col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-10982
-25947
-90506

skipif mysql # not compatible
query I rowsort label-7468
SELECT DISTINCT - + col1 * col2 * CAST ( + col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-10982
-25947
-90506

query I rowsort
SELECT DISTINCT col0 + tab0.col0 FROM tab0
----
178
48
70

query I rowsort
SELECT DISTINCT + col1 * - 50 * tab1.col1 + col2 FROM tab1
----
-33746
-4943
-8354

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7471
SELECT CAST( NULL AS SIGNED ) * col2 + tab1.col1 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7471
SELECT CAST ( NULL AS INTEGER ) * col2 + tab1.col1 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7472
SELECT CAST( - 23 AS SIGNED ) AS col1 FROM tab2
----
-23
-23
-23

skipif mysql # not compatible
query I rowsort label-7472
SELECT CAST ( - 23 AS INTEGER ) AS col1 FROM tab2
----
-23
-23
-23

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7473
SELECT CAST( ( col2 ) AS SIGNED ) * col2 FROM tab0
----
1
1089
6724

skipif mysql # not compatible
query I rowsort label-7473
SELECT CAST ( ( col2 ) AS INTEGER ) * col2 FROM tab0
----
1
1089
6724

query I rowsort
SELECT col2 * - 75 - col2 FROM tab1
----
-4104
-4332
-7296

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab0
----
86
91
97

query I rowsort
SELECT col0 * - col0 + tab2.col0 FROM tab2
----
-42
-6006
-6162

query I rowsort
SELECT DISTINCT ( - col1 ) AS col2 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT + ( + col0 ) - - col2 AS col1 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT - + cor0.col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL - 50 * col1 FROM tab0 AS cor0
----
-4300
-4550
-4850

query I rowsort
SELECT DISTINCT + - col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT col2 * col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT ALL - - col2 * - col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT cor0.col0 AS col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL - - col1 * cor0.col2 + col0 + 11 * + col0 FROM tab0 cor0
----
3126
517
8530

query I rowsort
SELECT col2 + col0 * 44 FROM tab2 AS cor0
----
335
3458
3514

query I rowsort
SELECT DISTINCT - col2 * tab0.col1 FROM tab0
----
-2838
-7462
-97

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab1, tab1 cor1
----
972 values hashing to a8481bfbfcb330825976c5896e54bc19

query I rowsort
SELECT - col0 + - ( - col1 ) - - cor0.col2 * 40 FROM tab1 AS cor0
----
2183
2226
3773

query I rowsort
SELECT cor0.col1 + + ( + 27 ) FROM tab0 AS cor0
----
113
118
124

query I rowsort
SELECT DISTINCT + 49 AS col0 FROM tab0, tab2 AS cor0
----
49

query I rowsort
SELECT ALL + col1 + col2 + 84 FROM tab0
----
182
203
257

query I rowsort
SELECT - 79 * col1 AS col2 FROM tab1 AS cor0
----
-1027
-2054
-790

query I rowsort
SELECT + col2 * + col2 FROM tab2 AS cor0
----
1444
676
729

onlyif mysql # use DIV operator for integer division
query I rowsort label-7496
SELECT DISTINCT - 56 DIV - col0 FROM tab2 AS cor0
----
0
8

skipif mysql # not compatible
query I rowsort label-7496
SELECT DISTINCT - 56 / - col0 FROM tab2 AS cor0
----
0
8

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 cor0, tab1 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to 803a5565701c4ced6bba69940782c17a

query I rowsort
SELECT ALL + 20 AS col1 FROM tab2 AS cor0
----
20
20
20

query I rowsort
SELECT DISTINCT col0 * + col2 + - col2 * - 82 FROM tab1
----
15552
4590
8322

query I rowsort
SELECT ALL tab0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT - col0 * + col1 FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-7502
SELECT ALL col2 + + col1 DIV col1 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-7502
SELECT ALL col2 + + col1 / col1 FROM tab1 AS cor0
----
55
58
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7503
SELECT + - CAST( NULL AS DECIMAL ) * cor0.col1 + col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7503
SELECT + - CAST ( NULL AS REAL ) * cor0.col1 + col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + ( col0 ) AS col2 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ALL + col2 + 27 AS col1 FROM tab1 AS cor0
----
123
81
84

query I rowsort
SELECT ( + col2 ) * - col1 + - 94 + col1 FROM tab1
----
-1329
-1472
-654

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
243 values hashing to b3323704f6873113d863f8e27386b356

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
972 values hashing to 7942394eb7766dfb9ea95b7805ff595d

query I rowsort
SELECT ALL + - 71 + col0 * + col2 FROM tab2 AS cor0
----
118
1957
2931

query I rowsort
SELECT col2 * + cor0.col0 + + col0 AS col2 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT DISTINCT - ( col2 ) FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT col0 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT - col0 * - col0 - + col0 AS col1 FROM tab1 AS cor0
----
4032
6
6320

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7514
SELECT ALL CAST( - 57 AS SIGNED ) * cor0.col0 + 84 AS col1 FROM tab0 AS cor0
----
-1284
-1911
-4989

skipif mysql # not compatible
query I rowsort label-7514
SELECT ALL CAST ( - 57 AS INTEGER ) * cor0.col0 + 84 AS col1 FROM tab0 AS cor0
----
-1284
-1911
-4989

query I rowsort
SELECT ALL + + 81 * col0 AS col2 FROM tab1 AS cor0
----
243
5184
6480

query I rowsort
SELECT DISTINCT ( - 46 ) * col0 + 48 AS col2 FROM tab2 AS cor0
----
-274
-3540
-3586

onlyif mysql # use DIV operator for integer division
query I rowsort label-7517
SELECT DISTINCT col0 * 52 DIV col2 FROM tab1 AS cor0
----
2
43
58

skipif mysql # not compatible
query I rowsort label-7517
SELECT DISTINCT col0 * 52 / col2 FROM tab1 AS cor0
----
2
43
58

query I rowsort
SELECT col2 + col2 FROM tab0 AS cor0
----
164
2
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-7519
SELECT 27 DIV col0 AS col1 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7519
SELECT 27 / col0 AS col1 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT + ( + col0 ) + - cor0.col1 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT DISTINCT - cor0.col0 * 39 AS col1 FROM tab1 AS cor0
----
-117
-2496
-3120

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7522
SELECT ALL - + CAST( - col0 AS SIGNED ) * - col0 AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241

skipif mysql # not compatible
query I rowsort label-7522
SELECT ALL - + CAST ( - col0 AS INTEGER ) * - col0 AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT col1 * col2 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT ALL + col0 * ( col1 ) + cor0.col0 * + col1 AS col1 FROM tab0 AS cor0
----
16198
4128
6790

onlyif mysql # use DIV operator for integer division
query I rowsort label-7525
SELECT - 12 DIV 39 col1 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7525
SELECT - 12 / 39 col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7526
SELECT DISTINCT + - col0 DIV + col0 + 13 FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-7526
SELECT DISTINCT + - col0 / + col0 + 13 FROM tab1 AS cor0
----
12

query I rowsort
SELECT - + 87 * - col1 AS col2 FROM tab0 AS cor0
----
7482
7917
8439

query I rowsort
SELECT + + 32 FROM tab1 AS cor0
----
32
32
32

query I rowsort
SELECT ALL + col1 * + col0 AS col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT - + col2 * col0 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-7531
SELECT 47 DIV col0 FROM tab1 AS cor0
----
0
0
15

skipif mysql # not compatible
query I rowsort label-7531
SELECT 47 / col0 FROM tab1 AS cor0
----
0
0
15

query I rowsort
SELECT ALL - col2 + - col0 * - col0 FROM tab0 cor0
----
1224
543
7839

query I rowsort
SELECT ALL - 46 AS col0 FROM tab2 AS cor0
----
-46
-46
-46

query I rowsort
SELECT ALL + cor0.col0 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT ALL + + col2 * + cor0.col2 FROM tab1 cor0
----
2916
3249
9216

query I rowsort
SELECT + tab2.col0 * col0 FROM tab2
----
49
6084
6241

query I rowsort
SELECT - col2 * + col2 AS col1 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT 52 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
52

query I rowsort
SELECT ALL - col2 * + col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL - cor0.col1 * 5 AS col2 FROM tab0 AS cor0
----
-430
-455
-485

query I rowsort
SELECT - col0 + - 69 * + ( col2 * + ( + col0 ) ) FROM tab2
----
-13048
-140010
-207217

query I rowsort
SELECT DISTINCT - col0 + col2 AS col2 FROM tab2
----
-41
-52
20

query I rowsort
SELECT DISTINCT cor0.col2 + + col1 * col1 FROM tab2 cor0
----
327
3507
988

query I rowsort
SELECT ALL col1 * col2 - - col2 AS col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT DISTINCT - + col1 * - 1 - 76 FROM tab0 AS cor0
----
10
15
21

query I rowsort
SELECT ALL + 48 AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 0ef571a8722ab7270aa7272c1174b88e

onlyif mysql # use DIV operator for integer division
query I rowsort label-7547
SELECT ALL + - col2 + col2 DIV 79 FROM tab0 cor0
----
-1
-33
-81

skipif mysql # not compatible
query I rowsort label-7547
SELECT ALL + - col2 + col2 / 79 FROM tab0 cor0
----
-1
-33
-81

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0, tab2 cor1, tab0 AS cor2
----
972 values hashing to 9a5ab925af18e11f7748f3b2e722ff3d

query I rowsort
SELECT ALL col2 * + col0 * 44 - - col0 FROM tab0
----
1575
321201
34872

query I rowsort
SELECT ALL col0 - ( 66 ) AS col2 FROM tab1
----
-2
-63
14

onlyif mysql # use DIV operator for integer division
query I rowsort label-7551
SELECT 47 DIV col2 + col0 AS col2 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-7551
SELECT 47 / col2 + col0 AS col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL - + col1 + col1 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + ( + ( - col0 ) ) * - col1 + cor0.col0 AS col2 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT + col1 * + col0 - - cor0.col2 AS col1 FROM tab0 cor0
----
2097
3396
8181

query I rowsort
SELECT - + ( col1 ) * cor0.col0 + col0 * + col2 FROM tab1 AS cor0
----
3008
6640
84

query I rowsort
SELECT + col1 * + col2 FROM tab0
----
2838
7462
97

query I rowsort
SELECT + tab1.col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

onlyif mysql # use DIV operator for integer division
query I rowsort label-7558
SELECT DISTINCT col0 DIV col0 + - col1 AS col1 FROM tab2
----
-16
-30
-58

skipif mysql # not compatible
query I rowsort label-7558
SELECT DISTINCT col0 / col0 + - col1 AS col1 FROM tab2
----
-16
-30
-58

query I rowsort
SELECT ALL col0 + - col0 + ( + col1 ) AS col2 FROM tab0
----
86
91
97

query I rowsort
SELECT + + cor0.col0 + col2 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT DISTINCT 45 * - tab0.col2 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
-1485
-3690
-45

skipif mysql # not compatible
query I rowsort
SELECT ALL col2 * + CAST ( + col2 AS REAL ) FROM tab0
----
1
1089
6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 87 col2 FROM tab1, tab1 cor0
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

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 DISTINCT - tab0.col0 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT - + col1 * + col1 + + col1 AS col2 FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT + 90 AS col0 FROM tab2 AS cor0
----
90
90
90

query I rowsort
SELECT col1 + cor0.col1 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT DISTINCT + 84 FROM tab2 AS cor0
----
84

query I rowsort
SELECT DISTINCT - 95 + - 92 * - col0 FROM tab1 AS cor0
----
181
5793
7265

query I rowsort
SELECT - 82 AS col1 FROM tab0
----
-82
-82
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 56 col1 FROM tab1 AS cor0
----
56
56
56

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7573
SELECT ALL + CAST( 3 AS SIGNED ) * col2 AS col1 FROM tab0 AS cor0
----
246
3
99

skipif mysql # not compatible
query I rowsort label-7573
SELECT ALL + CAST ( 3 AS INTEGER ) * col2 AS col1 FROM tab0 AS cor0
----
246
3
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col2 col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - cor0.col1 - col0 FROM tab0 cor0
----
-110
-132
-180

onlyif mysql # use DIV operator for integer division
query I rowsort label-7576
SELECT + + col2 - col0 DIV ( + col1 ) FROM tab2 cor0
----
25
27
34

skipif mysql # not compatible
query I rowsort label-7576
SELECT + + col2 - col0 / ( + col1 ) FROM tab2 cor0
----
25
27
34

query I rowsort
SELECT ALL 43 + + col2 FROM tab2 cor0
----
69
70
81

query I rowsort
SELECT DISTINCT - col0 + + col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT col1 * col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( col1 ) + - col0 * + col0 col0 FROM tab1 AS cor0
----
-35
-4106
-6413

query I rowsort
SELECT ALL + 25 * 43 FROM tab1
----
1075
1075
1075

query I rowsort
SELECT col2 - - cor0.col0 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT col2 + + cor0.col1 AS col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT - 55 - + col2 FROM tab0 AS cor0
----
-137
-56
-88

query I rowsort
SELECT + - ( - col1 ) AS col0 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT + col2 * + cor0.col0 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT - + col0 AS col1 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT + 92 * col0 AS col1 FROM tab0 AS cor0
----
2208
3220
8188

query I rowsort
SELECT ALL col1 * + col1 + - col0 FROM tab1 AS cor0
----
36
673
89

query I rowsort
SELECT ALL + 81 + col0 FROM tab0 AS cor0
----
105
116
170

query I rowsort
SELECT 17 * + col2 FROM tab2 AS cor0
----
442
459
646

query I rowsort
SELECT + col2 * + col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - col1 + - cor0.col2 AS col1 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT col2 + cor0.col0 * 81 AS col0 FROM tab2 cor0
----
594
6344
6437

onlyif mysql # use DIV operator for integer division
query I rowsort label-7595
SELECT DISTINCT - col0 DIV ( - col1 + + col2 ) AS col2 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-7595
SELECT DISTINCT - col0 / ( - col1 + + col2 ) AS col2 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT + - col2 * - col1 AS col1 FROM tab1 AS cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col0 * 68 + - col0 * + ( + col0 ) col1 FROM tab1 AS cor0
----
274432
428800
603

query I rowsort
SELECT + + col0 * - col2 + 17 AS col0 FROM tab1 AS cor0
----
-145
-3631
-7663

query I rowsort
SELECT + col0 * + col1 + col2 FROM tab2 cor0
----
1381
244
4628

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col2 col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT + col2 AS col2 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT ALL - col2 * + col1 + + col1 AS col1 FROM tab2 AS cor0
----
-1475
-629
-806

onlyif mysql # use DIV operator for integer division
query I rowsort label-7603
SELECT + col1 DIV tab1.col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7603
SELECT + col1 / tab1.col1 FROM tab1
----
1
1
1

query I rowsort
SELECT + tab2.col0 * tab2.col1 * - col2 AS col0 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT ALL - 97 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 12bd12d33f03250bee508c5641e140d5

query I rowsort
SELECT DISTINCT cor0.col2 * 85 - cor0.col2 AS col0 FROM tab1 cor0
----
4536
4788
8064

query I rowsort
SELECT ALL col1 * cor0.col2 FROM tab1 AS cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col1 ) col1 FROM tab2
----
17
31
59

query I rowsort
SELECT - - ( + col1 ) * + col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT + 62 * 13 AS col1 FROM tab2 AS cor0
----
806
806
806

query I rowsort
SELECT + + col0 + ( + col1 ) FROM tab0 AS cor0
----
110
132
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col0 col1 FROM tab2 AS cor0
----
-24
19
62

query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2, tab1 cor0
----
243 values hashing to 098e223d780e18b6582523fd6f55eec9

query I rowsort
SELECT ALL + 89 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1, tab1 cor0
----
243 values hashing to 7e12d99d8ab63d9fd10e95cef9d78998

query I rowsort
SELECT + 43 + - 4 AS col0 FROM tab0 AS cor0
----
39
39
39

query I rowsort
SELECT - ( - cor0.col1 ) AS col2 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT DISTINCT + col2 * + col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL + 93 * - ( col2 ) + 69 FROM tab2 AS cor0
----
-2349
-2442
-3465

query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 cor0, tab2 AS cor1
----
243 values hashing to 6506b295d3a7bcc5ed65956f5b4e38b0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col0 col0 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT + - cor0.col1 * col0 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT + - col2 * - 92 AS col1 FROM tab0 AS cor0
----
3036
7544
92

query I rowsort
SELECT col1 + cor0.col2 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
-158
-1969
-2985

onlyif mysql # use DIV operator for integer division
query I rowsort label-7625
SELECT - col2 DIV col1 + col2 + + col2 * ( col0 ) FROM tab2 AS cor0
----
2054
216
3038

skipif mysql # not compatible
query I rowsort label-7625
SELECT - col2 / col1 + col2 + + col2 * ( col0 ) FROM tab2 AS cor0
----
2054
216
3038

query I rowsort
SELECT DISTINCT + col0 + col0 * - col0 FROM tab2 AS cor0
----
-42
-6006
-6162

query I rowsort
SELECT + - col0 AS col2 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT - col2 + col1 FROM tab0 AS cor0
----
53
9
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7629
SELECT ALL - + col1 * CAST( + col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-7629
SELECT ALL - + col1 * CAST ( + col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-7630
SELECT col1 + + 61 DIV + col2 AS col0 FROM tab0 cor0
----
158
87
91

skipif mysql # not compatible
query I rowsort label-7630
SELECT col1 + + 61 / + col2 AS col0 FROM tab0 cor0
----
158
87
91

query I rowsort
SELECT DISTINCT col2 * 69 FROM tab0 AS cor0
----
2277
5658
69

query I rowsort
SELECT ALL 19 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 86c53e8567a17c8d91fc5aff119e0498

onlyif mysql # use DIV operator for integer division
query I rowsort label-7633
SELECT + cor0.col2 + - cor0.col1 DIV ( - col1 ) AS col0 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-7633
SELECT + cor0.col2 + - cor0.col1 / ( - col1 ) AS col0 FROM tab0 AS cor0
----
2
34
83

query I rowsort
SELECT ALL + col1 + + col0 * col0 * col0 FROM tab2 AS cor0
----
374
474611
493056

query I rowsort
SELECT col0 * ( + 19 ) + cor0.col1 * - col2 * col0 + cor0.col2 AS col1 FROM tab2 AS cor0
----
-118144
-49495
-5699

query I rowsort
SELECT DISTINCT + cor0.col1 AS col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT - - col1 * col2 AS col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT + cor0.col1 - - 94 FROM tab0 AS cor0
----
180
185
191

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7639
SELECT DISTINCT + col1 + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7639
SELECT DISTINCT + col1 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + cor0.col0 * col2 - cor0.col2 AS col0 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT ALL col2 * col1 + col0 AS col2 FROM tab0
----
132
2862
7551

query I rowsort
SELECT ALL + col2 + col2 * - 9 + col2 AS col1 FROM tab0
----
-231
-574
-7

query I rowsort
SELECT ALL - cor0.col0 + - ( col0 ) AS col1 FROM tab0 AS cor0
----
-178
-48
-70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7644
SELECT ALL + + 32 * col2 - - col1 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7644
SELECT ALL + + 32 * col2 - - col1 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 54 * col2 * + col0 FROM tab1 AS cor0
----
196992
414720
8748

query I rowsort
SELECT ( - col2 ) * 94 AS col0 FROM tab2 AS cor0
----
-2444
-2538
-3572

query I rowsort
SELECT 5 * col2 FROM tab1
----
270
285
480

query I rowsort
SELECT + 2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09

query I rowsort
SELECT - col2 * + col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT + col0 * 66 AS col2 FROM tab0
----
1584
2310
5874

query I rowsort
SELECT 51 + tab0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 381e4fd952dc61760af737f37f450cdf

query I rowsort
SELECT - ( col1 ) + col1 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7653
SELECT col2 DIV col2 AS col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7653
SELECT col2 / col2 AS col2 FROM tab1
----
1
1
1

query I rowsort
SELECT DISTINCT - col0 * col1 + col1 FROM tab1
----
-1027
-52
-630

query I rowsort
SELECT col0 + col2 - col1 FROM tab1
----
111
163
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 63 col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
63

query I rowsort
SELECT - col2 * + tab1.col2 + + col2 * + col1 AS col0 FROM tab1
----
-1512
-2679
-7968

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - col2 col1 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT ALL 74 AS col1 FROM tab1 AS cor0
----
74
74
74

query I rowsort
SELECT 65 AS col0 FROM tab0 AS cor0
----
65
65
65

query I rowsort
SELECT - tab2.col2 * col0 * - col2 FROM tab2
----
114076
5103
52728

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7662
SELECT DISTINCT + 57 * col0 + + CAST( - 84 AS SIGNED ) + - col0 AS col1 FROM tab0
----
1260
1876
4900

skipif mysql # not compatible
query I rowsort label-7662
SELECT DISTINCT + 57 * col0 + + CAST ( - 84 AS INTEGER ) + - col0 AS col1 FROM tab0
----
1260
1876
4900

query I rowsort
SELECT + + col2 + + col2 AS col2 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT DISTINCT - col1 * + tab0.col2 + ( + 1 ) AS col1 FROM tab0
----
-2837
-7461
-96

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( cor0.col1 AS REAL ) AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT ALL - 86 - + tab0.col1 AS col1 FROM tab0
----
-172
-177
-183

onlyif mysql # use DIV operator for integer division
query I rowsort label-7667
SELECT ALL col1 DIV col1 AS col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7667
SELECT ALL col1 / col1 AS col2 FROM tab1
----
1
1
1

query I rowsort
SELECT ALL + col2 + cor0.col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL + + cor0.col2 * col2 AS col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT DISTINCT ( - col2 ) FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT DISTINCT + col2 * col1 * - col2 FROM tab0 cor0
----
-611884
-93654
-97

query I rowsort
SELECT + - 83 * + col0 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
-53120
-6474
-86320

query I rowsort
SELECT ALL 76 FROM tab0 AS cor0
----
76
76
76

query I rowsort
SELECT DISTINCT col1 * - 7 AS col0 FROM tab2 AS cor0
----
-119
-217
-413

onlyif mysql # use DIV operator for integer division
query I rowsort label-7675
SELECT - + col0 + + ( - col1 ) DIV - col2 - col0 * + col1 AS col2 FROM tab1 AS cor0
----
-1120
-704
-81

skipif mysql # not compatible
query I rowsort label-7675
SELECT - + col0 + + ( - col1 ) / - col2 - col0 * + col1 AS col2 FROM tab1 AS cor0
----
-1120
-704
-81

query I rowsort
SELECT DISTINCT + col0 + 21 * 51 + + col1 AS col0 FROM tab1 AS cor0
----
1100
1145
1164

query I rowsort
SELECT ALL - col1 * ( + col1 ) FROM tab1
----
-100
-169
-676

query I rowsort
SELECT - cor0.col1 + col1 * col2 * + col2 + col1 * 18 FROM tab1 AS cor0
----
120029
32660
76258

query I rowsort
SELECT ALL + col0 + + col1 FROM tab1 AS cor0
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col2 ) col1 FROM tab0
----
1
33
82

query I rowsort
SELECT 74 FROM tab0 AS cor0
----
74
74
74

query I rowsort
SELECT DISTINCT col1 - col0 FROM tab0 AS cor0
----
2
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + cor0.col2 ) col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT ALL - - 36 AS col2 FROM tab1 AS cor0
----
36
36
36

query I rowsort
SELECT DISTINCT + 86 + - col1 * - col1 FROM tab1 AS cor0
----
186
255
762

query I rowsort
SELECT ALL 47 + cor0.col1 AS col2 FROM tab0 AS cor0
----
133
138
144

query I rowsort
SELECT 80 FROM tab0 AS cor0
----
80
80
80

query I rowsort
SELECT DISTINCT cor0.col1 FROM tab1, tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL - - 6 AS col2 FROM tab1 AS cor0
----
6
6
6

query I rowsort
SELECT DISTINCT - + 1 * 27 + col2 AS col2 FROM tab0 cor0
----
-26
55
6

query I rowsort
SELECT + 14 AS col2 FROM tab2 AS cor0
----
14
14
14

query I rowsort
SELECT ALL - + col2 + + cor0.col0 * - cor0.col1 * 21 FROM tab0 AS cor0
----
-170161
-43377
-71296

query I rowsort
SELECT + cor0.col2 AS col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT col2 * + col2 + + col0 AS col2 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT ALL + - 62 + col1 * + col2 AS col2 FROM tab1 AS cor0
----
1186
1342
508

query I rowsort
SELECT - col0 + col1 AS col2 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT ALL - + 33 + - col2 AS col0 FROM tab1 cor0
----
-129
-87
-90

query I rowsort
SELECT DISTINCT + - col2 - cor0.col0 AS col1 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT DISTINCT - 40 + + col1 * col0 * col0 FROM tab0 AS cor0
----
118785
49496
720771

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7700
SELECT DISTINCT col1 * cor0.col0 - + CAST( - 0 AS SIGNED ) * col1 AS col2 FROM tab2 AS cor0
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-7700
SELECT DISTINCT col1 * cor0.col0 - + CAST ( - 0 AS INTEGER ) * col1 AS col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL - cor0.col1 * col1 + col1 * - col1 AS col2 FROM tab1 AS cor0
----
-1352
-200
-338

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * cor0.col0 col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT - col0 * - cor0.col2 * - col0 FROM tab1 AS cor0
----
-233472
-486
-614400

query I rowsort
SELECT - col2 AS col1 FROM tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT ALL - - cor0.col0 + + col2 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT + col0 + - col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - + col2 + col0 AS col0 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT - + 42 FROM tab0 cor0
----
-42
-42
-42

query I rowsort
SELECT ALL - col1 + - col0 * - col0 FROM tab1 AS cor0
----
-17
4086
6387

query I rowsort
SELECT + tab1.col2 FROM tab1
----
54
57
96

query I rowsort
SELECT tab0.col2 + - col2 FROM tab0
----
0
0
0

query I rowsort
SELECT + + col1 * + col2 FROM tab1 cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-7713
SELECT DISTINCT ( + col0 ) DIV tab0.col2 AS col2 FROM tab0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-7713
SELECT DISTINCT ( + col0 ) / tab0.col2 AS col2 FROM tab0
----
0
1
35

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7714
SELECT CAST( + 39 AS SIGNED ) - tab1.col1 AS col0 FROM tab1
----
13
26
29

skipif mysql # not compatible
query I rowsort label-7714
SELECT CAST ( + 39 AS INTEGER ) - tab1.col1 AS col0 FROM tab1
----
13
26
29

onlyif mysql # use DIV operator for integer division
query I rowsort label-7715
SELECT + 94 DIV + ( + tab0.col1 ) + + col1 DIV - 42 FROM tab0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-7715
SELECT + 94 / + ( + tab0.col1 ) + + col1 / - 42 FROM tab0
----
-1
-1
-2

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 cor0, tab1 AS cor1, tab2 AS cor2
----
972 values hashing to bcf430f79386b43bc4077271fcd15cf0

query I rowsort
SELECT + col2 * + col1 * col2 AS col1 FROM tab0 cor0
----
611884
93654
97

query I rowsort
SELECT col0 * - col1 - col0 FROM tab0 cor0
----
-2088
-3430
-8188

query I rowsort
SELECT ALL cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2, tab2 AS cor2
----
243 values hashing to 291cdf20f55dc7bbcb55f561dc0b74d8

query I rowsort
SELECT 13 AS col2 FROM tab2
----
13
13
13

query I rowsort
SELECT DISTINCT - 41 + + 35 FROM tab1
----
-6

onlyif mysql # use DIV operator for integer division
query I rowsort label-7722
SELECT tab0.col2 * 17 + + tab0.col0 * - col1 + col2 DIV + col2 FROM tab0
----
-1502
-3377
-6704

skipif mysql # not compatible
query I rowsort label-7722
SELECT tab0.col2 * 17 + + tab0.col0 * - col1 + col2 / + col2 FROM tab0
----
-1502
-3377
-6704

query I rowsort
SELECT DISTINCT col0 * - tab1.col1 + tab1.col0 FROM tab1
----
-576
-75
-960

query I rowsort
SELECT DISTINCT + tab1.col0 FROM tab1, tab0 AS cor0
----
3
64
80

query I rowsort
SELECT - - col0 * + ( + col0 ) - - ( col0 ) AS col0 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT + 62 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7727
SELECT ALL - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7727
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2, tab1 AS cor0, tab2 AS cor1
----
972 values hashing to bcf430f79386b43bc4077271fcd15cf0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col1 * + col2 col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT - 37 + - tab2.col2 FROM tab2
----
-63
-64
-75

query I rowsort
SELECT 41 FROM tab0
----
41
41
41

query I rowsort
SELECT ALL - col0 * + col1 AS col2 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT col0 * + col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT ALL + + col0 * - 91 AS col2 FROM tab1 AS cor0
----
-273
-5824
-7280

query I rowsort
SELECT - - cor0.col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL + - col2 AS col1 FROM tab1 AS cor0
----
-54
-57
-96

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab2, tab1 cor1, tab0, tab1 AS cor2
----
3645 values hashing to b3ea820890445d59f3f7464a1521d42d

query I rowsort
SELECT - col1 + - cor0.col2 AS col0 FROM tab2 AS cor0
----
-55
-58
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-7739
SELECT + col1 + cor0.col0 DIV - 35 AS col1 FROM tab1 AS cor0
----
11
26
9

skipif mysql # not compatible
query I rowsort label-7739
SELECT + col1 + cor0.col0 / - 35 AS col1 FROM tab1 AS cor0
----
11
26
9

query I rowsort
SELECT - cor0.col1 * 23 AS col0 FROM tab0 AS cor0
----
-1978
-2093
-2231

query I rowsort
SELECT - + col0 AS col0 FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT ALL - cor0.col0 + col1 * cor0.col1 AS col0 FROM tab2 AS cor0
----
210
3403
954

query I rowsort
SELECT col1 * - col2 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL - col1 * 52 FROM tab1
----
-1352
-520
-676

query I rowsort
SELECT + col0 * + col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT + ( cor0.col1 ) * - col0 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT + 28 + - col0 FROM tab2 AS cor0
----
-50
-51
21

query I rowsort
SELECT - ( + 28 ) AS col2 FROM tab0 cor0
----
-28
-28
-28

query I rowsort
SELECT + - ( col1 ) * - col0 AS col1 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7750
SELECT ALL + + CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-7750
SELECT ALL + + CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL + ( - col1 ) * col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT + ( + ( col0 ) ) * col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT - col2 + 5 * col1 AS col1 FROM tab1 AS cor0
----
-31
-7
76

query I rowsort
SELECT - 5 + - col2 FROM tab2 AS cor0
----
-31
-32
-43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 32 col1 FROM tab1
----
1728
1824
3072

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7756
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + col1 AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7756
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL - - col0 + col1 * - col0 AS col0 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT - 24 * - col2 FROM tab1 AS cor0
----
1296
1368
2304

query I rowsort
SELECT ALL - col2 * ( cor0.col2 ) * col0 FROM tab1 AS cor0
----
-207936
-737280
-8748

query I rowsort
SELECT + 12 AS col1 FROM tab2 AS cor0
----
12
12
12

query I rowsort
SELECT + col0 AS col1 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT + col2 + + col0 * cor0.col1 AS col0 FROM tab0 AS cor0
----
2097
3396
8181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col0 col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT + + 2 FROM tab0 AS cor0
----
2
2
2

query I rowsort
SELECT + 69 * - col1 + + col1 FROM tab0 AS cor0
----
-5848
-6188
-6596

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * + col0 + + col1 col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT ( col1 ) FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT + + col1 * col2 + - 34 AS col1 FROM tab0 cor0
----
2804
63
7428

query I rowsort
SELECT + 57 FROM tab0 AS cor0
----
57
57
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-7770
SELECT col0 DIV - col1 + + col2 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-7770
SELECT col0 / - col1 + + col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT + col0 + + col1 FROM tab2 AS cor0
----
137
38
96

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0, tab1 AS cor1, tab2 AS cor2
----
972 values hashing to bcf430f79386b43bc4077271fcd15cf0

query I rowsort
SELECT DISTINCT - col2 * - cor0.col1 + - col2 AS col0 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT - - col2 * - col1 + - 89 FROM tab1 AS cor0
----
-1337
-1493
-659

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col0 FROM tab2
----
7
78
79

query I rowsort
SELECT cor0.col2 * - ( - col0 ) + cor0.col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT DISTINCT - 65 FROM tab1, tab0 AS cor0
----
-65

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7778
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7778
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col1 * + col2 + ( - col2 ) AS col1 FROM tab0
----
2805
7380
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7780
SELECT cor0.col2 / CAST( NULL AS SIGNED ) col1 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7780
SELECT cor0.col2 / CAST ( NULL AS INTEGER ) col1 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - col1 + col1 + - 48 FROM tab1
----
-48
-48
-48

query I rowsort
SELECT DISTINCT - cor0.col1 * col1 FROM tab2 AS cor0
----
-289
-3481
-961

onlyif mysql # use DIV operator for integer division
query I rowsort label-7783
SELECT - - col0 + + col1 DIV 51 - + col0 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7783
SELECT - - col0 + + col1 / 51 - + col0 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7784
SELECT DISTINCT - col2 + cor0.col1 DIV + col0 + + col0 DIV - col0 col0 FROM tab0 AS cor0
----
-31
-82
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7784
SELECT DISTINCT - col2 + cor0.col1 / + col0 + + col0 / - col0 col0 FROM tab0 AS cor0
----
-31
-82
0

query I rowsort
SELECT DISTINCT + + col2 * - col2 AS col1 FROM tab0 cor0
----
-1
-1089
-6724

query I rowsort
SELECT - + col1 - + cor0.col2 * - ( + 68 ) FROM tab2 AS cor0
----
1709
1805
2567

query I rowsort
SELECT ALL + + col1 * + col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT - col1 + + col0 * 32 FROM tab0
----
1023
2757
682

query I rowsort
SELECT DISTINCT + ( - col0 * + 19 ) + + col2 * col0 * + 68 FROM tab1
----
10959
246848
520720

query I rowsort
SELECT ALL col1 - + col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 53 * + col2 + col2 * - 98 AS col0 FROM tab1 AS cor0
----
-2430
-2565
-4320

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab1 cor0
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-7793
SELECT - + col2 * 13 + + 57 + + col2 DIV ( ( - cor0.col2 ) * + col2 ) FROM tab1 AS cor0
----
-1191
-645
-684

skipif mysql # not compatible
query I rowsort label-7793
SELECT - + col2 * 13 + + 57 + + col2 / ( ( - cor0.col2 ) * + col2 ) FROM tab1 AS cor0
----
-1191
-645
-684

query I rowsort
SELECT ALL - - col0 AS col2 FROM tab2 AS cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-7795
SELECT - - col0 DIV 61 AS col1 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7795
SELECT - - col0 / 61 AS col1 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT + col2 + - 28 AS col2 FROM tab2 AS cor0
----
-1
-2
10

query I rowsort
SELECT + cor0.col1 - col1 * 92 FROM tab2 cor0
----
-1547
-2821
-5369

query I rowsort
SELECT ALL - col2 + 16 AS col2 FROM tab0 cor0
----
-17
-66
15

query I rowsort
SELECT DISTINCT col0 + + cor0.col1 + + cor0.col1 * - col1 AS col0 FROM tab1 AS cor0
----
-26
-647
-76

query I rowsort
SELECT - cor0.col2 + col2 * - col1 AS col1 FROM tab0 AS cor0
----
-2871
-7544
-98

query I rowsort
SELECT + + col0 * + ( 87 ) + cor0.col0 FROM tab2 AS cor0
----
616
6864
6952

query I rowsort
SELECT DISTINCT - - cor0.col2 * col1 AS col2 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT ALL - + col2 * col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT - + cor0.col0 + - col2 FROM tab2 cor0
----
-104
-117
-34

query I rowsort
SELECT col0 * 2 + - col0 * col2 AS col1 FROM tab1 AS cor0
----
-156
-3520
-7520

query I rowsort
SELECT DISTINCT - + col0 + - ( + 47 ) FROM tab2 AS cor0
----
-125
-126
-54

query I rowsort
SELECT ALL + + col0 AS col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT col0 + col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL - col2 + cor0.col0 * + col2 * col2 AS col1 FROM tab2 AS cor0
----
114038
5076
52702

query I rowsort
SELECT DISTINCT - cor0.col1 AS col1 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT - - ( + col1 ) - - col1 AS col2 FROM tab1 AS cor0
----
20
26
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 68 col2 FROM tab1 AS cor0
----
-68
-68
-68

query I rowsort
SELECT ALL col0 * + col2 + + col0 * col0 AS col2 FROM tab1 AS cor0
----
14080
171
7744

query I rowsort
SELECT ALL - ( + cor0.col1 ) + + col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT ( + col2 ) AS col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT + - ( col2 ) AS col0 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT + + 60 FROM tab0 AS cor0
----
60
60
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col0 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL 67 + - 38 * + col0 FROM tab0 AS cor0
----
-1263
-3315
-845

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7820
SELECT DISTINCT - - CAST( col1 AS SIGNED ) - col1 * - 38 AS col1 FROM tab1 cor0
----
1014
390
507

skipif mysql # not compatible
query I rowsort label-7820
SELECT DISTINCT - - CAST ( col1 AS INTEGER ) - col1 * - 38 AS col1 FROM tab1 cor0
----
1014
390
507

query I rowsort
SELECT ALL col0 * - 27 * - col2 AS col1 FROM tab1 AS cor0
----
207360
4374
98496

query I rowsort
SELECT - 90 FROM tab0 AS cor0
----
-90
-90
-90

query I rowsort
SELECT DISTINCT cor0.col2 AS col1 FROM tab0 cor0
----
1
33
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7824
SELECT ALL ( + col2 ) + - col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7824
SELECT ALL ( + col2 ) + - col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 77 * cor0.col0 + col1 * - col2 FROM tab0 AS cor0
----
-14315
-2792
-4686

query I rowsort
SELECT DISTINCT 36 * col2 FROM tab0 AS cor0
----
1188
2952
36

query I rowsort
SELECT ALL + col1 * - col2 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL - 87 * col2 FROM tab1 AS cor0
----
-4698
-4959
-8352

query I rowsort
SELECT ALL + - 39 + + col1 * col1 FROM tab2 AS cor0
----
250
3442
922

query I rowsort
SELECT DISTINCT - + 0 * col1 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + + 74 AS col2 FROM tab2 AS cor0
----
74
74
74

query I rowsort
SELECT ALL - col1 * col1 + - 43 * - ( + col1 ) FROM tab1 AS cor0
----
330
390
442

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT DISTINCT - 30 FROM tab2, tab1 AS cor0, tab1, tab0 AS cor1
----
-30

query I rowsort
SELECT + tab2.col2 * - 94 - - col1 AS col1 FROM tab2
----
-2385
-2507
-3555

query I rowsort
SELECT ALL - 61 FROM tab1
----
-61
-61
-61

query I rowsort
SELECT - + col2 * cor0.col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT col0 + col0 AS col2 FROM tab0 cor0
----
178
48
70

query I rowsort
SELECT DISTINCT - col0 - + col1 FROM tab1 cor0
----
-29
-74
-93

query I rowsort
SELECT + - 6 * col2 AS col2 FROM tab0 AS cor0
----
-198
-492
-6

query I rowsort
SELECT ALL - - cor0.col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL 37 + col1 AS col1 FROM tab0 AS cor0
----
123
128
134

query I rowsort
SELECT DISTINCT - 59 + col2 AS col0 FROM tab0 AS cor0
----
-26
-58
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col2 col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT col0 * - col1 + 86 FROM tab1 AS cor0
----
-554
-954
8

query I rowsort
SELECT ALL - 82 + col1 - ( - col2 ) FROM tab1 AS cor0
----
-15
-2
27

query I rowsort
SELECT + 90 FROM tab0
----
90
90
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-7848
SELECT col2 + 58 DIV - col2 AS col1 FROM tab1
----
53
56
96

skipif mysql # not compatible
query I rowsort label-7848
SELECT col2 + 58 / - col2 AS col1 FROM tab1
----
53
56
96

query I rowsort
SELECT 36 FROM tab0
----
36
36
36

query I rowsort
SELECT - - 23 FROM tab0 AS cor0
----
23
23
23

query I rowsort
SELECT + + col1 * + col2 * 64 AS col0 FROM tab1 AS cor0
----
36480
79872
89856

query I rowsort
SELECT 73 * + tab0.col0 + + 26 * - tab0.col0 FROM tab0
----
1128
1645
4183

query I rowsort
SELECT + 77 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 66 col1 FROM tab0 AS cor0
----
66
66
66

query I rowsort
SELECT 48 FROM tab1 AS cor0
----
48
48
48

query I rowsort
SELECT ALL - 43 * + col0 + col1 AS col0 FROM tab0 AS cor0
----
-1408
-3736
-946

query I rowsort
SELECT ALL - + col2 AS col0 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT - col2 * - col2 + col2 + col2 FROM tab1
----
3024
3363
9408

query I rowsort
SELECT - col0 + col0 * col1 FROM tab0 AS cor0
----
2040
3360
8010

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7860
SELECT col1 + CAST( col1 AS SIGNED ) * - col0 AS col0 FROM tab0
----
-1978
-3298
-8008

skipif mysql # not compatible
query I rowsort label-7860
SELECT col1 + CAST ( col1 AS INTEGER ) * - col0 AS col0 FROM tab0
----
-1978
-3298
-8008

query I rowsort
SELECT + 96 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query IIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 AS cor2
----
972 values hashing to 9b91cf9fcc064ee1c13074a678b72ac7

query I rowsort
SELECT ALL 13 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT DISTINCT 58 FROM tab1, tab2 AS cor0
----
58

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7865
SELECT ALL - CAST( + col1 AS SIGNED ) FROM tab2
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-7865
SELECT ALL - CAST ( + col1 AS INTEGER ) FROM tab2
----
-17
-31
-59

query I rowsort
SELECT ALL ( col1 ) * col1 AS col1 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT - ( 0 ) + + col2 FROM tab2
----
26
27
38

query I rowsort
SELECT DISTINCT + + col2 * col0 AS col0 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-7869
SELECT ALL col0 + 80 DIV - col2 FROM tab0 AS cor0
----
-45
22
89

skipif mysql # not compatible
query I rowsort label-7869
SELECT ALL col0 + 80 / - col2 FROM tab0 AS cor0
----
-45
22
89

query I rowsort
SELECT ALL 3 - col1 AS col2 FROM tab0 AS cor0
----
-83
-88
-94

query I rowsort
SELECT - ( + col1 ) + + cor0.col2 FROM tab2 AS cor0
----
-33
-4
21

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7872
SELECT DISTINCT + CAST( col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-7872
SELECT DISTINCT + CAST ( col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + - ( + col2 ) + cor0.col0 AS col0 FROM tab0 AS cor0
----
-9
34
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-7874
SELECT DISTINCT - 40 + + col2 DIV col0 FROM tab2 AS cor0
----
-37
-40

skipif mysql # not compatible
query I rowsort label-7874
SELECT DISTINCT - 40 + + col2 / col0 FROM tab2 AS cor0
----
-37
-40

query I rowsort
SELECT ALL - col0 + col2 * col2 FROM tab1 AS cor0
----
2913
3185
9136

query I rowsort
SELECT 0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT 97 FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to f1d3319b9491f64621f2dbb0808458ca

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7878
SELECT CAST( 18 AS SIGNED ) AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

skipif mysql # not compatible
query I rowsort label-7878
SELECT CAST ( 18 AS INTEGER ) AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT + col2 * ( + 83 ) AS col2 FROM tab1 AS cor0
----
4482
4731
7968

query I rowsort
SELECT + col1 * + 33 AS col1 FROM tab2 AS cor0
----
1023
1947
561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col2 col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT - + col1 + - col0 FROM tab1 AS cor0
----
-29
-74
-93

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0, tab1 AS cor1, tab0, tab1 cor2
----
3645 values hashing to b3ea820890445d59f3f7464a1521d42d

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7884
SELECT cor1.col0 + CAST( NULL AS SIGNED ) / - cor1.col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-7884
SELECT cor1.col0 + CAST ( NULL AS INTEGER ) / - cor1.col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT + - 85 FROM tab2 AS cor0
----
-85
-85
-85

query I rowsort
SELECT + - col2 * col1 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + 19 col1 FROM tab1 AS cor0
----
29
32
45

query I rowsort
SELECT ALL - ( - cor0.col0 ) + col2 AS col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL + ( + cor0.col2 ) * col0 AS col2 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-7890
SELECT DISTINCT + 21 DIV + col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7890
SELECT DISTINCT + 21 / + col1 FROM tab0 AS cor0
----
0

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0, tab1, tab1 AS cor1
----
972 values hashing to 7864aada86bf5bf5e1621c7905de8dcd

query I rowsort
SELECT 65 FROM tab1 AS cor0
----
65
65
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col0 FROM tab2 AS cor0
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-7894
SELECT ALL 57 DIV col0 + - col2 AS col2 FROM tab0 AS cor0
----
-31
-82
0

skipif mysql # not compatible
query I rowsort label-7894
SELECT ALL 57 / col0 + - col2 AS col2 FROM tab0 AS cor0
----
-31
-82
0

query I rowsort
SELECT + 50 AS col2 FROM tab1 AS cor0
----
50
50
50

query I rowsort
SELECT - col0 + + col2 + col0 FROM tab2
----
26
27
38

query I rowsort
SELECT + cor0.col2 + + col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL tab0.col2 * - col2 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT col0 * - col0 * - col1 FROM tab2
----
106097
1519
358956

query I rowsort
SELECT DISTINCT + col2 * col0 AS col0 FROM tab2
----
189
2028
3002

query I rowsort
SELECT - col2 * col0 AS col2 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT col2 * - col1 AS col2 FROM tab0
----
-2838
-7462
-97

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( - col1 + col0 )
----

query I rowsort
SELECT - tab0.col2 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT + 2 FROM tab1 AS cor0
----
2
2
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 43 * col2 col0 FROM tab0 AS cor0
----
1419
3526
43

query I rowsort
SELECT ALL - tab2.col2 AS col0 FROM tab2
----
-26
-27
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col1 ) * - col0 col0 FROM tab1
----
-1040
-640
-78

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0, tab2 AS cor0, tab1 AS cor1
----
972 values hashing to 75a813ebd5ec5ec2e67a66d0593ff763

query I rowsort
SELECT - 9 * col2 FROM tab1
----
-486
-513
-864

query I rowsort
SELECT DISTINCT + 40 FROM tab1 AS cor0
----
40

query I rowsort
SELECT DISTINCT tab2.col1 AS col2 FROM tab2, tab1 AS cor0
----
17
31
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7913
SELECT CAST( NULL AS SIGNED ) FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-7913
SELECT CAST ( NULL AS INTEGER ) FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL col0 * - col0 * + 98 AS col1 FROM tab0
----
-120050
-56448
-776258

query I rowsort
SELECT ALL 21 + + cor1.col0 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to b8ef5c6ac30b9010ea8f4032d0d84c99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7916
SELECT + col1 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7916
SELECT + col1 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 col1 FROM tab1 AS cor0
----
-54
-57
-96

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0, tab1 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to 44545a6297aa29bb730ffb907c13bc58

query I rowsort
SELECT ALL + col0 * + ( col0 ) FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT DISTINCT + + col2 * 68 FROM tab2 AS cor0
----
1768
1836
2584

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0, tab1 AS cor1, tab2 AS cor2
----
972 values hashing to 01a5931cccc3dad8792a1bc6df09c614

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0, tab1 AS cor1, tab1 cor2
----
972 values hashing to 635619591835474e6aa6acdff4ab166c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7923
SELECT ALL - col1 + CAST( NULL AS SIGNED ) * cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7923
SELECT ALL - col1 + CAST ( NULL AS INTEGER ) * cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT tab0.col1 * - col0 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT - col0 * col0 AS col0 FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT - col1 * - col0 * - ( ( col0 ) * + col2 ) FROM tab2
----
-4031686
-41013
-9332856

query I rowsort
SELECT DISTINCT - col0 + 72 * - ( - col0 ) FROM tab0
----
1704
2485
6319

query I rowsort
SELECT DISTINCT + 79 AS col0 FROM tab1, tab0 AS cor0
----
79

query I rowsort
SELECT ALL tab0.col0 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab2
----
7
78
79

query I rowsort
SELECT - col0 * col1 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT col2 + 44 FROM tab0
----
126
45
77

query I rowsort
SELECT DISTINCT - col1 * col1 + col0 * - col2 + + col0 AS col0 FROM tab1
----
-3684
-7769
-835

query I rowsort
SELECT + ( col0 ) * - col2 AS col1 FROM tab0
----
-35
-7298
-792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7935
SELECT DISTINCT CAST( - 73 AS SIGNED ) AS col1 FROM tab1
----
-73

skipif mysql # not compatible
query I rowsort label-7935
SELECT DISTINCT CAST ( - 73 AS INTEGER ) AS col1 FROM tab1
----
-73

query I rowsort
SELECT ALL cor0.col2 FROM tab2, tab0, tab1 cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 2 col2 FROM tab1, tab2, tab1 cor0
----
27 values hashing to 20c9213316527d507e26425041e08387

onlyif mysql # use DIV operator for integer division
query I rowsort label-7938
SELECT DISTINCT - 51 DIV - 84 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7938
SELECT DISTINCT - 51 / - 84 FROM tab1
----
0

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0, tab0 AS cor0, tab2 AS cor1
----
972 values hashing to 1e9d01970ae508486ddabec967bb176c

query I rowsort
SELECT DISTINCT + col2 * - col1 FROM tab1 cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-7941
SELECT ALL - col0 DIV col0 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7941
SELECT ALL - col0 / col0 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + col0 * col2 + - col1 AS col1 FROM tab0 cor0
----
-62
706
7207

query I rowsort
SELECT + 47 AS col1 FROM tab0, tab2, tab2 AS cor0, tab1
----
81 values hashing to 5c7a6f591fb2a38893dafe56c4b9b97f

query I rowsort
SELECT ALL + ( col2 ) FROM tab0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-7945
SELECT 53 DIV - col0 AS col1 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-7945
SELECT 53 / - col0 AS col1 FROM tab0
----
-1
-2
0

query I rowsort
SELECT tab0.col2 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 col2 FROM tab2 AS cor0
----
72
72
72

query I rowsort
SELECT + 82 + + col2 + - 43 * 62 AS col1 FROM tab0 AS cor0
----
-2502
-2551
-2583

onlyif mysql # use DIV operator for integer division
query I rowsort label-7949
SELECT col0 + col2 DIV col2 FROM tab0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-7949
SELECT col0 + col2 / col2 FROM tab0
----
25
36
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-7950
SELECT DISTINCT + col0 DIV + col1 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7950
SELECT DISTINCT + col0 / + col1 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT col1 * col1 + + col0 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT + - 88 + col0 - - 42 FROM tab2 AS cor0
----
-39
32
33

query I rowsort
SELECT DISTINCT 41 FROM tab1 AS cor0
----
41

query I rowsort
SELECT + col2 + + col1 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT ALL 19 AS col0 FROM tab2 AS cor0
----
19
19
19

query I rowsort
SELECT ALL + ( col0 ) * + 26 AS col2 FROM tab0 AS cor0
----
2314
624
910

query I rowsort
SELECT cor0.col0 * cor0.col1 + ( 15 ) * col1 FROM tab2 AS cor0
----
1598
5487
682

query I rowsort
SELECT - col2 + - cor0.col2 * - col2 - 54 FROM tab1 AS cor0
----
2808
3138
9066

query I rowsort
SELECT - + 8 + + col0 + + col2 * - cor0.col1 FROM tab0 AS cor0
----
-2822
-70
-7381

query I rowsort
SELECT col0 * + cor0.col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT + col0 * - cor0.col0 + - 89 AS col0 FROM tab0 AS cor0
----
-1314
-665
-8010

query I rowsort
SELECT DISTINCT - 26 * + col2 FROM tab0 AS cor0
----
-2132
-26
-858

query I rowsort
SELECT ALL - - 63 FROM tab1 AS cor0
----
63
63
63

query I rowsort
SELECT - + 77 * - col1 FROM tab2 AS cor0
----
1309
2387
4543

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 + + col1 * col1 col1 FROM tab1 AS cor0
----
180
249
756

query I rowsort
SELECT DISTINCT - - ( - col2 ) + col2 * - col0 AS col2 FROM tab2 AS cor0
----
-2054
-216
-3040

query I rowsort
SELECT DISTINCT - col1 * - 81 AS col0 FROM tab1
----
1053
2106
810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 3 col1 FROM tab2
----
21
234
237

query I rowsort
SELECT DISTINCT col0 * 4 AS col0 FROM tab0
----
140
356
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-7970
SELECT DISTINCT + ( col1 ) * col1 DIV + 23 AS col1 FROM tab1 cor0
----
29
4
7

skipif mysql # not compatible
query I rowsort label-7970
SELECT DISTINCT + ( col1 ) * col1 / + 23 AS col1 FROM tab1 cor0
----
29
4
7

query I rowsort
SELECT DISTINCT - 25 AS col1 FROM tab0 AS cor0
----
-25

query I rowsort
SELECT ALL ( + 97 ) * col1 + + 44 * cor0.col2 AS col2 FROM tab2 AS cor0
----
3321
4195
6867

query I rowsort
SELECT + - 8 + + 26 AS col1 FROM tab0 AS cor0
----
18
18
18

query I rowsort
SELECT DISTINCT - + ( cor0.col2 ) AS col0 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT - cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

query I rowsort
SELECT - tab0.col2 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 col0 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT + cor0.col2 * + 69 AS col0 FROM tab2 AS cor0
----
1794
1863
2622

query I rowsort
SELECT ALL + - col2 + col0 * col0 AS col0 FROM tab0 AS cor0
----
1224
543
7839

query I rowsort
SELECT 15 * 28 FROM tab2 AS cor0
----
420
420
420

onlyif mysql # use DIV operator for integer division
query I rowsort label-7981
SELECT DISTINCT 2 DIV ( + col1 + col2 * - col0 ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7981
SELECT DISTINCT 2 / ( + col1 + col2 * - col0 ) AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7982
SELECT - - CAST( - cor0.col1 AS SIGNED ) * col1 * - ( col0 ) AS col2 FROM tab1 AS cor0
----
13520
2028
6400

skipif mysql # not compatible
query I rowsort label-7982
SELECT - - CAST ( - cor0.col1 AS INTEGER ) * col1 * - ( col0 ) AS col2 FROM tab1 AS cor0
----
13520
2028
6400

query I rowsort
SELECT ALL 8 AS col0 FROM tab0 AS cor0
----
8
8
8

query I rowsort
SELECT DISTINCT + col1 * + col0 AS col2 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT - + col2 - col2 AS col0 FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT + ( ( - cor0.col0 ) ) * + col1 + - col0 * col0 AS col1 FROM tab2 AS cor0
----
-10686
-266
-7584

query I rowsort
SELECT + tab1.col1 + cor0.col1 FROM tab1, tab0 AS cor0, tab1 cor1
----
27 values hashing to c5258bcf385d823888d8f81f12b6caca

query I rowsort
SELECT + ( + col0 ) * 59 FROM tab0 AS cor0
----
1416
2065
5251

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 43 * col2 col0 FROM tab1 AS cor0
----
2322
2451
4128

query I rowsort
SELECT DISTINCT + ( col2 ) * + col2 AS col0 FROM tab1 cor0
----
2916
3249
9216

query I rowsort
SELECT DISTINCT - col0 + - col0 * col0 AS col0 FROM tab1 AS cor0
----
-12
-4160
-6480

query I rowsort
SELECT cor0.col1 + - col1 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - - col2 * col0 * - ( + col0 * + cor0.col2 ) + + col0 AS col2 FROM tab1 AS cor0
----
-13307840
-26241
-58982320

onlyif mysql # use DIV operator for integer division
query I rowsort label-7994
SELECT - col1 * cor0.col1 + col0 DIV + col0 AS col2 FROM tab1 cor0
----
-168
-675
-99

skipif mysql # not compatible
query I rowsort label-7994
SELECT - col1 * cor0.col1 + col0 / + col0 AS col2 FROM tab1 cor0
----
-168
-675
-99

onlyif mysql # use DIV operator for integer division
query I rowsort label-7995
SELECT ALL + cor0.col1 + + col2 DIV 94 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-7995
SELECT ALL + cor0.col1 + + col2 / 94 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT + + 83 AS col0 FROM tab1 AS cor0
----
83
83
83

query I rowsort
SELECT DISTINCT - col2 + - cor0.col2 AS col0 FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT - col2 * + cor0.col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT - col1 * + col0 * col0 FROM tab2 AS cor0
----
-106097
-1519
-358956

query I rowsort
SELECT ALL - col2 + col1 AS col0 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT - cor0.col0 * col1 + - 70 * col0 + - col2 * - col0 AS col2 FROM tab0 AS cor0
----
-2952
-5810
-7031

query I rowsort
SELECT + col2 * ( col0 ) AS col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT + + cor0.col1 + 31 * cor0.col1 FROM tab1 AS cor0
----
320
416
832

query I rowsort
SELECT ALL + + col2 + - 86 FROM tab0 cor0
----
-4
-53
-85

query I rowsort
SELECT + cor0.col2 * ( 96 ) FROM tab2 AS cor0
----
2496
2592
3648

query I rowsort
SELECT DISTINCT cor0.col0 FROM tab0, tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT 50 AS col2 FROM tab2, tab0 AS cor0
----
50

query I rowsort
SELECT ALL col1 + - col0 AS col1 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT DISTINCT - col0 * 20 + - 34 FROM tab1 AS cor0
----
-1314
-1634
-94

query I rowsort
SELECT - col0 * 94 AS col2 FROM tab2 AS cor0
----
-658
-7332
-7426

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8011
SELECT ALL CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8011
SELECT ALL CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT 73 AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
73

query I rowsort
SELECT DISTINCT col1 + + 43 AS col1 FROM tab1 AS cor0
----
53
56
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab1 AS cor0
----
54
57
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8015
SELECT ALL 56 + cor1.col0 * + CAST( NULL AS SIGNED ) FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-8015
SELECT ALL 56 + cor1.col0 * + CAST ( NULL AS INTEGER ) FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT cor0.col0 + + col0 * col1 AS col0 FROM tab2 AS cor0
----
1422
224
4680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8017
SELECT - cor0.col0 + CAST( NULL AS SIGNED ) * cor0.col0 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8017
SELECT - cor0.col0 + CAST ( NULL AS INTEGER ) * cor0.col0 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 - - 54 * + 84 FROM tab1 AS cor0
----
4539
4600
4616

query I rowsort
SELECT DISTINCT + col0 + 22 FROM tab0 AS cor0
----
111
46
57

query I rowsort
SELECT ALL + col1 + cor0.col1 FROM tab1 AS cor0
----
20
26
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8021
SELECT DISTINCT - + col0 * - CAST( + col1 AS SIGNED ) - col1 AS col2 FROM tab1 AS cor0
----
1027
52
630

skipif mysql # not compatible
query I rowsort label-8021
SELECT DISTINCT - + col0 * - CAST ( + col1 AS INTEGER ) - col1 AS col2 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT - col0 + ( col1 ) FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT ALL + cor0.col2 + col0 AS col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT tab2.col0 AS col1 FROM tab2
----
7
78
79

query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab1 cor1
----
54 values hashing to 341cdc053c309cf3abe57fa060ecf96e

onlyif mysql # use DIV operator for integer division
query I rowsort label-8026
SELECT col0 DIV 29 + col1 * + col0 col2 FROM tab2 AS cor0
----
1345
217
4604

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8026
SELECT col0 / 29 + col1 * + col0 col2 FROM tab2 AS cor0
----
1345
217
4604

query I rowsort
SELECT ALL col1 * col1 + 65 AS col0 FROM tab1 cor0
----
165
234
741

query I rowsort
SELECT + col2 * col2 + - col0 FROM tab1 AS cor0
----
2913
3185
9136

query I rowsort
SELECT DISTINCT + col2 + ( - 72 ) AS col0 FROM tab0 AS cor0
----
-39
-71
10

query I rowsort
SELECT ALL col1 - col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + - col1 + col2 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT DISTINCT col1 + + 73 FROM tab0 cor0
----
159
164
170

query I rowsort
SELECT + col0 + + cor0.col0 * - 5 FROM tab0 AS cor0
----
-140
-356
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * cor0.col0 col1 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-8035
SELECT ALL 68 DIV + 9 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

skipif mysql # not compatible
query I rowsort label-8035
SELECT ALL 68 / + 9 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT ALL 96 * + col0 AS col0 FROM tab0 AS cor0
----
2304
3360
8544

query I rowsort
SELECT ALL 90 FROM tab2 AS cor0
----
90
90
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + col0 col2 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT - - col1 * col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT + - ( col0 ) FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL col2 * col1 AS col1 FROM tab2 AS cor0
----
1534
646
837

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
972 values hashing to 0210050fb1701e2797a9b17e1ebac91e

query I rowsort
SELECT - col1 * col1 + cor0.col1 + + 16 * col2 FROM tab0 AS cor0
----
-6782
-6878
-9296

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8045
SELECT - CAST( NULL AS SIGNED ) + 61 + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8045
SELECT - CAST ( NULL AS INTEGER ) + 61 + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( tab1.col0 ) * + col2 - - col1 FROM tab1
----
188
3658
7693

query I rowsort
SELECT col0 + col2 * + col2 + col1 * 72 FROM tab0
----
13365
7020
7305

onlyif mysql # use DIV operator for integer division
query I rowsort label-8048
SELECT + col1 DIV + tab0.col1 + 7 FROM tab0
----
8
8
8

skipif mysql # not compatible
query I rowsort label-8048
SELECT + col1 / + tab0.col1 + 7 FROM tab0
----
8
8
8

query I rowsort
SELECT DISTINCT + col0 * col0 * - 99 + tab2.col2 FROM tab2
----
-4824
-602290
-617821

onlyif mysql # use DIV operator for integer division
query I rowsort label-8050
SELECT ALL + col0 + col2 DIV + col1 AS col1 FROM tab2
----
7
78
81

skipif mysql # not compatible
query I rowsort label-8050
SELECT ALL + col0 + col2 / + col1 AS col1 FROM tab2
----
7
78
81

query I rowsort
SELECT ALL col2 + col2 AS col1 FROM tab0
----
164
2
66

query I rowsort
SELECT 73 + tab0.col0 * - 40 FROM tab0
----
-1327
-3487
-887

query I rowsort
SELECT + col1 * + col0 AS col0 FROM tab2
----
1343
217
4602

query I rowsort
SELECT 34 + tab0.col0 FROM tab0
----
123
58
69

query I rowsort
SELECT - 31 FROM tab2
----
-31
-31
-31

query I rowsort
SELECT ALL - - col2 * + col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ( - col2 ) AS col1 FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT ALL 43 FROM tab2
----
43
43
43

query I rowsort
SELECT DISTINCT - cor0.col1 AS col2 FROM tab2, tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT ( col1 ) AS col1 FROM tab0
----
86
91
97

query I rowsort
SELECT 50 * + col2 AS col1 FROM tab2
----
1300
1350
1900

query I rowsort
SELECT ALL + ( + ( - col0 ) ) + col2 * + col2 FROM tab1 AS cor0
----
2913
3185
9136

query I rowsort
SELECT + 95 * 36 AS col0 FROM tab2 AS cor0
----
3420
3420
3420

query I rowsort
SELECT ALL - 91 AS col0 FROM tab1 AS cor0
----
-91
-91
-91

query I rowsort
SELECT 95 * 81 FROM tab1 AS cor0
----
7695
7695
7695

query I rowsort
SELECT + col1 * col2 AS col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT - + col0 * - col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT + col2 * + col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT - ( - col2 ) AS col2 FROM tab2
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-8070
SELECT ALL + - col1 DIV - col0 FROM tab2 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-8070
SELECT ALL + - col1 / - col0 FROM tab2 AS cor0
----
0
0
4

query I rowsort
SELECT + cor0.col0 * + 39 * cor0.col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 7d377acdfb5a0bcf55659a22a166dd84

query I rowsort
SELECT DISTINCT cor0.col0 + ( - col1 ) FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT cor0.col1 + + cor0.col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
109
67
80

query I rowsort
SELECT + - col1 AS col0 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT 16 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query I rowsort
SELECT - col0 * col1 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT + col0 * + 75 FROM tab1
----
225
4800
6000

query I rowsort
SELECT ALL - 79 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c9cc9510604e093bd158ca33928acaed

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 col0 FROM tab1 AS cor0
----
3
64
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8080
SELECT - col2 - CAST( col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-52
-54
-76

skipif mysql # not compatible
query I rowsort label-8080
SELECT - col2 - CAST ( col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-52
-54
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col1 - 59 * + col2 col1 FROM tab1 AS cor0
----
-1782
-2793
-4416

query I rowsort
SELECT - col1 * + 48 FROM tab0 AS cor0
----
-4128
-4368
-4656

query I rowsort
SELECT - ( + 40 ) AS col2 FROM tab0 cor0
----
-40
-40
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + col0 col1 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT + - 95 FROM tab0 cor0
----
-95
-95
-95

query I rowsort
SELECT + + 49 + col1 FROM tab1 AS cor0
----
59
62
75

query I rowsort
SELECT col1 + - cor0.col2 * cor0.col1 FROM tab2 AS cor0
----
-1475
-629
-806

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8088
SELECT + tab1.col2 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8088
SELECT + tab1.col2 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 19 col2 FROM tab1, tab2 cor0
----
19

onlyif mysql # use DIV operator for integer division
query I rowsort label-8090
SELECT tab1.col1 DIV - ( + 61 ) AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8090
SELECT tab1.col1 / - ( + 61 ) AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT cor0.col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT DISTINCT col2 + - col2 + tab1.col0 FROM tab1
----
3
64
80

query I rowsort
SELECT + col2 + + ( 5 + col0 ) * ( + col1 ) FROM tab1
----
1201
262
747

query I rowsort
SELECT DISTINCT - col0 + 80 + 86 AS col0 FROM tab0
----
131
142
77

query I rowsort
SELECT col1 + 55 * - col0 AS col1 FROM tab0 cor0
----
-1234
-1828
-4804

query I rowsort
SELECT ( 13 ) * col0 FROM tab1 AS cor0
----
1040
39
832

query I rowsort
SELECT col0 - + col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT + cor0.col2 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
54
57
96

query I rowsort
SELECT - cor0.col0 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT - - cor1.col1 * + cor0.col1 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 23253cfee4cea5e1d4f993bec937f9fe

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8101
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) * - col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8101
SELECT DISTINCT - - CAST ( NULL AS REAL ) * - col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + - 39 * col2 FROM tab0 AS cor0
----
-1287
-3198
-39

query I rowsort
SELECT DISTINCT - 92 * ( - col0 ) AS col0 FROM tab0 AS cor0
----
2208
3220
8188

query I rowsort
SELECT col2 * - ( col1 ) FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL + 14 FROM tab1
----
14
14
14

query IIIIIIIII rowsort
SELECT * FROM tab1, tab0, tab2 AS cor0 WHERE NOT NULL >= ( NULL )
----

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8107
SELECT ALL CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8107
SELECT ALL CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 9 AS col0 FROM tab2
----
9
9
9

query I rowsort
SELECT ALL + 86 * + col1 FROM tab1 AS cor0
----
1118
2236
860

query I rowsort
SELECT + - col1 * - col0 AS col2 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT ALL + 7 * + col0 + ( + col1 ) FROM tab1 cor0
----
458
47
573

query I rowsort
SELECT DISTINCT col0 * col2 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT - 41 * col0 * 6 + - col0 * + col2 AS col1 FROM tab0 AS cor0
----
-29192
-6696
-8645

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 39 + col2 col2 FROM tab1 AS cor0
----
135
93
96

query I rowsort
SELECT ALL + col2 * col0 + col1 + - 7 AS col1 FROM tab2 AS cor0
----
2080
213
3012

query I rowsort
SELECT + col1 * col1 + - col2 * col2 AS col1 FROM tab2 cor0
----
-1155
232
2805

query I rowsort
SELECT DISTINCT - col2 + - col0 * 2 FROM tab1 cor0
----
-185
-256
-60

query I rowsort
SELECT DISTINCT tab1.col0 + col1 FROM tab1
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab1.col1 + 62 * - col0 col2 FROM tab1
----
-160
-3958
-4947

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 4 col0 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 730dff78e83112374961ea711f98ebaa

query I rowsort
SELECT ALL + ( tab0.col2 ) - + col2 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT cor0.col1 FROM tab0, tab0 AS cor0
----
86
91
97

query I rowsort
SELECT - 28 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to eac00a95d734c7071360ed392c3f39bc

onlyif mysql # use DIV operator for integer division
query I rowsort label-8124
SELECT ALL + 44 DIV + col0 AS col1 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8124
SELECT ALL + 44 / + col0 AS col1 FROM tab0
----
0
1
1

query I rowsort
SELECT + cor0.col0 * 54 FROM tab1 AS cor0
----
162
3456
4320

query I rowsort
SELECT + - col2 * 53 AS col2 FROM tab0 AS cor0
----
-1749
-4346
-53

query I rowsort
SELECT col2 * - ( + col2 ) AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8128
SELECT + cor0.col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8128
SELECT + cor0.col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 * col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT - col0 * + col0 * + col0 FROM tab1
----
-262144
-27
-512000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col1 FROM tab0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 0 col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT 10 * + col1 FROM tab1
----
100
130
260

query I rowsort
SELECT DISTINCT 20 FROM tab0, tab1, tab2 AS cor0
----
20

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab0 AS cor2, tab2 AS cor3
----
3645 values hashing to fa0488bdae83f58c7ffa92505e928570

query I rowsort
SELECT 41 * cor0.col1 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 30409c9b11b13673f59fbfbf006e10df

query I rowsort
SELECT + cor0.col0 * col1 AS col2 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT - cor0.col0 * + col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT + col1 * col1 + ( - col0 + col2 ) FROM tab0
----
7405
8274
9375

query IIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 AS cor2
----
972 values hashing to a698694a7dac245e42212ff0316bdf45

onlyif mysql # use DIV operator for integer division
query I rowsort label-8141
SELECT ALL - col1 DIV col0 + 28 FROM tab1 AS cor0
----
20
28
28

skipif mysql # not compatible
query I rowsort label-8141
SELECT ALL - col1 / col0 + 28 FROM tab1 AS cor0
----
20
28
28

onlyif mysql # use DIV operator for integer division
query I rowsort label-8142
SELECT 25 DIV cor1.col0 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 1f0ec2f5091c72e20606d261f4aec730

skipif mysql # not compatible
query I rowsort label-8142
SELECT 25 / cor1.col0 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 1f0ec2f5091c72e20606d261f4aec730

query I rowsort
SELECT 30 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 6c98840ed134c765d56389f4150075f0

query I rowsort
SELECT DISTINCT + 65 * - col0 + + col2 AS col2 FROM tab2 AS cor0
----
-428
-5044
-5097

query I rowsort
SELECT DISTINCT - 62 - - col2 FROM tab1 AS cor0
----
-5
-8
34

query I rowsort
SELECT col2 * + col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT col0 * - col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT + col0 + - col1 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT ALL + - col2 * + col1 + + col2 * + col0 * col1 FROM tab1 AS cor0
----
2808
35910
98592

query I rowsort
SELECT ALL - col2 + col1 * col1 AS col1 FROM tab2 AS cor0
----
251
3455
934

query I rowsort
SELECT ALL + + col2 * col0 + 91 * 13 FROM tab2 AS cor0
----
1372
3211
4185

query I rowsort
SELECT ALL col0 + + 99 * - col1 FROM tab1
----
-1207
-2571
-926

query I rowsort
SELECT ALL - col2 + - 29 * - tab1.col2 AS col2 FROM tab1
----
1512
1596
2688

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0 CROSS JOIN tab1
----
243 values hashing to 098e223d780e18b6582523fd6f55eec9

onlyif mysql # use DIV operator for integer division
query I rowsort label-8155
SELECT + + col2 DIV col2 + 82 FROM tab1 AS cor0
----
83
83
83

skipif mysql # not compatible
query I rowsort label-8155
SELECT + + col2 / col2 + 82 FROM tab1 AS cor0
----
83
83
83

query I rowsort
SELECT DISTINCT col1 + col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT - + col0 AS col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT col0 * col2 FROM tab2 AS cor0
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab2
----
26
27
38

query I rowsort
SELECT - col2 * 92 AS col1 FROM tab1 AS cor0
----
-4968
-5244
-8832

query I rowsort
SELECT + 29 + + col0 * - tab0.col1 FROM tab0
----
-2035
-3366
-8070

skipif mysql # not compatible
query I rowsort
SELECT + col2 * col0 + - CAST ( col1 AS REAL ) AS col0 FROM tab2
----
158
1969
2985

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab1
----
10
13
26

query I rowsort
SELECT ALL - 44 FROM tab1, tab0 cor0, tab2 AS cor1
----
27 values hashing to 38f05fdaaf15e64b62f27cd96f73fb79

query I rowsort
SELECT ALL + 59 AS col0 FROM tab1
----
59
59
59

query I rowsort
SELECT ALL col0 * - col1 AS col0 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT ALL + + col0 * - col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT - + cor0.col1 + col2 + col2 FROM tab1 AS cor0
----
104
179
82

query I rowsort
SELECT 97 + 88 FROM tab2, tab2 cor0
----
9 values hashing to 952b77cd30a8db31a6b33523026d9027

onlyif mysql # use DIV operator for integer division
query I rowsort label-8170
SELECT ALL + col0 - + 79 DIV + tab1.col0 FROM tab1
----
-23
63
80

skipif mysql # not compatible
query I rowsort label-8170
SELECT ALL + col0 - + 79 / + tab1.col0 FROM tab1
----
-23
63
80

query I rowsort
SELECT ALL col0 + - cor0.col1 - col1 FROM tab1 AS cor0
----
-49
44
54

query I rowsort
SELECT + ( + 35 ) + + col2 FROM tab0 AS cor0
----
117
36
68

query I rowsort
SELECT DISTINCT + - 5 FROM tab1 AS cor0
----
-5

onlyif mysql # use DIV operator for integer division
query I rowsort label-8174
SELECT DISTINCT + col2 + - col1 + + cor0.col1 DIV + 39 AS col1 FROM tab1 AS cor0
----
28
47
83

skipif mysql # not compatible
query I rowsort label-8174
SELECT DISTINCT + col2 + - col1 + + cor0.col1 / + 39 AS col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT - 97 AS col0 FROM tab2 cor0
----
-97
-97
-97

query I rowsort
SELECT ALL + col1 * + 2 - col2 AS col2 FROM tab2 AS cor0
----
-4
35
92

query I rowsort
SELECT - - cor0.col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT 37 * 62 * - col0 + col1 AS col0 FROM tab0 cor0
----
-204075
-54970
-80193

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL - col0 + + ( + col0 ) * 0 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT + col0 - col2 AS col0 FROM tab2
----
-20
41
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8182
SELECT DISTINCT + tab1.col2 + + CAST( NULL AS SIGNED ) * col2 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8182
SELECT DISTINCT + tab1.col2 + + CAST ( NULL AS INTEGER ) * col2 AS col0 FROM tab1
----
NULL

query I rowsort
SELECT ALL - tab2.col0 + col2 - ( + col0 + + col2 ) AS col1 FROM tab2
----
-14
-156
-158

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2, tab1 AS cor0 WHERE ( NULL ) BETWEEN cor0.col0 * tab0.col0 AND NULL
----

query I rowsort
SELECT DISTINCT col2 * - ( + col0 ) + col2 * 14 FROM tab1
----
-2850
-6336
594

onlyif mysql # use DIV operator for integer division
query I rowsort label-8186
SELECT col0 DIV + col1 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8186
SELECT col0 / + col1 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT + col1 * 92 + - col0 - + col1 FROM tab2
----
1468
2814
5291

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8188
SELECT ALL col2 + + CAST( NULL AS SIGNED ) / - ( col1 ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8188
SELECT ALL col2 + + CAST ( NULL AS INTEGER ) / - ( col1 ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + + col2 AS col2 FROM tab0
----
0
0
0

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
972 values hashing to b51b4342db121ebc2d3d353dcd8ed521

query I rowsort
SELECT + 13 * col0 + - col1 FROM tab1 AS cor0
----
1027
13
822

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 37 col2 FROM tab1 AS cor0
----
-37

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8193
SELECT ALL CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-8193
SELECT ALL CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT + - col2 + - col2 FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT ALL ( - col1 ) * - col1 FROM tab1 AS cor0
----
100
169
676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col0 + - col1 * - col2 col2 FROM tab1 AS cor0
----
1413
4666
7648

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + 64 - cor0.col1 col2 FROM tab2 AS cor0
----
31
60
85

query I rowsort
SELECT ALL 95 AS col1 FROM tab0 AS cor0
----
95
95
95

query I rowsort
SELECT DISTINCT 18 * cor0.col0 AS col2 FROM tab0 AS cor0
----
1602
432
630

query I rowsort
SELECT ALL - col0 * cor0.col0 AS col0 FROM tab0 cor0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT - + ( - 76 ) * cor0.col1 FROM tab1 AS cor0
----
1976
760
988

query I rowsort
SELECT - 4 + 82 FROM tab2 AS cor0
----
78
78
78

query I rowsort
SELECT DISTINCT + + col0 * cor0.col2 + col2 * + col0 FROM tab1 AS cor0
----
15360
324
7296

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col2 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT - + 33 FROM tab1 AS cor0
----
-33
-33
-33

query I rowsort
SELECT ALL 25 AS col1 FROM tab0 AS cor0
----
25
25
25

onlyif mysql # use DIV operator for integer division
query I rowsort label-8207
SELECT + col0 * + col0 + col0 DIV - col2 AS col2 FROM tab1 cor0
----
4095
6400
9

skipif mysql # not compatible
query I rowsort label-8207
SELECT + col0 * + col0 + col0 / - col2 AS col2 FROM tab1 cor0
----
4095
6400
9

query I rowsort
SELECT ALL - cor1.col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT 18 + 85 + - col1 FROM tab0
----
12
17
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-8210
SELECT DISTINCT 12 DIV col2 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8210
SELECT DISTINCT 12 / col2 AS col0 FROM tab1
----
0

query I rowsort
SELECT DISTINCT col2 * col2 AS col1 FROM tab2
----
1444
676
729

query I rowsort
SELECT - col0 + col1 AS col1 FROM tab2
----
-19
-62
24

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8213
SELECT CAST( - col0 * + col1 AS SIGNED ) AS col2 FROM tab0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-8213
SELECT CAST ( - col0 * + col1 AS INTEGER ) AS col2 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT + col2 + + col2 + col2 AS col1 FROM tab1
----
162
171
288

query I rowsort
SELECT DISTINCT - 62 + 0 + + col1 AS col0 FROM tab1
----
-36
-49
-52

query I rowsort
SELECT DISTINCT + + cor0.col1 AS col2 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT - - ( cor0.col2 ) + col1 FROM tab0 AS cor0
----
119
173
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + 80 col2 FROM tab1 AS cor0
----
144
160
83

query I rowsort
SELECT + col2 * col0 FROM tab0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 + col1 ) col2 FROM tab0
----
119
173
98

query I rowsort
SELECT DISTINCT 6 FROM tab1
----
6

query I rowsort
SELECT tab1.col1 * - col2 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT ALL + - ( col0 ) FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT + + col0 * - col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT - 71 * + col0 FROM tab0 AS cor0
----
-1704
-2485
-6319

query I rowsort
SELECT DISTINCT - col0 + + cor0.col0 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT - 81 + col1 FROM tab2 AS cor0
----
-22
-50
-64

query I rowsort
SELECT col2 * + col1 FROM tab1 AS cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 col2 FROM tab2, tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT - tab2.col0 AS col0 FROM tab2
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort
SELECT - + 36 * col2 + CAST ( col0 + - col2 AS REAL ) AS col2 FROM tab0 AS cor0
----
-1197
-2
-2945

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( col2 ) + - 1 col2 FROM tab0 cor0
----
-2
-34
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 58 + + col2 * 41 col0 FROM tab2 AS cor0
----
1008
1049
1500

query I rowsort
SELECT - col0 * + col2 + 19 AS col2 FROM tab1 AS cor0
----
-143
-3629
-7661

query I rowsort
SELECT - cor0.col1 * - cor0.col1 + + col1 AS col2 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT DISTINCT + - col0 + 3 FROM tab1 AS cor0
----
-61
-77
0

query I rowsort
SELECT + 83 FROM tab0, tab0 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query I rowsort
SELECT ALL + + col0 + col0 * + 33 AS col0 FROM tab0 AS cor0
----
1190
3026
816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + col2 col2 FROM tab1 AS cor0
----
28
47
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-8240
SELECT col0 DIV - col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8240
SELECT col0 / - col0 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-8241
SELECT - col1 DIV - 69 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8241
SELECT - col1 / - 69 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT cor0.col0 + + 42 AS col2 FROM tab1 AS cor0
----
106
122
45

query I rowsort
SELECT DISTINCT - col1 + - 17 AS col1 FROM tab2 AS cor0
----
-34
-48
-76

query I rowsort
SELECT DISTINCT col0 + - col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT ALL - col2 * + 54 + col0 AS col0 FROM tab0 AS cor0
----
-1758
-19
-4339

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8246
SELECT col1 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8246
SELECT col1 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + cor0.col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT - 13 FROM tab1 AS cor0
----
-13
-13
-13

query I rowsort
SELECT + col0 * 19 FROM tab1 AS cor0
----
1216
1520
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8250
SELECT - CAST( NULL AS SIGNED ) * + 87 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8250
SELECT - CAST ( NULL AS INTEGER ) * + 87 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + 66 FROM tab1 cor0
----
-14
2
63

query I rowsort
SELECT ALL col0 * + col0 + + col0 FROM tab2
----
56
6162
6320

query I rowsort
SELECT col2 * col2 * + col0 - + col2 AS col2 FROM tab1
----
207879
737184
8694

query I rowsort
SELECT + cor0.col0 * + cor1.col0 AS col0 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to b430aacab80c9bce1e28006eb9a0312c

query I rowsort
SELECT ALL + col0 * - col1 FROM tab1 cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-8256
SELECT DISTINCT + col2 DIV - col2 + col1 + + col1 FROM tab1 AS cor0
----
19
25
51

skipif mysql # not compatible
query I rowsort label-8256
SELECT DISTINCT + col2 / - col2 + col1 + + col1 FROM tab1 AS cor0
----
19
25
51

query I rowsort
SELECT - cor0.col1 + 0 * + col2 AS col1 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT ALL - + col0 - col0 FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT - cor0.col1 - 74 AS col0 FROM tab1 AS cor0
----
-100
-84
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + col2 * col1 col0 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT tab2.col2 * - tab2.col1 * + ( 0 ) AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 * - 6 AS col1 FROM tab2 cor0
----
102
186
354

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col2 col0 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT - 74 FROM tab0
----
-74
-74
-74

query I rowsort
SELECT - col1 * - col1 FROM tab1
----
100
169
676

query I rowsort
SELECT - col0 * + col2 * - col1 AS col1 FROM tab1
----
36480
4212
99840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8267
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8267
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL tab1.col2 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT - col2 * 98 + + col2 * col0 AS col2 FROM tab1 AS cor0
----
-1728
-1938
-5130

query I rowsort
SELECT col2 * + 75 FROM tab2 AS cor0
----
1950
2025
2850

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT ALL + col0 + + col0 AS col1 FROM tab2
----
14
156
158

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab0, tab1 AS cor1
----
972 values hashing to 2d99dda76af061a3fac120e0e49e6c53

query I rowsort
SELECT ALL - 22 FROM tab0, tab2 cor0 CROSS JOIN tab1 AS cor1
----
27 values hashing to 647e567609c5ada1d3454d2102819bfe

query I rowsort
SELECT - 90 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
4860
5130
8640

query I rowsort
SELECT cor1.col1 FROM tab2, tab2 cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 AS cor2
----
243 values hashing to 42b04a30acb32fcd35bf97afdee87fe6

onlyif mysql # use DIV operator for integer division
query I rowsort label-8277
SELECT tab0.col0 DIV 42 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to e1e0cfc6d15933eb424ade504a2163bc

skipif mysql # not compatible
query I rowsort label-8277
SELECT tab0.col0 / 42 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to e1e0cfc6d15933eb424ade504a2163bc

query I rowsort
SELECT ALL 58 * - col2 * + col1 FROM tab2
----
-37468
-48546
-88972

query I rowsort
SELECT + - col2 * col0 AS col1 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL + + col1 + col1 * + col1 FROM tab1 AS cor0
----
110
182
702

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8281
SELECT DISTINCT + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8281
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0 CROSS JOIN tab0
----
243 values hashing to 3581f59ff9574f9d6290fc6bca0b5e4d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + col1 col2 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT + tab1.col1 AS col1 FROM tab1
----
10
13
26

query I rowsort
SELECT DISTINCT + tab0.col1 * col1 AS col0 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT - col2 * - col2 AS col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT col1 * - col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT - 13 - col1 * ( 89 ) AS col1 FROM tab1 cor0
----
-1170
-2327
-903

query I rowsort
SELECT + ( col0 ) * col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL col2 * + col1 * + col0 AS col2 FROM tab1
----
36480
4212
99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-8291
SELECT 75 DIV - cor0.col1 AS col1 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-8291
SELECT 75 / - cor0.col1 AS col1 FROM tab1 AS cor0
----
-2
-5
-7

query I rowsort
SELECT + + col2 * + col2 * - col2 FROM tab1 AS cor0
----
-157464
-185193
-884736

query I rowsort
SELECT ALL - col0 * + 98 FROM tab0 AS cor0
----
-2352
-3430
-8722

onlyif mysql # use DIV operator for integer division
query I rowsort label-8294
SELECT DISTINCT - col0 * - ( - col1 ) DIV + col1 + - col0 col1 FROM tab1
----
-128
-160
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8294
SELECT DISTINCT - col0 * - ( - col1 ) / + col1 + - col0 col1 FROM tab1
----
-128
-160
-6

query I rowsort
SELECT col2 + - col0 AS col2 FROM tab2
----
-41
-52
20

query I rowsort
SELECT col1 * - 12 - - col1 FROM tab0 AS cor0
----
-1001
-1067
-946

query I rowsort
SELECT DISTINCT 66 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
66

query I rowsort
SELECT ALL + + col1 + - 47 FROM tab1 AS cor0
----
-21
-34
-37

query I rowsort
SELECT + col1 + col2 + col2 AS col1 FROM tab1 AS cor0
----
124
134
205

query I rowsort
SELECT DISTINCT - col0 * + ( col0 + col2 ) FROM tab2 AS cor0
----
-238
-8112
-9243

query I rowsort
SELECT + - 84 FROM tab0 AS cor0
----
-84
-84
-84

query I rowsort
SELECT + 77 + - col1 FROM tab2 AS cor0
----
18
46
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-8303
SELECT 73 DIV tab0.col0 + col2 * - tab0.col1 AS col2 FROM tab0
----
-2835
-7462
-95

skipif mysql # not compatible
query I rowsort label-8303
SELECT 73 / tab0.col0 + col2 * - tab0.col1 AS col2 FROM tab0
----
-2835
-7462
-95

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0, tab0 cor1, tab2 AS cor2
----
972 values hashing to d41be7437523f0dba2158c7f0439f329

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - 10 ) + col0 col1 FROM tab2 AS cor0
----
17
88
89

query I rowsort
SELECT col2 * ( cor0.col1 ) FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT + - 68 FROM tab2 AS cor0
----
-68

query I rowsort
SELECT ALL 40 + + col0 * - col0 * cor0.col1 + + col2 * + col1 FROM tab1 AS cor0
----
-40350
-81912
1210

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab2 AS cor1, tab2 AS cor2
----
972 values hashing to 64ce0e736818e884f0a9ecd075da5eb7

query I rowsort
SELECT ALL + col1 * col0 + col0 AS col2 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT ALL col1 + 53 FROM tab1 AS cor0
----
63
66
79

query I rowsort
SELECT - + col1 * col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL 14 + + col0 * + col2 FROM tab2 AS cor0
----
203
2042
3016

query I rowsort
SELECT ALL + + col0 * col0 FROM tab0 cor0
----
1225
576
7921

query I rowsort
SELECT DISTINCT - + ( + col2 ) + col1 * col2 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT ALL + 26 FROM tab0
----
26
26
26

query I rowsort
SELECT DISTINCT col2 * + col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT ALL - 75 * col1 FROM tab1 cor0
----
-1950
-750
-975

query I rowsort
SELECT ALL + + col0 + col1 AS col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT - col1 * col0 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT - - cor0.col0 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
49
6084
6241

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8322
SELECT DISTINCT - cor0.col2 + cor0.col0 * + CAST( col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
34
7216
759

skipif mysql # not compatible
query I rowsort label-8322
SELECT DISTINCT - cor0.col2 + cor0.col0 * + CAST ( col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT DISTINCT 82 FROM tab0
----
82

query I rowsort
SELECT ALL + 39 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT DISTINCT - 90 AS col2 FROM tab1
----
-90

query I rowsort
SELECT ( col1 ) - col0 FROM tab2
----
-19
-62
24

query I rowsort
SELECT ( + tab1.col2 ) FROM tab1
----
54
57
96

query I rowsort
SELECT DISTINCT 72 * - col1 FROM tab2
----
-1224
-2232
-4248

query I rowsort
SELECT + 32 FROM tab0
----
32
32
32

query I rowsort
SELECT ( 51 ) FROM tab1, tab0, tab2 cor0
----
27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5

onlyif mysql # use DIV operator for integer division
query I rowsort label-8331
SELECT + 96 DIV 89 AS col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to da8a72a7967c0c73d91239275230aed9

skipif mysql # not compatible
query I rowsort label-8331
SELECT + 96 / 89 AS col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to da8a72a7967c0c73d91239275230aed9

query I rowsort
SELECT ALL + col1 * col0 AS col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT + cor0.col2 * col0 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-8334
SELECT col2 DIV - tab1.col0 + + col1 + + col0 * col0 FROM tab1
----
17
4106
6412

skipif mysql # not compatible
query I rowsort label-8334
SELECT col2 / - tab1.col0 + + col1 + + col0 * col0 FROM tab1
----
17
4106
6412

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col0 + col0 col1 FROM tab2
----
56
6162
6320

query I rowsort
SELECT + col1 + + tab1.col1 AS col0 FROM tab1
----
20
26
52

query I rowsort
SELECT col0 * col1 + col1 AS col1 FROM tab2 cor0
----
1360
248
4661

query I rowsort
SELECT DISTINCT - + col0 * col1 + - cor0.col0 FROM tab1 AS cor0
----
-1120
-704
-81

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT DISTINCT - col0 * col0 AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-8341
SELECT ALL col1 + + col1 DIV - col2 AS col1 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-8341
SELECT ALL col1 + + col1 / - col2 AS col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL - col1 * col0 + cor0.col0 + col0 FROM tab1 AS cor0
----
-512
-72
-880

query I rowsort
SELECT col1 + - cor0.col1 * cor0.col1 FROM tab2 AS cor0
----
-272
-3422
-930

query I rowsort
SELECT DISTINCT cor0.col1 * col2 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-8345
SELECT ALL + cor0.col1 DIV + cor0.col1 + + col0 FROM tab1 cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-8345
SELECT ALL + cor0.col1 / + cor0.col1 + + col0 FROM tab1 cor0
----
4
65
81

query I rowsort
SELECT + col1 * col2 + - col2 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT col1 + + col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT - tab2.col2 * col2 + tab2.col2 AS col2 FROM tab2
----
-1406
-650
-702

query I rowsort
SELECT ALL + col2 * + cor0.col2 * col2 FROM tab0 AS cor0
----
1
35937
551368

onlyif mysql # use DIV operator for integer division
query I rowsort label-8350
SELECT DISTINCT + cor0.col1 DIV col0 AS col2 FROM tab0 cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-8350
SELECT DISTINCT + cor0.col1 / col0 AS col2 FROM tab0 cor0
----
1
2
3

query I rowsort
SELECT - col1 + col1 + col1 * col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT ALL + col2 * col2 + - col1 AS col0 FROM tab2 AS cor0
----
1427
617
698

query I rowsort
SELECT DISTINCT + + col1 + + col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL - col2 AS col0 FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT - col0 * + col2 AS col1 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT - col0 * col1 * - col1 FROM tab1
----
13520
2028
6400

query I rowsort
SELECT + col0 + col0 AS col2 FROM tab2
----
14
156
158

query I rowsort
SELECT - col1 + + col1 * + col1 + - col2 * tab1.col2 FROM tab1
----
-2266
-3159
-9060

query I rowsort
SELECT col0 + + col1 * + col1 FROM tab1
----
164
249
679

query I rowsort
SELECT DISTINCT - col1 * col2 + col0 + - tab0.col2 AS col1 FROM tab0
----
-2847
-63
-7455

query I rowsort
SELECT ALL + col2 + col0 + col0 * col2 FROM tab1
----
219
3769
7856

query I rowsort
SELECT DISTINCT col0 + + col0 FROM tab1
----
128
160
6

query I rowsort
SELECT DISTINCT col2 + col2 FROM tab0
----
164
2
66

query I rowsort
SELECT DISTINCT - col1 + + col1 AS col1 FROM tab0
----
0

query I rowsort
SELECT + col1 + col2 FROM tab1
----
109
67
80

query I rowsort
SELECT - col1 * cor0.col1 + + col2 FROM tab0 cor0
----
-7363
-8199
-9408

query I rowsort
SELECT ALL - 48 FROM tab1 AS cor0
----
-48
-48
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * col0 * col1 + + col1 * - col0 col1 FROM tab2 AS cor0
----
-24174
-276120
-6944

query I rowsort
SELECT ALL - 57 * col2 AS col0 FROM tab0 AS cor0
----
-1881
-4674
-57

query I rowsort
SELECT DISTINCT - 58 * col1 AS col2 FROM tab0 cor0
----
-4988
-5278
-5626

onlyif mysql # use DIV operator for integer division
query I rowsort label-8371
SELECT DISTINCT - col0 * - col1 DIV + col1 AS col2 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-8371
SELECT DISTINCT - col0 * - col1 / + col1 AS col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT + 58 AS col1 FROM tab1 AS cor0
----
58

query I rowsort
SELECT ALL - - col1 * + col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT - col2 * + col2 FROM tab0 AS cor0
----
-1
-1089
-6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-8375
SELECT - - col0 * col1 DIV col0 - + col2 DIV col1 AS col0 FROM tab1 AS cor0
----
24
5
6

skipif mysql # not compatible
query I rowsort label-8375
SELECT - - col0 * col1 / col0 - + col2 / col1 AS col0 FROM tab1 AS cor0
----
24
5
6

query I rowsort
SELECT ALL + + col2 + + col2 FROM tab0 AS cor0
----
164
2
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col2 col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT + 12 + cor0.col0 * col1 AS col2 FROM tab0 cor0
----
2076
3407
8111

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col2 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT + col0 * - cor0.col0 * + col1 + + col0 AS col1 FROM tab0 AS cor0
----
-118790
-49512
-720722

query I rowsort
SELECT DISTINCT + + col0 * col0 - col2 * col1 FROM tab2 AS cor0
----
-788
4550
5595

query I rowsort
SELECT + + cor0.col1 * col2 - col2 * col0 AS col0 FROM tab1 AS cor0
----
-3078
-6432
1242

query I rowsort
SELECT ALL + tab0.col0 AS col2 FROM tab0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - - 57 col1 FROM tab2
----
-21
-22
50

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8385
SELECT CAST( col1 AS SIGNED ) + col1 * col2 * + col2 AS col2 FROM tab1
----
119821
32500
75842

skipif mysql # not compatible
query I rowsort label-8385
SELECT CAST ( col1 AS INTEGER ) + col1 * col2 * + col2 AS col2 FROM tab1
----
119821
32500
75842

query I rowsort
SELECT - 24 * col1 FROM tab1 AS cor0
----
-240
-312
-624

query I rowsort
SELECT ALL cor0.col1 * + col0 FROM tab0 AS cor0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 col2 FROM tab0 cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) col2 FROM tab1
----
54
57
96

query I rowsort
SELECT DISTINCT - col1 * + col1 FROM tab1
----
-100
-169
-676

query I rowsort
SELECT ALL 27 + col0 FROM tab0
----
116
51
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col0 + + tab1.col1 col0 FROM tab1
----
131
189
83

query I rowsort
SELECT DISTINCT 35 - col0 AS col1 FROM tab0
----
-54
0
11

query I rowsort
SELECT ALL + col0 * + col2 + + col0 * - col1 FROM tab0
----
-1272
-3360
-801

query I rowsort
SELECT ALL - col2 + - col1 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT DISTINCT - col0 * col1 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT + ( col1 ) * - col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-8398
SELECT ALL col0 DIV col1 FROM tab1
----
0
6
6

skipif mysql # not compatible
query I rowsort label-8398
SELECT ALL col0 / col1 FROM tab1
----
0
6
6

query I rowsort
SELECT - tab2.col0 AS col1 FROM tab2
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 + + col1 + col0 * col1 * col1 col1 FROM tab2
----
22865
271636
6789

query I rowsort
SELECT ALL - col1 * col0 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT col2 + col2 + + col0 * - col2 FROM tab2
----
-135
-1976
-2926

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( - col0 )
----

query I rowsort
SELECT ALL + col1 + col0 + + col1 FROM tab2
----
113
196
69

query I rowsort
SELECT col2 * col2 + - col0 AS col0 FROM tab1
----
2913
3185
9136

query III rowsort
SELECT * FROM tab2 WHERE - col2 * + col1 - - col2 * - col1 NOT IN ( tab2.col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

onlyif mysql # use DIV operator for integer division
query I rowsort label-8407
SELECT DISTINCT + col2 DIV + col2 AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-8407
SELECT DISTINCT + col2 / + col2 AS col2 FROM tab1
----
1

query I rowsort
SELECT DISTINCT - col2 + col0 FROM tab0
----
-9
34
7

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col2 * - col1 ) BETWEEN col1 AND NULL
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT + col0 + - col0 AS col0 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col1 FROM tab0
----
24
35
89

query I rowsort
SELECT ALL + tab2.col2 + - col1 * - col0 AS col2 FROM tab2
----
1381
244
4628

query III rowsort
SELECT * FROM tab0 WHERE NULL > NULL
----

query I rowsort
SELECT col0 * + col2 AS col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT - col2 * col2 * + col2 FROM tab2
----
-17576
-19683
-54872

query I rowsort
SELECT col0 - col0 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT - col0 + col2 FROM tab1 WHERE ( NULL ) NOT IN ( tab1.col2 + - col0 * + tab1.col2 )
----

query I rowsort
SELECT DISTINCT col1 * - col2 + - col0 AS col2 FROM tab2
----
-1612
-725
-844

query I rowsort
SELECT DISTINCT tab2.col0 + col2 AS col2 FROM tab2
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col2 FROM tab1
----
10
13
26

query I rowsort
SELECT ALL col2 + col1 FROM tab0
----
119
173
98

query I rowsort
SELECT + col2 + + col1 AS col0 FROM tab0
----
119
173
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 col1 FROM tab2
----
1343
217
4602

query I rowsort
SELECT DISTINCT + col2 * + col0 + col2 * col1 AS col0 FROM tab0
----
132
14760
3630

onlyif mysql # use DIV operator for integer division
query I rowsort label-8425
SELECT ALL col2 * col0 DIV + col2 AS col2 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-8425
SELECT ALL col2 * col0 / + col2 AS col2 FROM tab1
----
3
64
80

query I rowsort
SELECT col1 - col2 * tab1.col1 AS col2 FROM tab1 WHERE NOT + col1 - col1 = NULL
----

query I rowsort
SELECT ALL tab0.col2 * + tab0.col2 + col2 + col2 FROM tab0
----
1155
3
6888

query I rowsort
SELECT col1 * col0 * - col1 AS col2 FROM tab1
----
-13520
-2028
-6400

onlyif mysql # use DIV operator for integer division
query I rowsort label-8429
SELECT DISTINCT - col0 DIV col2 AS col1 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-8429
SELECT DISTINCT - col0 / col2 AS col1 FROM tab1
----
-1
0

query I rowsort
SELECT - col2 * - col2 + + tab2.col0 AS col1 FROM tab2
----
1523
736
754

query I rowsort
SELECT col1 - col2 AS col0 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT ALL - col2 + + col1 AS col2 FROM tab2
----
-21
33
4

query I rowsort
SELECT DISTINCT - tab1.col1 AS col0 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT ALL - tab0.col0 * col1 + col0 FROM tab0
----
-2040
-3360
-8010

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0 CROSS JOIN tab2
----
243 values hashing to ce53c0e8839c969b0513568da6eb2c4b

query I rowsort
SELECT ALL + col0 * - col2 FROM tab2 AS cor0
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col2 col0 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT + col1 * + col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT - + col1 * col0 * col1 FROM tab2 AS cor0
----
-22831
-271518
-6727

query I rowsort
SELECT ALL + col1 + - col2 AS col0 FROM tab0 AS cor0
----
53
9
96

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1
----
54 values hashing to b010e320d66ab5b2711fc14e8fb58b01

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL < col0
----

query I rowsort
SELECT DISTINCT - + col2 * col1 + col2 AS col2 FROM tab1 AS cor0
----
-1152
-1350
-513

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * col0 col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT + cor0.col2 * col0 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT ALL - col1 * col1 + col0 FROM tab2 AS cor0
----
-210
-3403
-954

query I rowsort
SELECT + col1 * cor0.col0 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT ALL col2 * + col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL - col0 * + cor0.col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT ALL - col1 + - tab1.col0 * col2 AS col2 FROM tab1
----
-188
-3658
-7693

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col2 ) NOT BETWEEN col2 - col2 AND NULL
----

query I rowsort
SELECT DISTINCT cor0.col2 FROM tab0, tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT cor0.col1 * col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT cor0.col2 * - cor0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 9bb5096fcd17e3f131152e7a67a5338f

query I rowsort
SELECT col0 + col1 * - col2 FROM tab1
----
-1168
-1401
-506

query I rowsort
SELECT + 45 + col1 AS col0 FROM tab2 cor0
----
104
62
76

query I rowsort
SELECT col0 * col2 AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - 27 + cor0.col0 * col2 * - col0 AS col0 FROM tab2 AS cor0
----
-1350
-158211
-237185

query I rowsort
SELECT DISTINCT 52 - col2 * - col0 AS col2 FROM tab0
----
7350
844
87

query I rowsort
SELECT + col1 * col0 + col2 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT + ( col0 ) FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL + ( - col2 ) AS col0 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ALL - 32 * col2 + cor0.col0 AS col2 FROM tab2 AS cor0
----
-1137
-754
-857

query I rowsort
SELECT + - 63 * 72 * col0 AS col2 FROM tab2 AS cor0
----
-31752
-353808
-358344

query I rowsort
SELECT cor0.col2 * - col1 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT - ( col1 ) AS col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT - col2 * - col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT + + col2 * - col2 AS col1 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT 31 + col0 * col0 * + col2 FROM tab2 AS cor0
----
1354
158215
237189

query I rowsort
SELECT ALL - col2 + - col2 FROM tab2 AS cor0
----
-52
-54
-76

onlyif mysql # use DIV operator for integer division
query I rowsort label-8471
SELECT col1 DIV - 51 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8471
SELECT col1 / - 51 FROM tab2
----
-1
0
0

query I rowsort
SELECT - cor0.col1 + - col2 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT + col1 AS col2 FROM tab0 cor0
----
86
91
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8474
SELECT DISTINCT + + CAST( NULL AS DECIMAL ) + + 19 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8474
SELECT DISTINCT + + CAST ( NULL AS REAL ) + + 19 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT ALL - 30 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

query I rowsort
SELECT 55 FROM tab0
----
55
55
55

query I rowsort
SELECT ALL + col1 * ( col2 ) FROM tab1
----
1248
1404
570

query I rowsort
SELECT DISTINCT 27 FROM tab2, tab2 AS cor0
----
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + 12 col1 FROM tab0
----
12
396
984

query I rowsort
SELECT ALL tab1.col0 AS col0 FROM tab1
----
3
64
80

query I rowsort
SELECT - + cor0.col2 FROM tab1 AS cor0
----
-54
-57
-96

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab1 AS cor1, tab0 AS cor2
----
972 values hashing to 67c5300bc5cba0be4f54a444dc6f05b9

query I rowsort
SELECT col1 * col1 * + 49 FROM tab1 AS cor0
----
33124
4900
8281

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
243 values hashing to 60bd71ee2159222231bb3b5819bc5dca

query I rowsort
SELECT + col1 * col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - ( - 33 ) AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 42 * - ( - tab0.col1 * col1 ) - - tab0.col1 * col0 col0 FROM tab0
----
-26712288
-31641883
-38328871

query I rowsort
SELECT ALL - 2 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8489
SELECT ALL - tab0.col1 + + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8489
SELECT ALL - tab0.col1 + + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 * 23 + - col2 AS col0 FROM tab0
----
-2011
-2175
-2232

query I rowsort
SELECT ALL - 36 FROM tab2, tab2 AS cor0
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

query I rowsort
SELECT ALL + col1 * 22 AS col2 FROM tab1
----
220
286
572

query I rowsort
SELECT ALL + col0 * col2 AS col2 FROM tab0
----
35
7298
792

query I rowsort
SELECT ALL - - 4 + col2 + - col2 * + col1 AS col0 FROM tab0 AS cor0
----
-2801
-7376
-92

query I rowsort
SELECT ALL + - col2 + col1 - + col2 * col2 FROM tab0 AS cor0
----
-1036
-6715
95

query I rowsort
SELECT - 45 FROM tab0 AS cor0
----
-45
-45
-45

query I rowsort
SELECT ALL + col0 * 63 + col0 FROM tab2 AS cor0
----
448
4992
5056

query I rowsort
SELECT DISTINCT col1 * - col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT - 36 AS col0 FROM tab0 AS cor0
----
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * + col2 * - col2 col0 FROM tab1 AS cor0
----
-207936
-737280
-8748

query I rowsort
SELECT + 80 FROM tab2 AS cor0
----
80
80
80

query I rowsort
SELECT ALL cor0.col2 * - cor0.col2 AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to cf0cd186a6868ff3748fd2b2555743a1

query I rowsort
SELECT DISTINCT + ( - 8 ) AS col2 FROM tab0 cor0
----
-8

query I rowsort
SELECT 89 FROM tab1, tab0 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

onlyif mysql # use DIV operator for integer division
query I rowsort label-8505
SELECT + col0 DIV - col1 FROM tab2 cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-8505
SELECT + col0 / - col1 FROM tab2 cor0
----
-1
-4
0

query I rowsort
SELECT ALL - 7 + tab0.col1 AS col2 FROM tab0
----
79
84
90

query I rowsort
SELECT - 38 * - col2 * - 13 + - col2 * + col2 AS col2 FROM tab2
----
-13520
-14067
-20216

query I rowsort
SELECT ALL cor0.col0 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT - col2 * - col0 AS col0 FROM tab2
----
189
2028
3002

query I rowsort
SELECT ALL - 92 + col2 * col1 AS col2 FROM tab2
----
1442
554
745

onlyif mysql # use DIV operator for integer division
query I rowsort label-8511
SELECT - + 14 DIV col1 col2 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8511
SELECT - + 14 / col1 col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + - col1 * - col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT - 9 * + col2 FROM tab2 cor0
----
-234
-243
-342

query I rowsort
SELECT col1 * - cor0.col1 FROM tab2 AS cor0
----
-289
-3481
-961

onlyif mysql # use DIV operator for integer division
query I rowsort label-8515
SELECT + - col2 DIV CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-8515
SELECT + - col2 / CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
-2
-5
-7

query I rowsort
SELECT ALL - col0 * - cor0.col2 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-8517
SELECT - col1 DIV 30 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8517
SELECT - col1 / 30 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 * + col0 + - 37 AS col0 FROM tab0 AS cor0
----
2027
3358
8062

query I rowsort
SELECT ALL - col0 * + 36 AS col1 FROM tab0 AS cor0
----
-1260
-3204
-864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * + col1 col0 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8521
SELECT - col1 + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8521
SELECT - col1 + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + cor0.col2 FROM tab1, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT DISTINCT col0 * col1 AS col0 FROM tab2
----
1343
217
4602

query I rowsort
SELECT col0 * + 32 + - col1 FROM tab0 AS cor0
----
1023
2757
682

onlyif mysql # use DIV operator for integer division
query I rowsort label-8525
SELECT ALL + + cor0.col1 DIV + col0 col2 FROM tab2 AS cor0
----
0
0
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8525
SELECT ALL + + cor0.col1 / + col0 col2 FROM tab2 AS cor0
----
0
0
4

query I rowsort
SELECT DISTINCT - col0 + + col2 AS col1 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT DISTINCT - - col2 * col2 * col1 AS col0 FROM tab2 AS cor0
----
22599
24548
39884

query I rowsort
SELECT ALL - + col0 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT + + col0 + + col2 AS col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT col1 + col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT + - col2 + - col0 AS col2 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT ALL + col2 + - col1 * col2 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT + tab1.col0 * col1 FROM tab1
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT 23 + - col2 FROM tab1
----
-31
-34
-73

query I rowsort
SELECT DISTINCT col0 * col2 + ( - 15 ) AS col1 FROM tab0
----
20
7283
777

query I rowsort
SELECT + 76 * col0 FROM tab0
----
1824
2660
6764

query I rowsort
SELECT DISTINCT - col2 + col0 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT + col0 * - col1 + col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT ALL + ( col1 ) - + 21 FROM tab1 AS cor0
----
-11
-8
5

query I rowsort
SELECT - + col1 + - col0 * 53 AS col2 FROM tab1 AS cor0
----
-185
-3402
-4253

query I rowsort
SELECT ALL + 76 * + col0 FROM tab2 AS cor0
----
532
5928
6004

query I rowsort
SELECT ALL - tab0.col2 + + col1 + - col0 AS col1 FROM tab0
----
-80
29
61

query I rowsort
SELECT + - cor0.col2 + - ( + ( col2 ) ) FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT DISTINCT col2 * - col2 AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8546
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab2, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8546
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2, tab1 AS cor0
----
NULL

query I rowsort
SELECT + 23 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query I rowsort
SELECT + - col1 * ( + col2 ) + + col1 AS col0 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT - col2 + cor0.col1 AS col0 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT ALL - col0 * + 3 FROM tab0 AS cor0
----
-105
-267
-72

query I rowsort
SELECT + cor0.col2 * - 90 FROM tab2 AS cor0
----
-2340
-2430
-3420

query I rowsort
SELECT DISTINCT + + col1 AS col2 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-8553
SELECT ALL ( col1 ) DIV col1 AS col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8553
SELECT ALL ( col1 ) / col1 AS col1 FROM tab1
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-8554
SELECT col0 + - 67 DIV col2 FROM tab1
----
2
63
80

skipif mysql # not compatible
query I rowsort label-8554
SELECT col0 + - 67 / col2 FROM tab1
----
2
63
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-8555
SELECT ALL ( ( col0 ) ) DIV col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8555
SELECT ALL ( ( col0 ) ) / col1 FROM tab0
----
0
0
0

query I rowsort
SELECT + 60 + col0 * tab0.col0 FROM tab0
----
1285
636
7981

query I rowsort
SELECT ALL - col2 * - col0 AS col1 FROM tab2
----
189
2028
3002

query I rowsort
SELECT ALL + 58 FROM tab2 AS cor0
----
58
58
58

query I rowsort
SELECT ALL + + col0 * 89 + col1 FROM tab0 AS cor0
----
2222
3212
8012

query I rowsort
SELECT DISTINCT col0 + - cor0.col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + + col2 + + cor0.col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL + + col0 AS col2 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT + cor1.col2 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8564
SELECT - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8564
SELECT - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8565
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * 18 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8565
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * 18 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL cor0.col2 + - 51 FROM tab0 AS cor0
----
-18
-50
31

onlyif mysql # use DIV operator for integer division
query I rowsort label-8567
SELECT ALL cor0.col0 DIV cor0.col0 AS col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8567
SELECT ALL cor0.col0 / cor0.col0 AS col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT - - col2 * col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT 55 AS col0 FROM tab2 AS cor0
----
55

query I rowsort
SELECT - + col2 + col0 AS col0 FROM tab1 AS cor0
----
-16
-51
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col1 col2 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT col2 + col1 AS col0 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT ALL - col2 * col2 AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT - cor0.col1 + + col2 * ( + 34 ) AS col1 FROM tab2 AS cor0
----
1275
825
887

query I rowsort
SELECT ALL 40 FROM tab0 AS cor0
----
40
40
40

query I rowsort
SELECT - - col0 * col2 AS col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL col1 + + col1 AS col0 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT DISTINCT + cor0.col2 * + col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT col0 + + 55 AS col1 FROM tab0
----
144
79
90

query I rowsort
SELECT 83 AS col2 FROM tab1
----
83
83
83

query I rowsort
SELECT DISTINCT - col0 * - col0 AS col1 FROM tab0
----
1225
576
7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-8582
SELECT - col2 DIV col1 AS col1 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-8582
SELECT - col2 / col1 AS col1 FROM tab1 AS cor0
----
-2
-5
-7

query I rowsort
SELECT + cor0.col1 AS col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL - 55 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to b90e74bece5521b514096c5b6e105fde

query I rowsort
SELECT DISTINCT + col0 * + 50 FROM tab0
----
1200
1750
4450

query I rowsort
SELECT - tab1.col2 - + col2 FROM tab1
----
-108
-114
-192

query I rowsort
SELECT - col1 * - tab0.col1 + + col1 * - col1 FROM tab0
----
0
0
0

query I rowsort
SELECT 7 FROM tab1, tab1 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT + 91 AS col1 FROM tab0 AS cor0
----
91
91
91

query I rowsort
SELECT + col0 + - col1 AS col0 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT 29 FROM tab2
----
29
29
29

query I rowsort
SELECT 31 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336

query I rowsort
SELECT ALL + + col0 + col2 * 43 FROM tab2 AS cor0
----
1168
1196
1713

query I rowsort
SELECT DISTINCT + col0 * col0 * ( 30 ) FROM tab0
----
17280
237630
36750

query I rowsort
SELECT DISTINCT cor1.col1 + - cor0.col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
9 values hashing to 17894375c29631326d468821c0c61127

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 54 col0 FROM tab0
----
-54
-54
-54

query I rowsort
SELECT - col1 + + 81 * + col0 AS col0 FROM tab2 AS cor0
----
536
6259
6382

query I rowsort
SELECT cor0.col0 * - 99 AS col1 FROM tab0 AS cor0
----
-2376
-3465
-8811

query I rowsort
SELECT + cor0.col2 + col1 * - cor0.col2 * - col0 + col1 * 33 AS col0 FROM tab0 AS cor0
----
6597
667203
70983

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col2 FROM tab2
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-8601
SELECT ALL tab1.col0 DIV + col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8601
SELECT ALL tab1.col0 / + col0 FROM tab1
----
1
1
1

query I rowsort
SELECT DISTINCT 55 AS col0 FROM tab2
----
55

query I rowsort
SELECT + col2 * + 36 + + cor0.col1 AS col1 FROM tab0 AS cor0
----
1274
133
3043

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8604
SELECT + CAST( col2 AS SIGNED ) + col2 FROM tab2 AS cor0
----
52
54
76

skipif mysql # not compatible
query I rowsort label-8604
SELECT + CAST ( col2 AS INTEGER ) + col2 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT ( col2 ) FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL 78 + + col2 AS col1 FROM tab0 AS cor0
----
111
160
79

query I rowsort
SELECT + 43 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
1333
2537
731

query I rowsort
SELECT + cor0.col1 * - col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT col2 * col2 + cor0.col0 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT + 58 * cor0.col1 + col0 * col0 FROM tab2 AS cor0
----
1847
7227
9506

query I rowsort
SELECT DISTINCT col0 + col0 + - col2 * + col1 FROM tab1
----
-1088
-1398
-442

query I rowsort
SELECT DISTINCT col2 + - col2 FROM tab2
----
0

query I rowsort
SELECT col1 - + ( col1 ) FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 + + 32 AS col1 FROM tab0
----
-1
-50
31

query I rowsort
SELECT DISTINCT + 60 FROM tab1, tab0 AS cor0
----
60

query I rowsort
SELECT ALL col0 + 95 FROM tab2
----
102
173
174

query IIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 CROSS JOIN tab0
----
243 values hashing to 3581f59ff9574f9d6290fc6bca0b5e4d

query I rowsort
SELECT tab0.col1 AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8619
SELECT + 81 * 39 * col0 + CAST( col0 AS SIGNED ) FROM tab2
----
22120
246480
249640

skipif mysql # not compatible
query I rowsort label-8619
SELECT + 81 * 39 * col0 + CAST ( col0 AS INTEGER ) FROM tab2
----
22120
246480
249640

query I rowsort
SELECT ALL - ( col1 ) * - col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT + + col1 * + col0 * cor0.col0 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT ALL - - 42 AS col0 FROM tab2 AS cor0
----
42
42
42

query I rowsort
SELECT DISTINCT 82 + 70 AS col1 FROM tab2 cor0
----
152

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8624
SELECT ALL - CAST( + col0 AS SIGNED ) * + col0 + ( col0 ) AS col0 FROM tab2 AS cor0
----
-42
-6006
-6162

skipif mysql # not compatible
query I rowsort label-8624
SELECT ALL - CAST ( + col0 AS INTEGER ) * + col0 + ( col0 ) AS col0 FROM tab2 AS cor0
----
-42
-6006
-6162

query I rowsort
SELECT ALL - col2 * - cor0.col2 + + col1 * col1 + cor0.col0 FROM tab2 AS cor0
----
1697
1812
4235

query I rowsort
SELECT col2 + col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT - col0 * col0 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT tab1.col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 65 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT DISTINCT + col1 * - 35 AS col1 FROM tab2
----
-1085
-2065
-595

query I rowsort
SELECT + col2 + - 32 * 89 AS col2 FROM tab1
----
-2752
-2791
-2794

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col2 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT - - col2 + + col2 * - col2 AS col2 FROM tab0 AS cor0
----
-1056
-6642
0

query I rowsort
SELECT - + 59 * + cor0.col2 FROM tab2 AS cor0
----
-1534
-1593
-2242

query I rowsort
SELECT - col1 * 90 FROM tab2 AS cor0
----
-1530
-2790
-5310

query I rowsort
SELECT ( - cor0.col2 ) AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8637
SELECT - CAST( col0 AS SIGNED ) * col0 FROM tab1 cor0
----
-4096
-6400
-9

skipif mysql # not compatible
query I rowsort label-8637
SELECT - CAST ( col0 AS INTEGER ) * col0 FROM tab1 cor0
----
-4096
-6400
-9

query I rowsort
SELECT - + cor0.col2 * 62 FROM tab2 AS cor0
----
-1612
-1674
-2356

query I rowsort
SELECT DISTINCT - col0 * - col1 + + col0 FROM tab1 cor0
----
1120
704
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8640
SELECT CAST( ( col1 ) AS SIGNED ) * col2 * - cor0.col2 FROM tab0 cor0
----
-611884
-93654
-97

skipif mysql # not compatible
query I rowsort label-8640
SELECT CAST ( ( col1 ) AS INTEGER ) * col2 * - cor0.col2 FROM tab0 cor0
----
-611884
-93654
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-8641
SELECT DISTINCT 3 DIV cor0.col1 + - col0 * col1 FROM tab1 AS cor0
----
-1040
-640
-78

skipif mysql # not compatible
query I rowsort label-8641
SELECT DISTINCT 3 / cor0.col1 + - col0 * col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL - ( - col1 ) AS col2 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL + ( + col1 ) FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT - 41 AS col0 FROM tab1 AS cor0
----
-41
-41
-41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 14 + - ( + cor0.col2 ) col2 FROM tab1 AS cor0
----
-110
-68
-71

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8646
SELECT DISTINCT + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8646
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + + col0 * + cor0.col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT - col2 * 1 FROM tab1 AS cor0
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-8649
SELECT col1 + col2 DIV - col1 AS col2 FROM tab1 AS cor0
----
24
5
6

skipif mysql # not compatible
query I rowsort label-8649
SELECT col1 + col2 / - col1 AS col2 FROM tab1 AS cor0
----
24
5
6

query I rowsort
SELECT DISTINCT + + col2 * ( - col1 ) FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT - col0 * col0 AS col1 FROM tab1 cor0
----
-4096
-6400
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-8652
SELECT - col2 DIV + col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8652
SELECT - col2 / + col2 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT 27 AS col0 FROM tab1
----
27
27
27

query I rowsort
SELECT + - cor0.col1 * - col2 + + col1 AS col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT col2 * - col0 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT cor0.col2 + - col2 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + 79 + + col2 FROM tab0 AS cor0
----
112
161
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8658
SELECT ALL - - col0 * CAST( col1 AS SIGNED ) AS col0 FROM tab0 cor0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-8658
SELECT ALL - - col0 * CAST ( col1 AS INTEGER ) AS col0 FROM tab0 cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-8659
SELECT DISTINCT - - col1 DIV + col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8659
SELECT DISTINCT - - col1 / + col1 FROM tab0 AS cor0
----
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-8660
SELECT ALL - + col0 * 3 + 4 * cor0.col0 DIV 72 FROM tab0 AS cor0
----
-104
-263
-71

skipif mysql # not compatible
query I rowsort label-8660
SELECT ALL - + col0 * 3 + 4 * cor0.col0 / 72 FROM tab0 AS cor0
----
-104
-263
-71

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8661
SELECT + - col1 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8661
SELECT + - col1 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8662
SELECT + col1 + - CAST( NULL AS SIGNED ) * + 27 + + col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8662
SELECT + col1 + - CAST ( NULL AS INTEGER ) * + 27 + + col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col0 * cor0.col1 * + 93 AS col1 FROM tab0 AS cor0
----
-191952
-315735
-753207

query I rowsort
SELECT tab0.col0 * - col0 AS col1 FROM tab0
----
-1225
-576
-7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col2 + col2 ) col0 FROM tab0
----
164
2
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-8666
SELECT - - col2 + - 74 DIV - col0 FROM tab0 AS cor0
----
3
36
82

skipif mysql # not compatible
query I rowsort label-8666
SELECT - - col2 + - 74 / - col0 FROM tab0 AS cor0
----
3
36
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-8667
SELECT DISTINCT + col1 + + col0 DIV 12 + col2 * ( cor0.col1 * col1 ) AS col1 FROM tab2 AS cor0
----
11005
25978
90571

skipif mysql # not compatible
query I rowsort label-8667
SELECT DISTINCT + col1 + + col0 / 12 + col2 * ( cor0.col1 * col1 ) AS col1 FROM tab2 AS cor0
----
11005
25978
90571

query I rowsort
SELECT DISTINCT + col2 * - 81 + - cor0.col0 FROM tab2 cor0
----
-2184
-2194
-3157

query I rowsort
SELECT DISTINCT + col2 + 55 FROM tab0 AS cor0
----
137
56
88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8670
SELECT - col2 * CAST( NULL AS SIGNED ) + - col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8670
SELECT - col2 * CAST ( NULL AS INTEGER ) + - col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 + cor0.col2 * - col2 AS col0 FROM tab2 AS cor0
----
-1365
-598
-722

query I rowsort
SELECT + col2 + col2 + ( col2 * 90 ) FROM tab2 AS cor0
----
2392
2484
3496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col0 * col1 + - 98 col1 FROM tab1 AS cor0
----
-1138
-176
-738

query I rowsort
SELECT + - col2 AS col1 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ALL + cor0.col1 * - 61 + col1 FROM tab2 AS cor0
----
-1020
-1860
-3540

query I rowsort
SELECT DISTINCT + col0 + - 6 AS col2 FROM tab0 AS cor0
----
18
29
83

query I rowsort
SELECT ALL col2 + + ( col1 ) FROM tab0 AS cor0
----
119
173
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-8678
SELECT ALL + col2 DIV - ( col0 ) - col2 AS col0 FROM tab1 AS cor0
----
-57
-72
-97

skipif mysql # not compatible
query I rowsort label-8678
SELECT ALL + col2 / - ( col0 ) - col2 AS col0 FROM tab1 AS cor0
----
-57
-72
-97

query I rowsort
SELECT ALL - - col0 + - col2 AS col0 FROM tab2 cor0
----
-20
41
52

query I rowsort
SELECT + col1 * - 49 AS col0 FROM tab1 AS cor0
----
-1274
-490
-637

query I rowsort
SELECT ALL + + col0 * ( 37 ) - + col0 AS col2 FROM tab1 AS cor0
----
108
2304
2880

query I rowsort
SELECT DISTINCT - col0 + + ( col2 ) AS col0 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT DISTINCT + cor0.col2 * col0 + col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT + + col0 + col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL + col0 * + col0 + col0 AS col2 FROM tab2 cor0
----
56
6162
6320

query I rowsort
SELECT ALL - ( ( - cor0.col2 ) ) * - col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT - 50 FROM tab1, tab1 AS cor0
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0, tab1 cor1, tab2 AS cor2
----
972 values hashing to f0b9665afa0b835e4e5097af17c51766

query I rowsort
SELECT DISTINCT + - col2 * col1 * col0 + col1 * 32 + - col1 FROM tab0 AS cor0
----
-388
-65446
-661297

query I rowsort
SELECT col0 * - col1 + cor0.col2 + 97 * col1 FROM tab0 AS cor0
----
6015
6311
810

query I rowsort
SELECT DISTINCT - col0 * 82 + + cor0.col0 FROM tab2 AS cor0
----
-567
-6318
-6399

query IIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
243 values hashing to b3323704f6873113d863f8e27386b356

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8693
SELECT CAST( NULL AS SIGNED ) FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8693
SELECT CAST ( NULL AS INTEGER ) FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query IIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
243 values hashing to 3e8bd9634a3f5947d8becd5f5799bb7f

query I rowsort
SELECT ALL 48 * col1 AS col0 FROM tab2 AS cor0
----
1488
2832
816

query I rowsort
SELECT ALL - + cor0.col2 FROM tab2, tab0 cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT + 67 * - cor0.col0 * + 53 + col0 * col2 AS col2 FROM tab2 AS cor0
----
-24668
-274950
-277527

query I rowsort
SELECT + ( cor0.col0 ) AS col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT cor0.col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT ALL - - col2 + col0 + + 43 AS col0 FROM tab2 AS cor0
----
147
160
77

query I rowsort
SELECT DISTINCT 50 FROM tab0
----
50

onlyif mysql # use DIV operator for integer division
query I rowsort label-8702
SELECT ALL + 96 DIV cor1.col1 FROM tab0, tab1 AS cor0, tab1, tab0 AS cor1
----
81 values hashing to 7e163dee6790fbe5456b394cd2ca048d

skipif mysql # not compatible
query I rowsort label-8702
SELECT ALL + 96 / cor1.col1 FROM tab0, tab1 AS cor0, tab1, tab0 AS cor1
----
81 values hashing to 7e163dee6790fbe5456b394cd2ca048d

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8703
SELECT - ( ( + col2 ) ) * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8703
SELECT - ( ( + col2 ) ) * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + tab2.col0 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 61 * col2 col1 FROM tab2
----
1586
1647
2318

query I rowsort
SELECT ALL + col1 + + col1 AS col0 FROM tab1
----
20
26
52

query I rowsort
SELECT col2 * col0 AS col1 FROM tab1
----
162
3648
7680

query I rowsort
SELECT ALL tab2.col0 + - col1 FROM tab2
----
-24
19
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-8709
SELECT DISTINCT 93 DIV + col0 + col2 * ( col2 * - tab0.col1 ) FROM tab0
----
-611883
-93651
-95

skipif mysql # not compatible
query I rowsort label-8709
SELECT DISTINCT 93 / + col0 + col2 * ( col2 * - tab0.col1 ) FROM tab0
----
-611883
-93651
-95

query I rowsort
SELECT ALL - tab2.col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col2 col0 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT ALL col2 + - col0 FROM tab2
----
-41
-52
20

query I rowsort
SELECT + cor0.col1 - - col1 AS col0 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT cor0.col2 AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT DISTINCT + 24 AS col0 FROM tab0 AS cor0
----
24

query I rowsort
SELECT DISTINCT + - 61 * col2 FROM tab2 AS cor0
----
-1586
-1647
-2318

query I rowsort
SELECT DISTINCT - + col1 * cor0.col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL - - 91 AS col1 FROM tab0 AS cor0
----
91
91
91

query I rowsort
SELECT col0 * col2 - - ( - cor0.col2 ) AS col1 FROM tab2 AS cor0
----
162
2002
2964

query IIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab2 cor1
----
243 values hashing to ea21cea53be47edd19229592e3d26141

query I rowsort
SELECT - + col2 AS col0 FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT ALL + + col2 * 98 AS col0 FROM tab2 AS cor0
----
2548
2646
3724

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8723
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8723
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 cor0, tab2 AS cor1, tab2 AS cor2
----
972 values hashing to 958533d1a7bf61199ed7c03eadf37f9a

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2, tab2 AS cor3
----
3645 values hashing to f1fc3f16747aca82b54b2b759d1f5ea2

onlyif mysql # use DIV operator for integer division
query I rowsort label-8726
SELECT + ( + tab1.col0 ) DIV tab1.col0 col0 FROM tab1
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8726
SELECT + ( + tab1.col0 ) / tab1.col0 col0 FROM tab1
----
1
1
1

query I rowsort
SELECT - tab1.col2 + + 88 + + col1 AS col2 FROM tab1
----
41
5
60

query I rowsort
SELECT DISTINCT col1 + ( - col2 ) AS col1 FROM tab0
----
53
9
96

query I rowsort
SELECT ALL + tab2.col1 + + 76 * col1 FROM tab2
----
1309
2387
4543

query I rowsort
SELECT DISTINCT 11 FROM tab2, tab2 AS cor0
----
11

query I rowsort
SELECT DISTINCT - col1 * cor0.col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT - col0 * col0 AS col2 FROM tab2 cor0
----
-49
-6084
-6241

query I rowsort
SELECT ALL - ( - 44 ) + col0 AS col0 FROM tab1 AS cor0
----
108
124
47

query I rowsort
SELECT DISTINCT + col0 * - col0 FROM tab0 cor0
----
-1225
-576
-7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + cor0.col1 - - col0 * col0 col0 FROM tab0 AS cor0
----
1419
748
8103

query I rowsort
SELECT 82 FROM tab1
----
82
82
82

query I rowsort
SELECT ( - 5 ) AS col1 FROM tab0
----
-5
-5
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col1 col0 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT DISTINCT 7 FROM tab2 AS cor0
----
7

query I rowsort
SELECT - cor0.col1 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

query I rowsort
SELECT DISTINCT + - col2 * col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT - cor0.col1 * + 6 * + col1 FROM tab1 AS cor0
----
-1014
-4056
-600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 10 col0 FROM tab0 AS cor0
----
10
10
10

onlyif mysql # use DIV operator for integer division
query I rowsort label-8744
SELECT 84 + col0 DIV ( tab1.col2 * + col1 ) AS col2 FROM tab1
----
84
84
84

skipif mysql # not compatible
query I rowsort label-8744
SELECT 84 + col0 / ( tab1.col2 * + col1 ) AS col2 FROM tab1
----
84
84
84

query I rowsort
SELECT DISTINCT col1 * - col1 + + col0 FROM tab2
----
-210
-3403
-954

onlyif mysql # use DIV operator for integer division
query I rowsort label-8746
SELECT - col0 + + col2 * 57 DIV - col2 AS col1 FROM tab0
----
-146
-81
-92

skipif mysql # not compatible
query I rowsort label-8746
SELECT - col0 + + col2 * 57 / - col2 AS col1 FROM tab0
----
-146
-81
-92

query I rowsort
SELECT - tab1.col0 + + col1 * - ( + col2 ) AS col1 FROM tab1
----
-1328
-1407
-634

query I rowsort
SELECT DISTINCT - tab2.col1 + col1 + - 35 * + col0 AS col0 FROM tab2
----
-245
-2730
-2765

query I rowsort
SELECT ALL cor0.col1 + col0 * 29 FROM tab1 AS cor0
----
113
1866
2333

query I rowsort
SELECT DISTINCT + col2 * - col0 * - col0 FROM tab1 cor0
----
233472
486
614400

query I rowsort
SELECT DISTINCT - - col1 AS col2 FROM tab0 AS cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col2 * + 26 col0 FROM tab0 AS cor0
----
2214
27
891

query I rowsort
SELECT DISTINCT + col0 + + col0 + - col1 FROM tab0
----
-27
-38
87

query I rowsort
SELECT col1 * + col1 AS col2 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT col2 + col2 FROM tab0 cor0
----
164
2
66

query I rowsort
SELECT ALL + col1 * + col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT DISTINCT col0 * 33 FROM tab1 AS cor0
----
2112
2640
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col1 col2 FROM tab2 cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-8759
SELECT ALL col1 + + col1 DIV + col0 col2 FROM tab0 AS cor0
----
89
92
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8759
SELECT ALL col1 + + col1 / + col0 col2 FROM tab0 AS cor0
----
89
92
99

query I rowsort
SELECT DISTINCT + col2 * ( col0 ) FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL - tab1.col1 AS col2 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT ALL + col2 * + ( - 90 ) FROM tab1 AS cor0
----
-4860
-5130
-8640

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8763
SELECT - - col0 * - CAST( NULL AS SIGNED ) * col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8763
SELECT - - col0 * - CAST ( NULL AS INTEGER ) * col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 + + 94 AS col1 FROM tab0 AS cor0
----
5
59
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * - col2 + cor0.col1 col2 FROM tab2 cor0
----
2087
220
3019

query I rowsort
SELECT ALL cor0.col1 + ( col0 ) * - col0 + col2 AS col1 FROM tab2 AS cor0
----
-5999
-6186
9

query I rowsort
SELECT ALL col1 - + ( 41 ) * - col0 * col2 FROM tab0 AS cor0
----
1532
299309
32558

query I rowsort
SELECT - - col2 * - col0 + + col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT - col0 * - 35 FROM tab0 AS cor0
----
1225
3115
840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col2 col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL col1 * 78 FROM tab0 AS cor0
----
6708
7098
7566

query I rowsort
SELECT ALL + col1 * - col0 FROM tab1 AS cor0
----
-1040
-640
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT - cor1.col0 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT + + col1 * ( col0 ) FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT col0 * col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT 27 * - 3 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

query I rowsort
SELECT DISTINCT + + col0 AS col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT - + 10 + - 68 * col0 FROM tab0 AS cor0
----
-1642
-2390
-6062

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col1 col2 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * - 34 col1 FROM tab2 cor0
----
-238
-2652
-2686

query I rowsort
SELECT + col2 * + 9 FROM tab1 AS cor0
----
486
513
864

query I rowsort
SELECT + 60 * + col1 AS col2 FROM tab0 AS cor0
----
5160
5460
5820

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8784
SELECT - CAST( 83 AS SIGNED ) * + col2 FROM tab1 cor0
----
-4482
-4731
-7968

skipif mysql # not compatible
query I rowsort label-8784
SELECT - CAST ( 83 AS INTEGER ) * + col2 FROM tab1 cor0
----
-4482
-4731
-7968

query I rowsort
SELECT cor0.col0 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT + 79 * cor0.col1 FROM tab2 cor0
----
1343
2449
4661

query I rowsort
SELECT + + cor0.col0 * + 11 + - col2 * + cor0.col0 FROM tab0 AS cor0
----
-528
-6319
350

query I rowsort
SELECT + col2 * + col2 AS col0 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT - col2 * - col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT DISTINCT + col0 + + col2 * ( 34 ) FROM tab1 AS cor0
----
1839
2002
3344

query I rowsort
SELECT ALL - 16 * col1 * + 20 + + 65 FROM tab0 AS cor0
----
-27455
-29055
-30975

query I rowsort
SELECT + col1 + + col2 AS col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL col0 + + cor0.col1 * col2 AS col2 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT col1 * - col1 + + 39 FROM tab0 AS cor0
----
-7357
-8242
-9370

query I rowsort
SELECT ALL + ( col1 ) * col2 AS col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT - - 77 AS col2 FROM tab2 AS cor0
----
77
77
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-8797
SELECT ALL + - col0 * cor0.col1 DIV 18 + 61 AS col2 FROM tab0 cor0
----
-127
-388
-53

skipif mysql # not compatible
query I rowsort label-8797
SELECT ALL + - col0 * cor0.col1 / 18 + 61 AS col2 FROM tab0 cor0
----
-127
-388
-53

query I rowsort
SELECT + col1 * - col0 + col2 AS col1 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT DISTINCT col1 * cor0.col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - + col2 + col0 * col0 AS col0 FROM tab2 AS cor0
----
22
6058
6203

query I rowsort
SELECT DISTINCT - + col1 + + col1 FROM tab2 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8802
SELECT ( - cor0.col2 ) DIV col0 + cor0.col2 * cor0.col2 AS col1 FROM tab0 AS cor0
----
1
1088
6724

skipif mysql # not compatible
query I rowsort label-8802
SELECT ( - cor0.col2 ) / col0 + cor0.col2 * cor0.col2 AS col1 FROM tab0 AS cor0
----
1
1088
6724

query I rowsort
SELECT ALL + - col1 + - col0 * cor0.col0 AS col1 FROM tab2 AS cor0
----
-6143
-6258
-80

query I rowsort
SELECT + - col1 * col2 - 79 AS col0 FROM tab1 AS cor0
----
-1327
-1483
-649

query I rowsort
SELECT DISTINCT + 77 * + col0 + - col2 FROM tab2 AS cor0
----
512
5980
6045

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8806
SELECT cor0.col0 + col0 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8806
SELECT cor0.col0 + col0 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + + 98 * col0 - 6 FROM tab0
----
2432
3521
8807

query I rowsort
SELECT ALL col0 + + col1 * col1 FROM tab1
----
164
249
679

onlyif mysql # use DIV operator for integer division
query I rowsort label-8809
SELECT + col1 - - col2 DIV - col0 FROM tab1 cor0
----
10
12
8

skipif mysql # not compatible
query I rowsort label-8809
SELECT + col1 - - col2 / - col0 FROM tab1 cor0
----
10
12
8

query I rowsort
SELECT - col0 + col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT + + col1 - col0 AS col2 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT - cor0.col1 * - col0 * - 10 FROM tab0 AS cor0
----
-20640
-33950
-80990

query I rowsort
SELECT ALL col1 + col1 AS col0 FROM tab1
----
20
26
52

query I rowsort
SELECT 79 FROM tab1, tab2 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query I rowsort
SELECT + col0 + - ( + ( - col2 ) ) + col0 AS col1 FROM tab2 cor0
----
182
196
41

query I rowsort
SELECT - 11 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab1, tab1 AS cor2
----
243 values hashing to c113ef2deec7389fcd95fe64a5efe432

query I rowsort
SELECT col1 * col1 + col0 AS col0 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT ALL - col2 + - col2 AS col0 FROM tab2
----
-52
-54
-76

query I rowsort
SELECT - - 43 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4

query I rowsort
SELECT + tab2.col1 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT ALL - 97 FROM tab1
----
-97
-97
-97

query I rowsort
SELECT ALL col1 * tab1.col1 * col0 AS col2 FROM tab1
----
13520
2028
6400

query I rowsort
SELECT - + cor0.col0 FROM tab1 AS cor0
----
-3
-64
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - + col0 * - col2 * + col1 col2 FROM tab1 AS cor0
----
36537
4266
99936

query I rowsort
SELECT DISTINCT + col0 * col2 + col1 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT DISTINCT - col2 + col1 * - cor0.col2 FROM tab1 AS cor0
----
-1344
-1458
-627

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col2 * 15 col0 FROM tab1 AS cor0
----
1536
864
912

query I rowsort
SELECT ALL col0 * col2 - 77 FROM tab1 cor0
----
3571
7603
85

query I rowsort
SELECT + 21 * + col1 FROM tab1 AS cor0
----
210
273
546

query I rowsort
SELECT ( + 17 + col2 ) * + col0 FROM tab1
----
213
4736
9040

query I rowsort
SELECT ALL + 43 * ( col0 ) AS col1 FROM tab1
----
129
2752
3440

query I rowsort
SELECT ALL tab2.col0 * ( - col1 ) + col2 FROM tab2
----
-1305
-190
-4576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col1 col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab1, tab1 AS cor1
----
972 values hashing to 7864aada86bf5bf5e1621c7905de8dcd

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8835
SELECT - ( col0 ) * CAST( col0 AS SIGNED ) + col2 col2 FROM tab1 AS cor0
----
-4039
-6304
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8835
SELECT - ( col0 ) * CAST ( col0 AS INTEGER ) + col2 col2 FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT - + col1 * col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT + 78 AS col0 FROM tab1 AS cor0
----
78
78
78

query I rowsort
SELECT ALL + + col0 * col1 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT col0 * cor0.col1 + 78 FROM tab2 AS cor0
----
1421
295
4680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col1 + + col0 col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT col2 * col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT + ( - col1 ) * - col0 + col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT + + col2 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT - cor0.col1 * col0 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT col2 * 81 FROM tab1
----
4374
4617
7776

onlyif mysql # use DIV operator for integer division
query I rowsort label-8846
SELECT ALL col1 DIV + col0 AS col0 FROM tab1
----
0
0
8

skipif mysql # not compatible
query I rowsort label-8846
SELECT ALL col1 / + col0 AS col0 FROM tab1
----
0
0
8

query I rowsort
SELECT ALL + 83 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query I rowsort
SELECT ALL - col0 * ( + col0 * - tab0.col2 ) AS col1 FROM tab0
----
1225
19008
649522

query I rowsort
SELECT - col0 * col2 + - 15 FROM tab1 AS cor0
----
-177
-3663
-7695

query I rowsort
SELECT col2 + - col0 - 84 * + cor0.col2 FROM tab1 cor0
----
-4485
-4795
-8048

query I rowsort
SELECT + col0 * + col2 - - 84 AS col1 FROM tab0 AS cor0
----
119
7382
876

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8852
SELECT col2 + - ( 82 ) * - col1 + + CAST( NULL AS SIGNED ) * - col1 * cor0.col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8852
SELECT col2 + - ( 82 ) * - col1 + + CAST ( NULL AS INTEGER ) * - col1 * cor0.col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + col1 AS col1 FROM tab1 AS cor0
----
-28
-47
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT - + 89 AS col1 FROM tab0 AS cor0
----
-89
-89
-89

query I rowsort
SELECT - ( + col2 ) AS col0 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT + col2 * + col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT + tab0.col1 * + 46 AS col2 FROM tab0
----
3956
4186
4462

query I rowsort
SELECT ALL ( - 81 ) FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to bab7cb237ee73283089388c330f59598

query I rowsort
SELECT ALL 57 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT + col2 * - col1 + col0 AS col0 FROM tab1 AS cor0
----
-1168
-1401
-506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col2 + - col0 + + ( + col2 ) col0 FROM tab0 AS cor0
----
-69
-7305
-783

query I rowsort
SELECT - 61 FROM tab1 AS cor0
----
-61
-61
-61

query I rowsort
SELECT DISTINCT + ( 92 ) FROM tab0 AS cor0
----
92

query I rowsort
SELECT - ( - 96 ) * - col1 FROM tab2 AS cor0
----
-1632
-2976
-5664

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0, tab2, tab2 cor1
----
972 values hashing to 82def1c3361e635dd4cf447edc22edb9

query I rowsort
SELECT ALL 45 FROM tab2, tab0 AS cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT DISTINCT 64 + col2 + col2 FROM tab1
----
172
178
256

query I rowsort
SELECT DISTINCT + + col0 * col1 + col0 * col0 AS col2 FROM tab2 AS cor0
----
10686
266
7584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + - col1 col2 FROM tab0 cor0
----
-53
-9
-96

query I rowsort
SELECT + ( col1 ) * col0 + + 9 * + 21 * col1 - - col0 FROM tab0 AS cor0
----
18342
21763
25387

query I rowsort
SELECT ALL - - col0 FROM tab2 AS cor0
----
7
78
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8873
SELECT DISTINCT - 16 + ( col1 ) + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8873
SELECT DISTINCT - 16 + ( col1 ) + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL - + 79 FROM tab0 AS cor0
----
-79
-79
-79

query I rowsort
SELECT ( col0 ) * cor0.col0 + - cor0.col1 - ( col0 ) FROM tab2 cor0
----
11
5947
6145

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 94 - - col2 col0 FROM tab0 AS cor0
----
-2223
-3289
-8284

query I rowsort
SELECT ALL + - cor0.col1 AS col2 FROM tab2 AS cor0
----
-17
-31
-59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8878
SELECT DISTINCT CAST( NULL AS DECIMAL ) + - ( col1 ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8878
SELECT DISTINCT CAST ( NULL AS REAL ) + - ( col1 ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - cor0.col2 * - col2 - + col2 FROM tab0 AS cor0
----
0
1056
6642

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8880
SELECT CAST( NULL AS SIGNED ) / + cor0.col1 + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8880
SELECT CAST ( NULL AS INTEGER ) / + cor0.col1 + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * col2 - cor0.col1 * - col2 FROM tab2 AS cor0
----
-2356
-494
648

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8882
SELECT - CAST( - 52 AS SIGNED ) + col0 * 28 AS col1 FROM tab0 AS cor0
----
1032
2544
724

skipif mysql # not compatible
query I rowsort label-8882
SELECT - CAST ( - 52 AS INTEGER ) + col0 * 28 AS col1 FROM tab0 AS cor0
----
1032
2544
724

query I rowsort
SELECT ALL + col2 AS col0 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT - - 73 FROM tab2 AS cor0
----
73
73
73

query I rowsort
SELECT ALL - + ( - col1 ) AS col2 FROM tab1 AS cor0
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col0 FROM tab2 AS cor0
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-8887
SELECT DISTINCT + cor0.col2 DIV + col1 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-8887
SELECT DISTINCT + cor0.col2 / + col1 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT DISTINCT ( col0 ) * - col0 + col1 FROM tab0 AS cor0
----
-1128
-490
-7830

query I rowsort
SELECT DISTINCT col1 * col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT + col2 + - col2 + col2 AS col0 FROM tab0
----
1
33
82

query I rowsort
SELECT - tab0.col1 * - tab0.col0 + - col2 + - col2 AS col1 FROM tab0
----
1998
3393
7935

query I rowsort
SELECT - 83 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8893
SELECT ALL + 42 * col2 + - CAST( col0 AS SIGNED ) * col1 AS col1 FROM tab0 cor0
----
-3353
-4655
-678

skipif mysql # not compatible
query I rowsort label-8893
SELECT ALL + 42 * col2 + - CAST ( col0 AS INTEGER ) * col1 AS col1 FROM tab0 cor0
----
-3353
-4655
-678

query I rowsort
SELECT 78 * + col2 AS col2 FROM tab2
----
2028
2106
2964

query I rowsort
SELECT ALL - - col0 * 26 - + col1 AS col0 FROM tab2 AS cor0
----
151
1969
2037

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col0 - col2 col0 FROM tab1 AS cor0
----
-16
-51
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT - col2 + col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - cor0.col2 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query I rowsort
SELECT - - col0 * ( - col1 ) FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT + col0 * col2 * - cor0.col0 - - col2 * - col0 AS col0 FROM tab1 AS cor0
----
-237120
-622080
-648

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col2 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT ALL cor0.col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT + col1 * col0 + + col2 + ( + col0 ) * col1 FROM tab0 AS cor0
----
16280
4161
6791

query I rowsort
SELECT ALL + + 94 + - col0 * - col0 FROM tab2 AS cor0
----
143
6178
6335

query I rowsort
SELECT - ( + col1 ) + cor0.col1 * + col1 * + cor0.col1 FROM tab2 AS cor0
----
205320
29760
4896

query I rowsort
SELECT + col2 * + col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT DISTINCT - 50 + col2 FROM tab0 cor0
----
-17
-49
32

query I rowsort
SELECT ALL ( + cor1.col2 ) AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col0 col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT cor1.col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-8912
SELECT + + col1 * - col2 + col2 DIV + cor0.col0 + col1 FROM tab0 AS cor0
----
-2751
-7371
0

skipif mysql # not compatible
query I rowsort label-8912
SELECT + + col1 * - col2 + col2 / + cor0.col0 + col1 FROM tab0 AS cor0
----
-2751
-7371
0

query I rowsort
SELECT 0 + + col2 * col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT ALL - 68 AS col1 FROM tab0 AS cor0
----
-68
-68
-68

query I rowsort
SELECT DISTINCT col2 * cor0.col1 + + col0 * + col0 AS col0 FROM tab0 AS cor0
----
1322
15383
3414

query I rowsort
SELECT - col0 * col0 * - col2 FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT DISTINCT - col1 * col1 AS col0 FROM tab1 cor0
----
-100
-169
-676

query I rowsort
SELECT ALL - col0 * col1 + col1 + cor0.col0 FROM tab1 AS cor0
----
-49
-566
-947

query I rowsort
SELECT - ( tab0.col2 ) AS col2 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT - col1 * - col0 * col2 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT - - col0 * col0 + col2 * col2 FROM tab0 cor0
----
1226
14645
1665

query I rowsort
SELECT + - 20 + col0 FROM tab1 AS cor0
----
-17
44
60

query I rowsort
SELECT DISTINCT 48 AS col2 FROM tab2 AS cor0
----
48

query I rowsort
SELECT ALL - + 11 * - col1 + - col1 FROM tab0 AS cor0
----
860
910
970

query I rowsort
SELECT + - col2 + - col0 AS col1 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT - col2 * col2 AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT col0 * + cor0.col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT + + col0 * - cor0.col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT - col2 + - ( - col2 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT + 95 + + col2 AS col1 FROM tab2 AS cor0
----
121
122
133

query I rowsort
SELECT ALL - ( cor0.col2 ) * - col0 AS col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT 77 * + col1 + + col1 FROM tab2 AS cor0
----
1326
2418
4602

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0, tab1 AS cor1, tab0, tab1 AS cor2
----
3645 values hashing to 80b3ced88f886d6e15182ebf21c93987

onlyif mysql # use DIV operator for integer division
query I rowsort label-8934
SELECT ALL - col2 DIV + col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8934
SELECT ALL - col2 / + col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col1 * - col2 + col1 * col0 AS col2 FROM tab0 cor0
----
-774
3298
637

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8936
SELECT ALL CAST( + col2 AS SIGNED ) FROM tab2 cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-8936
SELECT ALL CAST ( + col2 AS INTEGER ) FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT ALL + - col1 + - col0 AS col1 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT + col0 + - col1 - - col2 AS col2 FROM tab2
----
100
3
45

query I rowsort
SELECT - col0 + + tab2.col2 + col1 * col2 FROM tab2
----
1482
605
857

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - ( col2 * + col1 ) col0 FROM tab0
----
-2805
-7380
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 + col0 col2 FROM tab1
----
164
249
679

query I rowsort
SELECT + col2 + ( - col1 ) * + col0 FROM tab0
----
-2031
-3394
-8017

query I rowsort
SELECT ALL cor1.col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 2 + col1 col0 FROM tab0
----
134
167
269

query I rowsort
SELECT - ( + col1 ) * - col2 AS col1 FROM tab2
----
1534
646
837

query I rowsort
SELECT DISTINCT - col0 * ( col1 * tab2.col0 ) + col2 * - col0 * col0 AS col0 FROM tab2
----
-2842
-343255
-517140

query I rowsort
SELECT - col0 * col2 - col2 FROM tab1
----
-216
-3705
-7776

query I rowsort
SELECT DISTINCT + col1 + - 64 AS col1 FROM tab1
----
-38
-51
-54

query I rowsort
SELECT + - ( 45 ) FROM tab0 AS cor0
----
-45
-45
-45

query I rowsort
SELECT ALL - ( col0 ) AS col2 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL - 11 + + col1 * + col0 * col1 AS col0 FROM tab1 AS cor0
----
13509
2017
6389

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 70 * + col1 col0 FROM tab0
----
6020
6370
6790

query I rowsort
SELECT cor0.col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8954
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8954
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - tab2.col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT + cor0.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT + col1 + + cor0.col0 AS col0 FROM tab2 AS cor0
----
137
38
96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) NOT IN ( - col1 / col2 )
----

query I rowsort
SELECT ALL tab2.col0 FROM tab0 AS cor0 CROSS JOIN tab2
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

onlyif mysql # use DIV operator for integer division
query I rowsort label-8960
SELECT ALL col0 DIV col2 + col1 * + col1 AS col0 FROM tab0
----
7396
8282
9444

skipif mysql # not compatible
query I rowsort label-8960
SELECT ALL col0 / col2 + col1 * + col1 AS col0 FROM tab0
----
7396
8282
9444

query I rowsort
SELECT tab2.col1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN ( col0 ) AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col1 + col0 ) IN ( - cor0.col0 + col2 + col2 )
----

query I rowsort
SELECT DISTINCT + col1 * col1 FROM tab2
----
289
3481
961

query III rowsort
SELECT * FROM tab0 WHERE + col2 NOT IN ( + col2 )
----

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 WHERE NOT NULL = - cor0.col0
----

query I rowsort
SELECT ALL col1 * col2 * col0 AS col2 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT - col2 + col0 FROM tab0
----
-9
34
7

query I rowsort
SELECT DISTINCT - tab0.col2 AS col1 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT ALL col0 * col0 + - tab1.col0 AS col1 FROM tab1
----
4032
6
6320

query I rowsort
SELECT DISTINCT col2 * + col0 + col0 FROM tab2
----
196
2106
3081

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab0 WHERE ( + col1 ) < NULL
----

query I rowsort
SELECT - col2 + col1 * col1 FROM tab0
----
7363
8199
9408

query I rowsort
SELECT ALL col1 + + col2 AS col0 FROM tab1
----
109
67
80

query I rowsort
SELECT - cor0.col1 AS col0 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL col1 + col1 + - col0 * - col1 FROM tab1
----
1066
130
660

query I rowsort
SELECT - cor0.col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

query I rowsort
SELECT ALL col0 * col0 AS col0 FROM tab1
----
4096
6400
9

query I rowsort
SELECT ALL tab2.col2 AS col1 FROM tab2
----
26
27
38

query I rowsort
SELECT + col2 + col2 AS col0 FROM tab2
----
52
54
76

query I rowsort
SELECT + col1 * - col1 + + tab1.col2 FROM tab1
----
-43
-622
-73

query I rowsort
SELECT ALL - col2 * col0 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT - + col0 * + col0 + + col2 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT - col2 + - col2 * + col1 AS col2 FROM tab1 AS cor0
----
-1344
-1458
-627

query I rowsort
SELECT DISTINCT col0 * + col1 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-8986
SELECT DISTINCT + col0 DIV - col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-8986
SELECT DISTINCT + col0 / - col0 FROM tab2
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col1 FROM tab0
----
1
33
82

query I rowsort
SELECT ALL + + col1 + - col2 * col2 FROM tab0 AS cor0
----
-1003
-6633
96

query I rowsort
SELECT ALL - col2 FROM tab1 cor0
----
-54
-57
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 + col0 col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT - col1 * + col2 * cor0.col0 + col2 * - col0 FROM tab0 cor0
----
-3430
-671416
-68904

query I rowsort
SELECT - - col2 * col2 - col0 FROM tab1 AS cor0
----
2913
3185
9136

query I rowsort
SELECT + col0 + col0 AS col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT - + col2 + + col0 AS col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT cor0.col1 + col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT + col1 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-8997
SELECT ALL + col1 * col1 DIV - col1 - col0 AS col2 FROM tab2 AS cor0
----
-137
-38
-96

skipif mysql # not compatible
query I rowsort label-8997
SELECT ALL + col1 * col1 / - col1 - col0 AS col2 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT DISTINCT + - col2 + - col0 * + col1 AS col1 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT ALL - col0 + col2 + + col1 FROM tab2 AS cor0
----
-24
51
7

query I rowsort
SELECT - + col2 - col2 AS col2 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT ALL col1 + + col1 * + col0 FROM tab2
----
1360
248
4661

query I rowsort
SELECT - col0 * - col0 AS col0 FROM tab0 cor0
----
1225
576
7921

query I rowsort
SELECT + - col0 * col0 + col2 * + col0 + col0 FROM tab2 AS cor0
----
-3160
-3978
147

query I rowsort
SELECT cor0.col0 * col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT + col0 - col2 * - col2 AS col1 FROM tab1 AS cor0
----
2919
3313
9296

query I rowsort
SELECT + cor0.col2 AS col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL 27 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9008
SELECT DISTINCT col0 + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9008
SELECT DISTINCT col0 + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - col2 * col2 FROM tab2 AS cor0
----
-1444
-676
-729

onlyif mysql # use DIV operator for integer division
query I rowsort label-9010
SELECT DISTINCT + col0 + cor0.col2 DIV col0 FROM tab1 AS cor0
----
21
64
81

skipif mysql # not compatible
query I rowsort label-9010
SELECT DISTINCT + col0 + cor0.col2 / col0 FROM tab1 AS cor0
----
21
64
81

query I rowsort
SELECT ALL + col1 * col1 + - 51 AS col0 FROM tab1 cor0
----
118
49
625

onlyif mysql # use DIV operator for integer division
query I rowsort label-9012
SELECT ALL + col0 DIV + ( col1 ) FROM tab1
----
0
6
6

skipif mysql # not compatible
query I rowsort label-9012
SELECT ALL + col0 / + ( col1 ) FROM tab1
----
0
6
6

query I rowsort
SELECT tab2.col2 * col1 * + col2 AS col1 FROM tab2
----
22599
24548
39884

query I rowsort
SELECT DISTINCT + ( 68 ) FROM tab0 AS cor0
----
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 + + cor0.col2 * col1 col1 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT ALL - 32 + - col2 * col2 FROM tab2 cor0
----
-1476
-708
-761

query I rowsort
SELECT - + col0 + col0 * - col0 FROM tab2 AS cor0
----
-56
-6162
-6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-9018
SELECT ALL - col2 DIV - cor0.col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9018
SELECT ALL - col2 / - cor0.col2 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT + col0 * col1 * col2 AS col2 FROM tab0 AS cor0
----
3395
664118
68112

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9020
SELECT ALL + + CAST( col0 AS SIGNED ) FROM tab2 cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-9020
SELECT ALL + + CAST ( col0 AS INTEGER ) FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT DISTINCT 3 + col0 FROM tab0 AS cor0
----
27
38
92

query I rowsort
SELECT ALL + col1 + col1 * - col2 * + col0 FROM tab1
----
-36470
-4186
-99827

query I rowsort
SELECT DISTINCT col0 * - col2 + 1 FROM tab2
----
-188
-2027
-3001

query I rowsort
SELECT ALL - col0 + col1 FROM tab1
----
-54
-67
23

query I rowsort
SELECT ALL col0 + col1 FROM tab0
----
110
132
180

query I rowsort
SELECT DISTINCT + + ( - col0 ) FROM tab0 AS cor0
----
-24
-35
-89

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 col0 + - col0 * col2 FROM tab1 cor0
----
-159
-3584
-7600

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT ALL tab2.col1 AS col0 FROM tab2
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 col0 FROM tab2
----
80
80
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-9032
SELECT DISTINCT col0 DIV col0 + + ( ( col0 ) ) + - col1 FROM tab1 cor0
----
-22
55
68

skipif mysql # not compatible
query I rowsort label-9032
SELECT DISTINCT col0 / col0 + + ( ( col0 ) ) + - col1 FROM tab1 cor0
----
-22
55
68

query I rowsort
SELECT + ( + col1 ) * 15 AS col2 FROM tab0 AS cor0
----
1290
1365
1455

query I rowsort
SELECT ALL - - cor0.col2 + + cor0.col1 - + ( + 76 + - col2 ) AS col0 FROM tab2 AS cor0
----
17
35
9

query I rowsort
SELECT - 44 + - cor0.col2 FROM tab0 cor0
----
-126
-45
-77

query I rowsort
SELECT DISTINCT col0 * + 27 AS col1 FROM tab1
----
1728
2160
81

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0, tab0 AS cor0, tab2
----
972 values hashing to 1e9d01970ae508486ddabec967bb176c

query I rowsort
SELECT ALL ( tab0.col2 + col0 ) * 6 AS col2 FROM tab0
----
1026
216
342

query I rowsort
SELECT - 87 AS col2 FROM tab0
----
-87
-87
-87

query I rowsort
SELECT DISTINCT + ( + cor1.col1 ) + cor0.col0 * 27 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 7832bbc3b934184d7cdd00eae2636494

onlyif mysql # use DIV operator for integer division
query I rowsort label-9041
SELECT col2 DIV + col0 FROM tab2
----
0
0
3

skipif mysql # not compatible
query I rowsort label-9041
SELECT col2 / + col0 FROM tab2
----
0
0
3

query I rowsort
SELECT - ( - col1 ) * cor0.col0 + - col1 FROM tab1 AS cor0
----
1027
52
630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + 7 * + col1 FROM tab0 AS cor0
----
602
637
679

onlyif mysql # use DIV operator for integer division
query I rowsort label-9045
SELECT ( + col2 ) + + col1 * + col2 DIV - tab0.col2 AS col2 FROM tab0
----
-53
-9
-96

skipif mysql # not compatible
query I rowsort label-9045
SELECT ( + col2 ) + + col1 * + col2 / - tab0.col2 AS col2 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT - 53 AS col0 FROM tab2
----
-53
-53
-53

query I rowsort
SELECT DISTINCT - col0 - ( col2 ) * - col0 FROM tab0 AS cor0
----
0
7209
768

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9048
SELECT ALL - col1 * CAST( + 85 AS SIGNED ) FROM tab0 AS cor0
----
-7310
-7735
-8245

skipif mysql # not compatible
query I rowsort label-9048
SELECT ALL - col1 * CAST ( + 85 AS INTEGER ) FROM tab0 AS cor0
----
-7310
-7735
-8245

query I rowsort
SELECT ALL cor0.col0 * - 77 + col2 FROM tab1 AS cor0
----
-177
-4871
-6064

query I rowsort
SELECT + col0 - col0 AS col2 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 17 col2 FROM tab1
----
-17

query I rowsort
SELECT ALL + col1 * + tab2.col1 AS col1 FROM tab2
----
289
3481
961

query I rowsort
SELECT - 91 AS col1 FROM tab2
----
-91
-91
-91

onlyif mysql # use DIV operator for integer division
query I rowsort label-9054
SELECT - cor0.col0 DIV - 48 + + 37 FROM tab2, tab0 AS cor0
----
9 values hashing to 9b359b080c19f5bef5275d439fba36bd

skipif mysql # not compatible
query I rowsort label-9054
SELECT - cor0.col0 / - 48 + + 37 FROM tab2, tab0 AS cor0
----
9 values hashing to 9b359b080c19f5bef5275d439fba36bd

query I rowsort
SELECT DISTINCT + ( + tab1.col0 + + col1 ) FROM tab1
----
29
74
93

query I rowsort
SELECT ALL - col2 - col1 FROM tab2 cor0
----
-55
-58
-85

query I rowsort
SELECT - col2 * + col0 + - col1 AS col1 FROM tab0 AS cor0
----
-132
-7389
-878

onlyif mysql # use DIV operator for integer division
query I rowsort label-9058
SELECT ALL - col1 + col0 DIV + col1 FROM tab2 AS cor0
----
-13
-31
-58

skipif mysql # not compatible
query I rowsort label-9058
SELECT ALL - col1 + col0 / + col1 FROM tab2 AS cor0
----
-13
-31
-58

query I rowsort
SELECT DISTINCT - col2 * col2 + + col0 FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT cor0.col2 * + 85 AS col0 FROM tab2 AS cor0
----
2210
2295
3230

query I rowsort
SELECT ALL - col1 + 25 FROM tab0
----
-61
-66
-72

query IIIIIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab2, tab0 AS cor1
----
243 values hashing to b3323704f6873113d863f8e27386b356

query I rowsort
SELECT ALL col1 * 52 + col0 AS col1 FROM tab1
----
1355
584
756

query I rowsort
SELECT DISTINCT + + col1 AS col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT col0 * cor0.col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT - col0 + + 57 * col1 AS col1 FROM tab2 AS cor0
----
1760
3285
890

onlyif mysql # use DIV operator for integer division
query I rowsort label-9067
SELECT ALL + col1 DIV 16 AS col2 FROM tab2 AS cor0
----
1
1
3

skipif mysql # not compatible
query I rowsort label-9067
SELECT ALL + col1 / 16 AS col2 FROM tab2 AS cor0
----
1
1
3

query I rowsort
SELECT ALL - col2 * col0 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT + col1 + 45 AS col0 FROM tab0 AS cor0
----
131
136
142

query I rowsort
SELECT DISTINCT - col2 * 5 AS col1 FROM tab2 AS cor0
----
-130
-135
-190

query I rowsort
SELECT DISTINCT + col0 + col1 AS col2 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL col0 + ( - col2 ) * col0 FROM tab2 cor0
----
-182
-1950
-2923

query I rowsort
SELECT + col2 + col2 * - col1 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT ALL col2 + - cor0.col0 * col1 FROM tab0 AS cor0
----
-2031
-3394
-8017

onlyif mysql # use DIV operator for integer division
query I rowsort label-9075
SELECT DISTINCT col1 DIV col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9075
SELECT DISTINCT col1 / col1 FROM tab1 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * cor0.col2 col2 FROM tab2 AS cor0
----
1444
676
729

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab2 cor1
----
972 values hashing to a698694a7dac245e42212ff0316bdf45

query I rowsort
SELECT + col1 + + col1 * - col0 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT ALL 11 FROM tab0 AS cor0
----
11
11
11

query I rowsort
SELECT DISTINCT - ( col0 ) + col2 * ( - col1 ) FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT ALL + 80 + - 35 * col1 FROM tab2 AS cor0
----
-1005
-1985
-515

query I rowsort
SELECT + + 42 * + col1 + col1 AS col2 FROM tab1 AS cor0
----
1118
430
559

query I rowsort
SELECT DISTINCT - ( - col1 ) * - col0 + + ( + 83 ) * + col2 FROM tab1 cor0
----
4091
4404
6928

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 ALL + + 77 AS col2 FROM tab1 AS cor0
----
77
77
77

query I rowsort
SELECT col1 + col1 * + col0 AS col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT DISTINCT col2 * - col0 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL + 86 + - col2 FROM tab2 AS cor0
----
48
59
60

query I rowsort
SELECT DISTINCT - - ( 86 ) * col1 FROM tab0 AS cor0
----
7396
7826
8342

query I rowsort
SELECT - - 93 AS col1 FROM tab0 cor0
----
93
93
93

query I rowsort
SELECT + 31 + + 73 FROM tab1 AS cor0
----
104
104
104

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9092
SELECT - CAST( - col1 AS SIGNED ) * + col0 FROM tab1 AS cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-9092
SELECT - CAST ( - col1 AS INTEGER ) * + col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT - col2 + col2 FROM tab0 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9094
SELECT DISTINCT ( - col2 ) DIV col0 FROM tab1 cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-9094
SELECT DISTINCT ( - col2 ) / col0 FROM tab1 cor0
----
-1
-18
0

query I rowsort
SELECT - col1 + col1 * + col1 FROM tab1 AS cor0
----
156
650
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-9096
SELECT ALL + col1 DIV col1 AS col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9096
SELECT ALL + col1 / col1 AS col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - col1 * + col0 - col1 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT ALL cor0.col0 + col2 AS col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT + + col2 * cor0.col0 AS col0 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT ALL - + col0 * - cor0.col0 + 53 FROM tab2 AS cor0
----
102
6137
6294

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col2 ) * ( col0 ) col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT + cor0.col1 * - cor0.col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT - col1 - ( - col2 + - col1 ) AS col0 FROM tab2
----
26
27
38

query I rowsort
SELECT ALL - 78 FROM tab2 AS cor0
----
-78
-78
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 col2 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT cor0.col1 * + col0 AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL - 38 AS col2 FROM tab2
----
-38
-38
-38

query I rowsort
SELECT DISTINCT - tab0.col2 + - tab0.col1 AS col0 FROM tab0
----
-119
-173
-98

query I rowsort
SELECT - col2 * - col1 + + col1 * + 7 + col0 * col0 FROM tab0
----
16020
2001
4016

query I rowsort
SELECT ALL - col2 * - 70 AS col1 FROM tab1 AS cor0
----
3780
3990
6720

onlyif mysql # use DIV operator for integer division
query I rowsort label-9111
SELECT DISTINCT CAST( col2 AS SIGNED ) DIV + col1 + col2 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-9111
SELECT DISTINCT CAST ( col2 AS INTEGER ) / + col1 + col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL + 93 * + col0 + col1 * + ( + col0 ) FROM tab0 AS cor0
----
16376
4296
6650

query I rowsort
SELECT - 60 * + col0 + + col1 FROM tab1 AS cor0
----
-154
-3830
-4787

query I rowsort
SELECT ALL - 15 * - col2 + col2 AS col2 FROM tab1 cor0
----
1536
864
912

query I rowsort
SELECT + 74 FROM tab0 AS cor0
----
74
74
74

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9116
SELECT ALL - CAST( + ( - col0 ) AS SIGNED ) * - col1 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

skipif mysql # not compatible
query I rowsort label-9116
SELECT ALL - CAST ( + ( - col0 ) AS INTEGER ) * - col1 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT - cor0.col1 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT col0 + col1 AS col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL + 99 * - col1 * col2 AS col0 FROM tab1 AS cor0
----
-123552
-138996
-56430

query I rowsort
SELECT DISTINCT + ( 17 ) * + col0 * - 1 + col0 AS col0 FROM tab1 AS cor0
----
-1024
-1280
-48

query I rowsort
SELECT ALL cor0.col0 * + ( col0 ) FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT 38 * + col2 + + col2 AS col1 FROM tab1 AS cor0
----
2106
2223
3744

query I rowsort
SELECT ALL ( - col1 ) AS col1 FROM tab2 AS cor0
----
-17
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-9124
SELECT - + 37 DIV - col1 FROM tab1 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-9124
SELECT - + 37 / - col1 FROM tab1 AS cor0
----
1
2
3

query I rowsort
SELECT DISTINCT 16 + ( col0 ) * col2 AS col1 FROM tab1 cor0
----
178
3664
7696

query I rowsort
SELECT - + col0 + 6 * col1 AS col1 FROM tab0 AS cor0
----
457
492
547

query I rowsort
SELECT + - 60 * col2 + - col0 AS col0 FROM tab2 AS cor0
----
-1627
-1638
-2359

query I rowsort
SELECT ( cor0.col1 ) * ( - col1 + + cor0.col1 ) AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 60 FROM tab2 cor0
----
-60

query I rowsort
SELECT DISTINCT - - col2 + cor0.col0 AS col1 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT + col0 * - col2 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT + col1 * cor0.col2 AS col0 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT + + 95 * - cor0.col2 AS col0 FROM tab0 AS cor0
----
-3135
-7790
-95

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT - col0 - - col0 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT + 51 * col1 + - ( + col0 + col1 ) FROM tab2 AS cor0
----
1543
2872
771

query I rowsort
SELECT - + col1 * col2 + + 84 FROM tab1 AS cor0
----
-1164
-1320
-486

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col1 + 50 * + ( col0 ) * + col2 col1 FROM tab1 AS cor0
----
182300
383831
7424

onlyif mysql # use DIV operator for integer division
query I rowsort label-9139
SELECT ALL + cor0.col0 + col0 * col1 DIV col0 + - col2 FROM tab1 AS cor0
----
-25
-3
17

skipif mysql # not compatible
query I rowsort label-9139
SELECT ALL + cor0.col0 + col0 * col1 / col0 + - col2 FROM tab1 AS cor0
----
-25
-3
17

query I rowsort
SELECT - col0 * col0 - col2 AS col0 FROM tab0 cor0
----
-1226
-609
-8003

query I rowsort
SELECT + cor2.col2 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1, tab1 cor2
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886

query I rowsort
SELECT + - col0 * 58 AS col1 FROM tab2 AS cor0
----
-406
-4524
-4582

query I rowsort
SELECT DISTINCT col1 + ( + col2 ) * col1 FROM tab1 cor0
----
1261
1430
580

query I rowsort
SELECT col0 + col2 AS col0 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT ALL cor0.col1 AS col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL col2 * 34 + col1 AS col0 FROM tab0 AS cor0
----
1208
131
2879

query I rowsort
SELECT DISTINCT - col0 + col2 + + 19 FROM tab0 AS cor0
----
-15
12
28

query I rowsort
SELECT + + col1 * + col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT ALL tab0.col0 + tab0.col1 - col1 * col2 AS col0 FROM tab0
----
-2728
-7282
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - cor0.col1 * + col2 col0 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT ALL - ( - col2 ) + col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT - - ( - 19 ) + cor0.col2 FROM tab1 cor0
----
35
38
77

query I rowsort
SELECT - + col0 * + 95 + + col0 FROM tab0 AS cor0
----
-2256
-3290
-8366

query I rowsort
SELECT DISTINCT 58 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
58

query I rowsort
SELECT DISTINCT - 70 FROM tab1, tab1 AS cor0
----
-70

query I rowsort
SELECT ALL - col0 + 55 FROM tab0
----
-34
20
31

query I rowsort
SELECT DISTINCT col2 + col0 FROM tab1
----
121
176
57

query I rowsort
SELECT ALL - col0 + + col1 * col0 * col1 AS col1 FROM tab0
----
177480
329280
736920

query I rowsort
SELECT ALL col0 + - tab0.col2 FROM tab0
----
-9
34
7

query I rowsort
SELECT ALL - col2 + + tab1.col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 * col2 * 96 + col0 * + col2 AS col0 FROM tab2
----
18333
196716
291194

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9162
SELECT + CAST( NULL AS SIGNED ) + cor0.col0 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9162
SELECT + CAST ( NULL AS INTEGER ) + cor0.col0 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 8 FROM tab1 cor0
----
-8
-8
-8

query I rowsort
SELECT + - col0 * 82 - - col2 FROM tab0 AS cor0
----
-1935
-2869
-7216

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0, tab1, tab0 cor1
----
972 values hashing to b51b4342db121ebc2d3d353dcd8ed521

query I rowsort
SELECT - - ( - col0 ) * col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT - 57 AS col0 FROM tab1
----
-57

query I rowsort
SELECT + - tab0.col0 AS col1 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT col0 * - col0 FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT 6 * - cor0.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to a509bcb4bef1d197e24adaaaaecb851f

query I rowsort
SELECT ( 76 ) FROM tab2
----
76
76
76

query I rowsort
SELECT ALL 50 FROM tab2
----
50
50
50

onlyif mysql # use DIV operator for integer division
query I rowsort label-9173
SELECT ( col2 + col0 ) DIV - col2 FROM tab1
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-9173
SELECT ( col2 + col0 ) / - col2 FROM tab1
----
-1
-1
-2

query I rowsort
SELECT DISTINCT ( 91 ) FROM tab1
----
91

query I rowsort
SELECT ALL tab2.col0 AS col2 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT ALL 99 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query I rowsort
SELECT + 37 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to c023509f63faa044d654943e6df55ca2

query I rowsort
SELECT + tab0.col1 * + col1 + - col2 AS col1 FROM tab0
----
7363
8199
9408

query I rowsort
SELECT - + col2 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT col1 * col1 AS col0 FROM tab1
----
100
169
676

query I rowsort
SELECT ALL + col2 * + col0 AS col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT 94 AS col1 FROM tab2
----
94
94
94

query I rowsort
SELECT cor0.col0 * + 1 AS col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT + col0 * cor0.col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL + col1 - 21 * col0 AS col0 FROM tab1 AS cor0
----
-1334
-1667
-37

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9186
SELECT DISTINCT - col1 * CAST( - col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-9186
SELECT DISTINCT - col1 * CAST ( - col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-9187
SELECT + col1 DIV col1 AS col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9187
SELECT + col1 / col1 AS col2 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT cor0.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT - col1 + + col1 AS col2 FROM tab1
----
0
0
0

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab1 cor1
----
243 values hashing to 7e12d99d8ab63d9fd10e95cef9d78998

query I rowsort
SELECT DISTINCT 7 AS col0 FROM tab1 cor0
----
7

query I rowsort
SELECT ALL + col2 + + cor0.col0 AS col2 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT - 61 * col2 AS col1 FROM tab1 AS cor0
----
-3294
-3477
-5856

query I rowsort
SELECT - + cor0.col0 AS col0 FROM tab1 AS cor0
----
-3
-64
-80

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0, tab2 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to db428ec66bce13149e3129b417b0fe94

query I rowsort
SELECT + col0 * - col1 - col0 FROM tab1 AS cor0
----
-1120
-704
-81

query I rowsort
SELECT DISTINCT col0 * + 94 * - col2 FROM tab2 AS cor0
----
-17766
-190632
-282188

query I rowsort
SELECT col0 + col2 + - col0 * + col1 AS col1 FROM tab2 AS cor0
----
-1226
-183
-4498

query I rowsort
SELECT DISTINCT + + col2 + cor0.col0 AS col0 FROM tab1 AS cor0
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-9200
SELECT DISTINCT col2 DIV ( - col0 * cor0.col0 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9200
SELECT DISTINCT col2 / ( - col0 * cor0.col0 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT + col2 + - ( col0 ) + cor0.col2 FROM tab1 AS cor0
----
105
112
50

query I rowsort
SELECT ALL - col0 * col2 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT col1 * cor0.col1 + col1 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT ALL + col0 * 50 FROM tab1 AS cor0
----
150
3200
4000

query I rowsort
SELECT - 12 AS col1 FROM tab2
----
-12
-12
-12

query I rowsort
SELECT ALL - col2 * + col0 AS col1 FROM tab0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-9207
SELECT tab1.col0 DIV col1 AS col1 FROM tab1
----
0
6
6

skipif mysql # not compatible
query I rowsort label-9207
SELECT tab1.col0 / col1 AS col1 FROM tab1
----
0
6
6

query I rowsort
SELECT 18 + col1 + 65 * 72 AS col2 FROM tab1
----
4708
4711
4724

query I rowsort
SELECT ALL + + col1 * - ( cor0.col0 ) FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-9210
SELECT DISTINCT - - col1 DIV col0 FROM tab1 AS cor0
----
0
8

skipif mysql # not compatible
query I rowsort label-9210
SELECT DISTINCT - - col1 / col0 FROM tab1 AS cor0
----
0
8

query I rowsort
SELECT ALL + col2 + 28 * col0 * - col1 FROM tab1 AS cor0
----
-17863
-2130
-29024

query I rowsort
SELECT DISTINCT tab1.col1 * cor0.col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 9dd217b6385bf38f78d8b6e6b7864578

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <= - col1 + col2
----

query I rowsort
SELECT - col1 * + col1 FROM tab1
----
-100
-169
-676

query I rowsort
SELECT col2 * - col1 FROM tab1
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-9216
SELECT - col1 DIV col0 FROM tab2
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-9216
SELECT - col1 / col0 FROM tab2
----
-4
0
0

query I rowsort
SELECT ALL col0 + + col2 AS col0 FROM tab0
----
171
36
57

query I rowsort
SELECT ALL + col0 + - col2 FROM tab2
----
-20
41
52

query I rowsort
SELECT DISTINCT - col1 + col1 * - col2 FROM tab0
----
-194
-2924
-7553

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col1 FROM tab1
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - col2 col0 FROM tab0 WHERE NULL = NULL
----

query I rowsort
SELECT col2 * + col0 * - col2 + col0 FROM tab1
----
-207872
-737200
-8745

query I rowsort
SELECT ALL col0 * col1 + - tab0.col0 * col2 FROM tab0
----
1272
3360
801

query I rowsort
SELECT DISTINCT col2 + - col2 AS col2 FROM tab1
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9225
SELECT tab1.col0 * + col0 - col0 DIV col2 AS col2 FROM tab1
----
4095
6400
9

skipif mysql # not compatible
query I rowsort label-9225
SELECT tab1.col0 * + col0 - col0 / col2 AS col2 FROM tab1
----
4095
6400
9

query I rowsort
SELECT - col0 * col1 AS col2 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT col1 * - col1 + - col1 FROM tab0
----
-7482
-8372
-9506

query I rowsort
SELECT - col1 + + col1 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL col2 * col1 + tab0.col1 AS col2 FROM tab0
----
194
2924
7553

query I rowsort
SELECT - col1 + - col1 * tab1.col1 AS col0 FROM tab1
----
-110
-182
-702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col1 FROM tab1
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT tab2.col0 + col2 * col0 FROM tab2
----
196
2106
3081

query I rowsort
SELECT DISTINCT + col0 * col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT - tab1.col2 - col1 FROM tab1
----
-109
-67
-80

query I rowsort
SELECT + col1 + + tab0.col0 AS col1 FROM tab0
----
110
132
180

query I rowsort
SELECT ALL + tab0.col0 + col0 * - col1 * col2 FROM tab0
----
-3360
-664029
-68088

query I rowsort
SELECT col2 + + col0 * - col2 * col1 FROM tab2
----
-119626
-50996
-5832

query I rowsort
SELECT - tab2.col0 - - col0 * tab2.col2 * tab2.col0 AS col1 FROM tab2
----
1316
158106
237079

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE NOT col0 IN ( - col0 - col0 )
----
7
78
79

query I rowsort
SELECT + col0 + col1 AS col2 FROM tab1
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-9242
SELECT DISTINCT - col0 - col2 DIV col1 FROM tab2
----
-7
-78
-81

skipif mysql # not compatible
query I rowsort label-9242
SELECT DISTINCT - col0 - col2 / col1 FROM tab2
----
-7
-78
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * - col2 - col1 * 12 col0 FROM tab0 AS cor0
----
-1165
-2121
-7816

query I rowsort
SELECT ALL cor0.col0 + + cor0.col2 * 98 FROM tab2 cor0
----
2626
2653
3803

query I rowsort
SELECT ALL + col0 + col0 * col0 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT ALL + ( col2 ) FROM tab2
----
26
27
38

query I rowsort
SELECT ALL + ( col2 ) + col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL + cor0.col0 * + col2 + ( col0 ) AS col2 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT ALL - 15 FROM tab0 AS cor0
----
-15
-15
-15

query I rowsort
SELECT DISTINCT + 13 * + col1 FROM tab0 AS cor0
----
1118
1183
1261

query I rowsort
SELECT DISTINCT - col2 * + col1 + + 64 FROM tab2 AS cor0
----
-1470
-582
-773

query I rowsort
SELECT DISTINCT col0 + col1 AS col2 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT + + 65 * col0 FROM tab0 AS cor0
----
1560
2275
5785

query I rowsort
SELECT DISTINCT - col0 + col1 * + col0 * - col1 FROM tab1
----
-13600
-2031
-6464

query I rowsort
SELECT DISTINCT col0 + col2 * col1 * - col2 + col2 * - col1 AS col1 FROM tab1
----
-120976
-32996
-77217

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9256
SELECT - CAST( NULL AS SIGNED ) * - col0 col2 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9256
SELECT - CAST ( NULL AS INTEGER ) * - col0 col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + col0 * - col0 FROM tab2
----
-56
-6162
-6320

query I rowsort
SELECT DISTINCT col0 + - 16 FROM tab0
----
19
73
8

query I rowsort
SELECT DISTINCT col0 * tab0.col1 + col2 * + 75 AS col1 FROM tab0
----
14249
3470
4539

query I rowsort
SELECT DISTINCT - + cor1.col1 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-10
-13
-26

query I rowsort
SELECT ( + col2 ) + 79 FROM tab0
----
112
161
80

query I rowsort
SELECT + 18 * col0 + ( 69 ) FROM tab2
----
1473
1491
195

query I rowsort
SELECT col0 + cor0.col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL - + cor0.col0 - cor0.col0 FROM tab2 cor0
----
-14
-156
-158

query I rowsort
SELECT + col0 * col2 AS col2 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9266
SELECT DISTINCT + col0 * col1 + CAST( NULL AS SIGNED ) + + col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9266
SELECT DISTINCT + col0 * col1 + CAST ( NULL AS INTEGER ) + + col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - col2 + + col2 * + col2 * col0 AS col1 FROM tab2 AS cor0
----
114038
5076
52702

query I rowsort
SELECT DISTINCT + + col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT 52 + col2 FROM tab1 AS cor0
----
106
109
148

query I rowsort
SELECT + + col1 * col0 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT 92 FROM tab0
----
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col0 * + col2 + col2 col1 FROM tab1 AS cor0
----
213
3641
7696

query I rowsort
SELECT ALL - 47 - col1 FROM tab0 AS cor0
----
-133
-138
-144

query I rowsort
SELECT - + cor0.col1 * col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL 83 + + col2 * col2 FROM tab0 AS cor0
----
1172
6807
84

query I rowsort
SELECT + col1 * + col2 AS col0 FROM tab1
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col1 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

query I rowsort
SELECT ALL 51 FROM tab2, tab2 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

onlyif mysql # use DIV operator for integer division
query I rowsort label-9279
SELECT + col1 + - cor0.col0 * col2 DIV col1 - col2 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
1559
487
862

skipif mysql # not compatible
query I rowsort label-9279
SELECT + col1 + - cor0.col0 * col2 / col1 - col2 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
1559
487
862

query I rowsort
SELECT - - col1 + col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT col1 - + col0 FROM tab1
----
-54
-67
23

query I rowsort
SELECT DISTINCT - 17 FROM tab1, tab2 AS cor0
----
-17

query I rowsort
SELECT ALL + col1 + + 96 + col2 AS col0 FROM tab1
----
163
176
205

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0, tab0 cor1, tab0 AS cor2
----
972 values hashing to ea0f747588ddf5869ee18a5e22d9f237

query I rowsort
SELECT col1 * + col0 AS col0 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT ALL - - col0 * + col2 + - col2 * ( col1 ) FROM tab1 AS cor0
----
-1242
3078
6432

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col2 + + col2 col0 FROM tab0
----
164
2
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9288
SELECT CAST( NULL AS SIGNED ) / col0 + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9288
SELECT CAST ( NULL AS INTEGER ) / col0 + col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9289
SELECT - CAST( 47 AS SIGNED ) + col2 FROM tab0
----
-14
-46
35

skipif mysql # not compatible
query I rowsort label-9289
SELECT - CAST ( 47 AS INTEGER ) + col2 FROM tab0
----
-14
-46
35

query I rowsort
SELECT ALL - + 49 FROM tab1 cor0
----
-49
-49
-49

query I rowsort
SELECT DISTINCT + col2 + + cor0.col0 FROM tab2 AS cor0
----
104
117
34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9292
SELECT DISTINCT - CAST( - col2 AS SIGNED ) + col2 * ( + col0 ) col1 FROM tab2 cor0
----
2054
216
3040

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9292
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) + col2 * ( + col0 ) col1 FROM tab2 cor0
----
2054
216
3040

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab1 AS cor1, tab1 AS cor2
----
972 values hashing to fe55095fff3a5ecc2f113d14a8c6f823

query I rowsort
SELECT ALL + - col0 - + col1 * col1 FROM tab2 AS cor0
----
-3559
-368
-968

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9295
SELECT CAST( col2 AS SIGNED ) AS col0 FROM tab1 cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-9295
SELECT CAST ( col2 AS INTEGER ) AS col0 FROM tab1 cor0
----
54
57
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9296
SELECT + col2 + + ( - col1 ) * CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9296
SELECT + col2 + + ( - col1 ) * CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT - + ( - col1 ) FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT col1 + ( + col2 ) FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL - 90 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c0d96679aba507520916e8654e5a6618

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9301
SELECT ALL tab0.col1 + - col0 * CAST( NULL AS SIGNED ) col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9301
SELECT ALL tab0.col1 + - col0 * CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9302
SELECT CAST( NULL AS DECIMAL ) * - tab0.col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-9302
SELECT CAST ( NULL AS REAL ) * - tab0.col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT col2 + - col1 + col0 * + col2 AS col0 FROM tab0 AS cor0
----
-61
7289
739

query I rowsort
SELECT + col2 - - 56 FROM tab0 AS cor0
----
138
57
89

query I rowsort
SELECT + col0 * col2 - cor0.col0 * + cor0.col1 FROM tab1 AS cor0
----
3008
6640
84

query I rowsort
SELECT - col2 + 75 FROM tab1 AS cor0
----
-21
18
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-9307
SELECT + col0 DIV - col0 AS col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9307
SELECT + col0 / - col0 AS col0 FROM tab2
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-9308
SELECT ALL + col0 DIV col0 + 44 FROM tab1
----
45
45
45

skipif mysql # not compatible
query I rowsort label-9308
SELECT ALL + col0 / col0 + 44 FROM tab1
----
45
45
45

query I rowsort
SELECT + 57 * + tab2.col0 AS col0 FROM tab2
----
399
4446
4503

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

query I rowsort
SELECT cor0.col0 * - col2 + 42 * + col1 * - col2 AS col0 FROM tab2 AS cor0
----
-30134
-35343
-66456

onlyif mysql # use DIV operator for integer division
query I rowsort label-9312
SELECT DISTINCT + col2 * + col1 + col2 DIV - col1 AS col2 FROM tab0 AS cor0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-9312
SELECT DISTINCT + col2 * + col1 + col2 / - col1 AS col2 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-9313
SELECT - col0 * 48 + - col2 DIV - col2 FROM tab0 AS cor0
----
-1151
-1679
-4271

skipif mysql # not compatible
query I rowsort label-9313
SELECT - col0 * 48 + - col2 / - col2 FROM tab0 AS cor0
----
-1151
-1679
-4271

query I rowsort
SELECT + - col1 * 81 - - cor0.col2 AS col0 FROM tab0 AS cor0
----
-6933
-7289
-7856

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + 41 col2 FROM tab2 cor0
----
67
68
79

query I rowsort
SELECT + 72 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

onlyif mysql # use DIV operator for integer division
query I rowsort label-9317
SELECT ALL + col1 - - 37 DIV - cor0.col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-9317
SELECT ALL + col1 - - 37 / - cor0.col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT cor0.col0 AS col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL col1 + ( col2 ) AS col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT + col2 - col1 FROM tab1 cor0
----
28
47
83

query I rowsort
SELECT ALL - col2 + ( cor0.col2 ) * cor0.col0 FROM tab2 AS cor0
----
162
2002
2964

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0, tab1, tab0 AS cor1
----
972 values hashing to 67c5300bc5cba0be4f54a444dc6f05b9

query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0 CROSS JOIN tab2
----
243 values hashing to 5d85c5683e3ffd6d68920690d7302f7d

query I rowsort
SELECT ALL + ( + 60 ) FROM tab2 AS cor0
----
60
60
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-9325
SELECT + CAST( col0 AS SIGNED ) DIV col1 col2 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9325
SELECT + CAST ( col0 AS INTEGER ) / col1 col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - ( - 20 ) + col2 AS col1 FROM tab2 AS cor0
----
46
47
58

query I rowsort
SELECT DISTINCT 27 * - 66 * col2 AS col0 FROM tab1 AS cor0
----
-101574
-171072
-96228

query I rowsort
SELECT - ( - col0 ) * col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT + 94 * col1 FROM tab0 AS cor0
----
8084
8554
9118

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 70 col2 FROM tab2 AS cor0
----
70
70
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-9331
SELECT + + col1 DIV - 5 FROM tab0 AS cor0
----
-17
-18
-19

skipif mysql # not compatible
query I rowsort label-9331
SELECT + + col1 / - 5 FROM tab0 AS cor0
----
-17
-18
-19

query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0, tab2 cor1
----
243 values hashing to 042fa16c43ab365359ee93c064e44127

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9333
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + col0 * col0 * + col1 col0 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9333
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + col0 * col0 * + col1 col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - cor0.col2 - - col1 AS col2 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT ALL + - 80 - + col0 FROM tab0 AS cor0
----
-104
-115
-169

query I rowsort
SELECT ALL - col0 - - col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL + 86 + - cor0.col1 * col0 AS col1 FROM tab2 AS cor0
----
-1257
-131
-4516

query I rowsort
SELECT - ( - col1 * col2 ) AS col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT DISTINCT + - ( col2 ) + col2 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ( - col1 ) * col1 FROM tab2 cor0
----
-289
-3481
-961

query I rowsort
SELECT - + col0 * + col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab1 cor1, tab2 AS cor2
----
972 values hashing to 01a5931cccc3dad8792a1bc6df09c614

query I rowsort
SELECT + col0 * - col1 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT - 78 AS col1 FROM tab2 cor0
----
-78
-78
-78

query I rowsort
SELECT + cor0.col0 AS col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT - 93 FROM tab1 AS cor0
----
-93
-93
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-9347
SELECT - col0 DIV col1 FROM tab1 AS cor0
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-9347
SELECT - col0 / col1 FROM tab1 AS cor0
----
-6
-6
0

query I rowsort
SELECT ALL - + col2 + + ( col2 ) * + col0 AS col2 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT + - col0 * + 97 FROM tab1 AS cor0
----
-291
-6208
-7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col0 FROM tab2 AS cor0
----
7
78
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9351
SELECT CAST( - col0 AS SIGNED ) + cor0.col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9351
SELECT CAST ( - col0 AS INTEGER ) + cor0.col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 44 FROM tab0 cor0
----
-44
-44
-44

query I rowsort
SELECT - 82 + + cor0.col0 * col2 * - col0 + col0 AS col1 FROM tab0 AS cor0
----
-1272
-19066
-649515

query I rowsort
SELECT cor1.col0 * - ( 48 ) FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to a025a79b87c6155cc6a9089757e0d57f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9355
SELECT CAST( col0 AS SIGNED ) FROM tab2 cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-9355
SELECT CAST ( col0 AS INTEGER ) FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT - col1 + ( col1 + col0 ) FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT - ( col2 ) * col0 * + col1 AS col0 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT DISTINCT tab0.col0 FROM tab0, tab0 cor0
----
24
35
89

query I rowsort
SELECT ALL ( - 90 ) FROM tab1
----
-90
-90
-90

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT - + 73 FROM tab0 AS cor0
----
-73

query I rowsort
SELECT + 46 FROM tab1 cor0
----
46
46
46

query I rowsort
SELECT ALL + 76 * + col0 AS col2 FROM tab0 AS cor0
----
1824
2660
6764

query I rowsort
SELECT + 53 FROM tab0, tab0 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda

query I rowsort
SELECT ALL - col1 * 39 * + col0 FROM tab2
----
-179478
-52377
-8463

query I rowsort
SELECT 97 * cor0.col2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2, tab2 cor1
----
27 values hashing to 9b8b41764acadcf6672a8750d607c130

query I rowsort
SELECT ALL + tab1.col0 AS col2 FROM tab1
----
3
64
80

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0, tab0 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to 61c64d7c972af4105004f57e1913df08

query I rowsort
SELECT DISTINCT + 83 * - tab0.col1 FROM tab0
----
-7138
-7553
-8051

query I rowsort
SELECT col0 * col2 * + col0 + - tab2.col0 FROM tab2
----
1316
158106
237079

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab1
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col1 * 38 col2 FROM tab0 AS cor0
----
3268
3458
3686

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9373
SELECT ALL CAST( 71 AS SIGNED ) - + col2 AS col2 FROM tab1 AS cor0
----
-25
14
17

skipif mysql # not compatible
query I rowsort label-9373
SELECT ALL CAST ( 71 AS INTEGER ) - + col2 AS col2 FROM tab1 AS cor0
----
-25
14
17

query I rowsort
SELECT + 20 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT ( col2 ) AS col1 FROM tab2 AS cor0
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * - col2 * col0 col2 FROM tab0 AS cor0
----
-1225
-19008
-649522

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0, tab1 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to cc4f069e61d0cc52f433f9e8c0058808

query I rowsort
SELECT DISTINCT + + col0 - + col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT + cor0.col1 AS col2 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9380
SELECT DISTINCT - CAST( NULL AS DECIMAL ) - col1 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9380
SELECT DISTINCT - CAST ( NULL AS REAL ) - col1 AS col1 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 45 + - col0 col2 FROM tab0
----
-134
-69
-80

query I rowsort
SELECT 88 * - col2 AS col2 FROM tab1
----
-4752
-5016
-8448

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0, tab0 cor0
----
243 values hashing to 021da207cdc2a046fb0a79bf7cfc38ae

query I rowsort
SELECT ALL + col0 * - col1 + - 6 * - ( + col1 * + ( + 35 ) + tab0.col0 ) FROM tab0
----
11545
16140
17185

query I rowsort
SELECT - - col0 AS col1 FROM tab2 cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-9386
SELECT - 93 DIV col1 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9386
SELECT - 93 / col1 FROM tab0 AS cor0
----
-1
-1
0

query I rowsort
SELECT + col1 + cor0.col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT - 90 AS col1 FROM tab2 cor0
----
-90
-90
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col2 + col1 col2 FROM tab0
----
119
173
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 9 * 84 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 266b6f374bc9527dd03bf34e2ceeea8b

query I rowsort
SELECT DISTINCT col2 * 65 + - 90 AS col1 FROM tab0 AS cor0
----
-25
2055
5240

query I rowsort
SELECT ALL + col1 - 95 AS col0 FROM tab1 AS cor0
----
-69
-82
-85

query I rowsort
SELECT ALL col2 + col2 + - 35 * col1 FROM tab2 AS cor0
----
-1031
-2013
-519

query I rowsort
SELECT DISTINCT col1 * + 60 FROM tab2 cor0
----
1020
1860
3540

query I rowsort
SELECT + + col1 + - cor0.col2 * + col2 AS col1 FROM tab1 AS cor0
----
-2890
-3239
-9203

query I rowsort
SELECT DISTINCT - col2 + - col0 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT ALL - col2 FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT + col1 + + 55 FROM tab0 AS cor0
----
141
146
152

query I rowsort
SELECT + + col1 + 69 * + col0 AS col1 FROM tab0 AS cor0
----
1742
2512
6232

query I rowsort
SELECT cor0.col2 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT DISTINCT + tab2.col2 FROM tab2, tab1 AS cor0
----
26
27
38

query I rowsort
SELECT + - col2 * col0 + - col1 * col2 FROM tab2 cor0
----
-1026
-3562
-3648

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col0 col2 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT + col1 * + col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 * 5 col2 FROM tab2 AS cor0
----
35
390
395

query I rowsort
SELECT ALL cor0.col2 * + 46 FROM tab0 cor0
----
1518
3772
46

query I rowsort
SELECT + col0 + col1 AS col2 FROM tab2 cor0
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-9408
SELECT DISTINCT + col2 DIV CAST( - ( - col0 ) * col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9408
SELECT DISTINCT + col2 / CAST ( - ( - col0 ) * col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 col0 FROM tab2 AS cor0
----
-26
-27
-38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9410
SELECT ALL col0 * - CAST( col0 AS SIGNED ) * col1 FROM tab2
----
-106097
-1519
-358956

skipif mysql # not compatible
query I rowsort label-9410
SELECT ALL col0 * - CAST ( col0 AS INTEGER ) * col1 FROM tab2
----
-106097
-1519
-358956

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT - col2 * 3 FROM tab1 AS cor0
----
-162
-171
-288

query I rowsort
SELECT DISTINCT + col0 * 6 FROM tab0 cor0
----
144
210
534

query I rowsort
SELECT + - cor0.col1 * 85 FROM tab2 AS cor0
----
-1445
-2635
-5015

query I rowsort
SELECT DISTINCT - ( 31 ) AS col2 FROM tab1, tab0 AS cor0
----
-31

query I rowsort
SELECT DISTINCT - - col0 * + col0 * - col1 AS col0 FROM tab2 AS cor0
----
-106097
-1519
-358956

onlyif mysql # use DIV operator for integer division
query I rowsort label-9417
SELECT col2 + + col0 DIV col2 FROM tab1
----
54
58
96

skipif mysql # not compatible
query I rowsort label-9417
SELECT col2 + + col0 / col2 FROM tab1
----
54
58
96

query I rowsort
SELECT + tab1.col2 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9419
SELECT col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9419
SELECT col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + 69 AS col0 FROM tab1
----
79
82
95

query I rowsort
SELECT DISTINCT - - col1 + col1 * + cor0.col1 FROM tab2 AS cor0
----
306
3540
992

query I rowsort
SELECT - col0 * - col0 + col2 * - col2 FROM tab0 AS cor0
----
-513
1197
1224

query I rowsort
SELECT - + col2 + 74 AS col2 FROM tab2 cor0
----
36
47
48

query I rowsort
SELECT ALL col0 + col0 * - col2 AS col1 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT ALL col2 + - 48 AS col2 FROM tab1 AS cor0
----
48
6
9

query I rowsort
SELECT DISTINCT + col1 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT ALL - col0 * cor0.col1 FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9428
SELECT + CAST( col2 AS SIGNED ) * col2 AS col1 FROM tab2 AS cor0
----
1444
676
729

skipif mysql # not compatible
query I rowsort label-9428
SELECT + CAST ( col2 AS INTEGER ) * col2 AS col1 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT + + col1 * ( - cor0.col0 ) AS col1 FROM tab2 cor0
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 42 col1 FROM tab1 AS cor0
----
-42

query I rowsort
SELECT ALL + cor0.col2 * cor0.col2 FROM tab0 AS cor0
----
1
1089
6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + ( col1 ) col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT - cor0.col1 + col2 AS col0 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT DISTINCT + 44 + + ( col1 ) FROM tab0 AS cor0
----
130
135
141

query I rowsort
SELECT - ( col2 ) * + col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT + 40 * - 47 AS col2 FROM tab0 AS cor0
----
-1880
-1880
-1880

query I rowsort
SELECT ALL - col1 + col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - - 99 + + 63 AS col0 FROM tab2 AS cor0
----
162
162
162

query I rowsort
SELECT + col0 * + col1 FROM tab2
----
1343
217
4602

query I rowsort
SELECT + 63 + cor0.col0 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to f238992bff8b42e805fe0bf0a69e4a6c

query I rowsort
SELECT - col0 * - tab1.col2 - + col1 FROM tab1
----
136
3638
7667

query I rowsort
SELECT ALL + col1 + col1 + col1 FROM tab2
----
177
51
93

query I rowsort
SELECT DISTINCT - - col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL - col1 + - cor0.col0 + + ( col2 ) * + col1 FROM tab1 cor0
----
1155
1375
496

query I rowsort
SELECT DISTINCT - 19 AS col1 FROM tab1 AS cor0
----
-19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT - col0 + - col0 * 5 FROM tab1 AS cor0
----
-18
-384
-480

query I rowsort
SELECT ALL + + col2 + - col1 * ( ( cor0.col1 ) + - col0 ) * col1 AS col2 FROM tab2 AS cor0
----
-23037
17956
66165

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9449
SELECT + col2 * col1 * - ( col0 ) + - col1 * CAST( NULL AS SIGNED ) / col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9449
SELECT + col2 * col1 * - ( col0 ) + - col1 * CAST ( NULL AS INTEGER ) / col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( col2 ) AS col2 FROM tab0 AS cor0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-9451
SELECT ALL - - 22 + + col1 DIV ( - col2 ) FROM tab1 AS cor0
----
22
22
22

skipif mysql # not compatible
query I rowsort label-9451
SELECT ALL - - 22 + + col1 / ( - col2 ) FROM tab1 AS cor0
----
22
22
22

query I rowsort
SELECT 54 * col1 + col0 AS col1 FROM tab2 cor0
----
1681
3264
997

query I rowsort
SELECT ALL - 9 FROM tab1 cor0
----
-9
-9
-9

query I rowsort
SELECT - 88 + - col2 - col2 AS col1 FROM tab0 AS cor0
----
-154
-252
-90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9455
SELECT col2 * - col2 * col0 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9455
SELECT col2 * - col2 * col0 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 93 FROM tab1
----
93
93
93

query I rowsort
SELECT ALL 44 FROM tab1 AS cor0
----
44
44
44

query I rowsort
SELECT + + col1 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT + ( + col0 ) + + ( + col2 ) * col2 AS col1 FROM tab1 cor0
----
2919
3313
9296

query I rowsort
SELECT ALL - col0 * + col1 + + ( + 9 ) AS col1 FROM tab2 AS cor0
----
-1334
-208
-4593

query I rowsort
SELECT DISTINCT + col0 + - cor0.col1 + - 98 * + col1 * - cor0.col2 FROM tab0 AS cor0
----
278062
731274
9444

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 83 * col1 col0 FROM tab0 AS cor0
----
7138
7553
8051

query I rowsort
SELECT DISTINCT - col2 + + col1 AS col1 FROM tab2
----
-21
33
4

query I rowsort
SELECT ALL + col2 * + col0 + + col0 * col1 FROM tab1 AS cor0
----
240
4288
8720

query I rowsort
SELECT ALL - col1 * - col0 FROM tab1 AS cor0
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col1 FROM tab1 cor0
----
-10
-13
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-9467
SELECT DISTINCT - + 95 DIV col0 FROM tab2 AS cor0
----
-1
-13

skipif mysql # not compatible
query I rowsort label-9467
SELECT DISTINCT - + 95 / col0 FROM tab2 AS cor0
----
-1
-13

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9468
SELECT - CAST( NULL AS DECIMAL ) col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9468
SELECT - CAST ( NULL AS REAL ) col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT 24 * - col1 AS col0 FROM tab1
----
-240
-312
-624

query I rowsort
SELECT - ( 96 ) AS col2 FROM tab1 AS cor0
----
-96
-96
-96

query I rowsort
SELECT + col1 * + ( col2 ) FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT col1 + 74 * - cor0.col2 AS col1 FROM tab0 cor0
----
-2356
-5977
23

query I rowsort
SELECT ALL col1 + + col1 * - col0 FROM tab2 cor0
----
-1326
-186
-4543

query I rowsort
SELECT DISTINCT 10 AS col2 FROM tab0 AS cor0
----
10

query I rowsort
SELECT ALL col2 * col1 + - col0 AS col1 FROM tab0 AS cor0
----
2814
62
7373

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9476
SELECT DISTINCT CAST( col2 AS SIGNED ) AS col1 FROM tab1 cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-9476
SELECT DISTINCT CAST ( col2 AS INTEGER ) AS col1 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT DISTINCT cor0.col0 AS col1 FROM tab0, tab2 AS cor0
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * 18 col2 FROM tab2
----
126
1404
1422

query I rowsort
SELECT - 61 FROM tab0 cor0
----
-61
-61
-61

query I rowsort
SELECT + ( - col0 ) * + col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT cor0.col1 AS col2 FROM tab1 AS cor0
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 49 * - 4 * + col2 + col0 col0 FROM tab0
----
-15983
-161
-6444

query I rowsort
SELECT ALL 33 FROM tab0, tab1 AS cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab2 cor1
----
54 values hashing to 018801f36b33d2fe82cb95918ba502d6

query I rowsort
SELECT DISTINCT 5 AS col0 FROM tab0, tab0 AS cor0 CROSS JOIN tab2
----
5

query I rowsort
SELECT DISTINCT 57 + - col0 * + col1 AS col0 FROM tab1
----
-21
-583
-983

query I rowsort
SELECT 47 FROM tab2 AS cor0
----
47
47
47

query I rowsort
SELECT ALL + cor0.col1 - col0 AS col1 FROM tab1 AS cor0
----
-54
-67
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT ALL + cor0.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT DISTINCT - col1 + + col2 FROM tab2
----
-33
-4
21

query I rowsort
SELECT + 22 FROM tab1
----
22
22
22

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0, tab1 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to db56d052e81a1ceebb4c3aea124670be

query I rowsort
SELECT ALL 55 + - 50 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d

onlyif mysql # use DIV operator for integer division
query I rowsort label-9495
SELECT DISTINCT + col0 + + col0 DIV col1 AS col1 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-9495
SELECT DISTINCT + col0 + + col0 / col1 AS col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT cor0.col0 * 36 + + col2 FROM tab2 cor0
----
279
2834
2882

query I rowsort
SELECT DISTINCT col0 * col1 + + cor0.col1 AS col1 FROM tab0 AS cor0
----
2150
3492
8190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + 91 * col1 col0 FROM tab2 AS cor0
----
1468
2814
5291

query I rowsort
SELECT 51 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 97 col0 FROM tab0, tab2 AS cor0
----
97

query I rowsort
SELECT ALL cor0.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT DISTINCT + + 77 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab0.col0 col0 FROM tab0
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-9504
SELECT + col1 + + ( col1 ) DIV col0 FROM tab1 AS cor0
----
10
13
34

skipif mysql # not compatible
query I rowsort label-9504
SELECT + col1 + + ( col1 ) / col0 FROM tab1 AS cor0
----
10
13
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-9505
SELECT + col2 + + ( + 68 ) DIV cor0.col0 FROM tab1 AS cor0
----
58
76
96

skipif mysql # not compatible
query I rowsort label-9505
SELECT + col2 + + ( + 68 ) / cor0.col0 FROM tab1 AS cor0
----
58
76
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-9506
SELECT + col0 DIV ( - col0 ) AS col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9506
SELECT + col0 / ( - col0 ) AS col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + cor0.col0 FROM tab0, tab1 cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col0 * - 44 - - col1 col0 FROM tab0
----
-1443
-3825
-970

query I rowsort
SELECT col0 + col2 AS col2 FROM tab2
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col2 FROM tab1
----
54
57
96

query I rowsort
SELECT ALL + - col1 * + col2 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT + ( cor0.col1 ) * - col2 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL col0 * col1 AS col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + 21 * - col0 + - col1 - + cor0.col0 AS col1 FROM tab0 AS cor0
----
-2049
-614
-867

query I rowsort
SELECT DISTINCT + ( col2 ) * col2 + col1 + cor0.col2 AS col2 FROM tab1 AS cor0
----
2996
3316
9325

query I rowsort
SELECT ALL + tab0.col0 * ( 30 ) AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 74d9c93df6dc3529163b61ddfc820d7f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col2 col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT + 0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT + 11 * col1 AS col2 FROM tab2 AS cor0
----
187
341
649

query I rowsort
SELECT 21 * col0 + + cor0.col1 * col1 FROM tab1 AS cor0
----
1444
1849
739

onlyif mysql # use DIV operator for integer division
query I rowsort label-9521
SELECT - col0 DIV col2 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9521
SELECT - col0 / col2 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT col1 * - col0 + col2 * col0 AS col0 FROM tab2 AS cor0
----
-2574
-28
1659

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT + col1 + ( 58 ) FROM tab1 AS cor0
----
68
71
84

query I rowsort
SELECT - + col1 * - ( - col2 ) FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9526
SELECT + tab1.col1 + col1 * + CAST( NULL AS SIGNED ) + 16 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9526
SELECT + tab1.col1 + col1 * + CAST ( NULL AS INTEGER ) + 16 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( tab1.col0 ) * - col0 col2 FROM tab1
----
-4096
-6400
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-9528
SELECT DISTINCT - col2 DIV - col0 AS col2 FROM tab2
----
0
3

skipif mysql # not compatible
query I rowsort label-9528
SELECT DISTINCT - col2 / - col0 AS col2 FROM tab2
----
0
3

query I rowsort
SELECT DISTINCT 85 AS col0 FROM tab0
----
85

query I rowsort
SELECT + col2 * col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT + col0 + cor0.col2 AS col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT + + 25 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 2c77240b60ac01c717a5ed5d0165f450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col2 + + 76 col2 FROM tab0
----
129
172
85

query I rowsort
SELECT DISTINCT + col0 * tab2.col0 * - col1 + col2 * col1 + col1 AS col2 FROM tab2
----
-105434
-357363
-651

query I rowsort
SELECT - cor0.col0 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

query I rowsort
SELECT DISTINCT col0 * col0 + - 90 FROM tab0 AS cor0
----
1135
486
7831

query I rowsort
SELECT + cor0.col2 + + cor0.col2 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT - 10 * cor0.col2 + + col1 * + 47 AS col1 FROM tab0 AS cor0
----
3457
3712
4549

query I rowsort
SELECT DISTINCT 41 + - cor0.col1 FROM tab2 AS cor0
----
-18
10
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-9540
SELECT DISTINCT col2 + + col1 + - col0 DIV + 22 FROM tab1 AS cor0
----
106
65
80

skipif mysql # not compatible
query I rowsort label-9540
SELECT DISTINCT col2 + + col1 + - col0 / + 22 FROM tab1 AS cor0
----
106
65
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col1 + + col0 col1 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT ALL + col1 * + col1 FROM tab0 AS cor0
----
7396
8281
9409

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0, tab0 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to 2e3240e8d3c0c7c6ff427f9572ba362d

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9544
SELECT CAST( NULL AS SIGNED ) * - col1 * - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9544
SELECT CAST ( NULL AS INTEGER ) * - col1 * - col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT tab1.col1 * ( col0 ) + ( ( col1 ) ) * col1 AS col2 FROM tab1
----
1209
740
754

query I rowsort
SELECT ALL - 57 + 49 + + col0 AS col2 FROM tab2
----
-1
70
71

query I rowsort
SELECT - cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

query I rowsort
SELECT + col0 * tab1.col1 + col2 FROM tab1
----
1136
132
697

query I rowsort
SELECT ( col1 ) + + col2 * + 4 FROM tab0
----
101
218
419

query I rowsort
SELECT DISTINCT 52 FROM tab1, tab0, tab0 AS cor0
----
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9551
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9551
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
NULL

query I rowsort
SELECT ALL - 10 * - col1 AS col1 FROM tab1
----
100
130
260

query I rowsort
SELECT + 4 + + tab2.col0 AS col0 FROM tab2
----
11
82
83

query I rowsort
SELECT + 90 FROM tab2
----
90
90
90

query I rowsort
SELECT col2 * + col0 AS col0 FROM tab1
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9556
SELECT col2 * CAST( 43 AS SIGNED ) * - tab0.col2 AS col1 FROM tab0
----
-289132
-43
-46827

skipif mysql # not compatible
query I rowsort label-9556
SELECT col2 * CAST ( 43 AS INTEGER ) * - tab0.col2 AS col1 FROM tab0
----
-289132
-43
-46827

query I rowsort
SELECT DISTINCT + col1 * ( + tab1.col2 ) FROM tab1
----
1248
1404
570

query I rowsort
SELECT ALL - 63 AS col0 FROM tab2 AS cor0
----
-63
-63
-63

query I rowsort
SELECT + 27 - - col0 AS col2 FROM tab0 AS cor0
----
116
51
62

query I rowsort
SELECT DISTINCT + 19 * col2 FROM tab2 AS cor0
----
494
513
722

query I rowsort
SELECT col0 * + 72 * 94 AS col2 FROM tab2
----
47376
527904
534672

query I rowsort
SELECT DISTINCT 70 FROM tab1, tab2 AS cor0
----
70

query I rowsort
SELECT - 26 * - 4 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to d32adf5fdd5e4096e2c037977ca3f009

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - ( col1 ) col2 FROM tab0
----
-119
-173
-98

query I rowsort
SELECT - col2 - ( + col1 ) * + col0 FROM tab2 AS cor0
----
-1381
-244
-4628

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9566
SELECT CAST( NULL AS SIGNED ) * 98 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9566
SELECT CAST ( NULL AS INTEGER ) * 98 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT cor0.col1 + - 89 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-3
2
8

query I rowsort
SELECT 35 FROM tab0 cor0
----
35
35
35

query I rowsort
SELECT + cor0.col2 * col1 + - col1 AS col1 FROM tab1 AS cor0
----
1235
1378
560

onlyif mysql # use DIV operator for integer division
query I rowsort label-9570
SELECT - 71 DIV col2 + + col1 AS col2 FROM tab0 AS cor0
----
26
84
91

skipif mysql # not compatible
query I rowsort label-9570
SELECT - 71 / col2 + + col1 AS col2 FROM tab0 AS cor0
----
26
84
91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9571
SELECT ALL + CAST( NULL AS SIGNED ) * col1 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9571
SELECT ALL + CAST ( NULL AS INTEGER ) * col1 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col2 * + col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT ( cor0.col1 ) - - col2 AS col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL - col1 * 11 FROM tab2 AS cor0
----
-187
-341
-649

query I rowsort
SELECT DISTINCT - + 81 FROM tab0 AS cor0
----
-81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9576
SELECT - - col2 * cor0.col2 + + col2 + CAST( NULL AS SIGNED ) * cor0.col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9576
SELECT - - col2 * cor0.col2 + + col2 + CAST ( NULL AS INTEGER ) * cor0.col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col0 * col1 + - col2 FROM tab2 cor0
----
-1381
-244
-4628

query I rowsort
SELECT + col1 + 29 AS col1 FROM tab1 AS cor0
----
39
42
55

query I rowsort
SELECT + + 76 FROM tab0 AS cor0
----
76
76
76

query I rowsort
SELECT ALL col0 + - tab2.col1 + tab2.col0 AS col0 FROM tab2
----
-17
141
97

query I rowsort
SELECT DISTINCT ( 41 ) - cor0.col2 FROM tab0, tab1, tab1 AS cor0
----
-13
-16
-55

query I rowsort
SELECT 10 FROM tab1
----
10
10
10

query I rowsort
SELECT tab1.col0 * + col2 + col1 * ( col0 ) AS col0 FROM tab1
----
240
4288
8720

query I rowsort
SELECT DISTINCT + + ( col2 ) + col2 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT - - ( 41 ) + + col1 * col1 FROM tab1 AS cor0
----
141
210
717

query I rowsort
SELECT ALL - cor0.col2 + col1 * col1 AS col2 FROM tab2 AS cor0
----
251
3455
934

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9587
SELECT - CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9587
SELECT - CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 + + col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL - col2 * 56 * col2 AS col2 FROM tab2 AS cor0
----
-37856
-40824
-80864

query I rowsort
SELECT 37 * + 65 - - cor0.col2 AS col1 FROM tab1 AS cor0
----
2459
2462
2501

query I rowsort
SELECT DISTINCT - + cor0.col1 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT 22 * 38 + col2 FROM tab0
----
837
869
918

onlyif mysql # use DIV operator for integer division
query I rowsort label-9593
SELECT 77 DIV 1 FROM tab1
----
77
77
77

skipif mysql # not compatible
query I rowsort label-9593
SELECT 77 / 1 FROM tab1
----
77
77
77

query I rowsort
SELECT - cor1.col2 - + cor1.col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 2f602bd1b2d268d45c468594d47fbe59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9595
SELECT DISTINCT col1 + col0 * - 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-9595
SELECT DISTINCT col1 + col0 * - CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + - 26 + + col1 AS col1 FROM tab2 cor0
----
-9
33
5

query I rowsort
SELECT + - col0 * col0 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT ALL + cor0.col1 - col2 * 52 * col1 AS col1 FROM tab2 AS cor0
----
-33575
-43493
-79709

query I rowsort
SELECT 75 + - col1 AS col0 FROM tab2 AS cor0
----
16
44
58

query I rowsort
SELECT ALL + cor0.col1 + - col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT DISTINCT + 25 * + col1 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
184900
207025
235225

query I rowsort
SELECT ALL 94 FROM tab1 AS cor0
----
94
94
94

query I rowsort
SELECT - col1 + - col2 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT - col0 + col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9605
SELECT DISTINCT - 47 * col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9605
SELECT DISTINCT - 47 * col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9606
SELECT DISTINCT cor0.col2 DIV - col0 AS col2 FROM tab2 AS cor0
----
-3
0

skipif mysql # not compatible
query I rowsort label-9606
SELECT DISTINCT cor0.col2 / - col0 AS col2 FROM tab2 AS cor0
----
-3
0

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-9608
SELECT col2 * - col1 + + col0 DIV col0 FROM tab0 cor0
----
-2837
-7461
-96

skipif mysql # not compatible
query I rowsort label-9608
SELECT col2 * - col1 + + col0 / col0 FROM tab0 cor0
----
-2837
-7461
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9609
SELECT DISTINCT + 34 * + cor0.col0 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9609
SELECT DISTINCT + 34 * + cor0.col0 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL col0 + col0 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT 0 + + col2 AS col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT + + 53 + - col1 - + 63 FROM tab0 AS cor0
----
-101
-107
-96

query I rowsort
SELECT - + 37 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 395d44ccbce08828bc493e93ec3d9207

query I rowsort
SELECT ALL - tab0.col2 + - col1 * - col0 + 97 FROM tab0
----
2128
3491
8114

query I rowsort
SELECT DISTINCT - - col1 + + col0 * cor0.col2 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT ALL + ( col2 ) AS col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT - cor0.col1 + col2 * + col1 + cor0.col0 AS col0 FROM tab0 cor0
----
2776
35
7460

query I rowsort
SELECT ALL - cor0.col1 * col2 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT + + col0 * + col1 + - col1 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT col2 + 64 FROM tab0 cor0
----
146
65
97

query I rowsort
SELECT ALL - col1 AS col0 FROM tab0 AS cor0
----
-86
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col0 col2 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT - + col0 + - col2 FROM tab2 AS cor0
----
-104
-117
-34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - ( - col1 ) col1 FROM tab1 cor0
----
-1248
-1404
-570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9625
SELECT DISTINCT + tab0.col2 * + CAST( - col0 AS SIGNED ) AS col0 FROM tab0
----
-35
-7298
-792

skipif mysql # not compatible
query I rowsort label-9625
SELECT DISTINCT + tab0.col2 * + CAST ( - col0 AS INTEGER ) AS col0 FROM tab0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * + ( + cor0.col0 * + col0 ) col2 FROM tab1 AS cor0
----
262144
27
512000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - cor0.col2 col2 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT col0 + col0 AS col0 FROM tab2 cor0
----
14
156
158

query I rowsort
SELECT ALL + + col1 * + col0 + col2 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT ALL - col0 + + col2 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT DISTINCT + col0 + 13 * 83 FROM tab0 AS cor0
----
1103
1114
1168

query I rowsort
SELECT - + col2 * - 78 + col0 AS col2 FROM tab1 AS cor0
----
4215
4510
7568

query I rowsort
SELECT DISTINCT + - col0 * - 92 + - col0 * col1 AS col1 FROM tab2 AS cor0
----
2574
427
5925

query I rowsort
SELECT + col0 + + ( + 58 ) FROM tab1 AS cor0
----
122
138
61

query I rowsort
SELECT ALL + col2 * ( - col1 * - col1 ) FROM tab0 AS cor0
----
244068
679042
9409

query I rowsort
SELECT ALL - col2 * 91 + - ( col0 ) * cor0.col2 FROM tab1 AS cor0
----
-16416
-5076
-8835

query I rowsort
SELECT DISTINCT col2 + - ( - cor0.col0 ) FROM tab1 cor0
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-9638
SELECT ALL - - col1 DIV col1 + 66 FROM tab2 AS cor0
----
67
67
67

skipif mysql # not compatible
query I rowsort label-9638
SELECT ALL - - col1 / col1 + 66 FROM tab2 AS cor0
----
67
67
67

query I rowsort
SELECT DISTINCT ( col2 ) * cor0.col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570

query IIIIIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab0, tab1 AS cor1
----
243 values hashing to 26173f1193178352de9a2e4ca7f09d53

query I rowsort
SELECT - + ( - 93 ) FROM tab2 cor0
----
93
93
93

query I rowsort
SELECT + + ( - 79 ) AS col1 FROM tab2 AS cor0
----
-79
-79
-79

query I rowsort
SELECT cor0.col2 - col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT + 39 * + cor0.col0 FROM tab1 AS cor0
----
117
2496
3120

query I rowsort
SELECT DISTINCT - col2 * - col0 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT ALL + - cor0.col1 * - tab1.col0 AS col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to ee9a612676395b6deb95e76b47378cb3

query I rowsort
SELECT - 99 FROM tab0, tab1 AS cor0
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

query I rowsort
SELECT DISTINCT + 96 FROM tab2, tab2 AS cor0
----
96

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2, tab0 cor0
----
243 values hashing to 566180e0144350a78b0ef3318e8f4c00

query I rowsort
SELECT DISTINCT + ( cor0.col0 + + cor0.col1 * - 51 ) FROM tab2, tab2 AS cor0
----
-1574
-2931
-788

onlyif mysql # use DIV operator for integer division
query I rowsort label-9651
SELECT - - col2 DIV + ( + cor0.col0 ) FROM tab2 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-9651
SELECT - - col2 / + ( + cor0.col0 ) FROM tab2 AS cor0
----
0
0
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9652
SELECT + + col0 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9652
SELECT + + col0 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * + col0 FROM tab0 AS cor0
----
1225
576
7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9654
SELECT - col2 / + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9654
SELECT - col2 / + CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * + cor0.col1 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT 64 * - 30 FROM tab2 AS cor0
----
-1920
-1920
-1920

query I rowsort
SELECT DISTINCT tab2.col0 * - 23 FROM tab2
----
-161
-1794
-1817

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 cor0, tab2 AS cor1
----
243 values hashing to 042fa16c43ab365359ee93c064e44127

query I rowsort
SELECT DISTINCT + col2 * + col2 AS col2 FROM tab1
----
2916
3249
9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-9660
SELECT ALL col1 DIV + col1 AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9660
SELECT ALL col1 / + col1 AS col2 FROM tab2
----
1
1
1

query I rowsort
SELECT - ( - ( col0 ) ) FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT 71 AS col0 FROM tab1 cor0
----
71
71
71

query I rowsort
SELECT + - 18 * - col2 FROM tab0 AS cor0
----
1476
18
594

query I rowsort
SELECT ( col1 ) AS col2 FROM tab0 AS cor0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-9665
SELECT DISTINCT - col1 DIV col0 FROM tab2 AS cor0
----
-4
0

skipif mysql # not compatible
query I rowsort label-9665
SELECT DISTINCT - col1 / col0 FROM tab2 AS cor0
----
-4
0

query I rowsort
SELECT DISTINCT + + col0 AS col0 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT ALL + + ( - col1 ) FROM tab0 cor0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-9668
SELECT - 40 * col1 DIV 77 AS col1 FROM tab0 AS cor0
----
-44
-47
-50

skipif mysql # not compatible
query I rowsort label-9668
SELECT - 40 * col1 / 77 AS col1 FROM tab0 AS cor0
----
-44
-47
-50

query I rowsort
SELECT ALL + col0 + cor0.col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT - col1 + col1 AS col0 FROM tab2 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + cor0.col2 col0 FROM tab0 AS cor0
----
1
1089
6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 60 + col0 col1 FROM tab1 AS cor0
----
124
140
63

query I rowsort
SELECT + cor0.col0 + col0 FROM tab1 AS cor0
----
128
160
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-9674
SELECT col1 * col0 + - ( cor0.col0 ) DIV col1 AS col2 FROM tab1 AS cor0
----
1034
634
78

skipif mysql # not compatible
query I rowsort label-9674
SELECT col1 * col0 + - ( cor0.col0 ) / col1 AS col2 FROM tab1 AS cor0
----
1034
634
78

query I rowsort
SELECT - - ( - col1 ) * cor0.col1 + col2 - + col2 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT - - cor0.col2 - - col2 AS col1 FROM tab0 AS cor0
----
164
2
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-9677
SELECT col2 + col2 DIV 29 FROM tab2 AS cor0
----
26
27
39

skipif mysql # not compatible
query I rowsort label-9677
SELECT col2 + col2 / 29 FROM tab2 AS cor0
----
26
27
39

query I rowsort
SELECT - - col0 * - 62 + + 55 FROM tab2 AS cor0
----
-379
-4781
-4843

onlyif mysql # use DIV operator for integer division
query I rowsort label-9679
SELECT col0 DIV - tab2.col1 AS col2 FROM tab2
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-9679
SELECT col0 / - tab2.col1 AS col2 FROM tab2
----
-1
-4
0

query I rowsort
SELECT DISTINCT - col2 * col1 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT - - col1 + + ( - 94 ) AS col2 FROM tab1 AS cor0
----
-68
-81
-84

query I rowsort
SELECT ALL - col1 + cor0.col2 FROM tab1 cor0
----
28
47
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9683
SELECT ALL + col2 / CAST( NULL AS SIGNED ) + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9683
SELECT ALL + col2 / CAST ( NULL AS INTEGER ) + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + + cor0.col1 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
1136
132
697

onlyif mysql # use DIV operator for integer division
query I rowsort label-9685
SELECT + col0 DIV - col1 + - col2 AS col2 FROM tab1 AS cor0
----
-102
-54
-63

skipif mysql # not compatible
query I rowsort label-9685
SELECT + col0 / - col1 + - col2 AS col2 FROM tab1 AS cor0
----
-102
-54
-63

onlyif mysql # use DIV operator for integer division
query I rowsort label-9686
SELECT tab1.col2 DIV col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9686
SELECT tab1.col2 / col2 FROM tab1
----
1
1
1

query I rowsort
SELECT 70 AS col2 FROM tab2
----
70
70
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-9688
SELECT col0 DIV col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9688
SELECT col0 / col2 FROM tab1
----
0
0
1

query I rowsort
SELECT ALL col1 * - 93 FROM tab0 AS cor0
----
-7998
-8463
-9021

query I rowsort
SELECT col1 * col1 FROM tab1
----
100
169
676

query I rowsort
SELECT - 78 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to c4f3c63f98c3c08f2848f46850a476d4

onlyif mysql # use DIV operator for integer division
query I rowsort label-9692
SELECT col0 DIV + col0 AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9692
SELECT col0 / + col0 AS col2 FROM tab2
----
1
1
1

query I rowsort
SELECT ALL + 33 FROM tab1
----
33
33
33

query I rowsort
SELECT ALL 9 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query I rowsort
SELECT - 65 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23

query I rowsort
SELECT DISTINCT - col0 * - ( col1 ) FROM tab0
----
2064
3395
8099

query I rowsort
SELECT + cor0.col0 * + col0 + col1 * col1 FROM tab0 AS cor0
----
10634
16202
7972

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 DISTINCT + col0 * + 48 + col2 col1 FROM tab0
----
1185
1681
4354

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
243 values hashing to 5c33e96b85afe1ea51bb6d4e9fa6f993

query I rowsort
SELECT + col1 + - col0 * 64 AS col2 FROM tab2
----
-417
-4933
-5039

query IIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab0 cor1
----
243 values hashing to b3323704f6873113d863f8e27386b356

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0, tab2, tab2 AS cor1
----
972 values hashing to 82def1c3361e635dd4cf447edc22edb9

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
972 values hashing to 09b120a8ff13ebafea7af10c2152241b

query I rowsort
SELECT DISTINCT 0 AS col0 FROM tab1
----
0

query I rowsort
SELECT - 73 AS col2 FROM tab1 AS cor0
----
-73
-73
-73

query I rowsort
SELECT DISTINCT cor0.col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
17
31
59

query I rowsort
SELECT DISTINCT + - col2 AS col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL col2 * 41 * col0 FROM tab0
----
1435
299218
32472

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * - cor0.col2 col1 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT 2 FROM tab0
----
2
2
2

query I rowsort
SELECT ALL + 48 * col2 - + ( col0 + col0 ) AS col1 FROM tab1
----
2586
2608
4448

query I rowsort
SELECT DISTINCT + tab0.col1 AS col0 FROM tab0
----
86
91
97

query I rowsort
SELECT DISTINCT - 12 FROM tab1
----
-12

query I rowsort
SELECT DISTINCT - 24 AS col0 FROM tab2
----
-24

query I rowsort
SELECT ALL - + 8 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

query I rowsort
SELECT ALL col2 * col2 AS col1 FROM tab2
----
1444
676
729

query I rowsort
SELECT ALL + col0 AS col2 FROM tab2 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT + tab0.col2 + - col0 + + col0 * + col0 AS col1 FROM tab0
----
1191
585
7914

query I rowsort
SELECT DISTINCT col1 * - col0 AS col1 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT + col0 + col1 AS col2 FROM tab1
----
29
74
93

query I rowsort
SELECT tab2.col1 * tab2.col0 * - col0 FROM tab2
----
-106097
-1519
-358956

query III rowsort
SELECT * FROM tab1 WHERE NULL <> ( NULL )
----

query I rowsort
SELECT + col1 * tab2.col2 * col2 AS col0 FROM tab2
----
22599
24548
39884

query I rowsort
SELECT ALL col1 * col1 AS col1 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT col0 * col2 AS col1 FROM tab2
----
189
2028
3002

query I rowsort
SELECT DISTINCT col2 * col0 * + col2 AS col1 FROM tab2
----
114076
5103
52728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col2 col1 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT col0 * - tab1.col2 AS col1 FROM tab1
----
-162
-3648
-7680

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( + col1 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 * + col1 / - col0 IN ( - col1 )
----

query I rowsort
SELECT - tab1.col0 AS col1 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT col2 - col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + col2 + col2 FROM tab0
----
164
2
66

query I rowsort
SELECT DISTINCT + col2 * - col0 FROM tab2 WHERE NOT NULL <> col0 * + col2
----

query I rowsort
SELECT col1 * col1 + col0 AS col2 FROM tab0
----
7420
8370
9444

query I rowsort
SELECT ALL - col2 + - col1 FROM tab1
----
-109
-67
-80

query I rowsort
SELECT ALL col0 * col2 AS col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT ALL tab2.col0 * col0 * - col1 AS col1 FROM tab2
----
-106097
-1519
-358956

query I rowsort
SELECT col2 + + col1 * tab2.col1 FROM tab2
----
327
3507
988

query I rowsort
SELECT ALL 57 * col2 + col2 AS col0 FROM tab0 cor0
----
1914
4756
58

query I rowsort
SELECT ALL col1 + - col1 * col0 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT ALL col1 * - cor0.col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL - col2 + - cor0.col0 FROM tab0 cor0
----
-171
-36
-57

query I rowsort
SELECT DISTINCT 92 AS col2 FROM tab1 AS cor0
----
92

query I rowsort
SELECT col1 * col1 + - col0 AS col1 FROM tab1
----
36
673
89

query I rowsort
SELECT DISTINCT + col0 * col2 AS col2 FROM tab0
----
35
7298
792

query I rowsort
SELECT ALL - col1 * col1 AS col2 FROM tab2
----
-289
-3481
-961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col0 col0 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT col2 * tab0.col1 * + col0 AS col0 FROM tab0
----
3395
664118
68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-9751
SELECT col1 DIV - col2 AS col1 FROM tab0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-9751
SELECT col1 / - col2 AS col1 FROM tab0
----
-1
-2
-97

query I rowsort
SELECT ALL col1 * - col0 * col0 AS col1 FROM tab2
----
-106097
-1519
-358956

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) NOT IN ( col0 + col2 )
----

query I rowsort
SELECT col1 + + col0 / tab0.col1 FROM tab0 WHERE NOT NULL <> ( - col1 / col2 )
----

query I rowsort
SELECT ALL - tab2.col1 * tab2.col1 + + col2 + tab2.col1 FROM tab2
----
-234
-3396
-903

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * cor0.col1 col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT - cor0.col0 * - col2 AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT cor0.col2 + col0 AS col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL - cor0.col2 AS col2 FROM tab0, tab0 cor0 WHERE NOT NULL > ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <= ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-9761
SELECT DISTINCT + col1 + col1 DIV + col1 FROM tab1 AS cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-9761
SELECT DISTINCT + col1 + col1 / + col1 FROM tab1 AS cor0
----
11
14
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col0 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT + col0 * + cor0.col2 - cor0.col0 * - col0 AS col2 FROM tab0 AS cor0 WHERE + col0 / col2 = + col0
----
1260

query I rowsort
SELECT ALL col2 * - col1 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 >= cor0.col0 * col2 + cor0.col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 + col2 * + col2 * + col2 IN ( cor0.col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT ALL - col0 + col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT - col2 * + col2 + - col0 * col1 FROM tab1
----
-10256
-2994
-3889

query I rowsort
SELECT - col1 AS col2 FROM tab1 WHERE ( NULL ) NOT IN ( - col1 / col1 )
----

query I rowsort
SELECT ALL + col1 + + col2 + col0 AS col2 FROM tab2
----
134
163
65

query I rowsort
SELECT + col0 * - col0 AS col0 FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT tab1.col2 + col2 + - col0 FROM tab1
----
105
112
50

onlyif mysql # use DIV operator for integer division
query I rowsort label-9773
SELECT DISTINCT col0 * col1 DIV col2 AS col1 FROM tab0
----
3395
62
98

skipif mysql # not compatible
query I rowsort label-9773
SELECT DISTINCT col0 * col1 / col2 AS col1 FROM tab0
----
3395
62
98

query I rowsort
SELECT DISTINCT + col0 + + col1 FROM tab1 WHERE ( col0 + + col0 - + col0 ) NOT IN ( col2 )
----
29
74
93

query I rowsort
SELECT col0 * - tab0.col0 + tab0.col1 FROM tab0
----
-1128
-490
-7830

query I rowsort
SELECT DISTINCT - col2 * col1 * - col0 AS col0 FROM tab1 WHERE NULL NOT BETWEEN col2 * - col0 AND - col2 + - col0 * - col0
----

query I rowsort
SELECT col2 * + col0 + col0 AS col2 FROM tab1
----
165
3712
7760

query I rowsort
SELECT ALL tab0.col2 AS col2 FROM tab0
----
1
33
82

query I rowsort
SELECT ALL + col2 + col1 FROM tab0
----
119
173
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col2 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT DISTINCT + col2 + col0 FROM tab0 WHERE NOT - col0 <= NULL
----

query I rowsort
SELECT + col2 + col2 * - col2 + tab2.col2 FROM tab2
----
-1368
-624
-675

query I rowsort
SELECT - col2 * - col0 AS col1 FROM tab1
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-9784
SELECT col2 + + col0 * - col0 + + col2 DIV + tab2.col1 FROM tab2
----
-22
-6058
-6201

skipif mysql # not compatible
query I rowsort label-9784
SELECT col2 + + col0 * - col0 + + col2 / + tab2.col1 FROM tab2
----
-22
-6058
-6201

query I rowsort
SELECT DISTINCT - col1 + tab1.col1 * + tab1.col2 AS col0 FROM tab1
----
1235
1378
560

query I rowsort
SELECT + 25 AS col1 FROM tab1 AS cor0
----
25
25
25

query I rowsort
SELECT ( col0 ) AS col2 FROM tab1 AS cor0
----
3
64
80

query IIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
243 values hashing to 9ed1a6a444254225f040123c46b7f70c

query I rowsort
SELECT - cor1.col1 FROM tab2, tab1 AS cor0, tab2 AS cor1, tab0, tab1 AS cor2
----
243 values hashing to aad6a39cc782d0570960622f04a07424

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0, tab2 cor1, tab1, tab1 cor2
----
3645 values hashing to fb3687512d3714969d7c6afc5561ed79

query I rowsort
SELECT - + col2 + - 58 AS col0 FROM tab1 AS cor0
----
-112
-115
-154

query I rowsort
SELECT DISTINCT col0 * + col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0, tab2 AS cor1, tab1 AS cor2
----
972 values hashing to 263f0eb7d5dfd4076c74918bc141bd9b

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 cor0, tab2 AS cor1, tab0 AS cor2
----
972 values hashing to deaaa983f771be544ffdc26f04a18657

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + + cor0.col1 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 882fef197e3b41358c58e24f2db2f2e1

query I rowsort
SELECT DISTINCT col1 * + col2 + - col1 + - ( + tab1.col1 ) * - col0 FROM tab1
----
1200
1456
2275

query I rowsort
SELECT ALL + ( col0 * col1 ) + col0 + - ( + col2 ) AS col2 FROM tab1
----
1024
27
647

query I rowsort
SELECT ALL - ( ( + col1 ) ) + ( + col1 * col1 ) AS col0 FROM tab2
----
272
3422
930

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( tab2.col0 ) + col2 col2 FROM tab2
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-9800
SELECT ALL + col0 + - col1 DIV col0 FROM tab1
----
-5
64
80

skipif mysql # not compatible
query I rowsort label-9800
SELECT ALL + col0 + - col1 / col0 FROM tab1
----
-5
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-9801
SELECT + col1 DIV + 42 + col2 AS col2 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-9801
SELECT + col1 / + 42 + col2 AS col2 FROM tab1
----
54
57
96

query I rowsort
SELECT ALL - cor0.col2 AS col1 FROM tab1 AS cor0
----
-54
-57
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9803
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + cor0.col2 * + col0 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9803
SELECT DISTINCT - CAST ( NULL AS REAL ) + cor0.col2 * + col0 AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9804
SELECT ALL cor0.col1 DIV + col1 + + cor0.col0 * col0 * col1 AS col0 FROM tab2 cor0
----
106098
1520
358957

skipif mysql # not compatible
query I rowsort label-9804
SELECT ALL cor0.col1 / + col1 + + cor0.col0 * col0 * col1 AS col0 FROM tab2 cor0
----
106098
1520
358957

query I rowsort
SELECT ALL + col0 + - col1 - col2 AS col1 FROM tab1 AS cor0
----
-29
-3
-77

query I rowsort
SELECT + ( - 78 ) - cor0.col0 AS col2 FROM tab0 AS cor0
----
-102
-113
-167

query I rowsort
SELECT DISTINCT - 10 + col2 * - col0 FROM tab1 cor0
----
-172
-3658
-7690

query I rowsort
SELECT ALL + col1 * + 35 * - col0 + - col0 + - 63 AS col2 FROM tab2 cor0
----
-161211
-47147
-7665

query I rowsort
SELECT DISTINCT col1 + col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT - col0 * + col2 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT 4 AS col2 FROM tab2
----
4

query I rowsort
SELECT DISTINCT 96 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 60 col2 FROM tab0
----
60
60
60

query I rowsort
SELECT tab0.col0 * 53 - + 30 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to 6db3560c0f0498499cc70be6d8ca00a3

query I rowsort
SELECT + col1 + tab1.col0 FROM tab1
----
29
74
93

query I rowsort
SELECT ALL col2 + col1 AS col2 FROM tab1
----
109
67
80

query I rowsort
SELECT ALL + 35 * - col2 + 76 AS col2 FROM tab1
----
-1814
-1919
-3284

query I rowsort
SELECT ALL - 31 + col0 * col2 FROM tab0 cor0
----
4
7267
761

query I rowsort
SELECT + + col0 + col2 AS col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT DISTINCT - + col0 AS col1 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT 1 + col2 * cor0.col2 AS col2 FROM tab0 AS cor0
----
1090
2
6725

query IIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-9823
SELECT + col2 DIV col1 col0 FROM tab1 AS cor0
----
2
5
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9823
SELECT + col2 / col1 col0 FROM tab1 AS cor0
----
2
5
7

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0, tab1 AS cor1, tab0 AS cor2
----
972 values hashing to 43f0c51511c8642d19190fd4dfcf905a

query I rowsort
SELECT - tab0.col2 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT + col1 * tab1.col0 FROM tab1
----
1040
640
78

query I rowsort
SELECT DISTINCT - col2 * col0 AS col0 FROM tab1
----
-162
-3648
-7680

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2, tab1 cor0, tab1 cor1
----
972 values hashing to cee640567b2a4ba7d97109d5025bf4d9

query I rowsort
SELECT 2 + - 83 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to d0bfe8494f52235d9fcafb5ac5de3f81

query I rowsort
SELECT DISTINCT + col2 * col2 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT DISTINCT + + cor0.col2 * col0 AS col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL + + cor0.col1 * cor0.col0 + col2 FROM tab1 cor0
----
1136
132
697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col1 col0 FROM tab1 AS cor0
----
29
74
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9834
SELECT - col0 * + CAST( 64 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-1536
-2240
-5696

skipif mysql # not compatible
query I rowsort label-9834
SELECT - col0 * + CAST ( 64 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1536
-2240
-5696

onlyif mysql # use DIV operator for integer division
query I rowsort label-9835
SELECT ALL col0 DIV col0 + + col0 FROM tab1 AS cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-9835
SELECT ALL col0 / col0 + + col0 FROM tab1 AS cor0
----
4
65
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9836
SELECT DISTINCT - + col2 - + CAST( NULL AS SIGNED ) * - 54 * col1 col2 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9836
SELECT DISTINCT - + col2 - + CAST ( NULL AS INTEGER ) * - 54 * col1 col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - + col2 * 93 + - 17 AS col0 FROM tab1 AS cor0
----
-5039
-5318
-8945

query I rowsort
SELECT DISTINCT col1 - 57 * + 95 AS col2 FROM tab2 AS cor0
----
-5356
-5384
-5398

query I rowsort
SELECT DISTINCT + + col0 * - 50 AS col0 FROM tab0 AS cor0
----
-1200
-1750
-4450

query I rowsort
SELECT - col0 * + 65 FROM tab0 AS cor0
----
-1560
-2275
-5785

query I rowsort
SELECT ALL - col1 * col2 + + tab1.col0 AS col1 FROM tab1
----
-1168
-1401
-506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL - + col1 + + 70 + + 10 AS col2 FROM tab1 AS cor0
----
54
67
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-9844
SELECT DISTINCT - col1 DIV - 44 + col2 AS col2 FROM tab0 cor0
----
3
34
84

skipif mysql # not compatible
query I rowsort label-9844
SELECT DISTINCT - col1 / - 44 + col2 AS col2 FROM tab0 cor0
----
3
34
84

query I rowsort
SELECT DISTINCT - + cor0.col0 * + cor0.col1 - + col0 * + col0 FROM tab2 AS cor0
----
-10686
-266
-7584

query I rowsort
SELECT col0 * - 41 AS col0 FROM tab1 cor0
----
-123
-2624
-3280

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 - - col0 col1 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT - - col2 + - col1 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT - ( col1 ) + - tab0.col0 FROM tab0
----
-110
-132
-180

query I rowsort
SELECT tab2.col1 + 23 * + col2 FROM tab2
----
652
657
891

query I rowsort
SELECT DISTINCT ( - col0 ) + + col1 AS col2 FROM tab2
----
-19
-62
24

query I rowsort
SELECT 22 FROM tab1
----
22
22
22

query I rowsort
SELECT DISTINCT - 20 AS col1 FROM tab2, tab2 cor0
----
-20

query I rowsort
SELECT DISTINCT 19 * + col1 FROM tab1
----
190
247
494

query I rowsort
SELECT DISTINCT - col1 * col0 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - col0 - col1 * col1 AS col1 FROM tab1 cor0
----
-164
-249
-679

query I rowsort
SELECT + col2 + - col1 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
1560
684
864

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9858
SELECT ALL + CAST( NULL AS SIGNED ) * ( col0 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9858
SELECT ALL + CAST ( NULL AS INTEGER ) * ( col0 ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * - ( - col0 * col2 + col0 ) FROM tab0
----
0
18432
641601

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9860
SELECT ALL CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9860
SELECT ALL CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + col2 FROM tab0 cor0
----
-34
-7
9

query I rowsort
SELECT - col2 + + col1 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT ALL - col0 + col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT cor0.col1 * + col1 AS col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT DISTINCT - + col1 * - col2 + + col0 * col1 - col0 FROM tab0 AS cor0
----
15472
3457
4878

query I rowsort
SELECT + col2 + cor0.col2 AS col0 FROM tab1 AS cor0
----
108
114
192

onlyif mysql # use DIV operator for integer division
query I rowsort label-9867
SELECT ALL + col2 DIV - col2 + + col0 col1 FROM tab0 AS cor0
----
23
34
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9867
SELECT ALL + col2 / - col2 + + col0 col1 FROM tab0 AS cor0
----
23
34
88

query I rowsort
SELECT + - col2 + col1 + ( - 2 ) AS col2 FROM tab0 AS cor0
----
51
7
94

query I rowsort
SELECT + 96 * cor0.col0 FROM tab0 AS cor0
----
2304
3360
8544

query I rowsort
SELECT ALL - + col1 * ( - ( - col0 ) ) FROM tab0 cor0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * ( + col1 ) col2 FROM tab2 AS cor0
----
-289
-3481
-961

onlyif mysql # use DIV operator for integer division
query I rowsort label-9872
SELECT ALL + col0 DIV + col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9872
SELECT ALL + col0 / + col2 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-9873
SELECT col2 DIV + col2 AS col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9873
SELECT col2 / + col2 AS col0 FROM tab0 AS cor0
----
1
1
1

query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 cor0, tab2 cor1
----
243 values hashing to 042fa16c43ab365359ee93c064e44127

query I rowsort
SELECT ALL cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab0, tab1 AS cor1
----
972 values hashing to 0210050fb1701e2797a9b17e1ebac91e

query I rowsort
SELECT ALL col1 + - col2 AS col1 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT + col2 + + 93 * - 35 AS col0 FROM tab1 AS cor0
----
-3159
-3198
-3201

query I rowsort
SELECT + col0 + - col2 * + cor0.col0 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT DISTINCT - col2 * + 91 FROM tab1 AS cor0
----
-4914
-5187
-8736

query I rowsort
SELECT + cor0.col2 * - col1 * + 9 FROM tab2 AS cor0
----
-13806
-5814
-7533

onlyif mysql # use DIV operator for integer division
query I rowsort label-9883
SELECT cor0.col0 DIV 74 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9883
SELECT cor0.col0 / 74 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT ALL + - col1 * col2 FROM tab2 AS cor0
----
-1534
-646
-837

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-9886
SELECT DISTINCT - + col2 DIV - 57 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9886
SELECT DISTINCT - + col2 / - 57 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL col1 + + col2 FROM tab0 AS cor0
----
119
173
98

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 cor0, tab2 AS cor1, tab2 cor2
----
972 values hashing to 82def1c3361e635dd4cf447edc22edb9

query I rowsort
SELECT - cor0.col1 * - col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT + ( col1 ) FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT col1 + tab1.col2 + col1 AS col0 FROM tab1
----
106
122
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + ( col1 ) * + col2 + col2 col0 FROM tab2
----
1638
763
871

onlyif mysql # use DIV operator for integer division
query I rowsort label-9893
SELECT + col2 DIV col2 + + col1 AS col1 FROM tab0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-9893
SELECT + col2 / col2 + + col1 AS col1 FROM tab0
----
87
92
98

query I rowsort
SELECT - + col0 * col1 + col2 AS col1 FROM tab0 AS cor0
----
-2031
-3394
-8017

query IIIIIIIII rowsort
SELECT * FROM tab2, tab1 cor0, tab2 cor1
----
243 values hashing to 6506b295d3a7bcc5ed65956f5b4e38b0

query I rowsort
SELECT + 28 + + col2 AS col0 FROM tab1 AS cor0
----
124
82
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9897
SELECT ( 26 ) + + col2 - CAST( NULL AS DECIMAL ) * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9897
SELECT ( 26 ) + + col2 - CAST ( NULL AS REAL ) * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col0 * + 75 FROM tab2 AS cor0
----
525
5850
5925

query I rowsort
SELECT - 59 - col0 AS col1 FROM tab1 AS cor0
----
-123
-139
-62

query I rowsort
SELECT + col2 * col1 + + col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT ( 79 ) AS col0 FROM tab2 AS cor0
----
79
79
79

query I rowsort
SELECT DISTINCT - + 79 * 31 AS col2 FROM tab2 AS cor0
----
-2449

query I rowsort
SELECT DISTINCT + + 36 FROM tab1 AS cor0
----
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col1 FROM tab1
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-9905
SELECT + col0 DIV + 13 AS col2 FROM tab2 AS cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-9905
SELECT + col0 / + 13 AS col2 FROM tab2 AS cor0
----
0
6
6

query I rowsort
SELECT + - cor0.col2 * + col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

skipif mysql # not compatible
query I rowsort
SELECT CAST ( col0 AS REAL ) + col1 AS col2 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT 46 + - col1 * + 53 FROM tab2 cor0
----
-1597
-3081
-855

query I rowsort
SELECT DISTINCT - col1 + cor0.col2 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT - cor0.col0 * col2 + - col0 AS col0 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT - col1 + + col0 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab0
----
-24
-35
-89

query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0 CROSS JOIN tab0
----
243 values hashing to 3581f59ff9574f9d6290fc6bca0b5e4d

query IIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
243 values hashing to 3581f59ff9574f9d6290fc6bca0b5e4d

query I rowsort
SELECT - col1 * cor0.col0 AS col2 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT - 0 AS col1 FROM tab0, tab2 AS cor0
----
0

query I rowsort
SELECT 6 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query I rowsort
SELECT DISTINCT col1 * 60 * col2 FROM tab2
----
38760
50220
92040

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9919
SELECT CAST( NULL AS SIGNED ) col2 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9919
SELECT CAST ( NULL AS INTEGER ) col2 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9920
SELECT - CAST( NULL AS SIGNED ) FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9920
SELECT - CAST ( NULL AS INTEGER ) FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL + col0 * - col1 AS col1 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT - 68 AS col2 FROM tab1, tab2, tab1 AS cor0, tab0 AS cor1
----
81 values hashing to 3a5c3d9872a8a4148ab98ed0ab0a6c62

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0, tab2 AS cor1, tab2 AS cor2
----
972 values hashing to a698694a7dac245e42212ff0316bdf45

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 cor0, tab2 AS cor1, tab1 AS cor2
----
972 values hashing to 4c46de5c1773124597e14f3b372fc4ea

query I rowsort
SELECT col2 + - col0 FROM tab2
----
-41
-52
20

query I rowsort
SELECT + 62 - col0 FROM tab2
----
-16
-17
55

query I rowsort
SELECT 33 * - col0 AS col0 FROM tab2 AS cor0
----
-231
-2574
-2607

query I rowsort
SELECT + - col1 * col1 AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col1 col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT - + col2 * - col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT - + cor0.col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL + + cor0.col1 + + col0 AS col1 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT + col2 * col0 + + col1 FROM tab1
----
188
3658
7693

query I rowsort
SELECT + col1 * - col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query IIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 WHERE ( NULL ) > NULL
----

query I rowsort
SELECT - col1 * ( + col0 ) FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL cor0.col2 - col0 AS col0 FROM tab0 cor0
----
-34
-7
9

query I rowsort
SELECT ALL + + col1 + - col0 * + col2 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT - col1 + - 59 FROM tab1
----
-69
-72
-85

query I rowsort
SELECT DISTINCT + cor0.col0 * + cor0.col2 - cor0.col1 AS col0 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT col2 * - 15 - + col1 FROM tab0 AS cor0
----
-112
-1321
-581

query I rowsort
SELECT col1 * - col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + col2 * + col2 col1 FROM tab0 cor0
----
1122
2
6806

query I rowsort
SELECT DISTINCT col0 + - col1 * - col2 AS col2 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT - 47 FROM tab0, tab0 cor0
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

onlyif mysql # use DIV operator for integer division
query I rowsort label-9946
SELECT DISTINCT + cor0.col2 DIV 99 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9946
SELECT DISTINCT + cor0.col2 / 99 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT cor0.col2 AS col0 FROM tab0, tab2 AS cor0
----
26
27
38

query I rowsort
SELECT + 37 FROM tab0 AS cor0
----
37
37
37

query I rowsort
SELECT + 10 * + 60 AS col2 FROM tab2 cor0
----
600
600
600

query I rowsort
SELECT - 85 FROM tab1, tab2 AS cor0
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

query I rowsort
SELECT DISTINCT - 50 FROM tab2, tab0 AS cor0, tab1 cor1, tab0 AS cor2
----
-50

query I rowsort
SELECT tab1.col0 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT col0 + - col0 AS col2 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - ( + col0 ) ) + + col0 * 53 col2 FROM tab0
----
1248
1820
4628

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9955
SELECT - CAST( - 22 AS SIGNED ) * col0 + 22 AS col1 FROM tab1 AS cor0
----
1430
1782
88

skipif mysql # not compatible
query I rowsort label-9955
SELECT - CAST ( - 22 AS INTEGER ) * col0 + 22 AS col1 FROM tab1 AS cor0
----
1430
1782
88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9956
SELECT - CAST( NULL AS SIGNED ) * + col2 + cor0.col0 * + ( + col1 ) / - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9956
SELECT - CAST ( NULL AS INTEGER ) * + col2 + cor0.col0 * + ( + col1 ) / - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 + + col0 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT - - col2 AS col1 FROM tab2 AS cor0
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-9959
SELECT DISTINCT col2 + + 90 + cor0.col0 DIV ( col2 + - cor0.col0 ) FROM tab2 AS cor0
----
115
117
127

skipif mysql # not compatible
query I rowsort label-9959
SELECT DISTINCT col2 + + 90 + cor0.col0 / ( col2 + - cor0.col0 ) FROM tab2 AS cor0
----
115
117
127

query I rowsort
SELECT - col0 + col2 FROM tab1 cor0
----
-7
16
51

query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab1, tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ALL 56 + + col1 * + col0 FROM tab2 AS cor0
----
1399
273
4658

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 cor0, tab2 cor1
----
243 values hashing to d489341cd587fd6eb0b972c5464c6ddc

query I rowsort
SELECT ALL + - col1 * col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT 24 * cor0.col0 FROM tab2 cor0
----
168
1872
1896

query I rowsort
SELECT DISTINCT 89 AS col1 FROM tab2 AS cor0
----
89

query I rowsort
SELECT ALL - col1 + cor0.col2 AS col1 FROM tab0 cor0
----
-53
-9
-96

query I rowsort
SELECT 13 * - col1 AS col0 FROM tab0 AS cor0
----
-1118
-1183
-1261

query I rowsort
SELECT DISTINCT + 46 FROM tab2 AS cor0
----
46

onlyif mysql # use DIV operator for integer division
query I rowsort label-9970
SELECT ALL + + 16 + - col2 DIV - col2 FROM tab0 AS cor0
----
17
17
17

skipif mysql # not compatible
query I rowsort label-9970
SELECT ALL + + 16 + - col2 / - col2 FROM tab0 AS cor0
----
17
17
17

query I rowsort
SELECT DISTINCT + 51 FROM tab0 AS cor0
----
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-9972
SELECT 34 + cor0.col2 DIV - ( - col0 ) AS col0 FROM tab2 AS cor0
----
34
34
37

skipif mysql # not compatible
query I rowsort label-9972
SELECT 34 + cor0.col2 / - ( - col0 ) AS col0 FROM tab2 AS cor0
----
34
34
37

query I rowsort
SELECT DISTINCT col1 * col1 * + col2 FROM tab0 AS cor0
----
244068
679042
9409

query I rowsort
SELECT ALL - tab2.col1 AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col0 - col1 * - tab0.col1 col2 FROM tab0
----
7420
8370
9444

query I rowsort
SELECT + ( 59 ) - col1 FROM tab2
----
0
28
42

query I rowsort
SELECT tab0.col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9978
SELECT + 87 - col2 * + col0 * - CAST( + col0 + + col1 AS SIGNED ) FROM tab2
----
277923
288279
7269

skipif mysql # not compatible
query I rowsort label-9978
SELECT + 87 - col2 * + col0 * - CAST ( + col0 + + col1 AS INTEGER ) FROM tab2
----
277923
288279
7269

query I rowsort
SELECT ALL 6 AS col0 FROM tab2
----
6
6
6

query I rowsort
SELECT DISTINCT col1 * - 12 FROM tab1
----
-120
-156
-312

query I rowsort
SELECT ALL + - col0 + + cor0.col1 AS col2 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT DISTINCT - + cor0.col2 * - col2 AS col0 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT - col2 * cor0.col0 FROM tab2 cor0
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + cor0.col2 ) + + ( + ( + col1 ) ) * + col2 * - ( col0 ) col2 FROM tab1 AS cor0
----
-36423
-4158
-99744

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9985
SELECT CAST( NULL AS SIGNED ) FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-9985
SELECT CAST ( NULL AS INTEGER ) FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT - col1 + col2 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT 67 + col0 FROM tab0 AS cor0
----
102
156
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) * ( 58 ) col2 FROM tab2 AS cor0
----
1798
3422
986

query I rowsort
SELECT ALL col0 * - col0 + cor0.col0 AS col0 FROM tab1 AS cor0
----
-4032
-6
-6320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col1 * + col0 col1 FROM tab1 AS cor0
----
-576
-75
-960

onlyif mysql # use DIV operator for integer division
query I rowsort label-9991
SELECT ALL - 90 DIV - tab1.col1 + col1 FROM tab1
----
19
19
29

skipif mysql # not compatible
query I rowsort label-9991
SELECT ALL - 90 / - tab1.col1 + col1 FROM tab1
----
19
19
29

query I rowsort
SELECT + ( cor0.col2 ) + cor0.col2 * - col2 FROM tab1 AS cor0
----
-2862
-3192
-9120

query I rowsort
SELECT DISTINCT col0 * tab1.col1 FROM tab1
----
1040
640
78

query I rowsort
SELECT DISTINCT ( + col0 + + ( - col1 ) ) * col0 AS col2 FROM tab0
----
-1488
-178
-2170

query I rowsort
SELECT - 60 AS col2 FROM tab2
----
-60
-60
-60

query I rowsort
SELECT ALL - 68 AS col2 FROM tab2
----
-68
-68
-68

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1, tab2 AS cor0, tab0 AS cor1
----
972 values hashing to 9a5ab925af18e11f7748f3b2e722ff3d

query I rowsort
SELECT col2 + col1 FROM tab0
----
119
173
98

query I rowsort
SELECT ALL - tab0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f