sqllogictest

Artifact [31174d7d5b]
Login

Artifact 31174d7d5b2237d96f2a51575210b684b39feefe:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + 63 * + col0 * col2 col1 FROM tab1 cor0
----
10232
229834
483853

query I rowsort
SELECT DISTINCT - 94 * col0 * + ( + col1 ) FROM tab0 cor0
----
-194016
-319130
-761306

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT - col2 * - 41 FROM tab1 AS cor0
----
2214
2337
3936

query I rowsort
SELECT ALL col2 * - 19 AS col0 FROM tab0 AS cor0
----
-1558
-19
-627

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

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

query I rowsort
SELECT + 91 + col2 * + col2 + 98 * + col0 FROM tab0
----
15537
3522
3532

query I rowsort
SELECT DISTINCT - 71 + - tab0.col2 * + col0 FROM tab0
----
-106
-7369
-863

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

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

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

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

query I rowsort
SELECT col0 + col0 + - 2 FROM tab1
----
126
158
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-20
SELECT DISTINCT col2 DIV + col1 - + ( + col2 ) * col1 AS col2 FROM tab1
----
-1241
-1402
-565

skipif mysql # not compatible
query I rowsort label-20
SELECT DISTINCT col2 / + col1 - + ( + col2 ) * col1 AS col2 FROM tab1
----
-1241
-1402
-565

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

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

skipif mysql # not compatible
query I rowsort label-22
SELECT col0 * CAST ( - col1 AS INTEGER ) FROM tab0 cor0
----
-2064
-3395
-8099

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

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

query I rowsort
SELECT + - cor0.col0 * - 21 FROM tab2 AS cor0
----
147
1638
1659

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-29
SELECT 37 DIV - col1 AS col0 FROM tab1 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-29
SELECT 37 / - col1 AS col0 FROM tab1 AS cor0
----
-1
-2
-3

query I rowsort
SELECT DISTINCT + 94 * cor0.col1 + + col1 FROM tab0 AS cor0
----
8170
8645
9215

query I rowsort
SELECT + 73 * col0 FROM tab0 AS cor0
----
1752
2555
6497

query I rowsort
SELECT + col0 + 12 AS col1 FROM tab0 AS cor0
----
101
36
47

query I rowsort
SELECT - col2 * 70 * col0 FROM tab2 AS cor0
----
-13230
-141960
-210140

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

query I rowsort
SELECT ALL + + 35 * + cor0.col1 + + col0 AS col0 FROM tab1 AS cor0
----
414
535
913

onlyif mysql # use DIV operator for integer division
query I rowsort label-36
SELECT + col0 DIV - 71 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-36
SELECT + col0 / - 71 FROM tab0
----
-1
0
0

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

skipif mysql # not compatible
query I rowsort label-37
SELECT + tab0.col2 / col2 FROM tab0
----
1
1
1

query I rowsort
SELECT + col1 * - 40 AS col2 FROM tab1
----
-1040
-400
-520

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

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

query I rowsort
SELECT ALL col0 * tab2.col1 * col1 FROM tab2
----
22831
271518
6727

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-42
SELECT ALL + CAST( 16 AS SIGNED ) col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-42
SELECT ALL + CAST ( 16 AS INTEGER ) col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

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

query I rowsort
SELECT + col0 + - col0 * col2 * col0 FROM tab1 AS cor0
----
-233408
-483
-614320

query I rowsort
SELECT 71 FROM tab2
----
71
71
71

query I rowsort
SELECT ( - col2 ) + col1 * col1 FROM tab2
----
251
3455
934

query I rowsort
SELECT + 27 + col1 * + col0 FROM tab2
----
1370
244
4629

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

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

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

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

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

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

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

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

query I rowsort
SELECT 22 FROM tab2, tab2 cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query I rowsort
SELECT ALL ( - 0 ) * + col0 * + col2 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - 46 FROM tab0, tab2 cor0
----
-46

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

query I rowsort
SELECT - col2 + 13 FROM tab1
----
-41
-44
-83

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 70 + col2 FROM tab1 AS cor0
----
-13
-16
26

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

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

query I rowsort
SELECT ALL - 72 + + col2 FROM tab2 AS cor0
----
-34
-45
-46

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

query I rowsort
SELECT + 97 * - 21 AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 36321fcf588561cfe6ca6d04f8fba250

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-71
SELECT + 72 * col0 - col0 DIV - col2 AS col1 FROM tab1 AS cor0
----
216
4609
5760

skipif mysql # not compatible
query I rowsort label-71
SELECT + 72 * col0 - col0 / - col2 AS col1 FROM tab1 AS cor0
----
216
4609
5760

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

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

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

query I rowsort
SELECT DISTINCT 51 * - col2 + + col2 AS col0 FROM tab2 cor0
----
-1300
-1350
-1900

query I rowsort
SELECT DISTINCT - 15 * + col1 + - col2 FROM tab1 AS cor0
----
-207
-291
-444

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

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

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

query I rowsort
SELECT DISTINCT + cor0.col0 * col0 + - col1 AS col1 FROM tab1 AS cor0
----
-17
4086
6387

query I rowsort
SELECT DISTINCT 24 FROM tab1 AS cor0
----
24

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

query I rowsort
SELECT ALL - col0 * col0 * - col0 + 18 AS col2 FROM tab2 AS cor0
----
361
474570
493057

query I rowsort
SELECT DISTINCT + ( - col1 ) * col0 + 25 * + cor0.col0 FROM tab1 AS cor0
----
-3
960

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

skipif mysql # not compatible
query I rowsort label-84
SELECT + col0 / - CAST ( col1 AS INTEGER ) + - col0 AS col1 FROM tab2 AS cor0
----
-7
-79
-83

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

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

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

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

query I rowsort
SELECT - - col0 + cor0.col2 * - 94 FROM tab2 AS cor0
----
-2366
-2531
-3493

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

query I rowsort
SELECT DISTINCT + col1 * - 54 AS col0 FROM tab0 AS cor0
----
-4644
-4914
-5238

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 84 col2 FROM tab0 AS cor0
----
-2772
-6888
-84

query I rowsort
SELECT ALL - 61 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

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

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

query I rowsort
SELECT - + 7 + col0 FROM tab2 AS cor0
----
0
71
72

query I rowsort
SELECT ALL - col0 * - col2 + col1 + col1 AS col2 FROM tab1 AS cor0
----
214
3668
7706

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-100
SELECT DISTINCT - ( + col1 ) DIV - col0 + + 14 AS col1 FROM tab2 cor0
----
14
18

skipif mysql # not compatible
query I rowsort label-100
SELECT DISTINCT - ( + col1 ) / - col0 + + 14 AS col1 FROM tab2 cor0
----
14
18

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

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

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

query I rowsort
SELECT ALL 76 + - 11 * + col0 AS col1 FROM tab1 AS cor0
----
-628
-804
43

onlyif mysql # use DIV operator for integer division
query I rowsort label-104
SELECT col0 DIV 61 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-104
SELECT col0 / 61 FROM tab2 AS cor0
----
0
1
1

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

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

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

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

query I rowsort
SELECT - - 4 * col1 AS col1 FROM tab1 cor0
----
104
40
52

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

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

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

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

query I rowsort
SELECT - 59 * - cor0.col0 + - col2 FROM tab2 cor0
----
386
4576
4623

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

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

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

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

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

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

query I rowsort
SELECT + cor0.col1 - + 15 AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 127c3b687a0b1d090b47c293f482b4bf

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

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

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

query I rowsort
SELECT ALL 76 * + 64 FROM tab2
----
4864
4864
4864

query I rowsort
SELECT DISTINCT + col2 - 69 * col0 FROM tab0 AS cor0
----
-1623
-2414
-6059

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

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

query I rowsort
SELECT - - col0 + + ( - col0 ) * col0 FROM tab2 AS cor0
----
-42
-6006
-6162

query I rowsort
SELECT ALL - col1 + 25 FROM tab1 AS cor0
----
-1
12
15

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

skipif mysql # not compatible
query I rowsort label-128
SELECT ALL + cor0.col0 * - CAST ( - col2 AS INTEGER ) + col0 AS col1 FROM tab2 AS cor0
----
196
2106
3081

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

query I rowsort
SELECT ALL col2 + ( 33 ) AS col0 FROM tab1 AS cor0
----
129
87
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-131
SELECT DISTINCT cor0.col0 * - ( - col0 ) + + col0 DIV ( + col2 ) + + col0 AS col2 FROM tab1 AS cor0
----
12
4161
6480

skipif mysql # not compatible
query I rowsort label-131
SELECT DISTINCT cor0.col0 * - ( - col0 ) + + col0 / ( + col2 ) + + col0 AS col2 FROM tab1 AS cor0
----
12
4161
6480

query I rowsort
SELECT - 3 * tab1.col2 + - col0 + col2 * col2 * - col0 AS col2 FROM tab1
----
-208171
-737648
-8913

query I rowsort
SELECT DISTINCT col0 * + col1 * - 9 + col0 AS col1 FROM tab1
----
-5696
-699
-9280

onlyif mysql # use DIV operator for integer division
query I rowsort label-134
SELECT ALL + col1 + - col0 DIV - col1 FROM tab2
----
21
31
60

skipif mysql # not compatible
query I rowsort label-134
SELECT ALL + col1 + - col0 / - col1 FROM tab2
----
21
31
60

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-135
SELECT ALL + col0 * - CAST( col1 AS SIGNED ) + + col0 * - tab2.col0 * col0 AS col1 FROM tab2
----
-479154
-494382
-560

skipif mysql # not compatible
query I rowsort label-135
SELECT ALL + col0 * - CAST ( col1 AS INTEGER ) + + col0 * - tab2.col0 * col0 AS col1 FROM tab2
----
-479154
-494382
-560

onlyif mysql # use DIV operator for integer division
query I rowsort label-136
SELECT - - col0 * col2 + 46 DIV col2 FROM tab1 AS cor0
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-136
SELECT - - col0 * col2 + 46 / col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL 80 FROM tab0, tab0 AS cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

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

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

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

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-144
SELECT DISTINCT 67 DIV - col0 FROM tab1
----
-1
-22
0

skipif mysql # not compatible
query I rowsort label-144
SELECT DISTINCT 67 / - col0 FROM tab1
----
-1
-22
0

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 DISTINCT + col2 * - col2 FROM tab0
----
-1
-1089
-6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 46 col1 FROM tab1 cor0 CROSS JOIN tab2, tab0 cor1, tab2 cor2
----
81 values hashing to ae4d442ff589a18fe7c7777464d5970c

query I rowsort
SELECT + 19 + - col1 + + col0 * + cor0.col1 FROM tab1 AS cor0
----
1046
649
71

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

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

query I rowsort
SELECT + tab1.col1 + + 18 + + tab1.col2 * col0 AS col2 FROM tab1
----
206
3676
7711

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 AS cor2, tab2 AS cor3
----
3645 values hashing to d752a38ff42b067eedd12ad6c3f9365e

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-153
SELECT col1 DIV - col1 + - col0 - tab1.col1 * col2 FROM tab1
----
-1329
-1408
-635

skipif mysql # not compatible
query I rowsort label-153
SELECT col1 / - col1 + - col0 - tab1.col1 * col2 FROM tab1
----
-1329
-1408
-635

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( col0 )
----

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 BETWEEN ( NULL ) AND col2 * + col0 + col0 + - col0 * + col2
----

query I rowsort
SELECT col2 AS col1 FROM tab2 WHERE col1 BETWEEN NULL AND NULL
----

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

query I rowsort
SELECT ALL - tab1.col0 * col2 * - col2 + - col0 * col2 FROM tab1
----
204288
729600
8586

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

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

query I rowsort
SELECT DISTINCT col1 + tab0.col0 * - col1 FROM tab0
----
-1978
-3298
-8008

query III rowsort
SELECT * FROM tab2 WHERE NULL > NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 <> col1
----

query I rowsort
SELECT ALL - 23 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 9bd721f99d79dce21b1de2860fd51ed5

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

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

query I rowsort
SELECT DISTINCT - col2 + + col2 * ( col0 ) + col2 * - ( - col0 ) FROM tab2 AS cor0
----
351
4030
5966

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

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

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

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

query I rowsort
SELECT + 20 AS col0 FROM tab2 AS cor0
----
20
20
20

query I rowsort
SELECT - cor0.col2 * - col1 + 5 FROM tab2 AS cor0
----
1539
651
842

query I rowsort
SELECT + col1 * 48 + 93 AS col0 FROM tab2 cor0
----
1581
2925
909

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

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

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

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

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

query I rowsort
SELECT + 88 FROM tab1, tab2 cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * col0 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 tab1 AS cor0
----
3
64
80

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

query I rowsort
SELECT ALL - 35 * col2 FROM tab2 cor0
----
-1330
-910
-945

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

query I rowsort
SELECT ALL cor0.col2 * - col0 - ( col0 ) FROM tab2 AS cor0
----
-196
-2106
-3081

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

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

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

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

skipif mysql # not compatible
query I rowsort label-191
SELECT + - col1 + col0 / col1 AS col2 FROM tab0 AS cor0
----
-86
-91
-97

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-193
SELECT ALL - col0 * col2 DIV cor0.col2 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-193
SELECT ALL - col0 * col2 / cor0.col2 FROM tab0 AS cor0
----
-24
-35
-89

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-196
SELECT DISTINCT - col1 + col1 DIV col1 FROM tab0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-196
SELECT DISTINCT - col1 + col1 / col1 FROM tab0
----
-85
-90
-96

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col1 col1 FROM tab1
----
28
47
83

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

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

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

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

query I rowsort
SELECT - col0 + col2 * + col2 * col2 FROM tab0
----
-34
35913
551279

onlyif mysql # use DIV operator for integer division
query I rowsort label-207
SELECT ALL + col2 * col1 DIV + col0 col2 FROM tab2
----
119
19
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-207
SELECT ALL + col2 * col1 / + col0 col2 FROM tab2
----
119
19
8

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

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

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

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

query I rowsort
SELECT tab0.col1 * col1 + col1 * - col1 FROM tab0
----
0
0
0

query I rowsort
SELECT + col0 AS col0 FROM tab2 WHERE NULL <> + col0 AND NOT NULL <= ( NULL )
----

query I rowsort
SELECT col1 + col2 * + tab1.col1 * col1 FROM tab1
----
16237
36530
5710

query I rowsort
SELECT ALL + tab1.col1 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT DISTINCT - col1 * col1 * col2 FROM tab2
----
-10982
-25947
-90506

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

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

query I rowsort
SELECT DISTINCT 38 AS col0 FROM tab2
----
38

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

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

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

query I rowsort
SELECT - ( cor0.col1 ) * col0 * col2 + col1 FROM tab2 AS cor0
----
-119593
-51017
-5828

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

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

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

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

query I rowsort
SELECT ALL - tab2.col1 + + 14 * col2 AS col2 FROM tab2
----
305
347
515

query I rowsort
SELECT ALL 66 + - col2 * - col0 * col0 AS col0 FROM tab2
----
1389
158250
237224

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

query I rowsort
SELECT ( - col2 ) + col0 * - col0 + - col1 FROM tab0
----
-1323
-695
-8094

query I rowsort
SELECT ALL - 63 + + col0 * - tab1.col1 FROM tab1
----
-1103
-141
-703

query I rowsort
SELECT ALL 25 + + tab0.col0 * - col1 AS col2 FROM tab0
----
-2039
-3370
-8074

query I rowsort
SELECT DISTINCT - col1 + col1 * col1 AS col0 FROM tab2
----
272
3422
930

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

query I rowsort
SELECT + 64 * + tab2.col1 * col2 + tab2.col2 FROM tab2
----
41382
53595
98202

query I rowsort
SELECT DISTINCT ( + col1 ) * col1 + col0 * - col0 FROM tab2
----
-2603
-5952
912

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

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

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

query I rowsort
SELECT - + col1 * - cor0.col1 + - col1 * - col1 * col1 AS col1 FROM tab0 AS cor0
----
643452
761852
922082

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

query I rowsort
SELECT DISTINCT col1 * col1 * col0 AS col2 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT DISTINCT - col0 * cor0.col0 + - col1 FROM tab1 AS cor0
----
-35
-4106
-6413

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

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

query I rowsort
SELECT ALL + - ( + col1 ) * + col1 - - col1 * + col2 AS col2 FROM tab2 AS cor0
----
-124
-1947
357

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 41 + + cor0.col2 col0 FROM tab0 AS cor0
----
123
42
74

query I rowsort
SELECT ALL - + col2 * + col2 * col2 AS col0 FROM tab2 AS cor0
----
-17576
-19683
-54872

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

query I rowsort
SELECT ALL col0 - tab0.col0 * tab0.col0 FROM tab0
----
-1190
-552
-7832

query I rowsort
SELECT - col1 AS col1 FROM tab0 WHERE NOT ( NULL ) NOT IN ( col1 )
----

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

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

query I rowsort
SELECT col2 * col1 - col1 * + col1 FROM tab0
----
-4558
-819
-9312

query I rowsort
SELECT DISTINCT col2 - - col1 FROM tab0
----
119
173
98

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

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

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

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

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

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

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

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

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE col2 * col1 + col1 IN ( - col2 * + col1 + - col0 )
----

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

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

query I rowsort
SELECT DISTINCT col0 + - col0 * + col2 + col1 FROM tab1 AS cor0
----
-133
-3574
-7587

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

query I rowsort
SELECT + tab0.col0 * col0 FROM tab0 WHERE ( NULL ) BETWEEN NULL AND col1
----

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

query I rowsort
SELECT ALL col1 * col0 + col0 * - col0 + - col0 AS col0 FROM tab2 AS cor0
----
-1560
-4977
161

query I rowsort
SELECT + col1 * tab0.col0 + - col0 * - col1 * col2 FROM tab0
----
672217
6790
70176

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

query I rowsort
SELECT ALL + tab0.col2 + col2 FROM tab0
----
164
2
66

query I rowsort
SELECT DISTINCT col1 * + col0 + tab0.col1 * col1 AS col1 FROM tab0
----
12804
16380
9460

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

query I rowsort
SELECT ALL + col2 * - col1 * col1 + + tab2.col1 * + tab2.col0 FROM tab2
----
-25730
-85904
-9639

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-277
SELECT DISTINCT - col2 DIV tab1.col1 + + col1 * + col0 FROM tab1
----
1033
635
76

skipif mysql # not compatible
query I rowsort label-277
SELECT DISTINCT - col2 / tab1.col1 + + col1 * + col0 FROM tab1
----
1033
635
76

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

query I rowsort
SELECT col2 * + col2 * col2 + col1 AS col2 FROM tab1
----
157490
185203
884749

query I rowsort
SELECT DISTINCT + col0 * col1 * col1 FROM tab0
----
177504
329315
737009

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col1 * + col1 col0 FROM tab2
----
289
3481
961

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 + + col2 * + col2 + + col0 - + col2 FROM tab2 AS cor0
----
1485
709
728

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

skipif mysql # not compatible
query I rowsort label-285
SELECT col0 / + col1 FROM tab1 AS cor0
----
0
6
6

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

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

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

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

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

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

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

query I rowsort
SELECT ALL col1 + col2 + col2 AS col2 FROM tab1
----
124
134
205

query I rowsort
SELECT DISTINCT col2 + - col2 FROM tab0
----
0

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

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL + tab2.col0 * col1 + col0 - - col0 AS col2 FROM tab2
----
1501
231
4758

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL > col1 * + col1
----

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col0 + + col1 * col0 + tab0.col0 * tab0.col2 col1 FROM tab0
----
15486
2880
3465

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

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

skipif mysql # not compatible
query I rowsort label-313
SELECT col0 / col0 AS col1 FROM tab1
----
1
1
1

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-316
SELECT 15 + 59 DIV + col2 col1 FROM tab1 AS cor0
----
15
16
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-316
SELECT 15 + 59 / + col2 col1 FROM tab1 AS cor0
----
15
16
16

query I rowsort
SELECT DISTINCT + 82 * col2 + col1 FROM tab0 AS cor0
----
179
2792
6815

query I rowsort
SELECT - cor0.col0 * 22 AS col0 FROM tab1 AS cor0
----
-1408
-1760
-66

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

query I rowsort
SELECT - col1 * 82 AS col2 FROM tab2 AS cor0
----
-1394
-2542
-4838

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

skipif mysql # not compatible
query I rowsort label-321
SELECT + ( col1 ) / col0 AS col0 FROM tab1 AS cor0
----
0
0
8

query I rowsort
SELECT + ( - 26 ) * col0 * col1 FROM tab0 cor0
----
-210574
-53664
-88270

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 57 AS col2 FROM tab0, tab1 AS cor0 CROSS JOIN tab2
----
-57

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

query I rowsort
SELECT - 45 * col1 FROM tab1 AS cor0
----
-1170
-450
-585

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-333
SELECT - col2 / 47 AS col2 FROM tab2 AS cor0
----
0
0
0

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-335
SELECT DISTINCT + col0 DIV tab1.col1 + col1 * tab1.col2 col2 FROM tab1
----
1254
1404
576

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-335
SELECT DISTINCT + col0 / tab1.col1 + col1 * tab1.col2 col2 FROM tab1
----
1254
1404
576

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-339
SELECT + col1 DIV + 97 + - tab0.col1 AS col2 FROM tab0
----
-86
-91
-96

skipif mysql # not compatible
query I rowsort label-339
SELECT + col1 / + 97 + - tab0.col1 AS col2 FROM tab0
----
-86
-91
-96

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 ALL - - col1 col0 FROM tab0 AS cor0
----
86
91
97

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

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

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

query I rowsort
SELECT ( 92 ) FROM tab1, tab0 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

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

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

skipif mysql # not compatible
query I rowsort label-346
SELECT ALL - - cor0.col2 + - 96 / col0 + col2 AS col2 FROM tab0 AS cor0
----
0
163
62

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL - 48 FROM tab2, tab1 AS cor0
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( - col0 AS REAL ) * col2 * ( col0 ) col0 FROM tab0
----
-1225
-19008
-649522

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-357
SELECT 82 DIV - col1 AS col2 FROM tab1
----
-3
-6
-8

skipif mysql # not compatible
query I rowsort label-357
SELECT 82 / - col1 AS col2 FROM tab1
----
-3
-6
-8

query I rowsort
SELECT ALL + 55 * - col0 FROM tab0
----
-1320
-1925
-4895

query I rowsort
SELECT - - 66 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 897b6122ac98340b78905f39d81897fc

query I rowsort
SELECT + cor0.col2 * - col0 * + col0 - col1 FROM tab1 AS cor0
----
-233482
-512
-614413

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

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

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

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

query I rowsort
SELECT + cor0.col2 * 96 * - col2 AS col0 FROM tab2 AS cor0
----
-138624
-64896
-69984

onlyif mysql # use DIV operator for integer division
query I rowsort label-366
SELECT col1 - - col1 DIV + 63 AS col2 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-366
SELECT col1 - - col1 / + 63 AS col2 FROM tab0 AS cor0
----
87
92
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-367
SELECT + - 92 DIV cor1.col1 FROM tab1 cor0 CROSS JOIN tab0, tab2 cor1
----
27 values hashing to 62c6a1c081f2143fd91f3f00abf3af4b

skipif mysql # not compatible
query I rowsort label-367
SELECT + - 92 / cor1.col1 FROM tab1 cor0 CROSS JOIN tab0, tab2 cor1
----
27 values hashing to 62c6a1c081f2143fd91f3f00abf3af4b

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-371
SELECT ALL + tab0.col2 * col0 + - 84 / col1 FROM tab0
----
35
7298
792

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

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

query I rowsort
SELECT - + col1 * - ( - col1 ) + col1 FROM tab2 AS cor0
----
-272
-3422
-930

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

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

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

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

query I rowsort
SELECT ALL + + col0 * col0 + - 50 * + col1 FROM tab1 cor0
----
-1291
3596
5750

query I rowsort
SELECT col2 * - col1 * 64 FROM tab1
----
-36480
-79872
-89856

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

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

query I rowsort
SELECT 30 * + 43 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 02720104c6d0aaca32234e986a0b480a

query I rowsort
SELECT + col0 * - col0 * col2 + + cor0.col0 * - col0 FROM tab0 AS cor0
----
-19584
-2450
-657443

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

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

query I rowsort
SELECT 10 + col2 FROM tab0 cor0
----
11
43
92

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-390
SELECT ALL col1 + - col2 + - CAST( col2 + col1 AS SIGNED ) * - col2 DIV - col2 FROM tab0
----
-164
-2
-66

skipif mysql # not compatible
query I rowsort label-390
SELECT ALL col1 + - col2 + - CAST ( col2 + col1 AS INTEGER ) * - col2 / - col2 FROM tab0
----
-164
-2
-66

onlyif mysql # use DIV operator for integer division
query I rowsort label-391
SELECT col2 * col0 DIV col0 + - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-391
SELECT col2 * col0 / col0 + - col2 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-392
SELECT DISTINCT + col1 + - col0 DIV + col2 FROM tab0 AS cor0
----
62
86
90

skipif mysql # not compatible
query I rowsort label-392
SELECT DISTINCT + col1 + - col0 / + col2 FROM tab0 AS cor0
----
62
86
90

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col1 col0 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT ALL - col1 + - col1 * - col2 * col2 FROM tab0 AS cor0
----
0
611793
93568

query I rowsort
SELECT ALL - col0 * + col2 + + 59 * + col1 FROM tab1
----
-3058
-6913
1372

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

query I rowsort
SELECT ALL - col0 + + col1 * 10 AS col2 FROM tab0
----
821
836
935

onlyif mysql # use DIV operator for integer division
query I rowsort label-400
SELECT col2 DIV - cor0.col0 + + col1 AS col2 FROM tab1 AS cor0
----
10
12
8

skipif mysql # not compatible
query I rowsort label-400
SELECT col2 / - cor0.col0 + + col1 AS col2 FROM tab1 AS cor0
----
10
12
8

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 86 * col0 - col1 * + col2 col1 FROM tab1 AS cor0
----
-1146
4934
5632

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

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

query I rowsort
SELECT ALL + col2 + + col0 + col2 * - col1 AS col0 FROM tab2 AS cor0
----
-1430
-529
-803

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

query I rowsort
SELECT ALL - - 1 + col2 * - col2 AS col0 FROM tab2 cor0
----
-1443
-675
-728

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

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

query I rowsort
SELECT - + 62 + + col0 FROM tab1 AS cor0
----
-59
18
2

query I rowsort
SELECT - col2 - 4 FROM tab2 AS cor0
----
-30
-31
-42

query I rowsort
SELECT DISTINCT + col2 * - col0 + + col2 * - 28 + + col1 * col2 FROM tab0 AS cor0
----
-2132
1122
34

query I rowsort
SELECT + col2 * + 99 + + col2 FROM tab0 AS cor0
----
100
3300
8200

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

query I rowsort
SELECT - col1 * tab2.col0 + 5 AS col1 FROM tab2
----
-1338
-212
-4597

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

query I rowsort
SELECT + col2 + - col1 * + col0 - 23 FROM tab2
----
-1328
-213
-4599

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

query I rowsort
SELECT ( + 23 ) * col0 AS col2 FROM tab2 AS cor0
----
161
1794
1817

query I rowsort
SELECT + 59 + col1 AS col1 FROM tab0 cor0
----
145
150
156

query I rowsort
SELECT DISTINCT - 6 + - 52 FROM tab0 AS cor0
----
-58

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

query I rowsort
SELECT col2 + + 76 + col2 AS col1 FROM tab0 AS cor0
----
142
240
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 83 + + col1 col2 FROM tab2
----
100
114
142

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

query I rowsort
SELECT 47 * col1 + - ( 62 ) FROM tab2 AS cor0
----
1395
2711
737

query I rowsort
SELECT 72 + tab1.col1 FROM tab1
----
82
85
98

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

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

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

skipif mysql # not compatible
query I rowsort label-430
SELECT + CAST ( - col0 AS INTEGER ) + col1 + ( col2 + col0 ) FROM tab2
----
55
58
85

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

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

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

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

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

query I rowsort
SELECT - 17 * - cor0.col1 + - col0 * + cor0.col1 + col1 FROM tab1 cor0
----
-460
-806
390

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

query I rowsort
SELECT + col2 * + col0 * + cor0.col2 + - col1 * col2 FROM tab2 AS cor0
----
113430
4266
51194

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

query I rowsort
SELECT ALL + ( col1 ) * - 90 + col0 FROM tab2 AS cor0
----
-1451
-2783
-5232

onlyif mysql # use DIV operator for integer division
query I rowsort label-441
SELECT col2 DIV col2 + + ( + 15 ) col1 FROM tab1 cor0
----
16
16
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-441
SELECT col2 / col2 + + ( + 15 ) col1 FROM tab1 cor0
----
16
16
16

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - col1 * 20 AS col2 FROM tab1 AS cor0
----
-200
-260
-520

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

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

query I rowsort
SELECT ALL - cor0.col2 * 5 + col2 FROM tab2 AS cor0
----
-104
-108
-152

query I rowsort
SELECT DISTINCT - + col2 * - ( + col2 + col0 ) * + col2 FROM tab1 AS cor0
----
1622016
166212
393129

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

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

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

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

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

query I rowsort
SELECT col2 + - 69 AS col0 FROM tab1 cor0
----
-12
-15
27

query I rowsort
SELECT DISTINCT - col1 + + 41 AS col2 FROM tab0 AS cor0
----
-45
-50
-56

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 83 + - col0 * col2 col1 FROM tab1 cor0
----
-3565
-7597
-79

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

query I rowsort
SELECT ALL col0 * 50 AS col2 FROM tab1 AS cor0
----
150
3200
4000

query I rowsort
SELECT + - 31 + col2 FROM tab2 AS cor0
----
-4
-5
7

query I rowsort
SELECT DISTINCT 31 * - col1 FROM tab1 AS cor0
----
-310
-403
-806

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-467
SELECT DISTINCT - CAST( col0 AS SIGNED ) - col2 FROM tab2 AS cor0
----
-104
-117
-34

skipif mysql # not compatible
query I rowsort label-467
SELECT DISTINCT - CAST ( col0 AS INTEGER ) - col2 FROM tab2 AS cor0
----
-104
-117
-34

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor1.col0 * 36 col0 FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
1260
3204
864

query I rowsort
SELECT ALL - + 19 * + col2 AS col1 FROM tab2 cor0
----
-494
-513
-722

onlyif mysql # use DIV operator for integer division
query I rowsort label-471
SELECT ALL + - ( + 26 ) DIV col2 AS col2 FROM tab0 AS cor0
----
-26
0
0

skipif mysql # not compatible
query I rowsort label-471
SELECT ALL + - ( + 26 ) / col2 AS col2 FROM tab0 AS cor0
----
-26
0
0

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

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

query I rowsort
SELECT ALL - tab0.col0 AS col1 FROM tab0, tab1, tab2 cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 61 col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55

query I rowsort
SELECT col1 + + col1 AS col2 FROM tab0 AS cor0
----
172
182
194

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

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

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

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

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

query I rowsort
SELECT - col1 * ( col0 ) + col0 FROM tab1 cor0
----
-576
-75
-960

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

query I rowsort
SELECT - col1 * col0 + 65 AS col2 FROM tab1 AS cor0
----
-13
-575
-975

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

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

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

query I rowsort
SELECT ALL 12 + 62 FROM tab1 AS cor0
----
74
74
74

query I rowsort
SELECT ALL 14 FROM tab1, tab2 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

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

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

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

skipif mysql # not compatible
query I rowsort label-492
SELECT - + ( 94 ) - col1 / ( cor0.col2 ) FROM tab1 AS cor0
----
-94
-94
-94

query I rowsort
SELECT 72 * + 58 + col0 * col0 FROM tab2 cor0
----
10260
10417
4225

query I rowsort
SELECT - + 75 + + 26 FROM tab1 AS cor0
----
-49
-49
-49

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-496
SELECT + col1 DIV 42 - col1 FROM tab0 AS cor0
----
-84
-89
-95

skipif mysql # not compatible
query I rowsort label-496
SELECT + col1 / 42 - col1 FROM tab0 AS cor0
----
-84
-89
-95

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

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

query I rowsort
SELECT - 93 - col2 FROM tab2 cor0
----
-119
-120
-131

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

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

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

query I rowsort
SELECT tab1.col0 * + tab1.col1 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 815fccd4c3d372b28d3f3fb103025775

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

query IIIIIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0, tab0 AS cor2
----
13122 values hashing to 290858b758535a2dbecb69345b097480

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-506
SELECT ( col2 ) - CAST( - cor0.col1 AS SIGNED ) * col2 FROM tab0 AS cor0
----
2871
7544
98

skipif mysql # not compatible
query I rowsort label-506
SELECT ( col2 ) - CAST ( - cor0.col1 AS INTEGER ) * col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT DISTINCT + col1 * + col2 + ( ( + col2 ) ) AS col2 FROM tab2
----
1560
684
864

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-509
SELECT ALL col0 DIV - col2 AS col0 FROM tab1 AS cor0
----
-1
0
0

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-513
SELECT DISTINCT 55 DIV col1 + - 73 AS col0 FROM tab1 AS cor0
----
-68
-69
-71

skipif mysql # not compatible
query I rowsort label-513
SELECT DISTINCT 55 / col1 + - 73 AS col0 FROM tab1 AS cor0
----
-68
-69
-71

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

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

query I rowsort
SELECT ALL - - col0 * - col0 * - col1 FROM tab0 AS cor0
----
118825
49536
720811

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

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

query I rowsort
SELECT ALL + col2 * col2 * + 42 FROM tab1
----
122472
136458
387072

query I rowsort
SELECT - cor0.col2 + 28 FROM tab1 AS cor0
----
-26
-29
-68

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

query I rowsort
SELECT + + col1 * - 35 FROM tab1 AS cor0
----
-350
-455
-910

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

query I rowsort
SELECT DISTINCT - tab0.col1 * + col0 + + col0 * col2 FROM tab0
----
-1272
-3360
-801

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

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

skipif mysql # not compatible
query I rowsort label-526
SELECT DISTINCT - ( col0 ) / - col1 FROM tab1 AS cor0
----
0
6

query I rowsort
SELECT ALL 52 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599

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

query I rowsort
SELECT ALL - cor0.col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT ALL - 93 * - col1 AS col1 FROM tab2
----
1581
2883
5487

onlyif mysql # use DIV operator for integer division
query I rowsort label-531
SELECT ALL ( 63 ) DIV col0 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-531
SELECT ALL ( 63 ) / col0 FROM tab0
----
0
1
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-532
SELECT DISTINCT cor0.col2 DIV 52 AS col0 FROM tab1, tab0 cor0, tab1 AS cor1
----
0
1

skipif mysql # not compatible
query I rowsort label-532
SELECT DISTINCT cor0.col2 / 52 AS col0 FROM tab1, tab0 cor0, tab1 AS cor1
----
0
1

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

query I rowsort
SELECT 27 + col0 + - col0 AS col0 FROM tab1
----
27
27
27

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + - col1 + - 94 FROM tab0 AS cor0
----
-180
-185
-191

query I rowsort
SELECT - col1 * 79 AS col2 FROM tab2 cor0
----
-1343
-2449
-4661

query I rowsort
SELECT - tab2.col2 + - 49 FROM tab2
----
-75
-76
-87

query I rowsort
SELECT - cor0.col1 + 22 AS col2 FROM tab2 cor0
----
-37
-9
5

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

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

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

query I rowsort
SELECT + - 67 * + col2 + - col2 AS col1 FROM tab0 AS cor0
----
-2244
-5576
-68

query I rowsort
SELECT DISTINCT - 86 + col1 * + col1 FROM tab2 AS cor0
----
203
3395
875

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

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

query I rowsort
SELECT DISTINCT + ( - col0 ) * - cor0.col2 + 3 FROM tab0 AS cor0
----
38
7301
795

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

skipif mysql # not compatible
query I rowsort label-555
SELECT col2 / - col0 + col1 FROM tab0 AS cor0
----
85
91
97

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

query I rowsort
SELECT DISTINCT + + col0 + + 45 FROM tab0 cor0
----
134
69
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-558
SELECT col0 DIV col1 + col2 AS col2 FROM tab1 cor0
----
102
54
63

skipif mysql # not compatible
query I rowsort label-558
SELECT col0 / col1 + col2 AS col2 FROM tab1 cor0
----
102
54
63

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 cor0.col0 + + col2 col1 FROM tab2 AS cor0
----
104
117
34

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

query I rowsort
SELECT 89 + col0 * ( col1 ) AS col1 FROM tab1 AS cor0
----
1129
167
729

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-563
SELECT DISTINCT - 42 / cor0.col1 col2 FROM tab1 AS cor0
----
-1
-3
-4

query I rowsort
SELECT col2 + - tab1.col2 * 4 FROM tab1
----
-162
-171
-288

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

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

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

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

query I rowsort
SELECT 87 * + cor0.col1 FROM tab1 AS cor0
----
1131
2262
870

query I rowsort
SELECT DISTINCT - 88 AS col0 FROM tab2 AS cor0
----
-88

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

query I rowsort
SELECT ALL + cor0.col1 * - col0 - 90 * - col0 AS col2 FROM tab1 cor0
----
192
5120
6160

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

query I rowsort
SELECT + col1 * col1 + col0 AS col1 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT ALL col1 - ( col1 ) FROM tab0 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-576
SELECT ALL + + col1 + col0 DIV col2 FROM tab0 AS cor0
----
132
86
92

skipif mysql # not compatible
query I rowsort label-576
SELECT ALL + + col1 + col0 / col2 FROM tab0 AS cor0
----
132
86
92

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col2 * - col2 col2 FROM tab2 AS cor0
----
-1461
-735
-760

query I rowsort
SELECT col0 - 63 FROM tab2 cor0
----
-56
15
16

query I rowsort
SELECT DISTINCT + cor0.col2 * ( col0 ) - col0 AS col0 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT - 36 FROM tab2
----
-36
-36
-36

onlyif mysql # use DIV operator for integer division
query I rowsort label-583
SELECT col0 * - col0 - col0 DIV - 73 FROM tab2
----
-49
-6083
-6240

skipif mysql # not compatible
query I rowsort label-583
SELECT col0 * - col0 - col0 / - 73 FROM tab2
----
-49
-6083
-6240

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

skipif mysql # not compatible
query I rowsort
SELECT ALL + + col2 / CAST ( + 2 AS REAL ) AS col0 FROM tab1 cor0
----
27
28
48

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

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

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

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

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

query I rowsort
SELECT DISTINCT - col0 + 60 AS col2 FROM tab0
----
-29
25
36

query I rowsort
SELECT DISTINCT col1 + 70 * + 58 * - col0 AS col2 FROM tab0
----
-142003
-361249
-97354

query I rowsort
SELECT DISTINCT col0 + 17 * col0 FROM tab1
----
1152
1440
54

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 + - cor0.col2 + + col1 * col2 AS col1 FROM tab2 AS cor0
----
1508
608
810

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-596
SELECT - col0 DIV - 20 FROM tab1
----
0
3
4

skipif mysql # not compatible
query I rowsort label-596
SELECT - col0 / - 20 FROM tab1
----
0
3
4

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

query I rowsort
SELECT 65 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-602
SELECT col2 DIV - col2 + - col1 FROM tab0 AS cor0
----
-87
-92
-98

skipif mysql # not compatible
query I rowsort label-602
SELECT col2 / - col2 + - col1 FROM tab0 AS cor0
----
-87
-92
-98

query I rowsort
SELECT ALL - 81 + ( + col2 ) FROM tab0
----
-48
-80
1

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

query I rowsort
SELECT - col2 * - col1 + 55 AS col2 FROM tab1 AS cor0
----
1303
1459
625

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

query I rowsort
SELECT - 61 AS col1 FROM tab0, tab1, tab2 AS cor0, tab2
----
81 values hashing to 80442609e72d8c1c7f1c6175b1d2eac8

query I rowsort
SELECT ALL + 3 * + 53 + + col2 FROM tab1
----
213
216
255

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

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

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-612
SELECT DISTINCT - - col1 DIV - col2 FROM tab0 AS cor0
----
-1
-2
-97

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

query I rowsort
SELECT DISTINCT - + 46 + + col1 AS col1 FROM tab0 AS cor0
----
40
45
51

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

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

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

query I rowsort
SELECT DISTINCT 8 FROM tab1 AS cor0
----
8

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

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

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-620
SELECT - col2 + - col1 * CAST( 58 AS SIGNED ) FROM tab1 AS cor0
----
-1562
-637
-850

skipif mysql # not compatible
query I rowsort label-620
SELECT - col2 + - col1 * CAST ( 58 AS INTEGER ) FROM tab1 AS cor0
----
-1562
-637
-850

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

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

query I rowsort
SELECT + 90 * + cor0.col2 + - col1 FROM tab0 AS cor0
----
-7
2884
7289

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

query I rowsort
SELECT + 31 * col1 + col0 FROM tab1 AS cor0
----
374
483
809

query I rowsort
SELECT - col0 * + col1 - col0 * - 68 FROM tab1 AS cor0
----
126
3712
4400

query I rowsort
SELECT + 33 FROM tab1, tab2 AS cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-631
SELECT ALL col0 DIV + col0 + + 61 FROM tab0
----
62
62
62

skipif mysql # not compatible
query I rowsort label-631
SELECT ALL col0 / + col0 + + 61 FROM tab0
----
62
62
62

query I rowsort
SELECT + ( + cor0.col2 ) AS col2 FROM tab2, tab0 AS cor0, tab2 cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT + col1 * + 2 AS col2 FROM tab0
----
172
182
194

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

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

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

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

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

query I rowsort
SELECT + - col2 + - 55 AS col0 FROM tab1 AS cor0
----
-109
-112
-151

query I rowsort
SELECT - col1 + 67 AS col2 FROM tab2 AS cor0
----
36
50
8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-640
SELECT ALL - ( + col1 ) + CAST( + 73 AS SIGNED ) * col2 * + ( tab2.col1 ) FROM tab2
----
111923
47141
61070

skipif mysql # not compatible
query I rowsort label-640
SELECT ALL - ( + col1 ) + CAST ( + 73 AS INTEGER ) * col2 * + ( tab2.col1 ) FROM tab2
----
111923
47141
61070

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - + col2 * 49 col1 FROM tab0 AS cor0
----
-1584
-3936
-48

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

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

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

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

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

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

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

query I rowsort
SELECT + col1 + + 75 * - col1 FROM tab2 AS cor0
----
-1258
-2294
-4366

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

query I rowsort
SELECT DISTINCT col2 * 3 * + col0 AS col2 FROM tab0
----
105
21894
2376

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

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

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

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

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

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

query I rowsort
SELECT + ( - 57 ) * col0 FROM tab1 AS cor0
----
-171
-3648
-4560

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

query I rowsort
SELECT - ( - 96 ) FROM tab2 AS cor0
----
96
96
96

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

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

query I rowsort
SELECT ALL + tab0.col1 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 69 + col1 AS col0 FROM tab1 AS cor0
----
79
82
95

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

query I rowsort
SELECT + 34 * + col1 FROM tab1 AS cor0
----
340
442
884

query I rowsort
SELECT + cor0.col1 - - 95 FROM tab1, tab0 AS cor0
----
9 values hashing to 9076ec394c2c32931f8c8423ec9c6888

query I rowsort
SELECT ALL - + cor0.col1 + + col1 * 77 FROM tab0 AS cor0
----
6536
6916
7372

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

query I rowsort
SELECT 86 + col2 * col2 AS col0 FROM tab0 AS cor0
----
1175
6810
87

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

query I rowsort
SELECT + 40 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0

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

query I rowsort
SELECT ALL col1 + - ( 57 ) * - cor0.col0 AS col0 FROM tab2 AS cor0
----
430
4505
4520

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

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

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

query I rowsort
SELECT DISTINCT + col1 + + 35 FROM tab0 AS cor0
----
121
126
132

query I rowsort
SELECT ALL - col1 * - col2 * + 24 AS col1 FROM tab1
----
13680
29952
33696

query I rowsort
SELECT ALL - 13 * col1 AS col1 FROM tab2
----
-221
-403
-767

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

query I rowsort
SELECT - 57 AS col2 FROM tab0
----
-57
-57
-57

query I rowsort
SELECT + col1 + + ( tab1.col2 + ( + col2 ) ) FROM tab1
----
124
134
205

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

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-691
SELECT DISTINCT cor0.col2 DIV - cor0.col2 FROM tab0 AS cor0
----
-1

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

query I rowsort
SELECT ALL 93 * + col1 FROM tab2
----
1581
2883
5487

query I rowsort
SELECT ALL 52 * + col2 + tab0.col1 * + col0 FROM tab0
----
12363
3447
3780

onlyif mysql # use DIV operator for integer division
query I rowsort label-694
SELECT DISTINCT - col0 DIV - col0 + 19 * tab1.col1 FROM tab1
----
191
248
495

skipif mysql # not compatible
query I rowsort label-694
SELECT DISTINCT - col0 / - col0 + 19 * tab1.col1 FROM tab1
----
191
248
495

query I rowsort
SELECT ALL col1 + col1 + + col0 * + col0 AS col1 FROM tab2
----
111
6202
6275

query I rowsort
SELECT + col0 + + col0 + 39 FROM tab0
----
109
217
87

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * - col1 + + 85 col2 FROM tab2 AS cor0
----
1428
302
4687

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

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

query I rowsort
SELECT ALL + 53 + - col1 * col2 FROM tab2 AS cor0
----
-1481
-593
-784

query I rowsort
SELECT + 8 * col1 FROM tab1 AS cor0
----
104
208
80

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

query I rowsort
SELECT - 9 FROM tab2, tab0 AS cor0
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

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

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

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

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

query I rowsort
SELECT ALL + col2 + col2 * 25 FROM tab2 AS cor0
----
676
702
988

query I rowsort
SELECT DISTINCT + - col2 * ( - 12 ) * col2 - col1 AS col1 FROM tab2 AS cor0
----
17311
8053
8717

query I rowsort
SELECT DISTINCT + cor1.col2 * - 72 AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1, tab0 AS cor2
----
-3888
-4104
-6912

query I rowsort
SELECT DISTINCT - - col0 * + ( col1 * col1 ) + - col1 FROM tab1 AS cor0
----
13507
2002
6390

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

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

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

skipif mysql # not compatible
query I rowsort label-715
SELECT ALL + ( ( - col1 ) ) / 99 - + 54 AS col2 FROM tab0 AS cor0
----
-54
-54
-54

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

skipif mysql # not compatible
query I rowsort label-716
SELECT DISTINCT + col0 * cor0.col2 / col0 AS col2 FROM tab1 cor0
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 52 * - col0 col2 FROM tab2 cor0
----
-364
-4056
-4108

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-718
SELECT ALL - - CAST( - col2 AS SIGNED ) + col0 AS col2 FROM tab2 AS cor0
----
-20
41
52

skipif mysql # not compatible
query I rowsort label-718
SELECT ALL - - CAST ( - col2 AS INTEGER ) + col0 AS col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT - - 10 * + col1 * - col1 FROM tab0 AS cor0
----
-73960
-82810
-94090

query I rowsort
SELECT ALL + 72 * 80 - - col2 AS col2 FROM tab2 AS cor0
----
5786
5787
5798

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-724
SELECT ALL + + ( - col2 ) * + col2 - col2 DIV - col1 FROM tab0 AS cor0
----
-1
-1089
-6724

skipif mysql # not compatible
query I rowsort label-724
SELECT ALL + + ( - col2 ) * + col2 - col2 / - col1 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT + col0 + 73 * - col1 * 20 + - cor0.col1 * - col2 * 26 AS col0 FROM tab0 AS cor0
----
-139063
-51748
61241

query I rowsort
SELECT col2 * + 52 - tab0.col2 FROM tab0
----
1683
4182
51

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 5 * - col1 col1 FROM tab2 AS cor0
----
-155
-295
-85

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col1 * + col1 col1 FROM tab2 cor0
----
3559
368
968

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

query I rowsort
SELECT ALL - ( cor0.col0 ) + col0 * + col2 AS col0 FROM tab2 AS cor0
----
182
1950
2923

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

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

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

query I rowsort
SELECT 77 FROM tab2, tab1 AS cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

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

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

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

query I rowsort
SELECT col2 * 27 AS col1 FROM tab1 AS cor0
----
1458
1539
2592

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

query I rowsort
SELECT ALL col2 * + 81 - + col1 AS col0 FROM tab1 cor0
----
4348
4607
7763

query I rowsort
SELECT - cor1.col2 FROM tab0, tab2 cor0, tab1 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

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

query I rowsort
SELECT col1 * col2 * + col1 AS col1 FROM tab0 AS cor0
----
244068
679042
9409

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

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

query I rowsort
SELECT + - 22 * + col0 FROM tab0 AS cor0
----
-1958
-528
-770

onlyif mysql # use DIV operator for integer division
query I rowsort label-750
SELECT - col2 DIV + col0 + - col0 FROM tab1
----
-21
-64
-81

skipif mysql # not compatible
query I rowsort label-750
SELECT - col2 / + col0 + - col0 FROM tab1
----
-21
-64
-81

query I rowsort
SELECT DISTINCT + col1 * 69 * col0 AS col2 FROM tab0 AS cor0
----
142416
234255
558831

query I rowsort
SELECT col1 + - col0 * ( + col0 ) FROM tab1 AS cor0
----
-4086
-6387
17

query I rowsort
SELECT ALL + + col1 + ( - col0 * cor0.col1 ) FROM tab0 cor0
----
-1978
-3298
-8008

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

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

query I rowsort
SELECT ALL col1 * ( + ( col1 ) ) + + 1 + cor0.col1 * col2 FROM tab0 cor0
----
10235
15744
9507

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

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

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

query I rowsort
SELECT DISTINCT + col1 * ( - 53 ) FROM tab0 AS cor0
----
-4558
-4823
-5141

query I rowsort
SELECT - - col2 + - col0 + col0 * - col1 FROM tab0 AS cor0
----
-2055
-3429
-8106

query I rowsort
SELECT - + col0 * + col1 * + cor0.col2 + col1 * + 61 * + 5 + col2 * + col2 * 44 FROM tab0 AS cor0
----
-340507
26234
6034

query I rowsort
SELECT DISTINCT + col0 + cor0.col0 + cor0.col2 AS col1 FROM tab1 AS cor0
----
185
256
60

query I rowsort
SELECT DISTINCT 20 - + col2 FROM tab2
----
-18
-6
-7

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

query I rowsort
SELECT - col1 + + col2 + - cor0.col1 FROM tab0 cor0
----
-100
-139
-193

query I rowsort
SELECT cor3.col2 AS col0 FROM tab2 cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 AS cor2, tab0 AS cor3
----
243 values hashing to 291cdf20f55dc7bbcb55f561dc0b74d8

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-769
SELECT - col0 DIV ( col0 ) + col2 AS col1 FROM tab0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-769
SELECT - col0 / ( col0 ) + col2 AS col1 FROM tab0
----
0
32
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + - 85 * col0 col2 FROM tab2 AS cor0
----
-568
-6604
-6677

query I rowsort
SELECT cor0.col0 * - 37 + col2 + col2 FROM tab1 AS cor0
----
-2254
-2768
-3

query I rowsort
SELECT + - col2 * 44 * - cor0.col1 FROM tab1 AS cor0
----
25080
54912
61776

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

query I rowsort
SELECT DISTINCT - col1 - 77 AS col2 FROM tab2
----
-108
-136
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 + col2 + tab2.col1 col0 FROM tab2
----
144
72
89

query I rowsort
SELECT col2 * 77 FROM tab0
----
2541
6314
77

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

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

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

query I rowsort
SELECT ALL - 19 * - ( - cor0.col2 ) + - 17 AS col0 FROM tab1 AS cor0
----
-1043
-1100
-1841

query I rowsort
SELECT DISTINCT - col1 - + 52 * col2 AS col2 FROM tab2 AS cor0
----
-1411
-1435
-1993

query I rowsort
SELECT ALL - col2 + + 74 FROM tab2 AS cor0
----
36
47
48

query I rowsort
SELECT - 2 * col1 - col1 * col2 * 89 FROM tab0 AS cor0
----
-252754
-664300
-8827

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-786
SELECT col2 * 29 - col0 DIV - 3 FROM tab2 AS cor0
----
1128
780
785

skipif mysql # not compatible
query I rowsort label-786
SELECT col2 * 29 - col0 / - 3 FROM tab2 AS cor0
----
1128
780
785

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-789
SELECT ALL + col2 - + 42 * col0 * - CAST( col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
24225
332764
51451

skipif mysql # not compatible
query I rowsort label-789
SELECT ALL + col2 - + 42 * col0 * - CAST ( col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
24225
332764
51451

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

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

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

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

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

query I rowsort
SELECT + 24 + col2 AS col0 FROM tab1 cor0
----
120
78
81

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

query I rowsort
SELECT + 43 * cor0.col2 AS col2 FROM tab2 AS cor0
----
1118
1161
1634

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

skipif mysql # not compatible
query I rowsort label-796
SELECT - CAST ( - 16 AS INTEGER ) FROM tab1
----
16
16
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + 7 col0 FROM tab1
----
10
71
87

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

query I rowsort
SELECT 66 AS col1 FROM tab1
----
66
66
66

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 * cor0.col1 col2 FROM tab2 AS cor0
----
1364
2596
748

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-803
SELECT ALL - col0 DIV col0 + col0 + col0 col2 FROM tab1 AS cor0
----
127
159
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-803
SELECT ALL - col0 / col0 + col0 + col0 col2 FROM tab1 AS cor0
----
127
159
5

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

query I rowsort
SELECT DISTINCT + col1 * - 62 AS col2 FROM tab2 AS cor0
----
-1054
-1922
-3658

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col1 - col2 * + ( + col2 + + col1 ) col1 FROM tab2
----
-1597
-2107
-2269

query I rowsort
SELECT ALL 5 AS col2 FROM tab1
----
5
5
5

query I rowsort
SELECT - col0 * - ( ( - col2 ) ) * col0 + - 36 FROM tab1
----
-233508
-522
-614436

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 45 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT ALL - col2 * + ( + cor0.col1 ) + + col0 * 27 FROM tab2 AS cor0
----
-648
1487
572

query I rowsort
SELECT DISTINCT + cor0.col2 * ( - 84 ) AS col1 FROM tab0 AS cor0
----
-2772
-6888
-84

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

query I rowsort
SELECT ALL - - col0 + ( - 88 ) FROM tab0 AS cor0
----
-53
-64
1

query I rowsort
SELECT + col0 + + col1 * col1 FROM tab0 AS cor0
----
7420
8370
9444

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

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

query I rowsort
SELECT - col1 + 50 AS col0 FROM tab1 AS cor0
----
24
37
40

query I rowsort
SELECT - col2 + 7 FROM tab0 AS cor0
----
-26
-75
6

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

query I rowsort
SELECT ALL - 76 * + 5 + - col2 AS col0 FROM tab0
----
-381
-413
-462

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
972 values hashing to 980274175fafec015a83080672486a9a

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

query I rowsort
SELECT - 76 + + col1 * - col0 * cor0.col2 FROM tab0 AS cor0
----
-3471
-664194
-68188

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

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

query I rowsort
SELECT ALL - 30 FROM tab0, tab0 AS cor0
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-831
SELECT - + col1 * + 85 + col1 DIV CAST( - ( col1 ) AS SIGNED ) FROM tab0 AS cor0
----
-7311
-7736
-8246

skipif mysql # not compatible
query I rowsort label-831
SELECT - + col1 * + 85 + col1 / CAST ( - ( col1 ) AS INTEGER ) FROM tab0 AS cor0
----
-7311
-7736
-8246

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-834
SELECT - col0 DIV - col1 + col2 AS col0 FROM tab1 cor0
----
102
54
63

skipif mysql # not compatible
query I rowsort label-834
SELECT - col0 / - col1 + col2 AS col0 FROM tab1 cor0
----
102
54
63

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

query I rowsort
SELECT + 87 FROM tab1 cor0
----
87
87
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-837
SELECT DISTINCT - col0 * - cor0.col1 + - col2 DIV - col0 AS col0 FROM tab1 AS cor0
----
1041
640
96

skipif mysql # not compatible
query I rowsort label-837
SELECT DISTINCT - col0 * - cor0.col1 + - col2 / - col0 AS col0 FROM tab1 AS cor0
----
1041
640
96

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

skipif mysql # not compatible
query I rowsort label-838
SELECT - 7 + col2 / col1 FROM tab0 AS cor0
----
-7
-7
-7

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

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

query I rowsort
SELECT - 1 + col0 AS col0 FROM tab0 AS cor0
----
23
34
88

query I rowsort
SELECT DISTINCT - + col1 + + col2 + cor0.col1 * + col0 FROM tab1 AS cor0
----
106
1123
687

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

query I rowsort
SELECT ALL - 78 - - col2 AS col2 FROM tab1 AS cor0
----
-21
-24
18

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

query I rowsort
SELECT DISTINCT 46 - + col0 * + col2 AS col2 FROM tab0 AS cor0
----
-7252
-746
11

query I rowsort
SELECT + - col1 * - col1 + cor0.col0 AS col0 FROM tab1 AS cor0
----
164
249
679

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

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

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 - ( - col1 ) * + col1 FROM tab2 AS cor0
----
289
3481
961

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

skipif mysql # not compatible
query I rowsort label-851
SELECT - CAST ( + col1 AS INTEGER ) * col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT DISTINCT col2 * col2 * + col2 AS col2 FROM tab2 cor0
----
17576
19683
54872

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

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

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

query I rowsort
SELECT ALL + 19 * col1 AS col0 FROM tab0 AS cor0
----
1634
1729
1843

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

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

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

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

query I rowsort
SELECT ALL - col0 + + 85 * col1 FROM tab1 AS cor0
----
1025
2207
786

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

query I rowsort
SELECT DISTINCT - 79 AS col2 FROM tab2 cor0
----
-79

query I rowsort
SELECT col0 * + 6 FROM tab0 AS cor0
----
144
210
534

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

query I rowsort
SELECT ALL + 22 * cor0.col2 AS col0 FROM tab2 AS cor0
----
572
594
836

onlyif mysql # use DIV operator for integer division
query I rowsort label-865
SELECT 63 DIV + col0 FROM tab0 cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-865
SELECT 63 / + col0 FROM tab0 cor0
----
0
1
2

query I rowsort
SELECT ALL - 22 + - col0 FROM tab2 AS cor0
----
-100
-101
-29

onlyif mysql # use DIV operator for integer division
query I rowsort label-867
SELECT + - 75 DIV 22 FROM tab2 AS cor0
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-867
SELECT + - 75 / 22 FROM tab2 AS cor0
----
-3
-3
-3

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-871
SELECT - CAST( col2 AS SIGNED ) + cor0.col2 DIV cor0.col2 FROM tab0 cor0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-871
SELECT - CAST ( col2 AS INTEGER ) + cor0.col2 / cor0.col2 FROM tab0 cor0
----
-32
-81
0

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

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

query I rowsort
SELECT DISTINCT - ( 5 ) FROM tab1, tab0 AS cor0, tab1 AS cor1
----
-5

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

query I rowsort
SELECT ALL + + col2 + - 24 + col2 * + col0 FROM tab2 cor0
----
192
2030
3016

query I rowsort
SELECT - col0 + 7 + - col1 FROM tab1 AS cor0
----
-22
-67
-86

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-880
SELECT - + col2 + - 99 DIV - col0 + cor0.col1 col0 FROM tab1 AS cor0
----
-46
-82
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-880
SELECT - + col2 + - 99 / - col0 + cor0.col1 col0 FROM tab1 AS cor0
----
-46
-82
5

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

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

query I rowsort
SELECT - 3 * + 23 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

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

query I rowsort
SELECT tab2.col1 * ( + col0 ) + + col1 + 36 FROM tab2
----
1396
284
4697

onlyif mysql # use DIV operator for integer division
query I rowsort label-886
SELECT ALL col2 DIV ( col1 ) + - tab1.col0 FROM tab1
----
-1
-59
-73

skipif mysql # not compatible
query I rowsort label-886
SELECT ALL col2 / ( col1 ) + - tab1.col0 FROM tab1
----
-1
-59
-73

query I rowsort
SELECT ALL col2 * 43 + - 14 FROM tab0
----
1405
29
3512

query I rowsort
SELECT tab2.col0 + + 1 * 84 FROM tab2
----
162
163
91

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

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

query I rowsort
SELECT DISTINCT + col2 * + 43 FROM tab2 AS cor0
----
1118
1161
1634

query I rowsort
SELECT + col2 * + col0 * tab1.col0 + col0 AS col2 FROM tab1
----
233536
489
614480

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + col0 * 18 AS col1 FROM tab1 cor0
----
1152
1440
54

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

query I rowsort
SELECT + col1 * + col2 + col1 * - col1 FROM tab0 AS cor0
----
-4558
-819
-9312

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

query I rowsort
SELECT DISTINCT 68 + - col0 AS col1 FROM tab1 AS cor0
----
-12
4
65

query I rowsort
SELECT - 53 + - col2 * - cor0.col2 FROM tab1 AS cor0
----
2863
3196
9163

query I rowsort
SELECT ( - 41 ) FROM tab2
----
-41
-41
-41

query I rowsort
SELECT ( + 81 + - col0 ) FROM tab1
----
1
17
78

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

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

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

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

query I rowsort
SELECT ALL - cor0.col1 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

query I rowsort
SELECT ALL + 62 FROM tab1, tab2 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

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

query I rowsort
SELECT ALL - col0 + + col0 * 80 FROM tab0
----
1896
2765
7031

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

query I rowsort
SELECT ALL + cor0.col1 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

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

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

query I rowsort
SELECT DISTINCT - 71 FROM tab0 cor0
----
-71

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

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

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

query I rowsort
SELECT ALL + 51 + col2 FROM tab0 AS cor0
----
133
52
84

query I rowsort
SELECT ALL 84 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a

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

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

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

query I rowsort
SELECT ALL col1 * + cor0.col1 + ( + col1 ) FROM tab0 cor0
----
7482
8372
9506

onlyif mysql # use DIV operator for integer division
query I rowsort label-927
SELECT ALL + col0 DIV - ( - cor0.col1 ) + + col2 + col2 * - col2 col0 FROM tab1 AS cor0
----
-2862
-3186
-9114

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-927
SELECT ALL + col0 / - ( - cor0.col1 ) + + col2 + col2 * - col2 col0 FROM tab1 AS cor0
----
-2862
-3186
-9114

query I rowsort
SELECT col0 + - 23 * cor0.col2 FROM tab1 AS cor0
----
-1239
-1247
-2128

query I rowsort
SELECT ALL 66 * tab2.col2 * + col0 + + 1 AS col2 FROM tab2
----
12475
133849
198133

onlyif mysql # use DIV operator for integer division
query I rowsort label-930
SELECT - col1 * col2 DIV - col0 AS col1 FROM tab1
----
15
468
8

skipif mysql # not compatible
query I rowsort label-930
SELECT - col1 * col2 / - col0 AS col1 FROM tab1
----
15
468
8

query I rowsort
SELECT - col2 * + col0 + - col1 * col1 AS col0 FROM tab0 AS cor0
----
-15579
-8188
-9444

query I rowsort
SELECT col0 * 1 AS col2 FROM tab1 AS cor0
----
3
64
80

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

query I rowsort
SELECT col0 + - col2 * col2 - - col0 FROM tab2
----
-1286
-520
-715

query I rowsort
SELECT ALL - 2 * - 95 AS col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 1c428f8cae709f6dca936dab24c13648

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

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

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

query I rowsort
SELECT - col2 + 38 FROM tab2 AS cor0
----
0
11
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor1.col1 col1 FROM tab1, tab2 cor0, tab1 AS cor1
----
10
13
26

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 80 + + col0 col2 FROM tab2 AS cor0
----
-1
-2
-73

query I rowsort
SELECT - col0 * - col0 * 22 FROM tab1 AS cor0
----
140800
198
90112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 9 * col1 col0 FROM tab0 AS cor0
----
-774
-819
-873

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 74 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT ALL + 77 * + col0 AS col1 FROM tab2 AS cor0
----
539
6006
6083

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

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

query I rowsort
SELECT DISTINCT + col2 * - col0 * ( - col2 * - col2 ) FROM tab0 AS cor0
----
-35
-49071752
-862488

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

query I rowsort
SELECT - cor0.col1 * 16 AS col2 FROM tab2 AS cor0
----
-272
-496
-944

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col2 * CAST ( col0 * + col2 + + col1 AS REAL ) FROM tab2 AS cor0
----
114722
54262
5940

onlyif mysql # use DIV operator for integer division
query I rowsort label-953
SELECT + col1 DIV + col0 + + ( col1 ) * + 48 + - 13 * col2 AS col0 FROM tab2 AS cor0
----
1141
2494
322

skipif mysql # not compatible
query I rowsort label-953
SELECT + col1 / + col0 + + ( col1 ) * + 48 + - 13 * col2 AS col0 FROM tab2 AS cor0
----
1141
2494
322

query I rowsort
SELECT - - cor0.col1 * 91 FROM tab2 AS cor0
----
1547
2821
5369

query I rowsort
SELECT + col2 + 90 AS col0 FROM tab0 AS cor0
----
123
172
91

query I rowsort
SELECT + col0 * + col2 + + col2 + col2 * + col0 FROM tab2 AS cor0
----
405
4082
6042

query I rowsort
SELECT - col0 + 58 * - cor0.col2 + - col1 AS col0 FROM tab1 AS cor0
----
-3161
-3380
-5661

query I rowsort
SELECT - - col0 * 91 FROM tab1 AS cor0
----
273
5824
7280

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

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

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

query I rowsort
SELECT ALL - 21 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to b6019fd8f0ff78caeaf4b2de3226eb65

query I rowsort
SELECT 59 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT 58 + + col2 * + col1 AS col0 FROM tab1 AS cor0
----
1306
1462
628

query I rowsort
SELECT DISTINCT + - col0 + col1 * + col0 + - ( + col2 + - col0 ) FROM tab1 AS cor0
----
24
583
944

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

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

query I rowsort
SELECT + + 64 + 50 FROM tab1 AS cor0
----
114
114
114

query I rowsort
SELECT ALL - 14 + - col2 FROM tab0 cor0
----
-15
-47
-96

query I rowsort
SELECT + - 4 * - col2 * - col1 + col2 FROM tab1 cor0
----
-2223
-4896
-5562

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

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

query I rowsort
SELECT - 90 * 97 + col1 * col1 AS col2 FROM tab1 AS cor0
----
-8054
-8561
-8630

onlyif mysql # use DIV operator for integer division
query I rowsort label-972
SELECT + + col1 * 62 * col0 + + ( 77 + + col2 ) DIV + cor0.col1 AS col2 FROM tab0 AS cor0
----
127969
210490
502139

skipif mysql # not compatible
query I rowsort label-972
SELECT + + col1 * 62 * col0 + + ( 77 + + col2 ) / + cor0.col1 AS col2 FROM tab0 AS cor0
----
127969
210490
502139

query I rowsort
SELECT DISTINCT - - col1 + + 21 FROM tab1 cor0
----
31
34
47

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col0 * - col1 * col2 col1 FROM tab1
----
-36480
-4212
-99840

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-978
SELECT 12 * + cor0.col2 + + 10 DIV 8 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 006e749714129f97e491f28568a28f0e

skipif mysql # not compatible
query I rowsort label-978
SELECT 12 * + cor0.col2 + + 10 / 8 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 006e749714129f97e491f28568a28f0e

query I rowsort
SELECT ALL - 17 * - col1 AS col1 FROM tab1 AS cor0
----
170
221
442

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

skipif mysql # not compatible
query I rowsort label-980
SELECT DISTINCT ( - col1 ) / col1 AS col0 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ALL + - 54 + col2 * col0 + + col2 AS col0 FROM tab0 AS cor0
----
-18
7326
771

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 33 + - tab0.col2 col2 FROM tab0
----
-115
-34
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col2 col0 FROM tab1 AS cor0
----
28
47
83

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 ALL 55 * ( + col0 ) FROM tab2
----
385
4290
4345

query I rowsort
SELECT 44 + ( col0 ) * ( 51 * - col0 ) FROM tab1 AS cor0
----
-208852
-326356
-415

query I rowsort
SELECT 75 * col1 FROM tab2 AS cor0
----
1275
2325
4425

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

query I rowsort
SELECT - - col1 + 21 AS col2 FROM tab1 cor0
----
31
34
47

query I rowsort
SELECT + 83 * col2 * - col1 AS col0 FROM tab1
----
-103584
-116532
-47310

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

query I rowsort
SELECT ALL - ( col0 ) - 4 * - col1 FROM tab1
----
-24
-28
101

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

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

skipif mysql # not compatible
query I rowsort label-994
SELECT - + col0 + 35 / col1 AS col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT + col2 - - ( + col0 ) * + col0 FROM tab2
----
6110
6279
76

skipif mysql # not compatible
query I rowsort
SELECT col0 - CAST ( col0 AS REAL ) * col2 * 90 FROM tab1
----
-14577
-328256
-691120

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

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

query I rowsort
SELECT - col1 * - 56 + + col2 AS col2 FROM tab2 AS cor0
----
1763
3330
990

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

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

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

query I rowsort
SELECT DISTINCT - 46 * - col1 AS col1 FROM tab2 AS cor0
----
1426
2714
782

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

query I rowsort
SELECT ALL 39 + col1 FROM tab2 AS cor0
----
56
70
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-1006
SELECT DISTINCT - col1 DIV - cor0.col1 - CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-1006
SELECT DISTINCT - col1 / - cor0.col1 - CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
11
14
27

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

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

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

query I rowsort
SELECT + 0 * cor0.col0 + - ( + col2 ) * - col1 * + col2 AS col1 FROM tab2 AS cor0
----
22599
24548
39884

query I rowsort
SELECT DISTINCT + col1 * - col2 - col0 * - col0 AS col0 FROM tab2 AS cor0
----
-788
4550
5595

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

query I rowsort
SELECT DISTINCT + 50 * col0 AS col2 FROM tab1 AS cor0
----
150
3200
4000

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

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

query I rowsort
SELECT ALL + + 70 * cor0.col2 + + ( + col2 * col0 ) + col2 FROM tab2 AS cor0
----
2106
3874
5700

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

query I rowsort
SELECT DISTINCT col2 * cor0.col0 + + ( + col2 ) * - col2 FROM tab0 cor0
----
-297
34
574

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

query I rowsort
SELECT ALL + col1 * + col1 + + ( - cor0.col2 ) - - ( col2 ) * col1 AS col0 FROM tab1 AS cor0
----
1321
2026
613

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

query I rowsort
SELECT DISTINCT col2 + col1 * 85 + col0 * - col0 AS col0 FROM tab2 AS cor0
----
-1043
-4758
2613

query I rowsort
SELECT - col2 * ( 30 ) AS col1 FROM tab0 AS cor0
----
-2460
-30
-990

query I rowsort
SELECT col0 + tab0.col1 * col1 FROM tab0
----
7420
8370
9444

query I rowsort
SELECT ALL + - 46 * col0 * + cor0.col0 FROM tab2 AS cor0
----
-2254
-279864
-287086

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 + - ( cor0.col0 ) * - col0 col1 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT - 44 + col1 + - col0 * ( col1 ) * col0 FROM tab2 AS cor0
----
-106124
-1532
-358941

skipif mysql # not compatible
query I rowsort
SELECT + - CAST ( - ( - col2 ) AS REAL ) * ( col2 ) FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ALL - ( cor0.col0 ) FROM tab2, tab1 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col1 col1 FROM tab2 AS cor0
----
289
3481
961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * - col1 * + col2 + + 70 col1 FROM tab0 cor0
----
167
611954
93724

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

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

query I rowsort
SELECT ALL + - col1 + - 72 * col2 FROM tab1 AS cor0
----
-3914
-4114
-6925

onlyif mysql # use DIV operator for integer division
query I rowsort label-1033
SELECT DISTINCT - 77 * - col1 + cor0.col0 DIV - col2 AS col2 FROM tab1 AS cor0
----
1001
2002
769

skipif mysql # not compatible
query I rowsort label-1033
SELECT DISTINCT - 77 * - col1 + cor0.col0 / - col2 AS col2 FROM tab1 AS cor0
----
1001
2002
769

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

query I rowsort
SELECT 41 FROM tab2
----
41
41
41

onlyif mysql # use DIV operator for integer division
query I rowsort label-1036
SELECT ALL col0 DIV + col0 + - col0 + + cor0.col1 AS col0 FROM tab0 cor0
----
3
63
63

skipif mysql # not compatible
query I rowsort label-1036
SELECT ALL col0 / + col0 + - col0 + + cor0.col1 AS col0 FROM tab0 cor0
----
3
63
63

query I rowsort
SELECT ALL 70 * col1 AS col2 FROM tab2 AS cor0
----
1190
2170
4130

onlyif mysql # use DIV operator for integer division
query I rowsort label-1038
SELECT DISTINCT + tab0.col1 - - 33 DIV col0 AS col2 FROM tab0
----
87
91
97

skipif mysql # not compatible
query I rowsort label-1038
SELECT DISTINCT + tab0.col1 - - 33 / col0 AS col2 FROM tab0
----
87
91
97

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 + - 49 - col2 * + col1 col0 FROM tab2 AS cor0
----
-1583
-695
-886

query I rowsort
SELECT - 3 * ( tab2.col0 ) + + col2 AS col2 FROM tab2
----
-199
-208
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-1042
SELECT ALL + 22 * 40 + + col0 + + col2 * col0 DIV col1 FROM tab1
----
1308
1550
889

skipif mysql # not compatible
query I rowsort label-1042
SELECT ALL + 22 * 40 + + col0 + + col2 * col0 / col1 FROM tab1
----
1308
1550
889

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

query I rowsort
SELECT ALL + 50 + + col1 * col1 FROM tab1
----
150
219
726

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

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

query I rowsort
SELECT col1 + - col1 * + col2 + col1 AS col2 FROM tab0 AS cor0
----
-2666
-7280
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1047
SELECT - tab1.col2 + - col0 * tab1.col0 + CAST( 1 AS SIGNED ) * col1 AS col1 FROM tab1
----
-37
-4143
-6483

skipif mysql # not compatible
query I rowsort label-1047
SELECT - tab1.col2 + - col0 * tab1.col0 + CAST ( 1 AS INTEGER ) * col1 AS col1 FROM tab1
----
-37
-4143
-6483

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

skipif mysql # not compatible
query I rowsort label-1048
SELECT ALL - col0 / - tab2.col0 FROM tab2
----
1
1
1

query I rowsort
SELECT - 9 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 3dfe689e16ce3a87877d40f349e6c7b5

query I rowsort
SELECT DISTINCT - cor0.col2 * + col2 * 35 AS col1 FROM tab1 AS cor0
----
-102060
-113715
-322560

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

query I rowsort
SELECT 85 - cor0.col0 AS col1 FROM tab2 AS cor0
----
6
7
78

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1055
SELECT - col0 DIV - 15 + 39 AS col0 FROM tab1
----
39
43
44

skipif mysql # not compatible
query I rowsort label-1055
SELECT - col0 / - 15 + 39 AS col0 FROM tab1
----
39
43
44

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

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

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

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

query I rowsort
SELECT DISTINCT - col2 * + 17 * + tab0.col1 AS col2 FROM tab0
----
-126854
-1649
-48246

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col2 col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT DISTINCT - 84 + col1 * col2 FROM tab0 AS cor0
----
13
2754
7378

onlyif mysql # use DIV operator for integer division
query I rowsort label-1063
SELECT DISTINCT - 39 DIV - col1 + col2 DIV - ( - 29 ) FROM tab2 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-1063
SELECT DISTINCT - 39 / - col1 + col2 / - ( - 29 ) FROM tab2 AS cor0
----
0
1
3

query I rowsort
SELECT 5 FROM tab1 AS cor0
----
5
5
5

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

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

query I rowsort
SELECT DISTINCT + 86 - col1 FROM tab1 AS cor0
----
60
73
76

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

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

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

query I rowsort
SELECT ALL + ( 59 ) + - col2 * - col1 FROM tab1 AS cor0
----
1307
1463
629

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

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

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

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

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

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

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1078
SELECT ALL - CAST( + col2 AS SIGNED ) * col1 + 38 FROM tab1 AS cor0
----
-1210
-1366
-532

skipif mysql # not compatible
query I rowsort label-1078
SELECT ALL - CAST ( + col2 AS INTEGER ) * col1 + 38 FROM tab1 AS cor0
----
-1210
-1366
-532

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

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

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

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

query I rowsort
SELECT col0 * 54 AS col2 FROM tab0 cor0
----
1296
1890
4806

query I rowsort
SELECT - - col2 + 57 AS col1 FROM tab2 AS cor0
----
83
84
95

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

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

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

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

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

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

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

query I rowsort
SELECT ALL tab2.col1 * - col1 FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT ALL 13 AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to a90d0f37cec603ae1bc0a60dc7fbaeed

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

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

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

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

query I rowsort
SELECT 62 FROM tab2, tab0 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( col0 AS REAL ) AS col2 FROM tab2
----
7
78
79

query I rowsort
SELECT + - col1 * + 69 - - col0 * - col2 FROM tab2 cor0
----
-2328
-4175
-6099

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

query I rowsort
SELECT DISTINCT ( - 1 ) FROM tab2
----
-1

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

query I rowsort
SELECT col1 - 87 AS col0 FROM tab1
----
-61
-74
-77

query I rowsort
SELECT - + 8 - + col2 AS col1 FROM tab1 AS cor0
----
-104
-62
-65

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * col2 + - 43 col2 FROM tab0 AS cor0
----
-42
1046
6681

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1105
SELECT + cor0.col0 + cor0.col1 DIV + 49 FROM tab2 AS cor0
----
7
79
79

skipif mysql # not compatible
query I rowsort label-1105
SELECT + cor0.col0 + cor0.col1 / + 49 FROM tab2 AS cor0
----
7
79
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) * + col0 + cor0.col1 + + col1 col0 FROM tab0 cor0
----
-1031
-404
-7739

onlyif mysql # use DIV operator for integer division
query I rowsort label-1107
SELECT + cor0.col0 * col0 DIV 32 + col2 AS col1 FROM tab1 AS cor0
----
185
296
54

skipif mysql # not compatible
query I rowsort label-1107
SELECT + cor0.col0 * col0 / 32 + col2 AS col1 FROM tab1 AS cor0
----
185
296
54

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

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

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

query I rowsort
SELECT - 55 * + ( col2 * + tab1.col0 + col2 ) AS col2 FROM tab1
----
-11880
-203775
-427680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + tab2.col2 ) * + col1 col2 FROM tab2
----
1534
646
837

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

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

query I rowsort
SELECT - 93 + col2 AS col0 FROM tab2 AS cor0
----
-55
-66
-67

query I rowsort
SELECT ALL - col2 + - col0 * col0 FROM tab0
----
-1226
-609
-8003

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1120
SELECT 0 DIV col0 + - col2 AS col2 FROM tab1
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-1120
SELECT 0 / col0 + - col2 AS col2 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT ALL 25 * tab1.col0 + - col2 FROM tab1
----
1543
1904
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-1122
SELECT col0 DIV cor0.col0 + ( + col1 ) FROM tab0 cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-1122
SELECT col0 / cor0.col0 + ( + col1 ) FROM tab0 cor0
----
87
92
98

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

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

query I rowsort
SELECT DISTINCT - + cor0.col0 * - col0 * + 44 + col1 * col0 FROM tab0 AS cor0
----
27408
356623
57295

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

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

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

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

query I rowsort
SELECT DISTINCT - + col2 + 47 * - ( col2 ) FROM tab2 AS cor0
----
-1248
-1296
-1824

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

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

query I rowsort
SELECT + + col0 * cor0.col1 + - col2 * + col1 AS col1 FROM tab0 cor0
----
-774
3298
637

onlyif mysql # use DIV operator for integer division
query I rowsort label-1132
SELECT DISTINCT + col0 * cor0.col0 - - col1 DIV cor0.col2 FROM tab1 AS cor0
----
4096
6400
9

skipif mysql # not compatible
query I rowsort label-1132
SELECT DISTINCT + col0 * cor0.col0 - - col1 / cor0.col2 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT col2 + 87 FROM tab0 AS cor0
----
120
169
88

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

query I rowsort
SELECT + + cor0.col2 * 96 FROM tab1 cor0
----
5184
5472
9216

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1137
SELECT ALL - col2 DIV 8 + col2 * + col2 * col1 AS col0 FROM tab0 AS cor0
----
611874
93650
97

skipif mysql # not compatible
query I rowsort label-1137
SELECT ALL - col2 / 8 + col2 * + col2 * col1 AS col0 FROM tab0 AS cor0
----
611874
93650
97

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

query I rowsort
SELECT - col0 * - tab2.col2 + tab2.col0 + - 25 AS col2 FROM tab2
----
171
2081
3056

query I rowsort
SELECT ( tab0.col2 ) AS col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + 34 col1 FROM tab1 AS cor0
----
114
37
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-1144
SELECT DISTINCT - col0 * col2 DIV - 44 + col2 * - col2 FROM tab0 AS cor0
----
-1
-1071
-6559

skipif mysql # not compatible
query I rowsort label-1144
SELECT DISTINCT - col0 * col2 / - 44 + col2 * - col2 FROM tab0 AS cor0
----
-1
-1071
-6559

query I rowsort
SELECT - 48 AS col0 FROM tab1
----
-48
-48
-48

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

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

query I rowsort
SELECT tab1.col0 * col0 + - col2 + + 13 AS col2 FROM tab1
----
-32
4052
6317

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

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

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

query I rowsort
SELECT DISTINCT 66 AS col0 FROM tab2 cor0
----
66

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

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

query I rowsort
SELECT DISTINCT + col0 + col1 * col1 AS col1 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT - - ( - 20 ) AS col2 FROM tab0 AS cor0
----
-20
-20
-20

query I rowsort
SELECT - 95 AS col0 FROM tab2 AS cor0
----
-95
-95
-95

query I rowsort
SELECT cor0.col1 * 29 AS col0 FROM tab1 AS cor0
----
290
377
754

query I rowsort
SELECT DISTINCT + col2 + + 38 AS col0 FROM tab0 AS cor0
----
120
39
71

query I rowsort
SELECT ALL + - 82 FROM tab2 AS cor0
----
-82
-82
-82

query I rowsort
SELECT ALL - 63 FROM tab1 cor0
----
-63
-63
-63

onlyif mysql # use DIV operator for integer division
query I rowsort label-1161
SELECT + cor0.col1 DIV - 91 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-1161
SELECT + cor0.col1 / - 91 FROM tab0 AS cor0
----
-1
-1
0

query I rowsort
SELECT + - col1 * + 32 AS col0 FROM tab1 AS cor0
----
-320
-416
-832

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

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

query I rowsort
SELECT + col1 + cor0.col2 * + col2 * col2 FROM tab2 AS cor0
----
17635
19714
54889

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

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

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

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

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

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1172
SELECT col0 + col2 + 16 DIV tab2.col0 AS col1 FROM tab2
----
104
117
36

skipif mysql # not compatible
query I rowsort label-1172
SELECT col0 + col2 + 16 / tab2.col0 AS col1 FROM tab2
----
104
117
36

query I rowsort
SELECT 99 AS col2 FROM tab0 AS cor0
----
99
99
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-1174
SELECT col0 + 41 + + tab2.col1 DIV + col1 FROM tab2
----
120
121
49

skipif mysql # not compatible
query I rowsort label-1174
SELECT col0 + 41 + + tab2.col1 / + col1 FROM tab2
----
120
121
49

query I rowsort
SELECT DISTINCT + col1 * col0 + ( - col2 * - col2 ) AS col0 FROM tab1
----
10256
2994
3889

query I rowsort
SELECT ALL tab1.col2 * - 56 + 0 AS col1 FROM tab1
----
-3024
-3192
-5376

onlyif mysql # use DIV operator for integer division
query I rowsort label-1177
SELECT col1 DIV col1 col1 FROM tab0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1177
SELECT col1 / col1 col1 FROM tab0
----
1
1
1

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

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

query I rowsort
SELECT 39 * col1 FROM tab1 AS cor0
----
1014
390
507

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 12 + col0 ) col1 FROM tab2
----
-19
-90
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) * + col1 + + cor0.col0 col0 FROM tab0 cor0
----
7420
8370
9444

onlyif mysql # use DIV operator for integer division
query I rowsort label-1183
SELECT DISTINCT + + ( + cor0.col2 ) * - cor0.col0 + + col1 DIV - col1 FROM tab2 AS cor0
----
-190
-2029
-3003

skipif mysql # not compatible
query I rowsort label-1183
SELECT DISTINCT + + ( + cor0.col2 ) * - cor0.col0 + + col1 / - col1 FROM tab2 AS cor0
----
-190
-2029
-3003

query I rowsort
SELECT + - 97 * - 10 FROM tab2 AS cor0
----
970
970
970

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

query I rowsort
SELECT 42 * col1 FROM tab2 AS cor0
----
1302
2478
714

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

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

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

query I rowsort
SELECT - 9 AS col1 FROM tab1 AS cor0
----
-9
-9
-9

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

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

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1196
SELECT DISTINCT col1 DIV - col2 + - col0 + col2 DIV col1 FROM tab0 cor0
----
-132
-26
-90

skipif mysql # not compatible
query I rowsort label-1196
SELECT DISTINCT col1 / - col2 + - col0 + col2 / col1 FROM tab0 cor0
----
-132
-26
-90

query I rowsort
SELECT DISTINCT + col2 - + col2 * + col2 AS col1 FROM tab1 AS cor0
----
-2862
-3192
-9120

query I rowsort
SELECT ALL col1 * + col0 + 31 * + cor0.col2 * - col0 AS col1 FROM tab1 cor0
----
-112448
-237040
-4944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col1 ) * col1 * col2 + col0 col0 FROM tab2 AS cor0
----
11061
25954
90584

query I rowsort
SELECT col1 * col0 * + 60 AS col1 FROM tab1 AS cor0
----
38400
4680
62400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 * + col1 - - ( ( - col2 ) ) * 48 col2 FROM tab0 AS cor0
----
4345
5812
9361

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

query I rowsort
SELECT ALL - col0 + - col0 * + cor0.col1 FROM tab1 cor0
----
-1120
-704
-81

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

query I rowsort
SELECT DISTINCT col0 + cor0.col2 * - 89 FROM tab2 AS cor0
----
-2236
-2396
-3303

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

skipif mysql # not compatible
query I rowsort label-1206
SELECT DISTINCT + col1 + ( col2 ) / - col0 AS col2 FROM tab2 AS cor0
----
17
28
59

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1209
SELECT - ( - col2 ) * ( - 87 ) DIV + col0 - col0 FROM tab2
----
-107
-120
-342

skipif mysql # not compatible
query I rowsort label-1209
SELECT - ( - col2 ) * ( - 87 ) / + col0 - col0 FROM tab2
----
-107
-120
-342

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1211
SELECT - col2 * - CAST( + ( + col2 ) AS SIGNED ) FROM tab2 AS cor0
----
1444
676
729

skipif mysql # not compatible
query I rowsort label-1211
SELECT - col2 * - CAST ( + ( + col2 ) AS INTEGER ) FROM tab2 AS cor0
----
1444
676
729

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1213
SELECT ALL col2 DIV 85 + col0 AS col1 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-1213
SELECT ALL col2 / 85 + col0 AS col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT - col1 * + ( col2 + col2 ) FROM tab0 AS cor0
----
-14924
-194
-5676

query I rowsort
SELECT col1 + col2 * - col1 * col1 AS col2 FROM tab1 AS cor0
----
-16211
-36478
-5690

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

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

query I rowsort
SELECT DISTINCT + cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
24
35
89

query I rowsort
SELECT + col2 * ( - 60 ) + + col0 FROM tab2 AS cor0
----
-1482
-1613
-2201

query I rowsort
SELECT col2 * 2 AS col2 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT - + cor0.col1 * 53 AS col2 FROM tab0 AS cor0
----
-4558
-4823
-5141

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

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

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

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

query I rowsort
SELECT ALL - col0 * col0 + - col1 AS col2 FROM tab0 AS cor0
----
-1322
-662
-8012

query I rowsort
SELECT - - col0 * - col0 + - ( - col1 ) FROM tab0 cor0
----
-1128
-490
-7830

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

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

query I rowsort
SELECT - col1 + + col0 * col0 + - 81 * + 49 FROM tab2
----
-3951
2056
2255

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

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

query I rowsort
SELECT DISTINCT - col2 * tab0.col1 * - tab0.col2 + + col2 AS col2 FROM tab0
----
611966
93687
98

query I rowsort
SELECT ALL + 71 + - col1 * col2 FROM tab0 AS cor0
----
-26
-2767
-7391

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

query I rowsort
SELECT + 15 AS col1 FROM tab1
----
15
15
15

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

query I rowsort
SELECT ALL - - 81 FROM tab0, tab1 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query I rowsort
SELECT - - col1 * col2 + - ( col2 ) + - col2 AS col2 FROM tab1 cor0
----
1056
1296
456

query I rowsort
SELECT - col2 + col1 + + col0 AS col0 FROM tab1 AS cor0
----
-25
-3
17

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) <= col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 * + col0 BETWEEN NULL AND NULL
----

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1245
SELECT ALL 20 DIV cor0.col0 AS col0 FROM tab2 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-1245
SELECT ALL 20 / cor0.col0 AS col0 FROM tab2 AS cor0
----
0
0
2

query I rowsort
SELECT DISTINCT - col1 + col2 * 75 AS col0 FROM tab1 AS cor0
----
4024
4265
7187

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

query I rowsort
SELECT tab0.col2 * + col0 FROM tab0 WHERE NULL <= col1
----

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

query I rowsort
SELECT 94 * col0 AS col0 FROM tab2
----
658
7332
7426

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

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

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

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

query I rowsort
SELECT - col2 + + 17 AS col1 FROM tab0 AS cor0
----
-16
-65
16

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

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

query I rowsort
SELECT tab0.col0 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT DISTINCT - 5 * col2 * tab0.col0 FROM tab0
----
-175
-36490
-3960

query I rowsort
SELECT tab1.col0 FROM tab1, tab0 cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

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

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

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

query I rowsort
SELECT - col0 + col1 FROM tab2 WHERE NULL NOT IN ( col0 + col2 )
----

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1266
SELECT DISTINCT - tab2.col1 DIV tab2.col0 + + col0 FROM tab2
----
3
78
79

skipif mysql # not compatible
query I rowsort label-1266
SELECT DISTINCT - tab2.col1 / tab2.col0 + + col0 FROM tab2
----
3
78
79

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

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

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

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

query I rowsort
SELECT ALL - col1 * col0 + col2 * col1 FROM tab0
----
-3298
-637
774

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

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

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

query I rowsort
SELECT ALL col2 * tab0.col2 + + tab0.col1 + + tab0.col1 FROM tab0
----
1261
195
6906

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND col2 * + col0 + + col0
----

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1277
SELECT DISTINCT - tab2.col1 * col0 DIV col1 AS col0 FROM tab2
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-1277
SELECT DISTINCT - tab2.col1 * col0 / col1 AS col0 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT DISTINCT + col1 * - col2 + - tab1.col2 + + col0 AS col1 FROM tab1
----
-1264
-1455
-563

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

query III rowsort
SELECT * FROM tab1 WHERE + col2 / col2 <= - tab1.col1
----

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

query I rowsort
SELECT ALL + tab0.col1 + tab0.col2 + + col2 * col0 AS col2 FROM tab0
----
133
7471
911

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1286
SELECT DISTINCT tab0.col0 DIV col2 FROM tab0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-1286
SELECT DISTINCT tab0.col0 / col2 FROM tab0
----
0
1
35

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

query I rowsort
SELECT DISTINCT + col0 + - col1 * col0 + - col2 FROM tab2
----
-1302
-237
-4550

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

query I rowsort
SELECT ALL col2 + - col0 * - col2 + - col1 FROM tab1
----
190
3695
7763

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - col1 * + col1 col2 FROM tab0
----
-7372
-8192
-9374

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1293
SELECT ( + ( - col0 ) ) DIV 2 FROM tab0
----
-12
-17
-44

skipif mysql # not compatible
query I rowsort label-1293
SELECT ( + ( - col0 ) ) / 2 FROM tab0
----
-12
-17
-44

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

query I rowsort
SELECT + 78 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

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

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

query I rowsort
SELECT DISTINCT - 98 + + cor0.col0 + col1 AS col2 FROM tab0 cor0
----
12
34
82

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - cor0.col1 + 77 * 18 col1 FROM tab1 AS cor0
----
-18
138
816

query I rowsort
SELECT ALL - + 2 + - col1 AS col2 FROM tab2 AS cor0
----
-19
-33
-61

query I rowsort
SELECT - col2 * - cor0.col2 * col0 + - ( col1 ) * cor0.col1 AS col0 FROM tab1 cor0
----
207836
737111
8072

query I rowsort
SELECT + 18 * - col1 * col1 + col2 * col2 FROM tab2 AS cor0
----
-16569
-3758
-61982

query I rowsort
SELECT + 71 - - cor0.col0 FROM tab2 AS cor0
----
149
150
78

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

query I rowsort
SELECT - + cor0.col1 + col2 * col1 * - col1 AS col0 FROM tab0 AS cor0
----
-244154
-679133
-9506

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

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

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

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

query I rowsort
SELECT ALL - col2 + - col0 * 40 FROM tab0 AS cor0
----
-1401
-3642
-993

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

query I rowsort
SELECT DISTINCT + 65 * col0 - 88 FROM tab1 AS cor0
----
107
4072
5112

query I rowsort
SELECT DISTINCT 97 * - col0 FROM tab1 AS cor0
----
-291
-6208
-7760

query I rowsort
SELECT - 62 + + cor0.col0 AS col1 FROM tab0 AS cor0
----
-27
-38
27

query I rowsort
SELECT ALL - - col0 * col2 * + ( + col2 ) + + col0 + - col2 AS col0 FROM tab1 cor0
----
207943
737264
8697

onlyif mysql # use DIV operator for integer division
query I rowsort label-1317
SELECT ALL + ( + col0 ) DIV ( 44 * - col0 ) + ( col2 ) FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-1317
SELECT ALL + ( + col0 ) / ( 44 * - col0 ) + ( col2 ) FROM tab0 AS cor0
----
1
33
82

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

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

query I rowsort
SELECT - 57 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

query I rowsort
SELECT ALL 33 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

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

query I rowsort
SELECT - + col1 + ( 71 ) * col2 AS col1 FROM tab0 cor0
----
-26
2257
5731

query I rowsort
SELECT + + col0 * - col0 + col0 * col2 * col0 FROM tab0 AS cor0
----
0
18432
641601

query I rowsort
SELECT ALL - - col1 * - 8 + + col1 * - cor0.col1 FROM tab0 cor0
----
-10185
-8084
-9009

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1328
SELECT + - col0 + + CAST( col0 AS SIGNED ) * + cor0.col2 AS col1 FROM tab2 AS cor0
----
182
1950
2923

skipif mysql # not compatible
query I rowsort label-1328
SELECT + - col0 + + CAST ( col0 AS INTEGER ) * + cor0.col2 AS col1 FROM tab2 AS cor0
----
182
1950
2923

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

query I rowsort
SELECT - cor0.col0 + + cor0.col1 + col1 * col1 FROM tab2 AS cor0
----
227
3462
985

query I rowsort
SELECT DISTINCT + + ( col2 ) AS col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL + 82 AS col1 FROM tab2 AS cor0
----
82
82
82

query I rowsort
SELECT + cor1.col2 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT - - ( ( col2 ) ) * col2 AS col1 FROM tab0 cor0
----
1
1089
6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-1335
SELECT DISTINCT CAST( col0 AS SIGNED ) DIV cor0.col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1335
SELECT DISTINCT CAST ( col0 AS INTEGER ) / cor0.col0 FROM tab1 AS cor0
----
1

query I rowsort
SELECT + 21 FROM tab1 AS cor0
----
21
21
21

query I rowsort
SELECT DISTINCT - 35 + col1 * + cor0.col2 FROM tab1 AS cor0
----
1213
1369
535

onlyif mysql # use DIV operator for integer division
query I rowsort label-1338
SELECT ALL 53 DIV col2 col0 FROM tab0 AS cor0
----
0
1
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1338
SELECT ALL 53 / col2 col0 FROM tab0 AS cor0
----
0
1
53

query I rowsort
SELECT - col1 - - 38 AS col2 FROM tab0
----
-48
-53
-59

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 cor1, tab0 AS cor2
----
972 values hashing to 5e655b1287771868a8f868574a94d749

onlyif mysql # use DIV operator for integer division
query I rowsort label-1341
SELECT + col2 + - col1 DIV col2 FROM tab0 cor0
----
-96
31
81

skipif mysql # not compatible
query I rowsort label-1341
SELECT + col2 + - col1 / col2 FROM tab0 cor0
----
-96
31
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-1342
SELECT - + cor0.col1 * cor0.col2 DIV + col0 FROM tab0 cor0
----
-118
-2
-83

skipif mysql # not compatible
query I rowsort label-1342
SELECT - + cor0.col1 * cor0.col2 / + col0 FROM tab0 cor0
----
-118
-2
-83

query I rowsort
SELECT DISTINCT - - 92 * + col1 FROM tab0 AS cor0
----
7912
8372
8924

query I rowsort
SELECT ALL + ( col0 ) FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT ALL + cor0.col2 * + col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT col1 * col1 * + col1 AS col1 FROM tab2
----
205379
29791
4913

query I rowsort
SELECT col0 + 61 FROM tab0
----
150
85
96

query I rowsort
SELECT DISTINCT 25 * col2 AS col0 FROM tab2
----
650
675
950

query I rowsort
SELECT ( col0 * col2 ) + col0 AS col2 FROM tab2
----
196
2106
3081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 20 col2 FROM tab0
----
20
20
20

query I rowsort
SELECT 10 AS col1 FROM tab1
----
10
10
10

query I rowsort
SELECT - 24 FROM tab2
----
-24
-24
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col0 * col0 + tab2.col0 + tab2.col1 col0 FROM tab2
----
6221
6337
87

query I rowsort
SELECT ALL 14 + col0 + - col2 FROM tab1
----
-2
-37
21

query I rowsort
SELECT 73 AS col0 FROM tab1 AS cor0
----
73
73
73

query I rowsort
SELECT DISTINCT + + 21 * + col1 AS col1 FROM tab0 AS cor0
----
1806
1911
2037

query I rowsort
SELECT ALL 82 * col1 + col2 FROM tab1 AS cor0
----
1162
2186
877

query I rowsort
SELECT ALL - 41 + - col2 * - col2 FROM tab2 AS cor0
----
1403
635
688

query I rowsort
SELECT 24 AS col0 FROM tab2
----
24
24
24

query I rowsort
SELECT ALL col0 + - col1 FROM tab1
----
-23
54
67

query I rowsort
SELECT col1 + col2 * col2 AS col2 FROM tab2
----
1461
735
760

query I rowsort
SELECT ALL + - col0 * - 88 + + 29 AS col2 FROM tab1 AS cor0
----
293
5661
7069

onlyif mysql # use DIV operator for integer division
query I rowsort label-1364
SELECT DISTINCT + - col0 + 20 DIV 4 FROM tab1 AS cor0
----
-59
-75
2

skipif mysql # not compatible
query I rowsort label-1364
SELECT DISTINCT + - col0 + 20 / 4 FROM tab1 AS cor0
----
-59
-75
2

query I rowsort
SELECT + col0 + + tab2.col1 FROM tab2
----
137
38
96

query I rowsort
SELECT DISTINCT + col2 + 70 AS col0 FROM tab1 AS cor0
----
124
127
166

query I rowsort
SELECT ( cor0.col1 ) * col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT - 73 FROM tab2, tab2 AS cor0
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

query I rowsort
SELECT ALL + 99 * col0 + col1 FROM tab2 cor0
----
724
7781
7838

onlyif mysql # use DIV operator for integer division
query I rowsort label-1370
SELECT DISTINCT 12 DIV col0 + col2 FROM tab2 AS cor0
----
26
28
38

skipif mysql # not compatible
query I rowsort label-1370
SELECT DISTINCT 12 / col0 + col2 FROM tab2 AS cor0
----
26
28
38

query I rowsort
SELECT 61 * cor0.col1 AS col2 FROM tab1 AS cor0
----
1586
610
793

query I rowsort
SELECT col2 + + 65 AS col2 FROM tab2
----
103
91
92

query I rowsort
SELECT ( col0 + + col1 ) FROM tab0
----
110
132
180

query I rowsort
SELECT ALL + ( col1 ) + col2 + - col2 * col2 AS col0 FROM tab2 AS cor0
----
-1389
-591
-671

query I rowsort
SELECT DISTINCT - - col2 + 78 * col1 FROM tab2 AS cor0
----
1364
2445
4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-1376
SELECT col2 DIV col0 AS col2 FROM tab1 cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-1376
SELECT col2 / col0 AS col2 FROM tab1 cor0
----
0
1
18

query I rowsort
SELECT ALL + col2 + 53 * col0 AS col2 FROM tab1 AS cor0
----
213
3449
4336

query I rowsort
SELECT DISTINCT + + col1 + - 16 + - col1 FROM tab1 AS cor0
----
-16

query I rowsort
SELECT ALL - ( + 79 ) - + col1 FROM tab1 AS cor0
----
-105
-89
-92

onlyif mysql # use DIV operator for integer division
query I rowsort label-1380
SELECT - col0 DIV col1 + col0 FROM tab1 AS cor0
----
3
58
74

skipif mysql # not compatible
query I rowsort label-1380
SELECT - col0 / col1 + col0 FROM tab1 AS cor0
----
3
58
74

query I rowsort
SELECT - + col0 + + col0 * col0 FROM tab2 AS cor0
----
42
6006
6162

query I rowsort
SELECT + col1 * col0 * + col1 + + col2 AS col1 FROM tab1 cor0
----
13616
2082
6457

query I rowsort
SELECT + col0 * - col0 + - col1 FROM tab0 AS cor0
----
-1322
-662
-8012

query I rowsort
SELECT - - col0 * + col2 * col2 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT DISTINCT col0 * cor0.col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL - col0 + col1 + col0 AS col0 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT - - col0 * col0 * - col2 FROM tab1 AS cor0
----
-233472
-486
-614400

query I rowsort
SELECT col0 * + col1 * - cor0.col2 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT ALL + cor0.col1 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT cor0.col1 * col0 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT ALL - col0 + col2 * cor0.col0 AS col1 FROM tab0 AS cor0
----
0
7209
768

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col1 col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT + cor0.col0 + col1 * + col1 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT DISTINCT cor0.col0 AS col2 FROM tab0, tab2 AS cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-1395
SELECT - col2 + + col1 * col1 DIV + col0 AS col1 FROM tab0 AS cor0
----
11
267
275

skipif mysql # not compatible
query I rowsort label-1395
SELECT - col2 + + col1 * col1 / + col0 AS col1 FROM tab0 AS cor0
----
11
267
275

query I rowsort
SELECT + + col0 * col0 + - col1 * col0 FROM tab0 AS cor0
----
-1488
-178
-2170

query I rowsort
SELECT + col0 + - col2 + tab1.col0 AS col2 FROM tab1
----
-48
64
71

query I rowsort
SELECT col2 + col1 FROM tab1 cor0
----
109
67
80

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT IN ( tab0.col1 ) AND NOT col1 * col0 + col2 IN ( col0 + - col1 * + col2 + col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 - col1 * col2 <= ( + col0 ) AND NOT ( + col2 + col1 - col1 ) NOT BETWEEN - col0 AND - col1 + - col2 / col1
----

query I rowsort
SELECT ALL col0 + tab2.col1 AS col0 FROM tab2
----
137
38
96

query I rowsort
SELECT ALL - col1 * + tab1.col0 AS col2 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT cor0.col2 * - col0 * - cor0.col1 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT - col2 * 98 AS col0 FROM tab2 AS cor0
----
-2548
-2646
-3724

onlyif mysql # use DIV operator for integer division
query I rowsort label-1405
SELECT ALL - col2 * col1 + - cor0.col1 + + col2 DIV col0 FROM tab1 AS cor0
----
-1260
-1412
-580

skipif mysql # not compatible
query I rowsort label-1405
SELECT ALL - col2 * col1 + - cor0.col1 + + col2 / col0 FROM tab1 AS cor0
----
-1260
-1412
-580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + ( + 21 ) * - col2 col0 FROM tab0 AS cor0
----
-1631
-607
76

query I rowsort
SELECT + cor0.col1 + 89 AS col1 FROM tab0 AS cor0
----
175
180
186

query I rowsort
SELECT - col1 * 80 AS col0 FROM tab0 AS cor0
----
-6880
-7280
-7760

query I rowsort
SELECT + - col2 + 16 AS col1 FROM tab2 cor0
----
-10
-11
-22

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1410
SELECT ALL + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1410
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + ( col0 ) + col0 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 * - col1 AS col2 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT - col0 * - 74 * tab1.col0 AS col2 FROM tab1
----
303104
473600
666

query I rowsort
SELECT DISTINCT - + col1 * 34 FROM tab2 AS cor0
----
-1054
-2006
-578

query I rowsort
SELECT DISTINCT cor0.col1 AS col0 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT 56 AS col2 FROM tab2 AS cor0
----
56
56
56

query I rowsort
SELECT ALL - 45 + col1 FROM tab2 AS cor0
----
-14
-28
14

query I rowsort
SELECT DISTINCT 63 FROM tab2, tab2 AS cor0
----
63

query I rowsort
SELECT - - ( + col1 ) * col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT + - col2 * col1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT 51 * + col1 FROM tab0 cor0
----
4386
4641
4947

query I rowsort
SELECT - col1 + col0 AS col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT - + col0 * - cor0.col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT - col2 + - col1 + cor0.col2 AS col0 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT - 10 FROM tab1
----
-10
-10
-10

query I rowsort
SELECT - - col2 * - col2 AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-1427
SELECT DISTINCT col0 DIV + col0 + 95 FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-1427
SELECT DISTINCT col0 / + col0 + 95 FROM tab0 AS cor0
----
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-1428
SELECT ALL + col2 * col2 * + col1 + col2 DIV col0 + cor0.col1 * col0 FROM tab1 AS cor0
----
120849
33130
75912

skipif mysql # not compatible
query I rowsort label-1428
SELECT ALL + col2 * col2 * + col1 + col2 / col0 + cor0.col1 * col0 FROM tab1 AS cor0
----
120849
33130
75912

query I rowsort
SELECT DISTINCT + col1 * ( + cor0.col0 ) * col2 + ( col1 * col2 ) FROM tab1 cor0
----
101088
37050
5616

query I rowsort
SELECT + col1 * ( - col1 ) FROM tab2 AS cor0
----
-289
-3481
-961

onlyif mysql # use DIV operator for integer division
query I rowsort label-1431
SELECT DISTINCT + col1 DIV col1 - col0 * cor0.col2 * - ( + col2 * col2 ) FROM tab2 AS cor0
----
1370929
137782
4334889

skipif mysql # not compatible
query I rowsort label-1431
SELECT DISTINCT + col1 / col1 - col0 * cor0.col2 * - ( + col2 * col2 ) FROM tab2 AS cor0
----
1370929
137782
4334889

query I rowsort
SELECT DISTINCT + cor0.col1 + + col2 AS col1 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT ALL - col1 * - 78 FROM tab2 AS cor0
----
1326
2418
4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1434
SELECT + col2 + - CAST( col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1434
SELECT + col2 + - CAST ( col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + 47 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d

query I rowsort
SELECT + 88 + 67 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 37e6fe86ed7b54e43b7c859d6f5347fc

query I rowsort
SELECT DISTINCT + ( - col0 ) FROM tab2
----
-7
-78
-79

query I rowsort
SELECT ALL - + col2 * + col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL - col0 * - col0 AS col2 FROM tab2
----
49
6084
6241

query I rowsort
SELECT tab0.col2 + - 31 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to 945db3037a12f7a4e5148681173d2869

query I rowsort
SELECT + 37 FROM tab2, tab1 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query I rowsort
SELECT - col1 * - 46 + - col0 FROM tab2
----
1419
2636
703

query I rowsort
SELECT DISTINCT + col2 * ( col0 ) + - col2 FROM tab1 AS cor0
----
108
3591
7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-1444
SELECT ALL + col1 DIV 64 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1444
SELECT ALL + col1 / 64 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col1 - - 2 FROM tab0 AS cor0
----
88
93
99

query I rowsort
SELECT + col1 + tab0.col0 FROM tab0
----
110
132
180

query I rowsort
SELECT tab1.col0 + - col2 * col1 AS col2 FROM tab1
----
-1168
-1401
-506

query I rowsort
SELECT ALL - tab0.col1 * - col1 AS col2 FROM tab0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-1449
SELECT DISTINCT col1 DIV ( + 76 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1449
SELECT DISTINCT col1 / ( + 76 ) FROM tab0
----
1

query I rowsort
SELECT cor0.col1 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT col0 * - col2 AS col0 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT + 71 * col0 + tab2.col1 FROM tab2
----
528
5597
5626

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 97 + - col1 col2 FROM tab0 AS cor0
----
0
11
6

query I rowsort
SELECT + + ( col2 ) + + 93 + 18 AS col1 FROM tab2 AS cor0
----
137
138
149

query I rowsort
SELECT ALL - - col2 + - col1 AS col2 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT + col2 + + col2 * - col1 AS col1 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT DISTINCT - + col2 * + cor0.col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT - ( + 47 * + col2 + 92 ) AS col0 FROM tab0
----
-139
-1643
-3946

query I rowsort
SELECT ALL col2 + + col0 AS col0 FROM tab0
----
171
36
57

query I rowsort
SELECT + 90 AS col1 FROM tab0 cor0
----
90
90
90

query I rowsort
SELECT 16 AS col2 FROM tab0
----
16
16
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 13 col2 FROM tab0, tab1, tab2 AS cor0, tab0 AS cor1
----
81 values hashing to b092e3fa17e78608cf120e97d1bfff67

query I rowsort
SELECT - ( 58 ) * + tab0.col2 FROM tab0
----
-1914
-4756
-58

query I rowsort
SELECT 4 AS col0 FROM tab0 AS cor0
----
4
4
4

query I rowsort
SELECT DISTINCT - 9 FROM tab0 AS cor0
----
-9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1466
SELECT ALL + + col2 + - cor0.col0 + CAST( col2 + - col0 AS SIGNED ) FROM tab0 AS cor0
----
-14
-68
18

skipif mysql # not compatible
query I rowsort label-1466
SELECT ALL + + col2 + - cor0.col0 + CAST ( col2 + - col0 AS INTEGER ) FROM tab0 AS cor0
----
-14
-68
18

query I rowsort
SELECT DISTINCT + + 98 + col2 * - cor0.col1 + + ( + col1 * ( col0 ) ) FROM tab2 AS cor0
----
-522
3166
795

onlyif mysql # use DIV operator for integer division
query I rowsort label-1468
SELECT + col2 * - col2 + col0 DIV col0 col2 FROM tab2 cor0
----
-1443
-675
-728

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1468
SELECT + col2 * - col2 + col0 / col0 col2 FROM tab2 cor0
----
-1443
-675
-728

query I rowsort
SELECT ALL - cor0.col1 * + col0 + + 69 * cor0.col2 AS col1 FROM tab0 cor0
----
-2441
-3326
213

query I rowsort
SELECT ALL + + 71 AS col2 FROM tab2 AS cor0
----
71
71
71

query I rowsort
SELECT DISTINCT - 1 AS col2 FROM tab0 AS cor0
----
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-1472
SELECT col1 DIV - col0 + - col1 AS col1 FROM tab0 AS cor0
----
-89
-92
-99

skipif mysql # not compatible
query I rowsort label-1472
SELECT col1 / - col0 + - col1 AS col1 FROM tab0 AS cor0
----
-89
-92
-99

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-1474
SELECT DISTINCT + 68 DIV col1 AS col2 FROM tab1 cor0
----
2
5
6

skipif mysql # not compatible
query I rowsort label-1474
SELECT DISTINCT + 68 / col1 AS col2 FROM tab1 cor0
----
2
5
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-1475
SELECT 48 DIV - col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1475
SELECT 48 / - col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 91 AS col0 FROM tab2 AS cor0
----
91
91
91

query I rowsort
SELECT 89 AS col0 FROM tab2 AS cor0
----
89
89
89

query I rowsort
SELECT - col0 + cor0.col1 * + col1 AS col2 FROM tab0 AS cor0
----
7372
8192
9374

query I rowsort
SELECT DISTINCT - ( 24 ) FROM tab1 AS cor0
----
-24

query I rowsort
SELECT + 58 AS col2 FROM tab1 AS cor0
----
58
58
58

query I rowsort
SELECT ALL + col0 * + col0 + - col0 FROM tab2 AS cor0
----
42
6006
6162

onlyif mysql # use DIV operator for integer division
query I rowsort label-1482
SELECT DISTINCT col0 - - col0 * cor0.col2 DIV cor0.col0 FROM tab1 cor0
----
121
176
57

skipif mysql # not compatible
query I rowsort label-1482
SELECT DISTINCT col0 - - col0 * cor0.col2 / cor0.col0 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT 8 FROM tab0, tab0 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query I rowsort
SELECT 82 FROM tab2
----
82
82
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1485
SELECT + CAST( cor0.col0 AS SIGNED ) * col2 + - col1 FROM tab1 AS cor0
----
136
3638
7667

skipif mysql # not compatible
query I rowsort label-1485
SELECT + CAST ( cor0.col0 AS INTEGER ) * col2 + - col1 FROM tab1 AS cor0
----
136
3638
7667

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0, tab1 cor1, tab2, tab2 AS cor2
----
3645 values hashing to c670882ff9ea3f0bb08fc55ec569be96

query I rowsort
SELECT - ( 58 ) * - col1 + ( - col1 ) FROM tab0 AS cor0
----
4902
5187
5529

query I rowsort
SELECT ALL + + col2 + + col2 AS col0 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT DISTINCT + + 15 FROM tab1 AS cor0
----
15

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab2 cor1, tab1 AS cor2
----
972 values hashing to 4634d10e8b6b37510bb99745aade36ab

query I rowsort
SELECT 41 FROM tab1, tab1 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT + - 64 FROM tab1 AS cor0
----
-64
-64
-64

query I rowsort
SELECT - 42 FROM tab2 AS cor0
----
-42
-42
-42

query I rowsort
SELECT ( col1 ) * - ( + col1 ) FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT - + 96 * + col1 * - 89 AS col0 FROM tab2 AS cor0
----
145248
264864
504096

query I rowsort
SELECT 85 * ( + col1 ) + col1 AS col0 FROM tab2
----
1462
2666
5074

query I rowsort
SELECT ALL ( + col2 + col0 ) * + col2 FROM tab2
----
2704
4446
918

query I rowsort
SELECT - 67 + col2 AS col1 FROM tab1
----
-10
-13
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor1.col2 col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT ( + tab2.col2 ) FROM tab2
----
26
27
38

query I rowsort
SELECT - + col0 * - cor0.col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT ALL - + col0 + 1 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col2 * cor0.col1 * cor0.col0 AS col0 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT - + col1 + col2 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT - col2 + - 19 FROM tab1 cor0
----
-115
-73
-76

query I rowsort
SELECT DISTINCT - col2 * + 82 + + 83 * + col0 FROM tab0 AS cor0
----
-714
2823
663

query I rowsort
SELECT ALL col2 * 0 - 53 AS col2 FROM tab0 AS cor0
----
-53
-53
-53

query I rowsort
SELECT ALL cor0.col2 * col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL - cor0.col0 - 32 AS col1 FROM tab1 AS cor0
----
-112
-35
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1510
SELECT + + col2 * + CAST( NULL AS SIGNED ) + col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1510
SELECT + + col2 * + CAST ( NULL AS INTEGER ) + col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + tab2.col2 col0 FROM tab2
----
104
117
34

query I rowsort
SELECT DISTINCT + 53 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
53

query I rowsort
SELECT DISTINCT + col2 * + col1 + + col1 AS col1 FROM tab0
----
194
2924
7553

query I rowsort
SELECT + 61 * + col2 AS col1 FROM tab1
----
3294
3477
5856

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1515
SELECT + col1 + CAST( NULL AS SIGNED ) + 45 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1515
SELECT + col1 + CAST ( NULL AS INTEGER ) + 45 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * + cor0.col1 - col0 * - col0 FROM tab0 cor0
----
10634
16202
7972

query I rowsort
SELECT DISTINCT + col0 + col0 AS col1 FROM tab2
----
14
156
158

onlyif mysql # use DIV operator for integer division
query I rowsort label-1518
SELECT 17 + - 18 DIV cor0.col0 + + tab2.col0 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 3255632f992fb3c9d0a1aa3a0e438c43

skipif mysql # not compatible
query I rowsort label-1518
SELECT 17 + - 18 / cor0.col0 + + tab2.col0 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 3255632f992fb3c9d0a1aa3a0e438c43

query IIIIIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab1, tab2 cor1
----
243 values hashing to 6506b295d3a7bcc5ed65956f5b4e38b0

query I rowsort
SELECT DISTINCT - col0 + col2 AS col1 FROM tab1
----
-7
16
51

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 AS cor2, tab0 AS cor3
----
3645 values hashing to 28a820d445f1d1e09fd3c7443bd16e29

query I rowsort
SELECT - + col0 + - col0 AS col2 FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT - col0 - 34 AS col1 FROM tab0
----
-123
-58
-69

query I rowsort
SELECT DISTINCT col0 + - 51 FROM tab0
----
-16
-27
38

query I rowsort
SELECT DISTINCT - col1 * ( 57 ) AS col2 FROM tab0 cor0
----
-4902
-5187
-5529

query I rowsort
SELECT + col1 * - col1 * + col0 FROM tab1 AS cor0
----
-13520
-2028
-6400

query I rowsort
SELECT ALL - col0 * 7 AS col1 FROM tab2 AS cor0
----
-49
-546
-553

onlyif mysql # use DIV operator for integer division
query I rowsort label-1528
SELECT - cor0.col0 + - col1 DIV + cor0.col2 + 69 AS col1 FROM tab1 AS cor0
----
-11
5
66

skipif mysql # not compatible
query I rowsort label-1528
SELECT - cor0.col0 + - col1 / + cor0.col2 + 69 AS col1 FROM tab1 AS cor0
----
-11
5
66

query I rowsort
SELECT ALL + + ( - 4 ) AS col2 FROM tab2 AS cor0
----
-4
-4
-4

onlyif mysql # use DIV operator for integer division
query I rowsort label-1530
SELECT ALL col0 DIV + ( - 68 ) FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1530
SELECT ALL col0 / + ( - 68 ) FROM tab1
----
-1
0
0

query I rowsort
SELECT - - col2 + + col0 + col2 FROM tab1 AS cor0
----
111
178
272

query I rowsort
SELECT + col2 * - 37 + + cor0.col1 AS col2 FROM tab2 AS cor0
----
-1389
-903
-968

query I rowsort
SELECT - col0 * col0 + col0 * col1 * cor0.col0 AS col1 FROM tab0 AS cor0
----
117600
48960
712890

query I rowsort
SELECT tab2.col1 * col0 * col0 AS col1 FROM tab2
----
106097
1519
358956

query I rowsort
SELECT DISTINCT + 87 FROM tab1, tab2 AS cor0
----
87

query I rowsort
SELECT DISTINCT + 53 - 94 FROM tab1, tab0 AS cor0
----
-41

query I rowsort
SELECT DISTINCT 22 FROM tab2, tab0 cor0
----
22

query I rowsort
SELECT tab1.col0 * tab1.col2 FROM tab1, tab2 AS cor0
----
9 values hashing to cf1383d310e5e3e19470e0b8dc064d0c

query I rowsort
SELECT DISTINCT + col1 * col0 AS col2 FROM tab1
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1540
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1540
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * col0 + col0 + - col1 AS col1 FROM tab0 AS cor0
----
1163
514
7919

query I rowsort
SELECT + 14 * 43 + col0 * - 87 FROM tab1 AS cor0
----
-4966
-6358
341

query I rowsort
SELECT + + 63 + col0 + - col2 FROM tab1 AS cor0
----
12
47
70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1544
SELECT + CAST( NULL AS SIGNED ) * - col2 + + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1544
SELECT + CAST ( NULL AS INTEGER ) * - col2 + + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 60 FROM tab0, tab0 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

onlyif mysql # use DIV operator for integer division
query I rowsort label-1546
SELECT - 4 + + cor0.col2 DIV + col0 AS col1 FROM tab1 AS cor0
----
-3
-4
14

skipif mysql # not compatible
query I rowsort label-1546
SELECT - 4 + + cor0.col2 / + col0 AS col1 FROM tab1 AS cor0
----
-3
-4
14

query I rowsort
SELECT 61 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query I rowsort
SELECT DISTINCT + col2 * + col2 - col2 * - col0 AS col1 FROM tab1 cor0
----
16896
3078
6897

query I rowsort
SELECT + + col1 * - col1 AS col1 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT - ( + col0 ) + 84 AS col0 FROM tab2 AS cor0
----
5
6
77

query I rowsort
SELECT + col1 * - col0 AS col0 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT col1 + cor0.col1 + ( cor0.col1 + - cor0.col2 ) FROM tab0 AS cor0
----
191
225
290

query I rowsort
SELECT ALL - cor0.col2 * cor0.col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT 50 AS col2 FROM tab2
----
50
50
50

query I rowsort
SELECT - cor0.col0 - 28 FROM tab2, tab0 AS cor0
----
9 values hashing to 3253f11c15baa47dca9038ac9b1e0030

query I rowsort
SELECT + - col0 + ( - col2 ) + cor0.col0 FROM tab2 AS cor0
----
-26
-27
-38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1557
SELECT - col1 * + CAST( NULL AS SIGNED ) * tab0.col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1557
SELECT - col1 * + CAST ( NULL AS INTEGER ) * tab0.col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1558
SELECT ALL col1 DIV - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1558
SELECT ALL col1 / - col2 FROM tab1
----
0
0
0

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab2 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to 59ca7c96f3955e014bebd08b5442edff

query I rowsort
SELECT col0 + 69 AS col1 FROM tab0 cor0
----
104
158
93

query I rowsort
SELECT DISTINCT - - 85 FROM tab2 AS cor0
----
85

query I rowsort
SELECT - - 54 AS col0 FROM tab0, tab1 cor0, tab2, tab2 AS cor1
----
81 values hashing to c12c2f39593b3ce157086f29d8391c32

query I rowsort
SELECT ALL 11 + + cor0.col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 35d675b12daeeedaff0e73beb4adf032

query I rowsort
SELECT + 29 FROM tab1 AS cor0
----
29
29
29

query I rowsort
SELECT - ( col1 ) * cor0.col0 * + col2 FROM tab1 AS cor0
----
-36480
-4212
-99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-1566
SELECT - col2 DIV col1 AS col2 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-1566
SELECT - col2 / col1 AS col2 FROM tab1 AS cor0
----
-2
-5
-7

query I rowsort
SELECT - 63 * col0 FROM tab2 AS cor0
----
-441
-4914
-4977

query I rowsort
SELECT ( col2 ) + - 2 AS col0 FROM tab0
----
-1
31
80

query I rowsort
SELECT ALL - + ( col1 ) - + col2 * 71 * + col0 AS col1 FROM tab0 cor0
----
-2582
-518249
-56318

query I rowsort
SELECT ALL + 93 AS col0 FROM tab2 AS cor0
----
93
93
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-1571
SELECT ALL + 32 DIV col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1571
SELECT ALL + 32 / col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col2 + - 46 * - col2 * + col0 FROM tab2
----
138130
8721
93314

query I rowsort
SELECT col0 * + 71 FROM tab1
----
213
4544
5680

query I rowsort
SELECT - cor0.col2 AS col0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT - cor0.col2 * - cor0.col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT col1 + - 12 * cor0.col0 FROM tab1 AS cor0
----
-10
-758
-947

query I rowsort
SELECT - + cor0.col2 * + col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT col2 * col2 + + cor0.col1 + col0 FROM tab2 cor0
----
1540
767
813

query I rowsort
SELECT + 10 + - col2 * col2 FROM tab1 cor0
----
-2906
-3239
-9206

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1580
SELECT DISTINCT + 85 + - col0 + + col1 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1580
SELECT DISTINCT + 85 + - col0 + + col1 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 41 + - cor0.col1 * col2 FROM tab1 AS cor0
----
-1207
-1363
-529

query I rowsort
SELECT + col1 * - ( - col2 ) AS col0 FROM tab1
----
1248
1404
570

query I rowsort
SELECT DISTINCT - col2 * + 89 - - col2 AS col2 FROM tab0 AS cor0
----
-2904
-7216
-88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1584
SELECT - CAST( NULL AS SIGNED ) + + col1 * col0 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1584
SELECT - CAST ( NULL AS INTEGER ) + + col1 * col0 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 * 98 col0 FROM tab0
----
120050
56448
776258

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1586
SELECT DISTINCT CAST( NULL AS DECIMAL ) FROM tab2, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1586
SELECT DISTINCT CAST ( NULL AS REAL ) FROM tab2, tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - cor0.col2 * ( col2 ) AS col1 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT col1 + + col2 AS col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL + 6 * col0 FROM tab0 AS cor0
----
144
210
534

query I rowsort
SELECT 87 FROM tab1 AS cor0
----
87
87
87

query I rowsort
SELECT ALL 28 AS col0 FROM tab1 AS cor0
----
28
28
28

query I rowsort
SELECT DISTINCT - + col0 * cor0.col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ( 30 ) AS col1 FROM tab0 AS cor0
----
30
30
30

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1594
SELECT DISTINCT - col1 * col2 * - col2 + CAST( col0 AS SIGNED ) FROM tab2 cor0
----
22606
24627
39962

skipif mysql # not compatible
query I rowsort label-1594
SELECT DISTINCT - col1 * col2 * - col2 + CAST ( col0 AS INTEGER ) FROM tab2 cor0
----
22606
24627
39962

query I rowsort
SELECT + + col0 + - col0 * - col2 + - col1 * 19 AS col1 FROM tab2 cor0
----
-393
2758
985

query I rowsort
SELECT DISTINCT - + 64 FROM tab0 AS cor0
----
-64

query I rowsort
SELECT + col0 * + 78 + - col2 * + col2 * ( col1 ) AS col1 FROM tab2 AS cor0
----
-18386
-22053
-33800

query I rowsort
SELECT DISTINCT + 70 AS col1 FROM tab0, tab2 AS cor0
----
70

query I rowsort
SELECT DISTINCT - col0 * 15 + + col2 FROM tab0 AS cor0
----
-1253
-327
-524

query I rowsort
SELECT ALL - cor0.col1 * col1 + col1 AS col0 FROM tab0 AS cor0
----
-7310
-8190
-9312

query I rowsort
SELECT DISTINCT + col1 + + col0 * col1 AS col2 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT + + 10 + - col2 + + cor0.col2 FROM tab0 cor0
----
10
10
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) col1 FROM tab1 cor0
----
-10
-13
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-1604
SELECT DISTINCT 69 * col2 DIV - tab2.col0 + tab2.col0 * + col1 FROM tab2
----
-49
1310
4579

skipif mysql # not compatible
query I rowsort label-1604
SELECT DISTINCT 69 * col2 / - tab2.col0 + tab2.col0 * + col1 FROM tab2
----
-49
1310
4579

query I rowsort
SELECT ALL ( + col2 ) * col0 + + col1 FROM tab0
----
132
7389
878

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1606
SELECT DISTINCT - CAST( + col2 AS SIGNED ) + col0 * ( - col1 ) FROM tab2
----
-1381
-244
-4628

skipif mysql # not compatible
query I rowsort label-1606
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) + col0 * ( - col1 ) FROM tab2
----
-1381
-244
-4628

query I rowsort
SELECT DISTINCT + - ( - col1 ) * col2 + ( - col0 ) * + col1 AS col2 FROM tab2 AS cor0
----
-3068
-697
620

query I rowsort
SELECT DISTINCT + col2 * col2 + 82 AS col1 FROM tab0 AS cor0
----
1171
6806
83

query I rowsort
SELECT + 74 FROM tab1 AS cor0
----
74
74
74

query I rowsort
SELECT DISTINCT + - col1 + + col2 AS col1 FROM tab1 AS cor0
----
28
47
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 57 + col2 - + 23 col0 FROM tab1 AS cor0
----
130
88
91

query I rowsort
SELECT + ( + tab2.col0 ) AS col2 FROM tab2
----
7
78
79

query I rowsort
SELECT ALL col2 * tab0.col0 * col1 + col2 FROM tab0
----
3396
664200
68145

query I rowsort
SELECT - 36 AS col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 3bcd07d22b62d2042b499253b1c13d9e

query I rowsort
SELECT ALL + 44 * + col2 AS col1 FROM tab2
----
1144
1188
1672

query I rowsort
SELECT - col2 * + ( + col1 ) + cor0.col0 * - cor0.col1 + - col2 AS col2 FROM tab0 AS cor0
----
-15643
-3493
-4935

query I rowsort
SELECT DISTINCT + col2 * 30 FROM tab2 AS cor0
----
1140
780
810

query I rowsort
SELECT ALL + + col1 * col2 * + ( - col2 ) AS col1 FROM tab0 AS cor0
----
-611884
-93654
-97

query I rowsort
SELECT DISTINCT + cor0.col1 + - col0 FROM tab2 AS cor0
----
-19
-62
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - - cor0.col2 col2 FROM tab2 AS cor0
----
104
117
34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1621
SELECT DISTINCT + col0 + + CAST( NULL AS SIGNED ) / 22 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1621
SELECT DISTINCT + col0 + + CAST ( NULL AS INTEGER ) / 22 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col0 + ( 93 ) AS col1 FROM tab0 AS cor0
----
117
128
182

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1623
SELECT - col2 + CAST( col1 AS SIGNED ) * - col2 * 24 col0 FROM tab1 AS cor0
----
-13737
-30048
-33750

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1623
SELECT - col2 + CAST ( col1 AS INTEGER ) * - col2 * 24 col0 FROM tab1 AS cor0
----
-13737
-30048
-33750

query I rowsort
SELECT DISTINCT - 14 - col0 AS col0 FROM tab1
----
-17
-78
-94

onlyif mysql # use DIV operator for integer division
query I rowsort label-1625
SELECT ( col0 ) DIV - 23 + + col2 - + tab0.col2 * col2 AS col1 FROM tab0
----
-1
-1057
-6645

skipif mysql # not compatible
query I rowsort label-1625
SELECT ( col0 ) / - 23 + + col2 - + tab0.col2 * col2 AS col1 FROM tab0
----
-1
-1057
-6645

query I rowsort
SELECT ALL 3 - col1 * ( - col0 ) AS col2 FROM tab2
----
1346
220
4605

query I rowsort
SELECT ALL + + 63 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 38764a6e696d1a6b5095e29ef84959c0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col2 col2 FROM tab2
----
1444
676
729

query I rowsort
SELECT DISTINCT tab2.col0 FROM tab2, tab2 AS cor0
----
7
78
79

query I rowsort
SELECT tab0.col0 + 24 * col1 FROM tab0
----
2088
2273
2363

onlyif mysql # use DIV operator for integer division
query I rowsort label-1631
SELECT 40 DIV - tab0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to b2e225572af74ba853e10fb5414ea67f

skipif mysql # not compatible
query I rowsort label-1631
SELECT 40 / - tab0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to b2e225572af74ba853e10fb5414ea67f

query I rowsort
SELECT + + col0 + + 95 * col1 AS col0 FROM tab0 AS cor0
----
8194
8734
9250

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1633
SELECT ALL - + cor0.col2 * + CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
-1
-1089
-6724

skipif mysql # not compatible
query I rowsort label-1633
SELECT ALL - + cor0.col2 * + CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT + col1 + - col2 + - 60 * col2 AS col2 FROM tab2 AS cor0
----
-1527
-1616
-2301

query I rowsort
SELECT ALL 71 FROM tab2
----
71
71
71

query I rowsort
SELECT - tab2.col0 * - tab2.col2 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 41d4c126bfd4bfab59ba5e83427c98e0

query I rowsort
SELECT 25 + col0 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
6109
6266
74

query I rowsort
SELECT DISTINCT + + col1 * + col1 FROM tab1 cor0
----
100
169
676

query I rowsort
SELECT ALL - - col1 + - col2 AS col0 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT + 3 * col1 FROM tab0 AS cor0
----
258
273
291

query I rowsort
SELECT DISTINCT + 4 + cor0.col1 FROM tab2 AS cor0
----
21
35
63

query I rowsort
SELECT + 78 * - col0 FROM tab1 AS cor0
----
-234
-4992
-6240

query I rowsort
SELECT - tab2.col0 * col2 AS col2 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT ALL - col2 * col1 * - 5 AS col2 FROM tab1 AS cor0
----
2850
6240
7020

query I rowsort
SELECT + cor0.col0 * 63 AS col2 FROM tab2 AS cor0
----
441
4914
4977

query I rowsort
SELECT ALL - - col2 + + col0 AS col0 FROM tab0 AS cor0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * ( + 62 ) col0 FROM tab0 AS cor0
----
2046
5084
62

query I rowsort
SELECT - cor0.col2 + - ( col1 * cor0.col2 ) AS col1 FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT DISTINCT + col1 + - 69 AS col1 FROM tab2 AS cor0
----
-10
-38
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * col2 col1 FROM tab2 AS cor0
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col1 + col1 col2 FROM tab1
----
20
26
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col2 * - col1 + col1 col0 FROM tab1
----
-1155
-1375
-496

query I rowsort
SELECT cor0.col1 + 99 AS col1 FROM tab1 AS cor0
----
109
112
125

query I rowsort
SELECT + col0 * + 16 + - 12 AS col1 FROM tab2 cor0
----
100
1236
1252

query I rowsort
SELECT DISTINCT col0 * - col1 - col0 AS col1 FROM tab0 AS cor0
----
-2088
-3430
-8188

query I rowsort
SELECT + + ( col0 ) * - cor0.col2 + + 20 FROM tab2 AS cor0
----
-169
-2008
-2982

query I rowsort
SELECT ALL 8 FROM tab1 cor0
----
8
8
8

query I rowsort
SELECT + 88 - 18 AS col1 FROM tab0 cor0
----
70
70
70

query I rowsort
SELECT DISTINCT - - ( 54 ) * + col0 + - col2 * + col0 FROM tab1 AS cor0
----
-192
-3360
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1660
SELECT + CAST( NULL AS SIGNED ) - - 73 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1660
SELECT + CAST ( NULL AS INTEGER ) - - 73 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 + ( + col2 + + col2 ) * col1 * col1 AS col2 FROM tab0 AS cor0
----
1358166
18819
488169

query I rowsort
SELECT DISTINCT - col2 * - col0 - - col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT + + col2 + ( - col2 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT ( - 31 ) * col2 + + 13 FROM tab2
----
-1165
-793
-824

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col2 col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT col1 - + col0 * + col2 * 15 AS col2 FROM tab1 AS cor0
----
-115187
-2404
-54710

onlyif mysql # use DIV operator for integer division
query I rowsort label-1667
SELECT ALL + col0 DIV - cor0.col1 + + col0 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-1667
SELECT ALL + col0 / - cor0.col1 + + col0 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort
SELECT ALL - - CAST ( ( col2 ) AS REAL ) FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT + col1 + 44 * col1 AS col2 FROM tab1 AS cor0
----
1170
450
585

query I rowsort
SELECT + + col0 * cor0.col1 FROM tab0 AS cor0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - col0 * col2 col2 FROM tab1 cor0
----
-188
-3658
-7693

onlyif mysql # use DIV operator for integer division
query I rowsort label-1672
SELECT + col0 + 66 DIV + cor0.col1 FROM tab1 AS cor0
----
5
70
85

skipif mysql # not compatible
query I rowsort label-1672
SELECT + col0 + 66 / + cor0.col1 FROM tab1 AS cor0
----
5
70
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 * - 8 + col1 col1 FROM tab2 AS cor0
----
-25
-565
-615

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT - + col2 * col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT col2 + - col0 AS col0 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT DISTINCT + 73 AS col1 FROM tab1 AS cor0
----
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-1678
SELECT ALL - 11 + + col1 DIV + col1 AS col0 FROM tab2 AS cor0
----
-10
-10
-10

skipif mysql # not compatible
query I rowsort label-1678
SELECT ALL - 11 + + col1 / + col1 AS col0 FROM tab2 AS cor0
----
-10
-10
-10

query I rowsort
SELECT DISTINCT col2 * - 74 + - col1 FROM tab0
----
-171
-2528
-6159

onlyif mysql # use DIV operator for integer division
query I rowsort label-1680
SELECT tab0.col2 DIV - col1 col2 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1680
SELECT tab0.col2 / - col1 col2 FROM tab0
----
0
0
0

query I rowsort
SELECT + + 42 - col2 FROM tab2 AS cor0
----
15
16
4

query I rowsort
SELECT - col0 + + col2 * 32 AS col1 FROM tab1 AS cor0
----
1725
1760
2992

query I rowsort
SELECT 63 - col1 * col1 AS col2 FROM tab0 AS cor0
----
-7333
-8218
-9346

query I rowsort
SELECT 78 * cor0.col2 FROM tab0 AS cor0
----
2574
6396
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + + cor0.col2 col0 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT ALL 6 * - col1 AS col1 FROM tab0
----
-516
-546
-582

query I rowsort
SELECT ALL 20 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT - tab0.col1 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

query I rowsort
SELECT DISTINCT ( tab1.col0 ) FROM tab1
----
3
64
80

query I rowsort
SELECT + col1 * - col0 - col2 * + col1 FROM tab2 AS cor0
----
-1054
-1989
-6136

query I rowsort
SELECT - + cor0.col1 + col2 AS col0 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT ALL cor1.col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT DISTINCT - 89 AS col0 FROM tab2
----
-89

query I rowsort
SELECT cor0.col0 + + cor0.col2 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 8733ba2dd568938e338b27ad757d3e3b

query I rowsort
SELECT - col2 + 50 * col0 AS col2 FROM tab1 AS cor0
----
3143
3904
96

query I rowsort
SELECT DISTINCT - col2 * - col1 FROM tab0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-1697
SELECT + 48 DIV - col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1697
SELECT + 48 / - col2 AS col2 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 28 col2 FROM tab0, tab1 AS cor0
----
-28

query I rowsort
SELECT col1 * 64 + + col0 AS col1 FROM tab2
----
1167
1991
3854

query I rowsort
SELECT - - col0 * - col2 AS col0 FROM tab1 cor0
----
-162
-3648
-7680

query IIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab2 AS cor2
----
972 values hashing to 89714dd446b7a97f8787d5744bdbf323

query I rowsort
SELECT tab0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT 78 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 48 col1 FROM tab0
----
48
48
48

query I rowsort
SELECT DISTINCT ( + tab1.col0 ) * col2 AS col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT ALL - col0 * - col0 * - tab2.col0 FROM tab2
----
-343
-474552
-493039

query I rowsort
SELECT - 38 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

query I rowsort
SELECT col1 + - 19 FROM tab2 AS cor0
----
-2
12
40

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab1 AS cor1, tab1, tab0 cor2
----
3645 values hashing to e660b5944e34dd8d75740286862b3252

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - col2 * col2 + - col2 * col2 col2 FROM tab2 AS cor0
----
-1326
-1431
-2850

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 23 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query I rowsort
SELECT + col2 + col0 * col1 - col1 AS col0 FROM tab2 WHERE col2 NOT IN ( - tab2.col2 / col0 )
----
1364
213
4569

query I rowsort
SELECT col1 + + col2 AS col0 FROM tab2
----
55
58
85

query I rowsort
SELECT DISTINCT + tab0.col2 - - col0 FROM tab0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-1715
SELECT DISTINCT - col1 DIV col1 + - tab2.col1 FROM tab2
----
-18
-32
-60

skipif mysql # not compatible
query I rowsort label-1715
SELECT DISTINCT - col1 / col1 + - tab2.col1 FROM tab2
----
-18
-32
-60

query I rowsort
SELECT tab2.col0 * col2 FROM tab2
----
189
2028
3002

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) NOT BETWEEN - col0 AND col1 + + col1
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1718
SELECT ALL + col0 * tab2.col1 DIV - col0 + + col1 * + col1 * col2 col1 FROM tab2
----
10965
25916
90447

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1718
SELECT ALL + col0 * tab2.col1 / - col0 + + col1 * + col1 * col2 col1 FROM tab2
----
10965
25916
90447

query I rowsort
SELECT ALL - col0 - + tab1.col0 AS col1 FROM tab1
----
-128
-160
-6

query I rowsort
SELECT + col0 + + col1 * + tab2.col2 + col0 * - col0 AS col2 FROM tab2
----
-4472
-5516
795

query I rowsort
SELECT - col1 * + tab0.col1 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT - col2 * tab0.col2 + + col2 FROM tab0
----
-1056
-6642
0

query I rowsort
SELECT DISTINCT col2 + col2 AS col1 FROM tab0
----
164
2
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-1724
SELECT DISTINCT + col0 + - col0 DIV - col1 FROM tab1
----
3
70
86

skipif mysql # not compatible
query I rowsort label-1724
SELECT DISTINCT + col0 + - col0 / - col1 FROM tab1
----
3
70
86

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) BETWEEN NULL AND ( + col0 )
----

query I rowsort
SELECT + col2 * + tab0.col2 FROM tab0 WHERE NOT NULL IN ( - col2 )
----

query I rowsort
SELECT + col2 + - tab0.col0 FROM tab0
----
-34
-7
9

query I rowsort
SELECT DISTINCT + col0 + tab2.col2 FROM tab2
----
104
117
34

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT col1 * + col2 AS col1 FROM tab0
----
2838
7462
97

query I rowsort
SELECT - col1 * col0 AS col0 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT + col1 + tab2.col1 * - col1 FROM tab2
----
-272
-3422
-930

query I rowsort
SELECT ALL col1 * col2 * col1 + - col1 FROM tab0
----
243982
678951
9312

query I rowsort
SELECT col0 - col0 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN + col2 * + col2 AND - col0 * - col0
----

query III rowsort
SELECT * FROM tab1 WHERE ( col0 ) >= + col2
----
64
10
57

query I rowsort
SELECT ALL - col2 + + col1 FROM tab2
----
-21
33
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col2 FROM tab0 WHERE col1 < ( NULL )
----

query I rowsort
SELECT col1 + - col1 * - col0 * tab0.col1 AS col0 FROM tab0
----
177590
329412
737100

onlyif mysql # use DIV operator for integer division
query I rowsort label-1740
SELECT ALL col1 DIV - tab2.col1 AS col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1740
SELECT ALL col1 / - tab2.col1 AS col1 FROM tab2
----
-1
-1
-1

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab2
----
54 values hashing to d8165ceb99ded93f34ad83c310a80ea7

onlyif mysql # use DIV operator for integer division
query I rowsort label-1742
SELECT + col0 DIV tab0.col2 AS col2 FROM tab0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-1742
SELECT + col0 / tab0.col2 AS col2 FROM tab0
----
0
1
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-1743
SELECT - col1 DIV tab0.col2 FROM tab0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-1743
SELECT - col1 / tab0.col2 FROM tab0
----
-1
-2
-97

query I rowsort
SELECT col1 + + col0 + cor0.col2 AS col0 FROM tab0 AS cor0
----
133
143
262

query I rowsort
SELECT col1 * - col1 * tab1.col2 FROM tab1
----
-16224
-36504
-5700

query I rowsort
SELECT col0 * - col0 AS col0 FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT ALL + tab1.col2 - col2 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1748
SELECT DISTINCT col1 DIV col2 FROM tab0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-1748
SELECT DISTINCT col1 / col2 FROM tab0
----
1
2
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-1749
SELECT - col1 DIV + col0 FROM tab1
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-1749
SELECT - col1 / + col0 FROM tab1
----
-8
0
0

query I rowsort
SELECT col0 * col0 + + col0 * col2 AS col2 FROM tab0
----
1260
1368
15219

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( col1 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL = ( col2 )
----

query I rowsort
SELECT DISTINCT + col1 + col2 + - tab1.col1 AS col2 FROM tab1
----
54
57
96

query I rowsort
SELECT col0 * col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT col1 - - col0 AS col2 FROM tab2
----
137
38
96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN ( + col0 ) AND NULL
----

query I rowsort
SELECT DISTINCT tab2.col2 * col2 FROM tab2
----
1444
676
729

onlyif mysql # use DIV operator for integer division
query I rowsort label-1758
SELECT - col0 DIV col1 FROM tab2
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-1758
SELECT - col0 / col1 FROM tab2
----
-1
-4
0

query I rowsort
SELECT - col2 * tab1.col0 * - col0 FROM tab1
----
233472
486
614400

query I rowsort
SELECT ALL - tab0.col1 * - col1 AS col1 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT col0 AS col1 FROM tab1 WHERE NULL IN ( col2 )
----

query I rowsort
SELECT DISTINCT col2 * - col2 AS col0 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT col1 + col1 + + col0 AS col1 FROM tab1 cor0
----
106
55
84

query I rowsort
SELECT DISTINCT col0 * - col0 AS col1 FROM tab0 cor0
----
-1225
-576
-7921

query I rowsort
SELECT ALL cor0.col0 + col1 + - col1 AS col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL - col0 * + cor0.col2 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT - cor0.col1 * + 45 - col0 * + col2 FROM tab0 AS cor0
----
-11393
-4400
-4662

query I rowsort
SELECT ALL - - col1 * + ( col0 ) + col0 FROM tab2 AS cor0
----
1422
224
4680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1769
SELECT DISTINCT - col2 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1769
SELECT DISTINCT - col2 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + - col2 - - col1 AS col0 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT cor0.col0 * col0 - col0 FROM tab2 AS cor0
----
42
6006
6162

query I rowsort
SELECT + col2 * - cor0.col0 + col0 FROM tab0 AS cor0
----
-7209
-768
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1773
SELECT DISTINCT col2 * + CAST( 16 AS SIGNED ) * col0 + col2 FROM tab2 AS cor0
----
3051
32474
48070

skipif mysql # not compatible
query I rowsort label-1773
SELECT DISTINCT col2 * + CAST ( 16 AS INTEGER ) * col0 + col2 FROM tab2 AS cor0
----
3051
32474
48070

onlyif mysql # use DIV operator for integer division
query I rowsort label-1774
SELECT DISTINCT - col1 + - cor0.col2 DIV ( col2 ) + + col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1774
SELECT DISTINCT - col1 + - cor0.col2 / ( col2 ) + + col1 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT DISTINCT + tab1.col2 + + col0 FROM tab1
----
121
176
57

query I rowsort
SELECT ALL + cor0.col0 * cor0.col0 * - col0 AS col1 FROM tab0 AS cor0
----
-13824
-42875
-704969

query I rowsort
SELECT DISTINCT 39 FROM tab0 cor0
----
39

query I rowsort
SELECT - 68 * cor0.col0 + - col0 FROM tab1 AS cor0
----
-207
-4416
-5520

query I rowsort
SELECT - col1 + cor0.col2 FROM tab0 AS cor0
----
-53
-9
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1780
SELECT DISTINCT CAST( cor0.col2 AS SIGNED ) * col2 col1 FROM tab2 AS cor0
----
1444
676
729

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1780
SELECT DISTINCT CAST ( cor0.col2 AS INTEGER ) * col2 col1 FROM tab2 AS cor0
----
1444
676
729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( cor0.col2 ) + + col0 col2 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT + 95 * + col1 AS col0 FROM tab1
----
1235
2470
950

onlyif mysql # use DIV operator for integer division
query I rowsort label-1783
SELECT ALL col2 * col1 + col2 + col0 DIV + col2 AS col2 FROM tab0 AS cor0
----
133
2871
7545

skipif mysql # not compatible
query I rowsort label-1783
SELECT ALL col2 * col1 + col2 + col0 / + col2 AS col2 FROM tab0 AS cor0
----
133
2871
7545

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 86 col1 FROM tab1 cor0
----
-86
-86
-86

query I rowsort
SELECT DISTINCT - 77 FROM tab0 AS cor0
----
-77

query I rowsort
SELECT ALL + + ( 48 ) AS col2 FROM tab2 AS cor0
----
48
48
48

query I rowsort
SELECT ALL - - ( - col1 ) * col1 + - 75 AS col2 FROM tab1 AS cor0
----
-175
-244
-751

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + 39 col0 FROM tab0 AS cor0
----
-43
38
6

query I rowsort
SELECT DISTINCT + col2 + col1 * 1 AS col0 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL - ( col0 ) - ( - 86 ) AS col0 FROM tab2 AS cor0
----
7
79
8

query I rowsort
SELECT - - tab0.col2 * cor0.col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to caa3e6469432624a16bd3084f5c6de58

query I rowsort
SELECT + ( col1 + 15 ) AS col1 FROM tab0
----
101
106
112

query I rowsort
SELECT DISTINCT 21 AS col0 FROM tab1
----
21

query I rowsort
SELECT DISTINCT - col0 * + col2 * col2 FROM tab2 AS cor0
----
-114076
-5103
-52728

onlyif mysql # use DIV operator for integer division
query I rowsort label-1795
SELECT ALL + col2 DIV col0 FROM tab2 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-1795
SELECT ALL + col2 / col0 FROM tab2 AS cor0
----
0
0
3

query I rowsort
SELECT ALL - col0 + - col1 FROM tab0 cor0
----
-110
-132
-180

query I rowsort
SELECT ALL + col1 * - col1 - cor0.col0 AS col1 FROM tab2 AS cor0
----
-3559
-368
-968

query I rowsort
SELECT - col2 * ( + col1 ) - - col1 AS col1 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT DISTINCT + cor0.col2 * - col0 * - 35 FROM tab0 AS cor0
----
1225
255430
27720

query I rowsort
SELECT DISTINCT - col0 + - cor0.col2 AS col1 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT - col2 + - 73 * 15 * + col1 AS col0 FROM tab0 AS cor0
----
-106216
-94203
-99727

query I rowsort
SELECT ALL - col1 * 74 * col1 AS col0 FROM tab2 AS cor0
----
-21386
-257594
-71114

query I rowsort
SELECT ALL col2 * - 34 + + col2 FROM tab0 cor0
----
-1089
-2706
-33

query I rowsort
SELECT - - col0 + 33 - col0 AS col2 FROM tab0 AS cor0
----
33
33
33

skipif mysql # not compatible
query I rowsort
SELECT ALL col2 * + CAST ( - 55 AS REAL ) * + col2 FROM tab2 AS cor0
----
-37180
-40095
-79420

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - 68 + + 58 + cor0.col1 col2 FROM tab2 AS cor0
----
1231
2197
4129

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1807
SELECT ALL + col2 * - CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1807
SELECT ALL + col2 * - CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col0 * ( col0 * - col1 ) - - 56 * col2 FROM tab2 AS cor0
----
-103969
-357500
-7

onlyif mysql # use DIV operator for integer division
query I rowsort label-1809
SELECT ALL - col0 DIV + 20 FROM tab0 AS cor0
----
-1
-1
-4

skipif mysql # not compatible
query I rowsort label-1809
SELECT ALL - col0 / + 20 FROM tab0 AS cor0
----
-1
-1
-4

query I rowsort
SELECT DISTINCT + - cor0.col1 + + 80 * 60 AS col0 FROM tab2 AS cor0
----
4741
4769
4783

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + ( ( + col1 ) ) * col1 col1 FROM tab0 AS cor0
----
7429
8363
9410

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1, tab1 AS cor0, tab1 cor1
----
972 values hashing to a8481bfbfcb330825976c5896e54bc19

query I rowsort
SELECT DISTINCT - 81 FROM tab1
----
-81

skipif mysql # not compatible
query I rowsort
SELECT CAST ( col2 AS REAL ) * col0 + + col0 * - col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1815
SELECT + col1 DIV + 13 AS col1 FROM tab0
----
6
7
7

skipif mysql # not compatible
query I rowsort label-1815
SELECT + col1 / + 13 AS col1 FROM tab0
----
6
7
7

query I rowsort
SELECT tab1.col0 * tab1.col0 AS col2 FROM tab1
----
4096
6400
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1817
SELECT ALL + col1 / CAST( NULL AS SIGNED ) + - col0 + + col1 * + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1817
SELECT ALL + col1 / CAST ( NULL AS INTEGER ) + - col0 + + col1 * + col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1818
SELECT CAST( col1 AS SIGNED ) * - col2 FROM tab0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-1818
SELECT CAST ( col1 AS INTEGER ) * - col2 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT + ( + col0 + - col1 ) AS col2 FROM tab1
----
-23
54
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-1820
SELECT ALL - CAST( 33 + col2 AS SIGNED ) DIV col0 FROM tab1
----
-1
-1
-29

skipif mysql # not compatible
query I rowsort label-1820
SELECT ALL - CAST ( 33 + col2 AS INTEGER ) / col0 FROM tab1
----
-1
-1
-29

query I rowsort
SELECT ALL + 85 * 51 * + col1 FROM tab1
----
112710
43350
56355

query I rowsort
SELECT ALL + 96 FROM tab0
----
96
96
96

query I rowsort
SELECT - 96 + - cor0.col1 + cor0.col2 * col0 AS col0 FROM tab1 AS cor0
----
3542
40
7571

query I rowsort
SELECT DISTINCT cor0.col2 * col2 AS col1 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT - ( ( col2 ) ) * - cor0.col2 AS col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT + 88 * - col2 + col2 + - col0 * col2 AS col2 FROM tab2 AS cor0
----
-2538
-4290
-6308

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 33 * - tab1.col2 col2 FROM tab1
----
-1782
-1881
-3168

query I rowsort
SELECT DISTINCT - 76 FROM tab0
----
-76

query I rowsort
SELECT ALL ( + col2 ) * + col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT DISTINCT col1 * - 49 FROM tab1
----
-1274
-490
-637

query I rowsort
SELECT DISTINCT - col2 * + 28 AS col2 FROM tab2
----
-1064
-728
-756

query I rowsort
SELECT ALL + ( - col0 ) FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT ( col2 ) AS col2 FROM tab1
----
54
57
96

query I rowsort
SELECT tab0.col2 * + col2 + - 78 FROM tab0
----
-77
1011
6646

onlyif mysql # use DIV operator for integer division
query I rowsort label-1835
SELECT DISTINCT col0 DIV - tab2.col1 FROM tab2
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-1835
SELECT DISTINCT col0 / - tab2.col1 FROM tab2
----
-1
-4
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col1 col1 FROM tab1
----
109
67
80

query I rowsort
SELECT DISTINCT - col0 * col0 AS col2 FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT - cor0.col0 AS col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT ALL - 67 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 95c9eba643f6489e03be4d5e83f1ef99

query I rowsort
SELECT + cor0.col0 * - ( - 38 ) AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to f9ce05faf477b6ca05ac63c2b1b0530b

query I rowsort
SELECT ALL - col0 * - col1 + + col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT DISTINCT + 72 FROM tab1
----
72

query I rowsort
SELECT - cor0.col1 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

query I rowsort
SELECT ALL + - 97 + - col2 * - col1 + col2 FROM tab2 AS cor0
----
1463
587
767

query I rowsort
SELECT ALL - + col0 + col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + - col1 * ( 33 ) AS col0 FROM tab0 AS cor0
----
-2838
-3003
-3201

skipif mysql # not compatible
query I rowsort
SELECT + col0 * CAST ( cor0.col2 AS REAL ) * col2 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT DISTINCT + - col1 + 80 * 86 FROM tab1 AS cor0
----
6854
6867
6870

query I rowsort
SELECT DISTINCT + col0 + + 19 * cor0.col2 FROM tab0 AS cor0
----
1647
54
651

query I rowsort
SELECT DISTINCT + col2 * 94 FROM tab1 AS cor0
----
5076
5358
9024

query I rowsort
SELECT ALL col1 * + col0 * col0 AS col1 FROM tab2
----
106097
1519
358956

query I rowsort
SELECT + col2 + ( + col1 ) FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT + + col1 * col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + 51 col0 FROM tab0 AS cor0
----
140
75
86

query I rowsort
SELECT ALL + + col2 + + col2 AS col0 FROM tab0 cor0
----
164
2
66

query I rowsort
SELECT - col2 * - col1 AS col2 FROM tab0 AS cor0
----
2838
7462
97

query IIIIIIIII rowsort
SELECT * FROM tab1, tab2, tab1 AS cor0 WHERE ( NULL ) IN ( - cor0.col1 )
----

query I rowsort
SELECT DISTINCT tab1.col1 * - col1 FROM tab1
----
-100
-169
-676

query I rowsort
SELECT tab2.col0 - tab2.col2 AS col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to a6800e768401748ae504acf0ffb720a7

query I rowsort
SELECT + - col2 AS col2 FROM tab2 cor0
----
-26
-27
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col0 col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT + cor0.col0 + - col0 * col0 FROM tab0 AS cor0
----
-1190
-552
-7832

onlyif mysql # use DIV operator for integer division
query I rowsort label-1863
SELECT cor0.col2 + cor0.col2 DIV + col0 FROM tab0 AS cor0
----
1
34
82

skipif mysql # not compatible
query I rowsort label-1863
SELECT cor0.col2 + cor0.col2 / + col0 FROM tab0 AS cor0
----
1
34
82

query I rowsort
SELECT - col2 * col2 - cor0.col0 FROM tab2 AS cor0
----
-1523
-736
-754

query I rowsort
SELECT + col2 + col2 AS col2 FROM tab1
----
108
114
192

query I rowsort
SELECT ALL - col2 + + col1 AS col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT DISTINCT col2 + + col1 AS col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL - - col0 + col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT DISTINCT - - col1 * col2 * + cor0.col0 + cor0.col0 AS col0 FROM tab0 AS cor0
----
3430
664207
68136

query I rowsort
SELECT ALL + cor0.col2 * + col1 + + col0 * cor0.col1 FROM tab0 cor0
----
15561
3492
4902

query I rowsort
SELECT - + 78 AS col1 FROM tab2 AS cor0
----
-78
-78
-78

query I rowsort
SELECT 55 FROM tab1 AS cor0
----
55
55
55

query I rowsort
SELECT ALL + col0 * cor0.col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + cor0.col0 * col1 + - col2 * col2 + col0 * col2 AS col2 FROM tab1 AS cor0
----
-2676
-496
1039

query I rowsort
SELECT - ( + col1 ) * col1 AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT - 10 + + col0 AS col2 FROM tab2 cor0
----
-3
68
69

query I rowsort
SELECT - - col0 + col0 * col2 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT - col1 * - col2 AS col1 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT ALL 8 AS col0 FROM tab2
----
8
8
8

query I rowsort
SELECT + col2 + + cor0.col2 FROM tab2 cor0
----
52
54
76

query I rowsort
SELECT + col1 - col0 * - col1 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT - - ( col1 ) + col2 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT - - col2 * col2 - 74 AS col1 FROM tab2 cor0
----
1370
602
655

query I rowsort
SELECT DISTINCT + tab0.col1 * + col2 * col0 + col1 AS col2 FROM tab0
----
3492
664209
68198

query I rowsort
SELECT + + 71 FROM tab1 AS cor0
----
71
71
71

query I rowsort
SELECT - col0 * + col0 * col0 FROM tab2 AS cor0
----
-343
-474552
-493039

query I rowsort
SELECT DISTINCT + - col1 * cor0.col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676

onlyif mysql # use DIV operator for integer division
query I rowsort label-1888
SELECT DISTINCT col1 * col0 DIV col1 AS col0 FROM tab0 cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-1888
SELECT DISTINCT col1 * col0 / col1 AS col0 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT - cor0.col2 * cor0.col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1, tab1 AS cor0, tab0 AS cor1
----
972 values hashing to 909b7ebab62aff8f69dc42ccbb5c2eae

query I rowsort
SELECT ALL + 0 * col2 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1892
SELECT ALL - ( col0 ) * - CAST( + col0 AS SIGNED ) + col2 FROM tab2 AS cor0
----
6110
6279
76

skipif mysql # not compatible
query I rowsort label-1892
SELECT ALL - ( col0 ) * - CAST ( + col0 AS INTEGER ) + col2 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT DISTINCT - 27 FROM tab1 cor0
----
-27

query I rowsort
SELECT - ( col0 ) + + cor0.col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col0 + + col1 * cor0.col1 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT - 60 * - col1 AS col2 FROM tab1 AS cor0
----
1560
600
780

query I rowsort
SELECT ALL 19 FROM tab0 AS cor0
----
19
19
19

query I rowsort
SELECT ALL + col2 * col2 + cor0.col2 * + col1 FROM tab1 AS cor0
----
10464
3819
4320

query I rowsort
SELECT DISTINCT - col0 * 72 AS col1 FROM tab1 AS cor0
----
-216
-4608
-5760

query I rowsort
SELECT col0 * - col1 AS col1 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT ALL - 95 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to cf302b83f15b730fe35c19bdd9363c13

query I rowsort
SELECT ALL + - col2 + + 79 * + cor0.col1 * - col2 FROM tab1 AS cor0
----
-110970
-45087
-98688

query I rowsort
SELECT ALL col2 + - col0 * ( cor0.col1 * cor0.col1 ) AS col1 FROM tab2 AS cor0
----
-22793
-271492
-6700

onlyif mysql # use DIV operator for integer division
query I rowsort label-1904
SELECT ALL - cor0.col2 DIV col1 + - col1 FROM tab2 AS cor0
----
-19
-31
-59

skipif mysql # not compatible
query I rowsort label-1904
SELECT ALL - cor0.col2 / col1 + - col1 FROM tab2 AS cor0
----
-19
-31
-59

query I rowsort
SELECT ALL tab1.col2 * col0 + - 55 AS col1 FROM tab1
----
107
3593
7625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + col0 col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT ALL - - 11 AS col2 FROM tab1 AS cor0
----
11
11
11

query I rowsort
SELECT + + col2 * + ( col0 ) AS col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT + - 10 * - ( col0 ) FROM tab0 AS cor0
----
240
350
890

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 AS cor2, tab2 AS cor3
----
3645 values hashing to 61c64d7c972af4105004f57e1913df08

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab2 cor1, tab0 AS cor2, tab1 AS cor3
----
3645 values hashing to 8bda8b9cf32f196464e0ee0b41a5162d

query I rowsort
SELECT DISTINCT - 42 AS col2 FROM tab1, tab2 AS cor0
----
-42

onlyif mysql # use DIV operator for integer division
query I rowsort label-1913
SELECT 97 DIV 72 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1913
SELECT 97 / 72 FROM tab0
----
1
1
1

query I rowsort
SELECT ALL 75 AS col0 FROM tab2
----
75
75
75

query I rowsort
SELECT col2 * 59 FROM tab0
----
1947
4838
59

query I rowsort
SELECT + 27 FROM tab2, tab2 AS cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

onlyif mysql # use DIV operator for integer division
query I rowsort label-1917
SELECT - 99 DIV + col1 AS col1 FROM tab1
----
-3
-7
-9

skipif mysql # not compatible
query I rowsort label-1917
SELECT - 99 / + col1 AS col1 FROM tab1
----
-3
-7
-9

query I rowsort
SELECT DISTINCT - col1 * 33 + col1 * - col2 * + col1 - col1 * - 43 * + col1 FROM tab2
----
14353
57230
884

query I rowsort
SELECT 32 + col2 FROM tab2
----
58
59
70

query I rowsort
SELECT DISTINCT 58 - - col0 AS col1 FROM tab0
----
147
82
93

query I rowsort
SELECT DISTINCT col0 * 2 FROM tab1
----
128
160
6

query I rowsort
SELECT + ( col0 ) + col2 AS col2 FROM tab2 AS cor0
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-1923
SELECT ALL - + cor0.col0 DIV - col2 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-1923
SELECT ALL - + cor0.col0 / - col2 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT DISTINCT 93 AS col1 FROM tab1 AS cor0
----
93

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab0, tab0 cor1
----
972 values hashing to 3a31dab513390ca6bd05c71a3d9c50f0

query I rowsort
SELECT - 86 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 9d2e1e8eda15b3b83dd7136dfc4f19af

query I rowsort
SELECT ALL - col1 + col0 + + 1 AS col2 FROM tab0
----
-1
-61
-61

onlyif mysql # use DIV operator for integer division
query I rowsort label-1928
SELECT ALL - col1 DIV - tab0.col1 + + col1 FROM tab0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-1928
SELECT ALL - col1 / - tab0.col1 + + col1 FROM tab0
----
87
92
98

query I rowsort
SELECT 82 AS col1 FROM tab0
----
82
82
82

query I rowsort
SELECT DISTINCT - col2 * + col2 AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + cor0.col0 col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + 37 + col0 FROM tab0 AS cor0
----
126
61
72

query I rowsort
SELECT ALL - ( - col0 ) * + 84 FROM tab1 cor0
----
252
5376
6720

query I rowsort
SELECT + col0 + 72 AS col1 FROM tab2
----
150
151
79

query I rowsort
SELECT + col1 + - tab2.col1 * + col1 AS col0 FROM tab2
----
-272
-3422
-930

query I rowsort
SELECT tab2.col1 + col1 * - col0 FROM tab2
----
-1326
-186
-4543

query I rowsort
SELECT DISTINCT - - cor0.col1 + + col2 + col0 AS col0 FROM tab2 AS cor0
----
134
163
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-1938
SELECT ALL - cor0.col1 DIV col1 - ( col0 ) * ( ( + cor0.col0 ) ) * + 11 AS col0 FROM tab2 AS cor0
----
-540
-66925
-68652

skipif mysql # not compatible
query I rowsort label-1938
SELECT ALL - cor0.col1 / col1 - ( col0 ) * ( ( + cor0.col0 ) ) * + 11 AS col0 FROM tab2 AS cor0
----
-540
-66925
-68652

query I rowsort
SELECT ALL + col2 + + col2 * col0 * + col1 FROM tab1 AS cor0
----
36537
4266
99936

query I rowsort
SELECT ALL + col2 * + ( - col0 ) - - col0 AS col0 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT ALL + 33 * + tab1.col0 * + tab1.col1 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 0acb94694e5248749928e1bfe8e3d8da

query I rowsort
SELECT + col1 + 39 * cor0.col0 FROM tab2 AS cor0
----
304
3098
3101

onlyif mysql # use DIV operator for integer division
query I rowsort label-1943
SELECT + - col0 DIV col2 FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-1943
SELECT + - col0 / col2 FROM tab0 AS cor0
----
-1
-35
0

query I rowsort
SELECT ALL - 22 * + col1 * + col0 + + col1 + 60 AS col1 FROM tab2 AS cor0
----
-101125
-29469
-4683

query I rowsort
SELECT DISTINCT + ( col2 ) + col0 AS col2 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT ALL + col0 + + col2 AS col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT + ( col1 ) * + cor0.col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT ALL - col0 * - col0 + col2 FROM tab2 AS cor0
----
6110
6279
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-1949
SELECT ALL + col0 + - col0 DIV col0 AS col1 FROM tab0 AS cor0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-1949
SELECT ALL + col0 + - col0 / col0 AS col1 FROM tab0 AS cor0
----
23
34
88

query I rowsort
SELECT ALL - 9 AS col0 FROM tab2 cor0
----
-9
-9
-9

query I rowsort
SELECT + - col2 * col2 AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 54 col0 FROM tab2 AS cor0
----
54
54
54

query I rowsort
SELECT ALL 50 * col1 + + col0 * + 47 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
5452
6530
8822

query I rowsort
SELECT DISTINCT col0 + - col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - + ( 96 ) * - cor0.col1 * ( col1 ) + col0 AS col2 FROM tab0 AS cor0
----
710040
795065
903299

query I rowsort
SELECT + cor0.col0 AS col1 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT ALL ( - 8 ) + + cor0.col2 - + 57 FROM tab1 AS cor0
----
-11
-8
31

query I rowsort
SELECT ALL + col1 * - cor0.col2 + col1 - - col2 * - col1 AS col0 FROM tab1 AS cor0
----
-1130
-2483
-2782

query I rowsort
SELECT + 23 + - 67 * col2 AS col2 FROM tab2 AS cor0
----
-1719
-1786
-2523

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 68 + cor0.col0 + - col2 * + 9 col2 FROM tab2 AS cor0
----
-168
-195
-88

query I rowsort
SELECT ALL - + 88 FROM tab0 cor0
----
-88
-88
-88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1962
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * col0 * - cor0.col1 + 76 + + 75 * col2 * + col1 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1962
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * col0 * - cor0.col1 + 76 + + 75 * col2 * + col1 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col1 + - col0 * - col0 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT ALL + 74 FROM tab0 cor0
----
74
74
74

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0, tab1 cor1, tab0 cor2
----
972 values hashing to e84152c0bf436177d3b3d80e42832d4f

query I rowsort
SELECT ALL + col2 * - 36 + + 9 FROM tab1 cor0
----
-1935
-2043
-3447

query I rowsort
SELECT DISTINCT col1 - + 86 FROM tab2 AS cor0
----
-27
-55
-69

query I rowsort
SELECT DISTINCT + + col1 - 87 AS col2 FROM tab1 AS cor0
----
-61
-74
-77

query I rowsort
SELECT + + col2 * - ( 65 * + col0 ) AS col0 FROM tab2 AS cor0
----
-12285
-131820
-195130

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col0 col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT - col2 + - 16 FROM tab1 AS cor0
----
-112
-70
-73

query I rowsort
SELECT DISTINCT 16 AS col1 FROM tab0, tab1 AS cor0
----
16

onlyif mysql # use DIV operator for integer division
query I rowsort label-1973
SELECT col0 DIV 75 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1973
SELECT col0 / 75 FROM tab2
----
0
1
1

query I rowsort
SELECT DISTINCT col0 + col2 AS col1 FROM tab0
----
171
36
57

query I rowsort
SELECT col1 + 98 * - col1 FROM tab2
----
-1649
-3007
-5723

query I rowsort
SELECT ALL + col1 + + 86 FROM tab2
----
103
117
145

query I rowsort
SELECT - 88 + cor0.col0 AS col0 FROM tab2 AS cor0
----
-10
-81
-9

query I rowsort
SELECT + col2 - + 86 * col0 FROM tab1 AS cor0
----
-204
-5447
-6784

query I rowsort
SELECT ALL col2 * + ( col1 ) AS col2 FROM tab2
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + ( - 7 ) + col1 * + 44 col0 FROM tab1
----
-8
1123
12

query I rowsort
SELECT ALL - col1 + col1 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT col2 + col2 AS col0 FROM tab1 AS cor0
----
108
114
192

onlyif mysql # use DIV operator for integer division
query I rowsort label-1983
SELECT DISTINCT - ( col1 ) DIV col0 + + 95 * 65 AS col0 FROM tab2
----
6171
6175

skipif mysql # not compatible
query I rowsort label-1983
SELECT DISTINCT - ( col1 ) / col0 + + 95 * 65 AS col0 FROM tab2
----
6171
6175

onlyif mysql # use DIV operator for integer division
query I rowsort label-1984
SELECT ALL - 5 * cor0.col2 + 52 DIV col2 AS col1 FROM tab0 AS cor0
----
-164
-410
47

skipif mysql # not compatible
query I rowsort label-1984
SELECT ALL - 5 * cor0.col2 + 52 / col2 AS col1 FROM tab0 AS cor0
----
-164
-410
47

query I rowsort
SELECT + + 93 AS col2 FROM tab2 AS cor0
----
93
93
93

query I rowsort
SELECT - 94 * - col0 FROM tab2 AS cor0
----
658
7332
7426

query I rowsort
SELECT + - col0 * - cor0.col1 * - col2 + + col2 FROM tab0 cor0
----
-3394
-664036
-68079

onlyif mysql # use DIV operator for integer division
query I rowsort label-1988
SELECT - 38 DIV - col0 + + col1 AS col0 FROM tab0
----
87
91
98

skipif mysql # not compatible
query I rowsort label-1988
SELECT - 38 / - col0 + + col1 AS col0 FROM tab0
----
87
91
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-1989
SELECT ALL col2 DIV - col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1989
SELECT ALL col2 / - col0 FROM tab0
----
-1
0
0

query I rowsort
SELECT ALL - - ( 56 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query I rowsort
SELECT ( 56 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 cor0, tab1, tab0 AS cor1
----
972 values hashing to 67c5300bc5cba0be4f54a444dc6f05b9

query I rowsort
SELECT ALL 23 * + col1 AS col0 FROM tab2 AS cor0
----
1357
391
713

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1994
SELECT DISTINCT ( + cor0.col2 ) + CAST( NULL AS SIGNED ) * + col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1994
SELECT DISTINCT ( + cor0.col2 ) + CAST ( NULL AS INTEGER ) * + col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1995
SELECT DISTINCT - col1 * col0 DIV + cor0.col2 + col1 FROM tab1 AS cor0
----
-1
25
3

skipif mysql # not compatible
query I rowsort label-1995
SELECT DISTINCT - col1 * col0 / + cor0.col2 + col1 FROM tab1 AS cor0
----
-1
25
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + col2 col0 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL 39 FROM tab2 cor0
----
39
39
39

query I rowsort
SELECT - 19 + col0 FROM tab1 AS cor0
----
-16
45
61

query I rowsort
SELECT DISTINCT + col0 * col1 * - col0 FROM tab0 AS cor0
----
-118825
-49536
-720811

query I rowsort
SELECT ALL + cor0.col2 + + col2 FROM tab0 AS cor0
----
164
2
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-2001
SELECT + 38 DIV cor0.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-2001
SELECT + 38 / cor0.col1 col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ( - 74 ) AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 5a477330c946251f814fbbfd08e77c28

query I rowsort
SELECT DISTINCT tab0.col1 AS col0 FROM tab0, tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ( col0 * ( + 56 ) ) AS col1 FROM tab0
----
1344
1960
4984

query I rowsort
SELECT ALL + + col1 AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL + tab0.col1 * tab0.col0 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT ALL + col0 * + col2 + + 68 AS col0 FROM tab0
----
103
7366
860

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * - 31 col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 9b2182fe30f9049d8dcd205490f55de4

onlyif mysql # use DIV operator for integer division
query I rowsort label-2009
SELECT + - col2 DIV cor0.col0 AS col1 FROM tab1 AS cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-2009
SELECT + - col2 / cor0.col0 AS col1 FROM tab1 AS cor0
----
-1
-18
0

query I rowsort
SELECT DISTINCT - col0 * 37 * - col1 AS col1 FROM tab0
----
125615
299663
76368

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2011
SELECT DISTINCT CAST( NULL AS SIGNED ) col0 FROM tab1, tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2011
SELECT DISTINCT CAST ( NULL AS INTEGER ) col0 FROM tab1, tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL col0 * - 94 AS col1 FROM tab0 AS cor0
----
-2256
-3290
-8366

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col0 col2 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT - + col2 * ( - col1 * + col0 + 24 * col1 ) FROM tab0 AS cor0
----
0
1067
485030

query I rowsort
SELECT DISTINCT - ( col2 ) AS col1 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT ALL 30 FROM tab2, tab1 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query I rowsort
SELECT DISTINCT - col2 + - col0 AS col2 FROM tab1 cor0
----
-121
-176
-57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2018
SELECT CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2018
SELECT CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 37 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query I rowsort
SELECT - ( tab2.col2 ) FROM tab2
----
-26
-27
-38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2021
SELECT - CAST( + col0 AS SIGNED ) + col1 AS col1 FROM tab1 AS cor0
----
-54
-67
23

skipif mysql # not compatible
query I rowsort label-2021
SELECT - CAST ( + col0 AS INTEGER ) + col1 AS col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT col2 * + cor0.col1 AS col0 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT - 92 - col0 * col0 FROM tab0 AS cor0
----
-1317
-668
-8013

query I rowsort
SELECT + + ( col0 ) FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT + 87 FROM tab1 AS cor0
----
87
87
87

query I rowsort
SELECT - - col2 AS col1 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT 70 * col0 + col2 FROM tab2 AS cor0
----
517
5486
5568

query I rowsort
SELECT 74 + - col0 AS col0 FROM tab0 cor0
----
-15
39
50

query I rowsort
SELECT - - col2 * col0 * col0 + - col0 FROM tab0 AS cor0
----
1190
18984
649433

onlyif mysql # use DIV operator for integer division
query I rowsort label-2030
SELECT 99 DIV cor0.col0 AS col1 FROM tab0 AS cor0
----
1
2
4

skipif mysql # not compatible
query I rowsort label-2030
SELECT 99 / cor0.col0 AS col1 FROM tab0 AS cor0
----
1
2
4

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 cor0, tab0, tab1 AS cor1
----
972 values hashing to 465d072d2d9eababbfc8e88b82707474

query I rowsort
SELECT - tab2.col2 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT ALL + tab0.col0 * col2 AS col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT - col2 * col0 + + 27 AS col2 FROM tab0
----
-7271
-765
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 28 * tab1.col2 col1 FROM tab1
----
1538
1606
2701

query I rowsort
SELECT ALL col0 * col0 - - col2 * col0 FROM tab0
----
1260
1368
15219

query I rowsort
SELECT ALL - col1 + + col2 - col0 * - col2 FROM tab0
----
-61
7289
739

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab2 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to a5677c50b23f70287df35c2388a1c9bf

query I rowsort
SELECT + 75 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query I rowsort
SELECT DISTINCT - col0 * ( + tab0.col0 ) FROM tab0
----
-1225
-576
-7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-2041
SELECT col1 + - col2 DIV ( col0 ) FROM tab1
----
10
12
8

skipif mysql # not compatible
query I rowsort label-2041
SELECT col1 + - col2 / ( col0 ) FROM tab1
----
10
12
8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2042
SELECT + col1 + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2042
SELECT + col1 + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 + + col1 col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT DISTINCT - - 50 FROM tab0 cor0
----
50

query I rowsort
SELECT + col2 + col2 FROM tab1 cor0
----
108
114
192

query I rowsort
SELECT ALL - - 90 FROM tab2 AS cor0
----
90
90
90

query I rowsort
SELECT - col1 + col1 * col2 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT ALL + 28 + 76 * col0 FROM tab1 AS cor0
----
256
4892
6108

query I rowsort
SELECT DISTINCT col2 * col1 * - col0 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT col2 * 96 AS col0 FROM tab1 cor0
----
5184
5472
9216

query I rowsort
SELECT ALL - col1 + + 54 * - col2 AS col2 FROM tab1 AS cor0
----
-2942
-3088
-5197

query I rowsort
SELECT + ( col1 * + tab0.col0 ) + + 49 FROM tab0
----
2113
3444
8148

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + 93 ) * col0 col0 FROM tab2 cor0
----
651
7254
7347

query I rowsort
SELECT - col2 + col0 + col1 * ( 75 ) FROM tab2 AS cor0
----
1316
2305
4477

onlyif mysql # use DIV operator for integer division
query I rowsort label-2055
SELECT DISTINCT col0 DIV col0 AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2055
SELECT DISTINCT col0 / col0 AS col0 FROM tab1 AS cor0
----
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2056
SELECT DISTINCT + - 85 DIV + col0 + - col0 FROM tab1 AS cor0
----
-31
-65
-81

skipif mysql # not compatible
query I rowsort label-2056
SELECT DISTINCT + - 85 / + col0 + - col0 FROM tab1 AS cor0
----
-31
-65
-81

onlyif mysql # use DIV operator for integer division
query I rowsort label-2057
SELECT DISTINCT + col1 + + cor0.col0 DIV + col0 FROM tab2 cor0
----
18
32
60

skipif mysql # not compatible
query I rowsort label-2057
SELECT DISTINCT + col1 + + cor0.col0 / + col0 FROM tab2 cor0
----
18
32
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-2058
SELECT - + 14 DIV + 21 + + col1 * - cor0.col2 * + 43 AS col0 FROM tab1 AS cor0
----
-24510
-53664
-60372

skipif mysql # not compatible
query I rowsort label-2058
SELECT - + 14 / + 21 + + col1 * - cor0.col2 * + 43 AS col0 FROM tab1 AS cor0
----
-24510
-53664
-60372

query I rowsort
SELECT cor0.col0 * - col1 + + col1 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT ALL + ( col1 ) + col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT + ( cor0.col2 ) + col0 FROM tab0 AS cor0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col2 * - col2 + - col1 col1 FROM tab0 AS cor0
----
-96
1003
6633

query I rowsort
SELECT DISTINCT - + col2 * 36 AS col1 FROM tab1 AS cor0
----
-1944
-2052
-3456

query I rowsort
SELECT - + ( + 48 ) * cor0.col1 + - 82 FROM tab0 AS cor0
----
-4210
-4450
-4738

query I rowsort
SELECT ALL - 91 FROM tab1 AS cor0
----
-91
-91
-91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2066
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - cor0.col2 * - col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2066
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - cor0.col2 * - col0 FROM tab2 cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2067
SELECT ALL CAST( NULL AS SIGNED ) * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2067
SELECT ALL CAST ( NULL AS INTEGER ) * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2068
SELECT - - CAST( - col1 AS SIGNED ) - col1 * col2 AS col1 FROM tab1 cor0
----
-1261
-1430
-580

skipif mysql # not compatible
query I rowsort label-2068
SELECT - - CAST ( - col1 AS INTEGER ) - col1 * col2 AS col1 FROM tab1 cor0
----
-1261
-1430
-580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + tab2.col2 col2 FROM tab2
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-2070
SELECT ALL col0 + col1 - + 27 DIV + col0 FROM tab2 cor0
----
137
35
96

skipif mysql # not compatible
query I rowsort label-2070
SELECT ALL col0 + col1 - + 27 / + col0 FROM tab2 cor0
----
137
35
96

query I rowsort
SELECT ALL + + col1 * - col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT DISTINCT 98 + col1 AS col0 FROM tab0 AS cor0
----
184
189
195

query I rowsort
SELECT ALL + col2 - col1 FROM tab0 AS cor0
----
-53
-9
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2074
SELECT ALL col2 DIV - col1 - 74 AS col1 FROM tab1 cor0
----
-76
-79
-81

skipif mysql # not compatible
query I rowsort label-2074
SELECT ALL col2 / - col1 - 74 AS col1 FROM tab1 cor0
----
-76
-79
-81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2075
SELECT - ( col2 ) * - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2075
SELECT - ( col2 ) * - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col0 * col2 + - 26 AS col0 FROM tab0 AS cor0
----
7272
766
9

query I rowsort
SELECT ALL + col0 - - col1 AS col1 FROM tab0 cor0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-2078
SELECT + col2 DIV - col2 col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2078
SELECT + col2 / - col2 col0 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - + cor0.col1 * + 80 AS col2 FROM tab1 AS cor0
----
-1040
-2080
-800

query I rowsort
SELECT + 71 - col0 FROM tab2
----
-7
-8
64

query I rowsort
SELECT DISTINCT - col1 * 73 FROM tab2 AS cor0
----
-1241
-2263
-4307

query I rowsort
SELECT ALL + + col2 * 21 - col0 * + col2 FROM tab2 AS cor0
----
-1482
-2204
378

query I rowsort
SELECT ALL col1 + ( 16 ) * - col1 FROM tab0 AS cor0
----
-1290
-1365
-1455

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - col0 * - col0 col2 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT - col2 * + col2 AS col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT + - col2 * col2 AS col1 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT - - col1 + ( - col1 ) AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - - col1 * - col0 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT col2 + - col0 * col1 AS col0 FROM tab0
----
-2031
-3394
-8017

query I rowsort
SELECT + col1 + - col0 AS col1 FROM tab0
----
2
62
62

query I rowsort
SELECT ALL + cor0.col1 FROM tab2, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

onlyif mysql # use DIV operator for integer division
query I rowsort label-2092
SELECT DISTINCT + col0 * CAST( + ( col0 ) AS SIGNED ) - - 64 DIV col1 FROM tab0 AS cor0
----
1225
576
7921

skipif mysql # not compatible
query I rowsort label-2092
SELECT DISTINCT + col0 * CAST ( + ( col0 ) AS INTEGER ) - - 64 / col1 FROM tab0 AS cor0
----
1225
576
7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-2093
SELECT ALL - col0 + + 42 DIV - col0 FROM tab0 AS cor0
----
-25
-36
-89

skipif mysql # not compatible
query I rowsort label-2093
SELECT ALL - col0 + + 42 / - col0 FROM tab0 AS cor0
----
-25
-36
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-2094
SELECT + col2 + + 52 DIV + col0 AS col2 FROM tab0 AS cor0
----
2
35
82

skipif mysql # not compatible
query I rowsort label-2094
SELECT + col2 + + 52 / + col0 AS col2 FROM tab0 AS cor0
----
2
35
82

query I rowsort
SELECT ALL col2 + - col0 * 78 AS col0 FROM tab2 AS cor0
----
-519
-6058
-6124

query I rowsort
SELECT DISTINCT + col2 + col1 * 54 AS col2 FROM tab2 AS cor0
----
1701
3212
956

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2097
SELECT + col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2097
SELECT + col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * ( + col1 ) + col1 FROM tab1
----
110
182
702

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 cor0, tab2, tab0 AS cor1
----
972 values hashing to 9a5ab925af18e11f7748f3b2e722ff3d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col1 + - cor0.col2 col0 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT ALL + + col2 + cor0.col1 * - 31 AS col0 FROM tab2 cor0
----
-1803
-489
-934

query I rowsort
SELECT DISTINCT - - col1 * - col0 - + col2 AS col1 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT 31 FROM tab1 AS cor0
----
31
31
31

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2104
SELECT + col2 + col1 * CAST( + ( col2 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
1344
1458
627

skipif mysql # not compatible
query I rowsort label-2104
SELECT + col2 + col1 * CAST ( + ( col2 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT ALL 65 + + 29 FROM tab2
----
94
94
94

query I rowsort
SELECT - 56 FROM tab0, tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
81 values hashing to 34348c65780193c8d601ab14b29af6e7

query I rowsort
SELECT ALL + 51 FROM tab0, tab2 AS cor0 CROSS JOIN tab2, tab1 cor1
----
81 values hashing to c9771396949659773ab2fa2a1ac228de

query I rowsort
SELECT ALL tab1.col2 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col2 col0 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT ALL 33 AS col2 FROM tab0
----
33
33
33

query I rowsort
SELECT ALL 67 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to eea8a0738728ea55e4e7ba1506c9905a

query I rowsort
SELECT DISTINCT + 8 FROM tab1
----
8

query I rowsort
SELECT tab0.col1 * 65 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to edfae966106cfaf85979f53f0918df72

query I rowsort
SELECT ALL 43 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) + col1 * ( col2 ) col1 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT DISTINCT - + col0 + + col2 * col0 AS col1 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT col0 + + col0 * ( col0 ) + - col0 * col0 AS col0 FROM tab0 AS cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * - col1 col2 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT 97 + col0 FROM tab1
----
100
161
177

query I rowsort
SELECT ALL 11 AS col1 FROM tab0 AS cor0
----
11
11
11

query I rowsort
SELECT ALL + cor0.col1 * + col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL + 69 * ( + col2 ) * - col2 AS col0 FROM tab2
----
-46644
-50301
-99636

query I rowsort
SELECT ALL - 6 FROM tab0
----
-6
-6
-6

query I rowsort
SELECT 57 + - 65 * col0 AS col2 FROM tab2 AS cor0
----
-398
-5013
-5078

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( ( cor0.col1 ) ) + - col0 col1 FROM tab1 AS cor0
----
-54
-67
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * + col0 col0 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL + col0 + + 84 AS col0 FROM tab1 AS cor0
----
148
164
87

query I rowsort
SELECT DISTINCT + - col2 * 80 AS col1 FROM tab2 AS cor0
----
-2080
-2160
-3040

query I rowsort
SELECT - 14 * - col1 FROM tab1 AS cor0
----
140
182
364

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab0 AS cor1, tab1 cor2
----
972 values hashing to 0210050fb1701e2797a9b17e1ebac91e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 73 col0 FROM tab0 AS cor0
----
-73
-73
-73

query IIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
243 values hashing to 021da207cdc2a046fb0a79bf7cfc38ae

query I rowsort
SELECT DISTINCT - - col2 * + col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT ALL - - cor0.col0 + + col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT + col2 * + tab2.col1 FROM tab2
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col0 col0 FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT - col2 * + col2 + - col1 FROM tab0 AS cor0
----
-1175
-6815
-98

query I rowsort
SELECT + - col2 + col2 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2139
SELECT - 24 * + col1 + col0 DIV cor0.col1 AS col1 FROM tab0 AS cor0
----
-2064
-2184
-2328

skipif mysql # not compatible
query I rowsort label-2139
SELECT - 24 * + col1 + col0 / cor0.col1 AS col1 FROM tab0 AS cor0
----
-2064
-2184
-2328

query I rowsort
SELECT - 91 * col2 AS col2 FROM tab0 AS cor0
----
-3003
-7462
-91

query I rowsort
SELECT ALL col1 + - col2 AS col1 FROM tab2
----
-21
33
4

query I rowsort
SELECT + tab0.col0 + + col0 FROM tab0
----
178
48
70

query I rowsort
SELECT - - ( col1 ) * - col0 + 85 FROM tab1 AS cor0
----
-555
-955
7

query I rowsort
SELECT - - col1 * + 51 AS col1 FROM tab2 cor0
----
1581
3009
867

onlyif mysql # use DIV operator for integer division
query I rowsort label-2145
SELECT + col2 DIV col1 FROM tab1 cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-2145
SELECT + col2 / col1 FROM tab1 cor0
----
2
5
7

query I rowsort
SELECT DISTINCT 33 AS col0 FROM tab2, tab0 AS cor0
----
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col1 col2 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT ALL cor0.col2 AS col1 FROM tab1, tab2, tab1 cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT ALL + 10 FROM tab0, tab1 AS cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query I rowsort
SELECT DISTINCT col0 * - 45 + + cor0.col1 FROM tab0 AS cor0
----
-1478
-3914
-994

query I rowsort
SELECT DISTINCT col2 * ( - col0 ) FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT - + 21 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-21

query I rowsort
SELECT - col2 * - col0 * col0 + ( 44 ) FROM tab0 AS cor0
----
1269
19052
649566

query I rowsort
SELECT ALL - + 44 + col2 AS col1 FROM tab2 AS cor0
----
-17
-18
-6

query I rowsort
SELECT DISTINCT + 24 AS col0 FROM tab2 cor0
----
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-2156
SELECT DISTINCT - + 10 DIV col1 col0 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2156
SELECT DISTINCT - + 10 / col1 col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - - 65 AS col1 FROM tab1 AS cor0
----
65
65
65

query IIIIIIIIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 cor2
----
972 values hashing to a47a9db07c7de4927c7c28efb4cd13f2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2159
SELECT + CAST( tab2.col2 AS SIGNED ) col1 FROM tab2
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2159
SELECT + CAST ( tab2.col2 AS INTEGER ) col1 FROM tab2
----
26
27
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2160
SELECT ALL + CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2160
SELECT ALL + CAST ( NULL AS REAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 6 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 8be8910507908e6353d02a545b748252

query I rowsort
SELECT DISTINCT ( - 0 ) FROM tab2
----
0

query I rowsort
SELECT ALL 18 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 903ac227935c1532300db45a8537c595

onlyif mysql # use DIV operator for integer division
query I rowsort label-2164
SELECT + + col0 + col2 DIV cor0.col1 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-2164
SELECT + + col0 + col2 / cor0.col1 FROM tab0 AS cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 + col1 * col1 col0 FROM tab2 cor0
----
3559
368
968

query I rowsort
SELECT - ( - ( col0 ) * + 10 ) FROM tab2
----
70
780
790

query I rowsort
SELECT ALL ( - col2 ) * col1 + + 58 * + 94 FROM tab2
----
3918
4615
4806

query I rowsort
SELECT DISTINCT + 25 + - col0 FROM tab2
----
-53
-54
18

query I rowsort
SELECT ALL col1 * col0 + col2 AS col2 FROM tab1
----
1136
132
697

query I rowsort
SELECT col0 + tab1.col2 AS col0 FROM tab1
----
121
176
57

query I rowsort
SELECT DISTINCT 2 FROM tab0
----
2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2172
SELECT - - col2 / CAST( NULL AS SIGNED ) - col0 * col0 / 68 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2172
SELECT - - col2 / CAST ( NULL AS INTEGER ) - col0 * col0 / 68 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2173
SELECT col0 DIV - col2 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2173
SELECT col0 / - col2 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT - col2 * cor0.col2 + 4 * col0 AS col2 FROM tab1 AS cor0
----
-2904
-2993
-8896

query I rowsort
SELECT + col2 + 51 - col0 AS col0 FROM tab2 AS cor0
----
-1
10
71

query I rowsort
SELECT ALL 15 * - col1 AS col2 FROM tab1
----
-150
-195
-390

query I rowsort
SELECT ALL + 62 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b

onlyif mysql # use DIV operator for integer division
query I rowsort label-2178
SELECT + col1 DIV 80 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2178
SELECT + col1 / 80 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + 39 * + 22 AS col0 FROM tab0, tab2 cor0
----
9 values hashing to 95112456b7976da224f46e09124f092b

query I rowsort
SELECT + - col0 * 66 * + col2 FROM tab2 AS cor0
----
-12474
-133848
-198132

query I rowsort
SELECT - col0 + 88 * + col0 FROM tab2 AS cor0
----
609
6786
6873

onlyif mysql # use DIV operator for integer division
query I rowsort label-2182
SELECT col0 DIV ( + col0 ) FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2182
SELECT col0 / ( + col0 ) FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT col2 + + ( + col0 + col2 ) FROM tab1 cor0
----
111
178
272

query I rowsort
SELECT cor0.col1 - - col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT col2 * - col1 + + 62 * - col2 * col1 FROM tab0 AS cor0
----
-178794
-470106
-6111

query I rowsort
SELECT - - col2 + col0 * - 26 AS col0 FROM tab1 cor0
----
-1607
-1984
-24

query I rowsort
SELECT col0 - cor0.col2 FROM tab0 cor0
----
-9
34
7

query I rowsort
SELECT col2 * col1 AS col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL cor0.col2 * - col1 * col0 AS col2 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT DISTINCT 10 + - col0 AS col2 FROM tab1 AS cor0
----
-54
-70
7

query I rowsort
SELECT DISTINCT - col0 * - col1 * col1 AS col0 FROM tab2
----
22831
271518
6727

query I rowsort
SELECT ALL ( 21 ) FROM tab0
----
21
21
21

query I rowsort
SELECT ALL 79 AS col0 FROM tab1 AS cor0
----
79
79
79

query I rowsort
SELECT DISTINCT + + col2 * - col2 + col0 AS col1 FROM tab1 AS cor0
----
-2913
-3185
-9136

query I rowsort
SELECT ALL - col1 * cor0.col1 + - col2 FROM tab1 AS cor0
----
-157
-265
-730

query I rowsort
SELECT - - col2 + + col1 AS col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT + 25 * - cor0.col1 FROM tab1 AS cor0
----
-250
-325
-650

onlyif mysql # use DIV operator for integer division
query I rowsort label-2198
SELECT ALL - ( col1 ) DIV - col0 AS col2 FROM tab0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-2198
SELECT ALL - ( col1 ) / - col0 AS col2 FROM tab0
----
1
2
3

query I rowsort
SELECT 87 AS col1 FROM tab2
----
87
87
87

query I rowsort
SELECT ALL - 96 * + tab1.col2 FROM tab1
----
-5184
-5472
-9216

query I rowsort
SELECT ALL 85 FROM tab1
----
85
85
85

query I rowsort
SELECT ALL 2 FROM tab0, tab2 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT col1 + + col1 * 38 FROM tab0
----
3354
3549
3783

query I rowsort
SELECT ALL 64 AS col2 FROM tab0 AS cor0
----
64
64
64

query I rowsort
SELECT 22 * col2 AS col0 FROM tab0 AS cor0
----
1804
22
726

query I rowsort
SELECT cor0.col0 * - col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT - - col0 * + col0 FROM tab2 cor0
----
49
6084
6241

query I rowsort
SELECT ALL 78 * - col0 * - col0 AS col2 FROM tab2
----
3822
474552
486798

query I rowsort
SELECT 79 AS col0 FROM tab1 AS cor0
----
79
79
79

query I rowsort
SELECT - col0 * - col1 FROM tab1 cor0
----
1040
640
78

query IIIIIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab2, tab2 AS cor1
----
243 values hashing to 5ac29bd6e3a9e69ed9c73ca7a34114f7

query I rowsort
SELECT - cor0.col1 + col0 AS col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT - cor0.col1 + + 61 AS col0 FROM tab0 AS cor0
----
-25
-30
-36

query IIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 WHERE ( NULL ) > ( NULL )
----

query I rowsort
SELECT ( col0 ) * col2 * col2 + + col0 AS col2 FROM tab0 AS cor0
----
26160
598525
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-2216
SELECT - 64 DIV + ( col2 ) FROM tab0 AS cor0
----
-1
-64
0

skipif mysql # not compatible
query I rowsort label-2216
SELECT - 64 / + ( col2 ) FROM tab0 AS cor0
----
-1
-64
0

query I rowsort
SELECT ( col2 ) + col2 AS col2 FROM tab1
----
108
114
192

query I rowsort
SELECT DISTINCT - + 62 + 81 FROM tab2 AS cor0
----
19

query I rowsort
SELECT DISTINCT - - 65 * col1 + col2 FROM tab2 cor0
----
1143
2042
3861

query I rowsort
SELECT ( - 68 ) + col1 * - 26 FROM tab1 AS cor0
----
-328
-406
-744

query I rowsort
SELECT ALL + col2 + 55 AS col0 FROM tab0 AS cor0
----
137
56
88

query I rowsort
SELECT DISTINCT - col0 + col0 * + col2 AS col2 FROM tab2 cor0
----
182
1950
2923

query I rowsort
SELECT 62 FROM tab1, tab0 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query I rowsort
SELECT ALL - ( cor0.col2 ) FROM tab2, tab2 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT + ( - col2 ) AS col0 FROM tab1 AS cor0
----
-54
-57
-96

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-2227
SELECT + col1 DIV + 82 + - cor0.col1 FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-2227
SELECT + col1 / + 82 + - cor0.col1 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT ALL + col0 * + col0 AS col1 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT - 90 AS col1 FROM tab0, tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
81 values hashing to 7414b682e5ab5dac55bc20746601d17a

query I rowsort
SELECT DISTINCT - + col1 * col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-2231
SELECT DISTINCT - + col2 * col1 + + col2 * - ( col2 ) + col2 DIV - cor0.col1 FROM tab0 AS cor0
----
-14186
-3927
-98

skipif mysql # not compatible
query I rowsort label-2231
SELECT DISTINCT - + col2 * col1 + + col2 * - ( col2 ) + col2 / - cor0.col1 FROM tab0 AS cor0
----
-14186
-3927
-98

query I rowsort
SELECT DISTINCT - - ( + col0 ) * col1 - - ( col1 ) * col2 * col0 AS col1 FROM tab2 cor0
----
124254
52377
6076

query I rowsort
SELECT ALL + 68 FROM tab0 cor0
----
68
68
68

query I rowsort
SELECT DISTINCT + + col0 + 23 * - col0 FROM tab2 AS cor0
----
-154
-1716
-1738

query I rowsort
SELECT DISTINCT - ( - col2 ) + col0 * cor0.col1 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT ALL col0 * - col0 + + col0 FROM tab2 AS cor0
----
-42
-6006
-6162

query I rowsort
SELECT ALL - + col1 * 57 FROM tab2 AS cor0
----
-1767
-3363
-969

query I rowsort
SELECT - col1 + - col0 * ( col1 ) AS col1 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT ALL - - 97 * + col1 + + 3 + + col2 FROM tab0 AS cor0
----
8378
8912
9413

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0, tab0 AS cor1, tab2 AS cor2
----
972 values hashing to 89714dd446b7a97f8787d5744bdbf323

query I rowsort
SELECT - + col0 * col1 + + col1 AS col2 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT DISTINCT cor0.col2 FROM tab2, tab2 AS cor0
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-2243
SELECT 64 DIV col0 + col2 col0 FROM tab1 cor0
----
58
75
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2243
SELECT 64 / col0 + col2 col0 FROM tab1 cor0
----
58
75
96

query I rowsort
SELECT DISTINCT col1 - + col1 AS col0 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - cor0.col0 col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL - - col1 * col0 + + col0 AS col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT - 21 * - col0 FROM tab2 AS cor0
----
147
1638
1659

query I rowsort
SELECT ALL + col1 + - 38 FROM tab2
----
-21
-7
21

query I rowsort
SELECT 78 AS col0 FROM tab2, tab2 cor0, tab1 cor1
----
27 values hashing to d8e5ef4db3419fc251e82c50ba04e048

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 ALL + col1 + 43 FROM tab2 AS cor0
----
102
60
74

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2252
SELECT DISTINCT + - col2 * CAST( ( col1 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort label-2252
SELECT DISTINCT + - col2 * CAST ( ( col1 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2253
SELECT ALL col2 - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2253
SELECT ALL col2 - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 95 + - cor0.col2 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 991f4400e48cd157325ca50e50dab775

query I rowsort
SELECT col2 * + ( col2 ) + + col0 AS col2 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT cor0.col2 + - 16 * + col2 FROM tab1 AS cor0
----
-1440
-810
-855

query I rowsort
SELECT + col2 + + col1 * col1 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT DISTINCT ( 49 ) * + tab0.col1 FROM tab0, tab2 AS cor0
----
4214
4459
4753

query I rowsort
SELECT DISTINCT - col2 * col0 + - col1 AS col0 FROM tab1
----
-188
-3658
-7693

query I rowsort
SELECT DISTINCT tab2.col0 + - col1 FROM tab2
----
-24
19
62

query I rowsort
SELECT ALL - col0 * col2 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT - col0 * + 77 FROM tab2 AS cor0
----
-539
-6006
-6083

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col0 col1 FROM tab2
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * ( + 95 ) * + col2 + col2 col2 FROM tab1
----
-118464
-133326
-54093

query I rowsort
SELECT 34 FROM tab2, tab0 cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query I rowsort
SELECT ALL + col1 + - 3 AS col0 FROM tab2
----
14
28
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 16 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col0 col2 FROM tab0
----
1225
576
7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-2269
SELECT + tab1.col2 DIV cor0.col0 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to c65f3e23e10963333fdf2ac85b974f8b

skipif mysql # not compatible
query I rowsort label-2269
SELECT + tab1.col2 / cor0.col0 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to c65f3e23e10963333fdf2ac85b974f8b

onlyif mysql # use DIV operator for integer division
query I rowsort label-2270
SELECT DISTINCT - ( col2 ) * - col2 + col1 DIV col2 + + 2 FROM tab1 AS cor0
----
2918
3251
9218

skipif mysql # not compatible
query I rowsort label-2270
SELECT DISTINCT - ( col2 ) * - col2 + col1 / col2 + + 2 FROM tab1 AS cor0
----
2918
3251
9218

query I rowsort
SELECT ALL - 47 + - col1 AS col0 FROM tab1 AS cor0
----
-57
-60
-73

query I rowsort
SELECT + 96 * + col0 + + col0 FROM tab0 AS cor0
----
2328
3395
8633

query I rowsort
SELECT DISTINCT - col2 * + 30 AS col0 FROM tab0
----
-2460
-30
-990

query I rowsort
SELECT + col2 + 20 + + col0 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
-4
-563
-924

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2275
SELECT col0 * + CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-2275
SELECT col0 * + CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT col0 * + col2 + cor0.col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT ALL + col2 + col1 * col0 FROM tab2
----
1381
244
4628

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col0 + + col2 col1 FROM tab0
----
-2031
-3394
-8017

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 84 + - col1 * col0 * - col1 col0 FROM tab2
----
22747
271434
6643

query I rowsort
SELECT cor0.col0 + col0 AS col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT DISTINCT - ( + 42 ) - col0 AS col0 FROM tab0 AS cor0
----
-131
-66
-77

query I rowsort
SELECT ALL - - col0 * col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT DISTINCT - ( col1 ) - - col0 * + 32 * 69 AS col1 FROM tab1 AS cor0
----
141302
176627
6598

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 cor0, tab0 AS cor1, tab1 AS cor2
----
972 values hashing to 0a9194f200a4220e419d35c461f9fcfe

query I rowsort
SELECT DISTINCT cor1.col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-2286
SELECT + col2 + col1 + + col1 DIV + cor0.col2 FROM tab1 cor0
----
109
67
80

skipif mysql # not compatible
query I rowsort label-2286
SELECT + col2 + col1 + + col1 / + cor0.col2 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT - - cor0.col1 + col1 + - col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT + + col2 * col2 * + ( cor0.col1 ) AS col2 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT + col0 * - cor0.col2 AS col0 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT col0 * + cor0.col0 + 26 * ( - col1 * col0 ) FROM tab1 AS cor0
----
-12544
-2019
-20640

onlyif mysql # use DIV operator for integer division
query I rowsort label-2291
SELECT ALL + col1 + col0 * col1 DIV col1 FROM tab0 cor0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-2291
SELECT ALL + col1 + col0 * col1 / col1 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT DISTINCT - + 73 * col2 + col2 AS col1 FROM tab1 AS cor0
----
-3888
-4104
-6912

query I rowsort
SELECT DISTINCT + - 17 FROM tab0 cor0
----
-17

query I rowsort
SELECT 93 + col1 AS col2 FROM tab1
----
103
106
119

query I rowsort
SELECT col0 * col1 + col1 * 66 + col2 AS col2 FROM tab2
----
2290
2503
8522

query I rowsort
SELECT DISTINCT col0 + + 70 * + col2 AS col2 FROM tab2
----
1897
1898
2739

query I rowsort
SELECT ALL + + 46 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 2f97924b57b73102233df7c9ce8ad602

query I rowsort
SELECT ALL + ( + col2 ) + col1 AS col0 FROM tab0
----
119
173
98

query I rowsort
SELECT - col2 * - col1 AS col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT + col2 + col0 + col0 FROM tab2 AS cor0
----
182
196
41

query I rowsort
SELECT col2 + col2 AS col2 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT + 71 * col2 + 70 FROM tab2 AS cor0
----
1916
1987
2768

query I rowsort
SELECT + 44 - col1 AS col2 FROM tab1 AS cor0
----
18
31
34

query I rowsort
SELECT - + cor0.col2 * + col1 + col1 AS col2 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT cor0.col2 AS col0 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT DISTINCT + col2 * + col1 - col0 * + tab1.col2 AS col2 FROM tab1
----
-3078
-6432
1242

query I rowsort
SELECT DISTINCT + col0 - col1 * 40 FROM tab1
----
-1037
-336
-440

query I rowsort
SELECT col2 + + col1 - 69 AS col2 FROM tab0
----
104
29
50

query I rowsort
SELECT - - col0 + cor0.col1 AS col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL col0 + - col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + col0 + - col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL col1 * 46 AS col0 FROM tab0 AS cor0
----
3956
4186
4462

query I rowsort
SELECT DISTINCT + + col2 * col0 + col0 AS col2 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT ALL + - col1 * ( - col2 ) FROM tab2 AS cor0
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col2 col0 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT DISTINCT - col1 + - 26 FROM tab0 cor0
----
-112
-117
-123

query I rowsort
SELECT - - col1 * cor0.col0 - - col0 AS col2 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT + + col2 * col0 + 47 * col1 AS col1 FROM tab0 AS cor0
----
11575
4594
4834

onlyif mysql # use DIV operator for integer division
query I rowsort label-2319
SELECT - + col0 + - col2 DIV - col0 FROM tab0 AS cor0
----
-23
-35
-89

skipif mysql # not compatible
query I rowsort label-2319
SELECT - + col0 + - col2 / - col0 FROM tab0 AS cor0
----
-23
-35
-89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2320
SELECT - col0 - - CAST( - 27 AS SIGNED ) FROM tab1 AS cor0
----
-107
-30
-91

skipif mysql # not compatible
query I rowsort label-2320
SELECT - col0 - - CAST ( - 27 AS INTEGER ) FROM tab1 AS cor0
----
-107
-30
-91

query I rowsort
SELECT ALL - col1 * + col2 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT + - 63 AS col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to fc0b533c2773a0a802e1fc8317dcebf2

query I rowsort
SELECT + col0 + - col0 * col1 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT - col0 + - ( col2 ) * 94 AS col2 FROM tab2 AS cor0
----
-2522
-2545
-3651

query I rowsort
SELECT - 76 * + col1 AS col1 FROM tab2 AS cor0
----
-1292
-2356
-4484

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2326
SELECT DISTINCT + tab0.col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2326
SELECT DISTINCT + tab0.col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2327
SELECT - ( + 95 ) DIV col1 FROM tab2 AS cor0
----
-1
-3
-5

skipif mysql # not compatible
query I rowsort label-2327
SELECT - ( + 95 ) / col1 FROM tab2 AS cor0
----
-1
-3
-5

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 cor0 CROSS JOIN tab0, tab2 AS cor1
----
972 values hashing to d41be7437523f0dba2158c7f0439f329

query I rowsort
SELECT + 41 FROM tab1
----
41
41
41

query I rowsort
SELECT DISTINCT - col0 + - 93 FROM tab0 AS cor0
----
-117
-128
-182

query I rowsort
SELECT DISTINCT - col1 + col1 * + col1 - + col0 FROM tab2 AS cor0
----
193
3344
923

query I rowsort
SELECT ALL - + col0 * 90 FROM tab0 AS cor0
----
-2160
-3150
-8010

query I rowsort
SELECT 11 + + col1 FROM tab0 AS cor0
----
102
108
97

query I rowsort
SELECT ALL + + 22 * - col1 + + col1 FROM tab1 AS cor0
----
-210
-273
-546

query I rowsort
SELECT DISTINCT col1 * col2 + + col1 AS col2 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT ALL - col2 - + col1 * col2 FROM tab0 AS cor0
----
-2871
-7544
-98

query I rowsort
SELECT + col1 * 29 + col2 * ( col0 * + col1 ) FROM tab2 AS cor0
----
121363
51527
6758

query I rowsort
SELECT DISTINCT - 52 * 79 + + cor0.col1 + - cor0.col0 * col1 FROM tab0 AS cor0
----
-12116
-6086
-7406

query I rowsort
SELECT col0 + col1 AS col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT DISTINCT 47 + col0 FROM tab1 AS cor0
----
111
127
50

query I rowsort
SELECT - 92 * col1 AS col0 FROM tab0 AS cor0
----
-7912
-8372
-8924

onlyif mysql # use DIV operator for integer division
query I rowsort label-2342
SELECT DISTINCT tab2.col2 DIV col1 AS col1 FROM tab2
----
0
2

skipif mysql # not compatible
query I rowsort label-2342
SELECT DISTINCT tab2.col2 / col1 AS col1 FROM tab2
----
0
2

query I rowsort
SELECT DISTINCT 78 FROM tab0, tab2, tab2 AS cor0
----
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-2344
SELECT ALL + col2 DIV col2 + ( 22 ) * + cor0.col2 + col0 DIV - col2 FROM tab1 AS cor0
----
1189
1254
2113

skipif mysql # not compatible
query I rowsort label-2344
SELECT ALL + col2 / col2 + ( 22 ) * + cor0.col2 + col0 / - col2 FROM tab1 AS cor0
----
1189
1254
2113

query I rowsort
SELECT ALL - col0 + cor0.col1 AS col2 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT ALL - 37 FROM tab1 cor0
----
-37
-37
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col1 + - col2 col0 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT DISTINCT + + col2 - col2 * + 76 * 39 AS col2 FROM tab1 AS cor0
----
-160002
-168891
-284448

query I rowsort
SELECT DISTINCT + - 27 * col2 FROM tab1 AS cor0
----
-1458
-1539
-2592

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 57 col2 FROM tab2
----
-57

query I rowsort
SELECT - 64 AS col1 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 100c625e45715c20368551989514ba64

query I rowsort
SELECT ALL + - col2 - - col0 FROM tab2 AS cor0
----
-20
41
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 col0 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT ALL + col0 + + ( ( + col2 ) ) * + col2 AS col0 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT ALL col0 + + 21 * + 91 AS col1 FROM tab0 AS cor0
----
1935
1946
2000

query I rowsort
SELECT - col1 * + 46 AS col2 FROM tab0 AS cor0
----
-3956
-4186
-4462

query I rowsort
SELECT DISTINCT + col0 - 23 * col1 AS col1 FROM tab2 AS cor0
----
-1279
-312
-706

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * - 43 * 45 col1 FROM tab1 AS cor0
----
19350
25155
50310

query I rowsort
SELECT + col2 - 98 AS col1 FROM tab0 AS cor0
----
-16
-65
-97

query I rowsort
SELECT ALL cor0.col2 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT + col1 * + ( - col1 ) FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT + col0 + - col2 * - col1 AS col1 FROM tab2 AS cor0
----
1612
725
844

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2363
SELECT col0 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2363
SELECT col0 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL + cor0.col2 * 42 AS col2 FROM tab2 AS cor0
----
1092
1134
1596

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2366
SELECT DISTINCT col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2366
SELECT DISTINCT col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + + col1 * ( col1 ) + col1 * + ( 45 ) AS col1 FROM tab0 AS cor0
----
11266
12376
13774

query I rowsort
SELECT DISTINCT col2 + - col2 * 40 * col0 - col0 FROM tab0
----
-1434
-291927
-31671

query I rowsort
SELECT ALL 27 - tab2.col2 * + col0 AS col2 FROM tab2
----
-162
-2001
-2975

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2370
SELECT ALL tab1.col2 * CAST( + col2 AS SIGNED ) + + col2 FROM tab1
----
2970
3306
9312

skipif mysql # not compatible
query I rowsort label-2370
SELECT ALL tab1.col2 * CAST ( + col2 AS INTEGER ) + + col2 FROM tab1
----
2970
3306
9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-2371
SELECT col0 * - col2 + 53 DIV - tab0.col1 AS col1 FROM tab0
----
-35
-7298
-792

skipif mysql # not compatible
query I rowsort label-2371
SELECT col0 * - col2 + 53 / - tab0.col1 AS col1 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT ALL + col2 + + col1 FROM tab1
----
109
67
80

query I rowsort
SELECT DISTINCT - col2 + col0 AS col2 FROM tab1
----
-16
-51
7

query I rowsort
SELECT DISTINCT + 69 FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2 AS cor2
----
69

query I rowsort
SELECT col0 * + ( ( + col0 ) ) AS col1 FROM tab2 AS cor0
----
49
6084
6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-2376
SELECT + col1 + + ( + cor0.col1 ) DIV - col1 col2 FROM tab2 AS cor0
----
16
30
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2376
SELECT + col1 + + ( + cor0.col1 ) / - col1 col2 FROM tab2 AS cor0
----
16
30
58

query I rowsort
SELECT - col1 * 43 AS col0 FROM tab0 AS cor0
----
-3698
-3913
-4171

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2378
SELECT DISTINCT cor0.col0 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2378
SELECT DISTINCT cor0.col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - - col0 * + 56 FROM tab2 AS cor0
----
392
4368
4424

query I rowsort
SELECT - + col1 + col0 AS col0 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT - col0 + + col2 + col0 * tab2.col1 * + ( + col0 ) FROM tab2
----
106056
1539
358904

query I rowsort
SELECT col2 + ( col2 ) AS col0 FROM tab1
----
108
114
192

query I rowsort
SELECT ALL + 21 FROM tab1, tab2 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT - col2 * + col2 * + cor0.col0 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT DISTINCT col1 + 61 FROM tab0
----
147
152
158

onlyif mysql # use DIV operator for integer division
query I rowsort label-2386
SELECT tab1.col0 DIV + col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2386
SELECT tab1.col0 / + col0 FROM tab1
----
1
1
1

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1, tab2 AS cor0, tab2 cor1
----
972 values hashing to f9adf26f20dc8fcc43c2de18a5fd4859

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2388
SELECT ALL col1 + CAST( NULL AS SIGNED ) + + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2388
SELECT ALL col1 + CAST ( NULL AS INTEGER ) + + col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 + 82 FROM tab1
----
108
92
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-2390
SELECT DISTINCT tab1.col1 + col0 * col0 + - col1 DIV col1 AS col0 FROM tab1
----
34
4105
6412

skipif mysql # not compatible
query I rowsort label-2390
SELECT DISTINCT tab1.col1 + col0 * col0 + - col1 / col1 AS col0 FROM tab1
----
34
4105
6412

query I rowsort
SELECT DISTINCT + ( + 76 ) FROM tab2
----
76

query I rowsort
SELECT cor0.col2 + col0 + + col2 FROM tab2 AS cor0
----
130
155
61

query I rowsort
SELECT + 9 * + 17 FROM tab0 AS cor0
----
153
153
153

query I rowsort
SELECT + - ( + col2 ) * + col2 FROM tab2 AS cor0
----
-1444
-676
-729

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2395
SELECT - + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2395
SELECT - + CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - 16 * col1 AS col0 FROM tab1 AS cor0
----
160
208
416

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 55 * + col0 col2 FROM tab0 AS cor0
----
1320
1925
4895

query I rowsort
SELECT 80 + + 77 AS col1 FROM tab2 AS cor0
----
157
157
157

query I rowsort
SELECT DISTINCT - 84 FROM tab2 AS cor0
----
-84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2400
SELECT + + CAST( 55 AS SIGNED ) * col2 + col0 + 46 FROM tab0 cor0
----
136
1885
4645

skipif mysql # not compatible
query I rowsort label-2400
SELECT + + CAST ( 55 AS INTEGER ) * col2 + col0 + 46 FROM tab0 cor0
----
136
1885
4645

query I rowsort
SELECT col2 * col1 + col1 * - tab1.col1 AS col1 FROM tab1
----
1079
470
728

query I rowsort
SELECT DISTINCT + + col2 + col1 * ( + ( col2 ) * col2 ) FROM tab1 cor0
----
119904
32547
75870

onlyif mysql # use DIV operator for integer division
query I rowsort label-2403
SELECT ALL col0 DIV + col2 + col0 AS col2 FROM tab1 AS cor0
----
3
65
80

skipif mysql # not compatible
query I rowsort label-2403
SELECT ALL col0 / + col2 + col0 AS col2 FROM tab1 AS cor0
----
3
65
80

query I rowsort
SELECT ALL col2 + col1 * col1 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT DISTINCT - col1 * - col0 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-2406
SELECT DISTINCT + - col2 DIV col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2406
SELECT DISTINCT + - col2 / col2 FROM tab1 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 col2 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT DISTINCT + + 35 + - col1 FROM tab0 AS cor0
----
-51
-56
-62

query I rowsort
SELECT DISTINCT - col1 + cor0.col2 * + 92 AS col1 FROM tab1 AS cor0
----
4942
5234
8819

query I rowsort
SELECT + 9 FROM tab1 AS cor0
----
9
9
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-2411
SELECT DISTINCT - cor0.col1 + - col2 + + 37 DIV col2 FROM tab0 AS cor0
----
-118
-173
-61

skipif mysql # not compatible
query I rowsort label-2411
SELECT DISTINCT - cor0.col1 + - col2 + + 37 / col2 FROM tab0 AS cor0
----
-118
-173
-61

query I rowsort
SELECT - col1 + col2 * - col2 * col2 + cor0.col2 FROM tab1 cor0
----
-157436
-185146
-884653

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-2414
SELECT DISTINCT + col1 * CAST( 65 AS SIGNED ) FROM tab2 cor0
----
1105
2015
3835

skipif mysql # not compatible
query I rowsort label-2414
SELECT DISTINCT + col1 * CAST ( 65 AS INTEGER ) FROM tab2 cor0
----
1105
2015
3835

query I rowsort
SELECT + col2 * ( - col0 ) FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT + cor0.col2 * col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT + - col0 * - cor0.col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT + col0 * - 58 * col1 AS col1 FROM tab1 AS cor0
----
-37120
-4524
-60320

onlyif mysql # use DIV operator for integer division
query I rowsort label-2419
SELECT col2 - 77 DIV col0 AS col2 FROM tab1 AS cor0
----
29
56
96

skipif mysql # not compatible
query I rowsort label-2419
SELECT col2 - 77 / col0 AS col2 FROM tab1 AS cor0
----
29
56
96

query I rowsort
SELECT DISTINCT + col1 * + 21 + col1 * + col2 FROM tab2 AS cor0
----
1003
1488
2773

query I rowsort
SELECT 77 + + col0 AS col0 FROM tab1
----
141
157
80

query I rowsort
SELECT + 66 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

onlyif mysql # use DIV operator for integer division
query I rowsort label-2423
SELECT ALL - - col2 * col0 DIV + 57 FROM tab1 AS cor0
----
134
2
64

skipif mysql # not compatible
query I rowsort label-2423
SELECT ALL - - col2 * col0 / + 57 FROM tab1 AS cor0
----
134
2
64

query I rowsort
SELECT ALL + cor1.col1 AS col0 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + col2 * + 86 col2 FROM tab2 AS cor0
----
2177
2291
3251

query I rowsort
SELECT - + cor0.col1 - - cor0.col0 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT - ( cor0.col2 ) * - cor0.col1 * col0 - col0 FROM tab0 AS cor0
----
3360
664029
68088

query I rowsort
SELECT + ( + 29 ) * col2 FROM tab1
----
1566
1653
2784

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 87 * col0 * + col2 + + ( - tab2.col2 + - col0 ) col0 FROM tab2
----
-16477
-176540
-261291

onlyif mysql # use DIV operator for integer division
query I rowsort label-2430
SELECT col0 DIV - col0 AS col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2430
SELECT col0 / - col0 AS col0 FROM tab1
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2431
SELECT - col2 + - col2 DIV + 17 AS col1 FROM tab2 AS cor0
----
-27
-28
-40

skipif mysql # not compatible
query I rowsort label-2431
SELECT - col2 + - col2 / + 17 AS col1 FROM tab2 AS cor0
----
-27
-28
-40

query I rowsort
SELECT ALL + cor1.col1 AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT + 15 FROM tab2
----
15
15
15

query I rowsort
SELECT - - col2 * 68 + - col2 * - col1 FROM tab1 AS cor0
----
4446
5076
7776

query I rowsort
SELECT DISTINCT + + col2 * 76 + + 12 AS col0 FROM tab0 AS cor0
----
2520
6244
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 89 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query I rowsort
SELECT ALL + 11 FROM tab2
----
11
11
11

query I rowsort
SELECT cor0.col1 + 69 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 35cd26f33597c096312fa50511b41cbe

query I rowsort
SELECT - - ( - col2 ) + + col1 * - col2 * + col1 FROM tab1 AS cor0
----
-16320
-36558
-5757

onlyif mysql # use DIV operator for integer division
query I rowsort label-2440
SELECT tab1.col2 DIV - col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2440
SELECT tab1.col2 / - col2 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT ALL + 42 FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 4d49d5ffe533e92cf06d98cb59a19b10

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2442
SELECT CAST( + cor1.col1 AS SIGNED ) AS col0 FROM tab2, tab0 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7

skipif mysql # not compatible
query I rowsort label-2442
SELECT CAST ( + cor1.col1 AS INTEGER ) AS col0 FROM tab2, tab0 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2443
SELECT ALL col1 * + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2443
SELECT ALL col1 * + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 3 FROM tab2, tab2 cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query I rowsort
SELECT DISTINCT col1 * col2 * col0 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT 23 FROM tab0, tab2, tab0 cor0
----
27 values hashing to 546d49aa433406dd83ea19885588e658

query I rowsort
SELECT - + 75 AS col1 FROM tab2 AS cor0
----
-75
-75
-75

query I rowsort
SELECT 42 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

onlyif mysql # use DIV operator for integer division
query I rowsort label-2449
SELECT ALL 4 + - col1 DIV col0 - + ( - col1 ) AS col1 FROM tab0 AS cor0
----
87
94
99

skipif mysql # not compatible
query I rowsort label-2449
SELECT ALL 4 + - col1 / col0 - + ( - col1 ) AS col1 FROM tab0 AS cor0
----
87
94
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-2450
SELECT - ( col1 ) DIV col1 - 82 FROM tab1
----
-83
-83
-83

skipif mysql # not compatible
query I rowsort label-2450
SELECT - ( col1 ) / col1 - 82 FROM tab1
----
-83
-83
-83

query I rowsort
SELECT 72 * + col1 FROM tab2 AS cor0
----
1224
2232
4248

query I rowsort
SELECT + + 45 AS col1 FROM tab1 AS cor0
----
45
45
45

query I rowsort
SELECT + ( + col0 ) + - col2 AS col1 FROM tab2
----
-20
41
52

query I rowsort
SELECT + 46 * + cor0.col1 FROM tab1 cor0
----
1196
460
598

query I rowsort
SELECT + + ( col2 ) * + col0 AS col1 FROM tab1 cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-2456
SELECT DISTINCT col0 * col0 DIV + 32 - - col1 FROM tab0
----
104
135
338

skipif mysql # not compatible
query I rowsort label-2456
SELECT DISTINCT col0 * col0 / + 32 - - col1 FROM tab0
----
104
135
338

query I rowsort
SELECT - cor0.col0 * col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT ALL col1 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL - col0 * col2 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL col1 * 23 + col0 FROM tab1
----
294
379
601

query I rowsort
SELECT col2 + + 82 * - tab2.col1 * col2 FROM tab2
----
-125762
-52934
-68607

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0, tab1 cor1, tab1 cor2
----
972 values hashing to 7864aada86bf5bf5e1621c7905de8dcd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + + col1 * col1 col1 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT + + col1 + + 32 * 84 AS col1 FROM tab1 AS cor0
----
2698
2701
2714

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2465
SELECT CAST( + col1 AS SIGNED ) + + col1 * col1 AS col1 FROM tab2 AS cor0
----
306
3540
992

skipif mysql # not compatible
query I rowsort label-2465
SELECT CAST ( + col1 AS INTEGER ) + + col1 * col1 AS col1 FROM tab2 AS cor0
----
306
3540
992

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( + col1 AS REAL ) * cor0.col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT 38 AS col2 FROM tab0 AS cor0
----
38
38
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2468
SELECT - - CAST( + col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-2468
SELECT - - CAST ( + col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL 68 * + ( col2 ) * + ( + col1 ) AS col2 FROM tab2 cor0
----
104312
43928
56916

onlyif mysql # use DIV operator for integer division
query I rowsort label-2470
SELECT DISTINCT - ( - col1 ) DIV - col2 AS col2 FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-2470
SELECT DISTINCT - ( - col1 ) / - col2 AS col2 FROM tab0 AS cor0
----
-1
-2
-97

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0, tab0 AS cor0, tab1 AS cor1
----
972 values hashing to 9af67d6f98010464af5d560bf949d487

query I rowsort
SELECT ALL col1 * col2 * col0 + + col2 + tab0.col1 AS col2 FROM tab0
----
3493
664291
68231

onlyif mysql # use DIV operator for integer division
query I rowsort label-2473
SELECT ALL tab2.col1 DIV 5 FROM tab2, tab1 AS cor0
----
9 values hashing to 3f729d3fadbc4d058ccba01e3897fbde

skipif mysql # not compatible
query I rowsort label-2473
SELECT ALL tab2.col1 / 5 FROM tab2, tab1 AS cor0
----
9 values hashing to 3f729d3fadbc4d058ccba01e3897fbde

query I rowsort
SELECT + col1 + col2 * + ( + col0 ) FROM tab1
----
188
3658
7693

query I rowsort
SELECT + 57 - col1 * + tab1.col1 FROM tab1
----
-112
-43
-619

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) + 33 col1 FROM tab0
----
122
57
68

query I rowsort
SELECT col0 * + col2 AS col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT ALL 38 * + col2 + + 49 + - ( tab1.col0 ) FROM tab1
----
2098
2151
3617

query I rowsort
SELECT DISTINCT col2 + - tab2.col0 FROM tab2
----
-41
-52
20

query I rowsort
SELECT ALL col0 + col0 AS col2 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT ALL - 47 FROM tab0 AS cor0
----
-47
-47
-47

onlyif mysql # use DIV operator for integer division
query I rowsort label-2482
SELECT ALL + - 69 * col2 + col0 DIV col0 AS col2 FROM tab0 cor0
----
-2276
-5657
-68

skipif mysql # not compatible
query I rowsort label-2482
SELECT ALL + - 69 * col2 + col0 / col0 AS col2 FROM tab0 cor0
----
-2276
-5657
-68

query I rowsort
SELECT - 43 * col0 AS col0 FROM tab1 cor0
----
-129
-2752
-3440

query I rowsort
SELECT DISTINCT + col0 * col2 AS col0 FROM tab0 AS cor0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col2 * col0 * - col1 col1 FROM tab1 cor0
----
-36490
-4238
-99853

query I rowsort
SELECT ALL - - cor0.col1 AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT - col1 * col1 + - 66 AS col2 FROM tab0 AS cor0
----
-7462
-8347
-9475

query I rowsort
SELECT DISTINCT + col1 * 49 FROM tab1 AS cor0
----
1274
490
637

query I rowsort
SELECT ALL - - cor0.col2 + col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT + - col2 * + col1 * + col0 + + cor0.col0 FROM tab2 AS cor0
----
-119574
-50955
-5852

query I rowsort
SELECT + col1 * 81 + - col0 FROM tab0 AS cor0
----
6942
7282
7822

query I rowsort
SELECT ALL - + col0 * + 32 AS col1 FROM tab2 AS cor0
----
-224
-2496
-2528

query I rowsort
SELECT DISTINCT col2 * col0 + col1 FROM tab2
----
2087
220
3019

query I rowsort
SELECT ALL col2 + + col2 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT - - col1 * col0 + - col1 AS col0 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT ALL - col2 + col0 AS col2 FROM tab0 AS cor0
----
-9
34
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-2497
SELECT ALL + col2 DIV + cor0.col2 AS col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2497
SELECT ALL + col2 / + cor0.col2 AS col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - col1 + 10 FROM tab2 cor0
----
-21
-49
-7

query I rowsort
SELECT + tab0.col2 - tab0.col2 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL ( - col2 ) FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT 20 + - col2 AS col0 FROM tab2 cor0
----
-18
-6
-7

query I rowsort
SELECT DISTINCT - col1 * - col0 + col0 * ( + 93 ) FROM tab0 AS cor0
----
16376
4296
6650

onlyif mysql # use DIV operator for integer division
query I rowsort label-2503
SELECT DISTINCT + col1 * - cor0.col1 + cor0.col1 + - cor0.col2 * 16 DIV + cor0.col1 FROM tab2 AS cor0
----
-307
-3429
-943

skipif mysql # not compatible
query I rowsort label-2503
SELECT DISTINCT + col1 * - cor0.col1 + cor0.col1 + - cor0.col2 * 16 / + cor0.col1 FROM tab2 AS cor0
----
-307
-3429
-943

query I rowsort
SELECT ALL + col2 - - 76 FROM tab1 AS cor0
----
130
133
172

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 90 col0 FROM tab0 AS cor0
----
90
90
90

query I rowsort
SELECT ALL + col2 * + 88 * + col2 FROM tab2 AS cor0
----
127072
59488
64152

query I rowsort
SELECT DISTINCT - ( col1 ) * col2 + - ( + col2 ) * - col1 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - ( col1 ) * col2 * 77 FROM tab2 AS cor0
----
-118118
-49742
-64449

query I rowsort
SELECT - - col2 + cor0.col2 AS col0 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT col0 * col2 * + col1 AS col1 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT ALL 25 * - col1 + col0 AS col1 FROM tab2 cor0
----
-1397
-346
-768

query I rowsort
SELECT - col1 * cor0.col1 AS col0 FROM tab1 AS cor0
----
-100
-169
-676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 89 col0 FROM tab0, tab0 cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query I rowsort
SELECT + ( col0 ) AS col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT col1 + + col2 * + col1 FROM tab2 cor0
----
1593
663
868

query I rowsort
SELECT DISTINCT + col1 + col0 * + col2 * + col2 AS col0 FROM tab0 AS cor0
----
132
26222
598527

query I rowsort
SELECT - 90 AS col2 FROM tab2 AS cor0
----
-90
-90
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-2518
SELECT ALL + 18 DIV col0 + - col2 + cor0.col2 AS col0 FROM tab1 AS cor0
----
0
0
6

skipif mysql # not compatible
query I rowsort label-2518
SELECT ALL + 18 / col0 + - col2 + cor0.col2 AS col0 FROM tab1 AS cor0
----
0
0
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2519
SELECT ALL - CAST( col2 AS SIGNED ) * - col1 - 80 FROM tab0 AS cor0
----
17
2758
7382

skipif mysql # not compatible
query I rowsort label-2519
SELECT ALL - CAST ( col2 AS INTEGER ) * - col1 - 80 FROM tab0 AS cor0
----
17
2758
7382

query I rowsort
SELECT ALL cor0.col0 + + 52 AS col1 FROM tab1 AS cor0
----
116
132
55

query I rowsort
SELECT 82 * col1 AS col1 FROM tab2
----
1394
2542
4838

query I rowsort
SELECT col1 + col2 AS col1 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT - + col0 * + col1 + 1 AS col0 FROM tab2 AS cor0
----
-1342
-216
-4601

query I rowsort
SELECT DISTINCT + col0 + + col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT DISTINCT - 5 * + col1 * + 78 + cor0.col0 AS col2 FROM tab1 cor0
----
-10137
-3836
-4990

query I rowsort
SELECT ALL - 65 * + col2 AS col0 FROM tab0 AS cor0
----
-2145
-5330
-65

query I rowsort
SELECT cor0.col1 + + col2 * col0 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT + 58 + col0 * 19 AS col1 FROM tab0 AS cor0
----
1749
514
723

query I rowsort
SELECT - - cor0.col1 * - col1 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT - 79 * col0 AS col0 FROM tab0 AS cor0
----
-1896
-2765
-7031

query I rowsort
SELECT - 61 * col0 AS col1 FROM tab2 AS cor0
----
-427
-4758
-4819

query I rowsort
SELECT + - 33 * col1 AS col1 FROM tab0 AS cor0
----
-2838
-3003
-3201

query I rowsort
SELECT ALL - - col1 * + col2 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT ALL + col2 + cor0.col1 AS col0 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT + col2 + col1 - col0 AS col2 FROM tab2 AS cor0
----
-24
51
7

query I rowsort
SELECT ALL 92 * - col2 FROM tab2
----
-2392
-2484
-3496

query I rowsort
SELECT 20 * - col2 * + col2 + tab1.col0 AS col0 FROM tab1
----
-184240
-58317
-64916

query I rowsort
SELECT 46 FROM tab0, tab1 cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

query I rowsort
SELECT 73 AS col0 FROM tab2
----
73
73
73

query I rowsort
SELECT - 98 FROM tab1
----
-98
-98
-98

query I rowsort
SELECT DISTINCT + 40 FROM tab1, tab0, tab0 AS cor0
----
40

query I rowsort
SELECT ALL col1 * - col2 * + ( - col0 ) + col0 FROM tab0
----
3430
664207
68136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + col0 col2 FROM tab0
----
-9
34
7

query I rowsort
SELECT - col0 * col2 AS col2 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL 45 * - col1 FROM tab2 AS cor0
----
-1395
-2655
-765

query I rowsort
SELECT ALL + ( col2 ) * cor0.col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT + - 16 AS col0 FROM tab2 cor0
----
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col0 col2 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT - cor0.col2 + + col1 - col0 FROM tab0 cor0
----
-80
29
61

query I rowsort
SELECT tab1.col0 * col0 - - 82 AS col2 FROM tab1
----
4178
6482
91

query IIIIIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab0, tab2 AS cor1
----
243 values hashing to 60bd71ee2159222231bb3b5819bc5dca

query I rowsort
SELECT 31 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

onlyif mysql # use DIV operator for integer division
query I rowsort label-2553
SELECT DISTINCT + col2 * ( col2 ) DIV col1 + + ( 32 ) AS col2 FROM tab1 AS cor0
----
144
356
740

skipif mysql # not compatible
query I rowsort label-2553
SELECT DISTINCT + col2 * ( col2 ) / col1 + + ( 32 ) AS col2 FROM tab1 AS cor0
----
144
356
740

query I rowsort
SELECT ALL - - col0 * - col0 AS col2 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT + col0 + ( 88 ) FROM tab2 AS cor0
----
166
167
95

query I rowsort
SELECT ALL - + col0 + + cor0.col2 * - col2 FROM tab1 AS cor0
----
-2919
-3313
-9296

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * col2 + + col0 col1 FROM tab1 AS cor0
----
-2913
-3185
-9136

query I rowsort
SELECT ALL col1 * - 17 AS col0 FROM tab2 AS cor0
----
-1003
-289
-527

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2559
SELECT DISTINCT - col2 + CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2559
SELECT DISTINCT - col2 + CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - col0 * + col1 * ( col1 ) AS col0 FROM tab0
----
-177504
-329315
-737009

query I rowsort
SELECT DISTINCT col1 * 14 FROM tab1 AS cor0
----
140
182
364

query I rowsort
SELECT DISTINCT + 94 FROM tab1 AS cor0
----
94

query I rowsort
SELECT + 96 * - col2 AS col1 FROM tab2 AS cor0
----
-2496
-2592
-3648

onlyif mysql # use DIV operator for integer division
query I rowsort label-2564
SELECT DISTINCT - tab1.col0 DIV - tab1.col0 AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2564
SELECT DISTINCT - tab1.col0 / - tab1.col0 AS col2 FROM tab1
----
1

query I rowsort
SELECT DISTINCT + 43 AS col2 FROM tab0
----
43

query I rowsort
SELECT ALL + + tab2.col0 AS col0 FROM tab2, tab1, tab2 AS cor0, tab0
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6

query I rowsort
SELECT DISTINCT - - 1 + - 19 * col1 FROM tab2 AS cor0
----
-1120
-322
-588

query I rowsort
SELECT ALL 77 AS col1 FROM tab2 AS cor0
----
77
77
77

query I rowsort
SELECT + col0 + 81 FROM tab0 AS cor0
----
105
116
170

query I rowsort
SELECT + col2 + col1 + cor0.col0 AS col0 FROM tab0 AS cor0
----
133
143
262

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2571
SELECT col0 * - col2 + - col1 / CAST( NULL AS SIGNED ) + ( col0 ) * col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2571
SELECT col0 * - col2 + - col1 / CAST ( NULL AS INTEGER ) + ( col0 ) * col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT cor0.col2 AS col1 FROM tab1, tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL col2 * col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT + 73 * cor0.col2 FROM tab0 AS cor0
----
2409
5986
73

query I rowsort
SELECT DISTINCT 3 FROM tab1, tab1 cor0, tab0 AS cor1
----
3

query I rowsort
SELECT + + col0 + cor0.col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT + tab1.col2 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT col1 * - cor0.col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT - 28 + col1 FROM tab2
----
-11
3
31

query I rowsort
SELECT 40 AS col1 FROM tab1
----
40
40
40

query I rowsort
SELECT DISTINCT + 24 FROM tab1 cor0
----
24

query I rowsort
SELECT + col0 + + col1 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT - ( + col1 ) AS col0 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT + col1 * + col2 AS col1 FROM tab2
----
1534
646
837

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0, tab2 cor0, tab2
----
972 values hashing to a698694a7dac245e42212ff0316bdf45

onlyif mysql # use DIV operator for integer division
query I rowsort label-2586
SELECT ALL cor0.col1 * - ( col1 + - col1 ) DIV 88 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2586
SELECT ALL cor0.col1 * - ( col1 + - col1 ) / 88 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + - cor0.col2 + col2 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - + col2 - + 52 FROM tab2 AS cor0
----
-78
-79
-90

query I rowsort
SELECT 19 AS col0 FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to 86c53e8567a17c8d91fc5aff119e0498

query I rowsort
SELECT ALL - col2 * ( col2 ) + col2 + ( col2 ) AS col1 FROM tab0 AS cor0
----
-1023
-6560
1

query I rowsort
SELECT - 82 + + 6 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to d90b4aa5f03b4a149aa925c4a88acca0

query I rowsort
SELECT ALL 99 + tab2.col2 AS col0 FROM tab2
----
125
126
137

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 42 col1 FROM tab0, tab2, tab0 AS cor0, tab1
----
42

query I rowsort
SELECT ALL + + 62 FROM tab2, tab1 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2595
SELECT - ( col0 ) DIV + tab0.col1 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2595
SELECT - ( col0 ) / + tab0.col1 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT 93 FROM tab0, tab1 AS cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query I rowsort
SELECT ALL 80 AS col1 FROM tab1
----
80
80
80

query I rowsort
SELECT 57 - + col0 AS col2 FROM tab1 AS cor0
----
-23
-7
54

query I rowsort
SELECT ALL 97 FROM tab2
----
97
97
97

query I rowsort
SELECT + - col1 + + col2 AS col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT - ( cor0.col1 ) * + col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT ( + col2 ) AS col1 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT ALL col0 + col2 * 5 AS col2 FROM tab0
----
189
40
499

query I rowsort
SELECT col1 * col1 AS col0 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT - col0 + col1 + + 89 FROM tab1 AS cor0
----
112
22
35

query I rowsort
SELECT DISTINCT + - cor0.col0 + + cor0.col1 FROM tab0 AS cor0
----
2
62

query I rowsort
SELECT + col1 * col0 + + col2 + + col1 * - col0 FROM tab2 AS cor0
----
26
27
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2608
SELECT - CAST( + col0 AS SIGNED ) FROM tab2
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-2608
SELECT - CAST ( + col0 AS INTEGER ) FROM tab2
----
-7
-78
-79

query I rowsort
SELECT - col0 + - col2 + + col0 * col2 AS col2 FROM tab2 AS cor0
----
155
1924
2885

query I rowsort
SELECT col0 * 8 + - col0 AS col2 FROM tab2 cor0
----
49
546
553

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2611
SELECT ALL CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2611
SELECT ALL CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - 30 + + 83 FROM tab1
----
53
53
53

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2613
SELECT + ( + col0 * - col1 ) + CAST( NULL AS SIGNED ) + - col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2613
SELECT + ( + col0 * - col1 ) + CAST ( NULL AS INTEGER ) + - col2 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ( col0 ) * - col2 + + 86 * - col1 FROM tab0
----
-15124
-8188
-8377

query I rowsort
SELECT DISTINCT - tab2.col1 AS col1 FROM tab2, tab0 cor0
----
-17
-31
-59

query I rowsort
SELECT 27 FROM tab2, tab2 AS cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query I rowsort
SELECT 86 + col1 * - col2 AS col1 FROM tab1 AS cor0
----
-1162
-1318
-484

onlyif mysql # use DIV operator for integer division
query I rowsort label-2618
SELECT DISTINCT 40 * col1 DIV col0 FROM tab0 AS cor0
----
110
143
40

skipif mysql # not compatible
query I rowsort label-2618
SELECT DISTINCT 40 * col1 / col0 FROM tab0 AS cor0
----
110
143
40

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 cor0, tab0 cor1, tab1, tab2 AS cor2
----
3645 values hashing to df00d19f178a708f636b036dcb6c6f87

query I rowsort
SELECT + 71 * - col2 FROM tab0 AS cor0
----
-2343
-5822
-71

query I rowsort
SELECT DISTINCT - cor0.col0 AS col2 FROM tab1, tab0 AS cor0
----
-24
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 20 col1 FROM tab1, tab2, tab0 AS cor0
----
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-2623
SELECT - col0 + - col2 DIV + col0 FROM tab2
----
-10
-78
-79

skipif mysql # not compatible
query I rowsort label-2623
SELECT - col0 + - col2 / + col0 FROM tab2
----
-10
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-2624
SELECT + col2 DIV + col2 + - ( col0 ) FROM tab0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-2624
SELECT + col2 / + col2 + - ( col0 ) FROM tab0
----
-23
-34
-88

query I rowsort
SELECT DISTINCT - - ( - col1 ) AS col0 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT ALL - + col1 + - col2 AS col2 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT ALL - cor0.col0 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT cor0.col1 + + col1 * col0 AS col2 FROM tab2 AS cor0
----
1360
248
4661

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2629
SELECT 47 * - col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2629
SELECT 47 * - col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 25 * - col1 + col0 AS col2 FROM tab1 AS cor0
----
-186
-245
-647

query I rowsort
SELECT ALL col2 * + col2 * + 33 AS col1 FROM tab2
----
22308
24057
47652

onlyif mysql # use DIV operator for integer division
query I rowsort label-2632
SELECT col2 DIV 86 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2632
SELECT col2 / 86 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 * + ( + ( + col2 ) ) FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT + cor0.col0 * + col0 AS col2 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT DISTINCT + cor0.col1 * col2 AS col1 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT + - cor0.col1 * col1 AS col1 FROM tab2 AS cor0
----
-289
-3481
-961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT - col2 * 0 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 * + col0 AS col1 FROM tab0 AS cor0
----
1225
576
7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-2640
SELECT DISTINCT - col2 DIV + col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2640
SELECT DISTINCT - col2 / + col2 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT DISTINCT + col1 * + 55 + - 33 AS col0 FROM tab0 AS cor0
----
4697
4972
5302

query I rowsort
SELECT - col1 * + col1 AS col0 FROM tab2 AS cor0
----
-289
-3481
-961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * + 21 col0 FROM tab1 cor0
----
1344
1680
63

query I rowsort
SELECT DISTINCT col2 * tab0.col1 * - col0 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT DISTINCT - col2 * + col0 * + ( tab1.col2 ) AS col1 FROM tab1
----
-207936
-737280
-8748

query I rowsort
SELECT - 49 + col0 FROM tab0
----
-14
-25
40

onlyif mysql # use DIV operator for integer division
query I rowsort label-2647
SELECT ( - col2 ) * 45 - col2 DIV + col1 FROM tab2
----
-1170
-1215
-1712

skipif mysql # not compatible
query I rowsort label-2647
SELECT ( - col2 ) * 45 - col2 / + col1 FROM tab2
----
-1170
-1215
-1712

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2648
SELECT DISTINCT col1 * CAST( 0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2648
SELECT DISTINCT col1 * CAST ( 0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2649
SELECT ALL + col2 + + CAST( NULL AS SIGNED ) col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2649
SELECT ALL + col2 + + CAST ( NULL AS INTEGER ) col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * + 38 AS col1 FROM tab0 AS cor0
----
1254
3116
38

query I rowsort
SELECT + col1 * ( col0 ) AS col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL + col1 * - col2 * col1 AS col2 FROM tab1 cor0
----
-16224
-36504
-5700

query I rowsort
SELECT DISTINCT + col0 * + col2 AS col0 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT ALL cor0.col2 * col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT + col2 + col2 * ( + col2 ) * - 2 + 96 FROM tab2 AS cor0
----
-1230
-1335
-2754

query I rowsort
SELECT col0 + + 82 * col0 FROM tab1
----
249
5312
6640

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 74 * - 96 col1 FROM tab0, tab2 cor0
----
9 values hashing to 59dbac93aa0e4c69654d4ae9125c34fa

query I rowsort
SELECT DISTINCT cor0.col1 * - col2 + + col2 FROM tab1 cor0
----
-1152
-1350
-513

onlyif mysql # use DIV operator for integer division
query I rowsort label-2659
SELECT col0 DIV 26 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-2659
SELECT col0 / 26 FROM tab0 AS cor0
----
0
1
3

query I rowsort
SELECT DISTINCT - cor0.col1 + col0 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT + col0 * + col2 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT + cor0.col0 * - col0 * + col0 AS col0 FROM tab2 AS cor0
----
-343
-474552
-493039

query I rowsort
SELECT + ( col1 ) * col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2664
SELECT + CAST( 24 AS SIGNED ) + col0 AS col1 FROM tab0 AS cor0
----
113
48
59

skipif mysql # not compatible
query I rowsort label-2664
SELECT + CAST ( 24 AS INTEGER ) + col0 AS col1 FROM tab0 AS cor0
----
113
48
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2665
SELECT + CAST( NULL AS SIGNED ) * 55 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2665
SELECT + CAST ( NULL AS INTEGER ) * 55 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT tab1.col1 FROM tab1, tab0, tab0 AS cor0
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-2667
SELECT ALL - col0 DIV ( col1 ) FROM tab2
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-2667
SELECT ALL - col0 / ( col1 ) FROM tab2
----
-1
-4
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2668
SELECT ALL - tab0.col1 * col0 DIV 2 FROM tab0
----
-1032
-1697
-4049

skipif mysql # not compatible
query I rowsort label-2668
SELECT ALL - tab0.col1 * col0 / 2 FROM tab0
----
-1032
-1697
-4049

query I rowsort
SELECT ALL + + col2 * col0 FROM tab2 AS cor0
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 29 col1 FROM tab0 cor0
----
29
29
29

query I rowsort
SELECT + + col1 + + col0 AS col0 FROM tab2 AS cor0
----
137
38
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 64 col0 FROM tab2 AS cor0
----
64
64
64

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2673
SELECT DISTINCT + col1 + col0 * CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2673
SELECT DISTINCT + col1 + col0 * CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2674
SELECT ALL - 34 DIV + col0 AS col2 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2674
SELECT ALL - 34 / + col0 AS col2 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT - col0 + + col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL + col1 + + col0 * col2 AS col1 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT DISTINCT - cor0.col1 * cor0.col2 AS col1 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT + col1 * + col1 + ( + col1 ) AS col1 FROM tab2 AS cor0
----
306
3540
992

query I rowsort
SELECT DISTINCT - cor0.col0 * - cor0.col2 - ( 49 ) * + col1 * + cor0.col2 FROM tab0 AS cor0
----
-138270
-358340
-4718

query I rowsort
SELECT DISTINCT + 51 FROM tab0 cor0
----
51

query I rowsort
SELECT - 5 + + col2 AS col1 FROM tab2 AS cor0
----
21
22
33

query I rowsort
SELECT ALL cor0.col0 * + cor0.col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT col1 + tab2.col1 FROM tab2
----
118
34
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-2684
SELECT 2 DIV + col1 + col2 * - ( col2 ) FROM tab1
----
-2916
-3249
-9216

skipif mysql # not compatible
query I rowsort label-2684
SELECT 2 / + col1 + col2 * - ( col2 ) FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT - 66 * 92 + col2 * + 38 * 91 FROM tab0
----
-2614
108042
277484

query I rowsort
SELECT col2 + col0 + col0 FROM tab1
----
185
256
60

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2687
SELECT DISTINCT - CAST( - cor0.col2 AS SIGNED ) FROM tab0, tab2, tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-2687
SELECT DISTINCT - CAST ( - cor0.col2 AS INTEGER ) FROM tab0, tab2, tab2 AS cor0
----
26
27
38

query I rowsort
SELECT + 16 * + col0 + - 13 FROM tab1 AS cor0
----
1011
1267
35

query I rowsort
SELECT + - 91 - col2 AS col0 FROM tab1 AS cor0
----
-145
-148
-187

query I rowsort
SELECT ( col1 ) + col1 AS col2 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT + col0 + - ( cor0.col2 ) AS col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT ALL col1 * tab1.col0 AS col1 FROM tab1
----
1040
640
78

query I rowsort
SELECT ALL + + 12 * col1 + 0 + ( col2 ) AS col2 FROM tab2 AS cor0
----
242
399
734

query I rowsort
SELECT ALL + + col2 * - col2 - - col2 FROM tab0 AS cor0
----
-1056
-6642
0

query I rowsort
SELECT ALL - 31 * col1 AS col1 FROM tab2 AS cor0
----
-1829
-527
-961

query I rowsort
SELECT 80 + + col0 * - ( col2 ) FROM tab0 AS cor0
----
-712
-7218
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 54 col1 FROM tab2
----
54
54
54

query I rowsort
SELECT DISTINCT col2 * 88 FROM tab0
----
2904
7216
88

query I rowsort
SELECT ALL col0 + 57 FROM tab2
----
135
136
64

onlyif mysql # use DIV operator for integer division
query I rowsort label-2700
SELECT ( + col2 ) - + col0 DIV - tab0.col0 FROM tab0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-2700
SELECT ( + col2 ) - + col0 / - tab0.col0 FROM tab0
----
2
34
83

query I rowsort
SELECT - 52 FROM tab1
----
-52
-52
-52

query I rowsort
SELECT 59 * 81 AS col0 FROM tab2
----
4779
4779
4779

onlyif mysql # use DIV operator for integer division
query I rowsort label-2703
SELECT DISTINCT + 21 DIV - col0 FROM tab2
----
-3
0

skipif mysql # not compatible
query I rowsort label-2703
SELECT DISTINCT + 21 / - col0 FROM tab2
----
-3
0

query I rowsort
SELECT DISTINCT + col0 * - col0 * 81 FROM tab2
----
-3969
-492804
-505521

query I rowsort
SELECT col2 + - cor0.col1 AS col0 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT - - col2 + col2 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT - cor0.col0 * cor0.col1 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT + col2 * - 8 * cor0.col1 AS col2 FROM tab2 AS cor0
----
-12272
-5168
-6696

onlyif mysql # use DIV operator for integer division
query I rowsort label-2709
SELECT + col0 * col0 DIV col1 + - cor0.col2 * - col2 col1 FROM tab2 AS cor0
----
1811
730
779

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2709
SELECT + col0 * col0 / col1 + - cor0.col2 * - col2 col1 FROM tab2 AS cor0
----
1811
730
779

query I rowsort
SELECT col1 - - cor0.col0 AS col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL + col0 + ( + 46 ) FROM tab0 AS cor0
----
135
70
81

query I rowsort
SELECT col0 * col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT col0 + + cor0.col2 AS col1 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT + - col0 + col0 - col0 AS col2 FROM tab2 cor0
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 93 + - cor0.col2 * - cor0.col0 col0 FROM tab2 AS cor0
----
10349
840
9282

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 74 col1 FROM tab0 AS cor0
----
-74
-74
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - tab1.col1 * col1 col0 FROM tab1
----
1000
17576
2197

query I rowsort
SELECT col1 * ( col2 * tab0.col1 ) FROM tab0
----
244068
679042
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT - 48 * - col2 * - col2 + col1 AS col1 FROM tab1 AS cor0
----
-139942
-155942
-442355

query I rowsort
SELECT - col1 + col0 - col2 FROM tab1 AS cor0
----
-29
-3
-77

query I rowsort
SELECT DISTINCT - ( ( + col1 ) ) FROM tab1 AS cor0
----
-10
-13
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-2723
SELECT + col2 DIV col2 + - col2 FROM tab1 AS cor0
----
-53
-56
-95

skipif mysql # not compatible
query I rowsort label-2723
SELECT + col2 / col2 + - col2 FROM tab1 AS cor0
----
-53
-56
-95

query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0 CROSS JOIN tab2
----
243 values hashing to 042fa16c43ab365359ee93c064e44127

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2725
SELECT DISTINCT + CAST( 53 AS SIGNED ) * col1 FROM tab0 AS cor0
----
4558
4823
5141

skipif mysql # not compatible
query I rowsort label-2725
SELECT DISTINCT + CAST ( 53 AS INTEGER ) * col1 FROM tab0 AS cor0
----
4558
4823
5141

query I rowsort
SELECT ALL col1 + cor0.col0 AS col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL - col1 + col0 * cor0.col2 FROM tab1 AS cor0
----
136
3638
7667

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2728
SELECT - CAST( - 56 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
56
56
56

skipif mysql # not compatible
query I rowsort label-2728
SELECT - CAST ( - 56 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
56
56
56

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2729
SELECT DISTINCT + 31 * col2 * col0 + CAST( NULL AS DECIMAL ) + - col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2729
SELECT DISTINCT + 31 * col2 * col0 + CAST ( NULL AS REAL ) + - col2 FROM tab1 cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2730
SELECT DISTINCT + + col1 * 91 DIV col0 FROM tab1 cor0
----
14
788

skipif mysql # not compatible
query I rowsort label-2730
SELECT DISTINCT + + col1 * 91 / col0 FROM tab1 cor0
----
14
788

query I rowsort
SELECT ALL cor0.col2 AS col0 FROM tab2 AS cor0
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - - 5 col0 FROM tab1 AS cor0
----
69
8
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-2733
SELECT DISTINCT col2 DIV - 92 - col0 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-2733
SELECT DISTINCT col2 / - 92 - col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT 48 + col0 FROM tab1 AS cor0
----
112
128
51

query I rowsort
SELECT 36 FROM tab2 cor0
----
36
36
36

query I rowsort
SELECT ALL + col1 * + 30 FROM tab1 cor0
----
300
390
780

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2737
SELECT ALL + + col2 * - 41 + cor0.col2 + + CAST( + 1 + + col2 AS SIGNED ) FROM tab2 AS cor0
----
-1013
-1052
-1481

skipif mysql # not compatible
query I rowsort label-2737
SELECT ALL + + col2 * - 41 + cor0.col2 + + CAST ( + 1 + + col2 AS INTEGER ) FROM tab2 AS cor0
----
-1013
-1052
-1481

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2738
SELECT - cor0.col1 * col2 * + col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2738
SELECT - cor0.col1 * col2 * + col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * - 90 + + col1 AS col0 FROM tab2 AS cor0
----
-2281
-2399
-3403

query I rowsort
SELECT DISTINCT + 31 FROM tab1 cor0
----
31

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2741
SELECT ALL - CAST( col0 AS SIGNED ) + - col1 AS col2 FROM tab1 AS cor0
----
-29
-74
-93

skipif mysql # not compatible
query I rowsort label-2741
SELECT ALL - CAST ( col0 AS INTEGER ) + - col1 AS col2 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT + col0 * + col1 + col2 AS col0 FROM tab2 cor0
----
1381
244
4628

query I rowsort
SELECT ALL - col1 + - col0 * 8 FROM tab1 AS cor0
----
-50
-522
-653

query I rowsort
SELECT - 23 + col0 FROM tab2 AS cor0
----
-16
55
56

query I rowsort
SELECT DISTINCT + - col1 + - col0 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT - col0 * cor0.col0 + col0 AS col1 FROM tab0 AS cor0
----
-1190
-552
-7832

query I rowsort
SELECT ALL + - col0 + - col0 AS col1 FROM tab2 AS cor0
----
-14
-156
-158

query I rowsort
SELECT DISTINCT col0 + col1 * + col1 AS col1 FROM tab2
----
3559
368
968

query I rowsort
SELECT col1 - + col2 AS col1 FROM tab0
----
53
9
96

query I rowsort
SELECT - col2 - col0 AS col1 FROM tab1
----
-121
-176
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-2751
SELECT ALL + col1 DIV - 18 FROM tab2
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-2751
SELECT ALL + col1 / - 18 FROM tab2
----
-1
-3
0

query I rowsort
SELECT ALL - col0 * - tab2.col0 + col2 FROM tab2
----
6110
6279
76

query I rowsort
SELECT DISTINCT + col2 + 26 FROM tab0 AS cor0
----
108
27
59

query I rowsort
SELECT DISTINCT col2 * col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - 72 FROM tab0, tab2 AS cor0
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

query I rowsort
SELECT DISTINCT - cor0.col1 * - 28 AS col2 FROM tab2, tab1 AS cor0
----
280
364
728

query I rowsort
SELECT 85 AS col0 FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to e4cf94cf0cc632acff30ad1dac617cb7

query I rowsort
SELECT - + cor0.col2 - col0 AS col2 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT - col0 + - ( col0 ) AS col0 FROM tab0
----
-178
-48
-70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2760
SELECT DISTINCT col1 * - CAST( col0 AS SIGNED ) - col0 FROM tab2
----
-1422
-224
-4680

skipif mysql # not compatible
query I rowsort label-2760
SELECT DISTINCT col1 * - CAST ( col0 AS INTEGER ) - col0 FROM tab2
----
-1422
-224
-4680

query I rowsort
SELECT col2 - - ( + col0 ) * col0 FROM tab1
----
4153
63
6496

query I rowsort
SELECT ALL + col0 - col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL + col0 * + cor0.col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT - col0 + + col0 FROM tab0
----
0

query I rowsort
SELECT - col2 * - tab0.col1 FROM tab0
----
2838
7462
97

query I rowsort
SELECT tab1.col2 * col0 * col0 + col2 * + col0 AS col1 FROM tab1 WHERE NULL NOT IN ( col0 )
----

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE NOT ( NULL ) IN ( + col0 * col1 + col1 )
----

query I rowsort
SELECT col0 * + col2 FROM tab0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-2769
SELECT + col0 DIV col2 col0 FROM tab0
----
0
1
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2769
SELECT + col0 / col2 col0 FROM tab0
----
0
1
35

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( - col2 )
----

query I rowsort
SELECT - col0 - - tab2.col2 AS col0 FROM tab2
----
-41
-52
20

query I rowsort
SELECT tab2.col0 * - col1 FROM tab2
----
-1343
-217
-4602

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IN ( col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( tab1.col2 * col2 + + col1 )
----

query I rowsort
SELECT DISTINCT + tab2.col2 * col1 * col0 + col1 FROM tab2
----
119711
51051
5890

query I rowsort
SELECT - tab2.col0 * + col1 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT col2 - col2 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + col1 * - col2 - - col1 AS col1 FROM tab0
----
-2752
-7371
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2779
SELECT DISTINCT col1 DIV + tab0.col1 + + tab0.col2 * + col0 FROM tab0
----
36
7299
793

skipif mysql # not compatible
query I rowsort label-2779
SELECT DISTINCT col1 / + tab0.col1 + + tab0.col2 * + col0 FROM tab0
----
36
7299
793

query I rowsort
SELECT DISTINCT cor0.col2 + cor0.col2 FROM tab1, tab1 cor0
----
108
114
192

query I rowsort
SELECT DISTINCT col1 - col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT + col2 + tab1.col0 AS col2 FROM tab1
----
121
176
57

query I rowsort
SELECT DISTINCT col2 * - col0 AS col0 FROM tab2 WHERE ( + col1 ) IN ( - col1 )
----

query I rowsort
SELECT + col2 + col0 * col2 * col0 FROM tab2
----
1350
158210
237196

onlyif mysql # use DIV operator for integer division
query I rowsort label-2785
SELECT DISTINCT - col1 * + col2 DIV tab0.col2 FROM tab0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-2785
SELECT DISTINCT - col1 * + col2 / tab0.col2 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT col1 + + tab2.col1 AS col0 FROM tab2
----
118
34
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-2787
SELECT + col2 DIV - col2 + + tab0.col2 * + tab0.col0 + + col0 FROM tab0
----
69
7386
815

skipif mysql # not compatible
query I rowsort label-2787
SELECT + col2 / - col2 + + tab0.col2 * + tab0.col0 + + col0 FROM tab0
----
69
7386
815

query I rowsort
SELECT col0 * - col1 AS col0 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT col2 + - col1 + tab0.col2 AS col0 FROM tab0
----
-20
-95
73

query I rowsort
SELECT DISTINCT - col2 * - col2 * + col2 + col0 * + col2 FROM tab1
----
157626
188841
892416

query I rowsort
SELECT DISTINCT + col1 + - col1 * + col2 AS col1 FROM tab1
----
-1235
-1378
-560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col0 * col0 col0 FROM tab2 AS cor0
----
-49
-6084
-6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-2793
SELECT DISTINCT tab1.col1 + + col2 DIV + col1 + - col1 col2 FROM tab1
----
2
5
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2793
SELECT DISTINCT tab1.col1 + + col2 / + col1 + - col1 col2 FROM tab1
----
2
5
7

query I rowsort
SELECT DISTINCT + col1 + + tab1.col1 * - col1 AS col2 FROM tab1
----
-156
-650
-90

query I rowsort
SELECT + tab0.col2 * + col2 AS col2 FROM tab0
----
1
1089
6724

query I rowsort
SELECT + col2 * + col2 + col0 + col0 AS col0 FROM tab0
----
1137
6902
71

query I rowsort
SELECT DISTINCT col2 + tab0.col1 * col1 FROM tab0
----
7429
8363
9410

query I rowsort
SELECT + col1 - + col1 * col1 * tab1.col0 AS col0 FROM tab1
----
-13507
-2002
-6390

query I rowsort
SELECT ALL + col1 + - col0 AS col2 FROM tab1
----
-54
-67
23

query I rowsort
SELECT col0 * col1 * - tab2.col2 AS col0 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT col2 * col1 * - col0 AS col1 FROM tab0
----
-3395
-664118
-68112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col0 col2 FROM tab0
----
178
48
70

query I rowsort
SELECT DISTINCT + col2 * - col2 + col2 FROM tab2 cor0
----
-1406
-650
-702

query I rowsort
SELECT DISTINCT tab2.col2 FROM tab1 AS cor0 CROSS JOIN tab2
----
26
27
38

query I rowsort
SELECT - col2 - col0 * - tab2.col1 FROM tab2
----
1305
190
4576

query I rowsort
SELECT ALL tab2.col1 AS col2 FROM tab0 cor0 CROSS JOIN tab2
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col0 col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT ALL - + col0 * + col0 FROM tab0 AS cor0
----
-1225
-576
-7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + col2 col2 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT DISTINCT - col2 * col2 * + col1 FROM tab2 AS cor0
----
-22599
-24548
-39884

query I rowsort
SELECT ALL cor0.col1 AS col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT col1 * + col1 * + col2 AS col0 FROM tab0 AS cor0
----
244068
679042
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + - col1 * col2 col1 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT ALL + col0 + col0 * col2 AS col1 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT ALL - ( + 86 ) AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 9d2e1e8eda15b3b83dd7136dfc4f19af

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col1 + + col1 * - col0 col1 FROM tab2
----
-1288
-159
-4517

query I rowsort
SELECT ALL - col0 AS col1 FROM tab1 cor0
----
-3
-64
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 + col1 col2 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT DISTINCT - col2 + - col2 * col1 FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT 47 * + col1 AS col1 FROM tab2
----
1457
2773
799

onlyif mysql # use DIV operator for integer division
query I rowsort label-2821
SELECT - cor0.col2 * - ( - cor0.col1 ) + - col1 DIV - 13 AS col1 FROM tab2 AS cor0
----
-1530
-645
-835

skipif mysql # not compatible
query I rowsort label-2821
SELECT - cor0.col2 * - ( - cor0.col1 ) + - col1 / - 13 AS col1 FROM tab2 AS cor0
----
-1530
-645
-835

query I rowsort
SELECT + col2 * + col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT - + col0 * 0 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 * - col2 * - 96 AS col2 FROM tab0 cor0
----
-104544
-645504
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2825
SELECT ALL col1 * CAST( NULL AS SIGNED ) + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2825
SELECT ALL col1 * CAST ( NULL AS INTEGER ) + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 3 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 65b7e16aaa7821ace3a45a9846ffa166

query I rowsort
SELECT + col1 + cor0.col1 * 33 * - col2 AS col0 FROM tab0 AS cor0
----
-246155
-3104
-93568

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * col0 + - col2 col1 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT col1 * ( - col0 ) FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT - + col0 * ( 77 ) FROM tab0 AS cor0
----
-1848
-2695
-6853

query I rowsort
SELECT DISTINCT + col2 + - col0 FROM tab0
----
-34
-7
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + tab0.col1 col1 FROM tab0
----
172
182
194

query I rowsort
SELECT - col1 + tab2.col2 * col2 FROM tab2
----
1427
617
698

query I rowsort
SELECT DISTINCT tab1.col1 + + col1 * + col2 * col2 FROM tab1
----
119821
32500
75842

onlyif mysql # use DIV operator for integer division
query I rowsort label-2835
SELECT ALL + col0 DIV tab2.col1 + - tab2.col1 FROM tab2
----
-13
-31
-58

skipif mysql # not compatible
query I rowsort label-2835
SELECT ALL + col0 / tab2.col1 + - tab2.col1 FROM tab2
----
-13
-31
-58

query I rowsort
SELECT - col1 * + col0 + col2 * col1 * - col0 FROM tab1
----
-100880
-37120
-4290

query I rowsort
SELECT DISTINCT col2 * - tab1.col0 AS col0 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT col1 + + col2 * + tab2.col0 AS col2 FROM tab2
----
2087
220
3019

query I rowsort
SELECT DISTINCT + col0 + tab0.col0 + col1 FROM tab0
----
134
167
269

query I rowsort
SELECT col1 * + col0 * tab2.col2 FROM tab2
----
119652
51034
5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-2841
SELECT + col1 DIV col0 + + col0 + - col1 AS col0 FROM tab1
----
-15
54
67

skipif mysql # not compatible
query I rowsort label-2841
SELECT + col1 / col0 + + col0 + - col1 AS col0 FROM tab1
----
-15
54
67

query I rowsort
SELECT ALL col1 + - tab2.col0 AS col2 FROM tab2
----
-19
-62
24

query I rowsort
SELECT + col0 * + col0 * - col0 + col2 FROM tab2
----
-316
-474526
-493001

query I rowsort
SELECT 23 * cor0.col0 + - col2 AS col1 FROM tab1 AS cor0
----
1415
15
1744

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col1 + 94 col2 FROM tab1 AS cor0
----
123
168
187

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 23 + col2 col2 FROM tab2 AS cor0
----
15
3
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-2847
SELECT col2 DIV - col2 + col1 FROM tab1
----
12
25
9

skipif mysql # not compatible
query I rowsort label-2847
SELECT col2 / - col2 + col1 FROM tab1
----
12
25
9

query I rowsort
SELECT DISTINCT col2 * - cor0.col1 + - 2 AS col1 FROM tab2 AS cor0
----
-1536
-648
-839

query I rowsort
SELECT - + col2 + + cor0.col0 AS col1 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT DISTINCT col1 * - tab0.col1 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT + col2 * + col1 AS col0 FROM tab1
----
1248
1404
570

query I rowsort
SELECT + col0 * - col2 * - col2 AS col1 FROM tab0
----
26136
35
598436

onlyif mysql # use DIV operator for integer division
query I rowsort label-2853
SELECT col2 * tab0.col0 DIV + col1 - + col0 FROM tab0
----
-15
-35
-9

skipif mysql # not compatible
query I rowsort label-2853
SELECT col2 * tab0.col0 / + col1 - + col0 FROM tab0
----
-15
-35
-9

query I rowsort
SELECT ALL tab1.col0 * col0 AS col0 FROM tab1
----
4096
6400
9

query I rowsort
SELECT col2 * col2 + col0 AS col1 FROM tab0 WHERE NULL NOT IN ( - col2 )
----

query I rowsort
SELECT ALL + col1 + + col0 * col0 + col0 FROM tab0
----
1357
686
8101

query I rowsort
SELECT DISTINCT + tab2.col0 * col2 FROM tab2
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-2858
SELECT - col0 DIV col2 + col1 AS col0 FROM tab1
----
13
26
9

skipif mysql # not compatible
query I rowsort label-2858
SELECT - col0 / col2 + col1 AS col0 FROM tab1
----
13
26
9

query I rowsort
SELECT col1 * + col1 * + col0 AS col0 FROM tab0
----
177504
329315
737009

query I rowsort
SELECT DISTINCT - col1 + + tab0.col1 + col0 AS col0 FROM tab0
----
24
35
89

query I rowsort
SELECT ALL col2 * col2 AS col2 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT col0 * - ( col0 * - col1 ) + - cor0.col1 + col2 AS col1 FROM tab2 AS cor0
----
106118
1515
358923

query I rowsort
SELECT col0 + - ( - col2 + + col2 ) * + cor0.col0 AS col1 FROM tab0 AS cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 col0 FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e

query I rowsort
SELECT ALL + ( - col1 ) FROM tab1
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 16 col2 FROM tab0
----
16
16
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 96 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to c89b545346f99713888a7934e4caa539

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 7b5938124253798426fbf09c18e1fd75

onlyif mysql # use DIV operator for integer division
query I rowsort label-2869
SELECT - - col1 DIV col2 + 83 col0 FROM tab1 AS cor0
----
83
83
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2869
SELECT - - col1 / col2 + 83 col0 FROM tab1 AS cor0
----
83
83
83

query I rowsort
SELECT - col2 * + ( 2 ) AS col2 FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT + cor0.col0 * + cor0.col2 + - 84 AS col0 FROM tab1 AS cor0
----
3564
7596
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-2872
SELECT 13 DIV + col1 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2872
SELECT 13 / + col1 AS col0 FROM tab2
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2873
SELECT ALL CAST( - col0 AS SIGNED ) + col1 DIV + tab2.col0 + tab2.col2 DIV + col1 FROM tab2
----
-3
-77
-78

skipif mysql # not compatible
query I rowsort label-2873
SELECT ALL CAST ( - col0 AS INTEGER ) + col1 / + tab2.col0 + tab2.col2 / + col1 FROM tab2
----
-3
-77
-78

query I rowsort
SELECT ALL + 5 * - 78 AS col0 FROM tab0 AS cor0
----
-390
-390
-390

query I rowsort
SELECT ALL + col1 * - col2 AS col1 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT - ( - col2 ) * - cor0.col1 AS col1 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL + col2 + col0 AS col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT + + col2 * + col1 AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL + 9 * cor0.col2 AS col0 FROM tab2 AS cor0
----
234
243
342

onlyif mysql # use DIV operator for integer division
query I rowsort label-2880
SELECT - col1 DIV - 43 AS col2 FROM tab2 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2880
SELECT - col1 / - 43 AS col2 FROM tab2 cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 63 col1 FROM tab0, tab2 AS cor0
----
63

query I rowsort
SELECT DISTINCT col0 * - ( + col1 ) AS col0 FROM tab2
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col1 col1 FROM tab0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2884
SELECT - + col2 + cor0.col2 + ( - 57 + cor0.col2 ) DIV - col1 FROM tab1 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-2884
SELECT - + col2 + cor0.col2 + ( - 57 + cor0.col2 ) / - col1 FROM tab1 AS cor0
----
-3
0
0

query I rowsort
SELECT - - 74 + col2 * + col2 FROM tab0 AS cor0
----
1163
6798
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-2886
SELECT 82 * cor0.col2 + CAST( + col2 AS SIGNED ) DIV col0 + + cor0.col0 FROM tab1 AS cor0
----
4449
4738
7953

skipif mysql # not compatible
query I rowsort label-2886
SELECT 82 * cor0.col2 + CAST ( + col2 AS INTEGER ) / col0 + + cor0.col0 FROM tab1 AS cor0
----
4449
4738
7953

onlyif mysql # use DIV operator for integer division
query I rowsort label-2887
SELECT + col2 DIV col2 AS col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2887
SELECT + col2 / col2 AS col0 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT - - col1 + - col2 FROM tab1 AS cor0
----
-28
-47
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-2889
SELECT ALL col0 DIV col2 + + col1 - col2 FROM tab1
----
-28
-46
-83

skipif mysql # not compatible
query I rowsort label-2889
SELECT ALL col0 / col2 + + col1 - col2 FROM tab1
----
-28
-46
-83

query I rowsort
SELECT ALL + cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT DISTINCT - 95 + col2 FROM tab1 cor0
----
-38
-41
1

query I rowsort
SELECT + - ( col0 ) AS col2 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT ALL + - cor0.col1 + col1 * - col1 FROM tab1 AS cor0
----
-110
-182
-702

query I rowsort
SELECT 62 + col1 AS col1 FROM tab0 AS cor0
----
148
153
159

query I rowsort
SELECT DISTINCT - 19 + - col2 * + col1 FROM tab1 cor0
----
-1267
-1423
-589

onlyif mysql # use DIV operator for integer division
query I rowsort label-2896
SELECT + - col1 DIV + col1 - col1 * + col0 AS col2 FROM tab0 cor0
----
-2065
-3396
-8100

skipif mysql # not compatible
query I rowsort label-2896
SELECT + - col1 / + col1 - col1 * + col0 AS col2 FROM tab0 cor0
----
-2065
-3396
-8100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col1 * - col1 col2 FROM tab2 AS cor0
----
-327
-3507
-988

query I rowsort
SELECT ALL col0 + + col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT + col2 * col1 + + col0 * - col0 * + cor0.col2 AS col0 FROM tab1 cor0
----
-232902
-613152
918

query I rowsort
SELECT DISTINCT cor0.col2 * + cor0.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 col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT cor0.col2 * col2 + cor0.col1 FROM tab1 AS cor0
----
2942
3259
9229

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 col1 FROM tab1 cor0
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * tab2.col0 col0 FROM tab2
----
189
2028
3002

query I rowsort
SELECT DISTINCT + cor0.col0 * cor0.col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT col0 * col2 + + cor0.col2 + - col0 * col1 AS col1 FROM tab2 AS cor0
----
-1
-2548
1697

query I rowsort
SELECT col1 - - col0 * col0 FROM tab0 cor0
----
1322
662
8012

query I rowsort
SELECT ALL + - cor0.col2 * col1 * - col1 AS col1 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT ALL - cor0.col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT ALL + col1 * - col2 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT 14 + - cor0.col1 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 85d3766c2fc6bad72a6db8d2a53d5f70

query I rowsort
SELECT DISTINCT col1 - - 81 FROM tab1 AS cor0
----
107
91
94

query I rowsort
SELECT ALL - ( + col1 ) AS col2 FROM tab1 cor0
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col0 FROM tab2 cor0
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-2915
SELECT ALL col0 DIV - col1 + - cor0.col1 * - col0 FROM tab1 AS cor0
----
1034
634
78

skipif mysql # not compatible
query I rowsort label-2915
SELECT ALL col0 / - col1 + - cor0.col1 * - col0 FROM tab1 AS cor0
----
1034
634
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-2916
SELECT ALL col0 + - col2 DIV - col1 FROM tab1 AS cor0
----
5
69
87

skipif mysql # not compatible
query I rowsort label-2916
SELECT ALL col0 + - col2 / - col1 FROM tab1 AS cor0
----
5
69
87

query I rowsort
SELECT DISTINCT - ( col2 ) * - col0 AS col1 FROM tab2
----
189
2028
3002

query I rowsort
SELECT ( + tab1.col1 ) FROM tab1
----
10
13
26

query I rowsort
SELECT ALL - 10 FROM tab0
----
-10
-10
-10

query I rowsort
SELECT ALL ( col0 ) * - col1 * + col1 AS col2 FROM tab0 AS cor0
----
-177504
-329315
-737009

query I rowsort
SELECT ALL - 98 + col1 AS col0 FROM tab2 AS cor0
----
-39
-67
-81

query I rowsort
SELECT ALL - col1 * cor0.col2 + + cor0.col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT DISTINCT + + col0 AS col2 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT DISTINCT - col0 - col1 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT + + col0 + ( + col0 ) FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT ALL + - cor0.col0 + col0 * col1 AS col1 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT - cor1.col1 AS col2 FROM tab1, tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT DISTINCT 10 AS col0 FROM tab0 AS cor0
----
10

query I rowsort
SELECT DISTINCT - 55 * + 52 AS col2 FROM tab0 cor0
----
-2860

query I rowsort
SELECT DISTINCT + tab0.col0 AS col2 FROM tab0, tab0 AS cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-2931
SELECT - ( col0 ) DIV cor0.col0 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2931
SELECT - ( col0 ) / cor0.col0 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2932
SELECT ALL - + CAST( col1 AS SIGNED ) * cor0.col0 + cor0.col2 FROM tab2 AS cor0
----
-1305
-190
-4576

skipif mysql # not compatible
query I rowsort label-2932
SELECT ALL - + CAST ( col1 AS INTEGER ) * cor0.col0 + cor0.col2 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT ALL - - 3 + cor0.col0 * col2 FROM tab0 cor0
----
38
7301
795

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2934
SELECT ALL col2 * - 23 + col0 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2934
SELECT ALL col2 * - 23 + col0 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - 30 * - col0 AS col2 FROM tab2 AS cor0
----
-210
-2340
-2370

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 16 col0 FROM tab2 AS cor0
----
-16

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2937
SELECT ALL + + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2937
SELECT ALL + + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 93 * col1 AS col2 FROM tab1 AS cor0
----
1209
2418
930

query I rowsort
SELECT DISTINCT ( col1 ) + col2 * + col0 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT DISTINCT 26 FROM tab2 AS cor0
----
26

query I rowsort
SELECT 62 FROM tab2 AS cor0
----
62
62
62

query I rowsort
SELECT DISTINCT + 81 FROM tab2, tab1 AS cor0, tab1 AS cor1, tab1 cor2
----
81

query I rowsort
SELECT ALL + col0 * col1 + + cor0.col0 FROM tab1 AS cor0
----
1120
704
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-2944
SELECT 40 DIV + col2 FROM tab0 AS cor0
----
0
1
40

skipif mysql # not compatible
query I rowsort label-2944
SELECT 40 / + col2 FROM tab0 AS cor0
----
0
1
40

query I rowsort
SELECT DISTINCT - 9 * - col1 FROM tab2 AS cor0
----
153
279
531

query I rowsort
SELECT DISTINCT - 41 AS col0 FROM tab1, tab1 AS cor0
----
-41

query I rowsort
SELECT DISTINCT - ( - 29 ) AS col0 FROM tab0
----
29

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2948
SELECT + CAST( col2 AS SIGNED ) FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-2948
SELECT + CAST ( col2 AS INTEGER ) FROM tab2
----
26
27
38

query I rowsort
SELECT + + col1 * - 17 + 35 AS col1 FROM tab1 AS cor0
----
-135
-186
-407

query I rowsort
SELECT - - col2 + + col1 AS col0 FROM tab2 AS cor0
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-2951
SELECT ALL col1 + ( - col1 ) DIV + col0 AS col1 FROM tab1 AS cor0
----
10
13
18

skipif mysql # not compatible
query I rowsort label-2951
SELECT ALL col1 + ( - col1 ) / + col0 AS col1 FROM tab1 AS cor0
----
10
13
18

query I rowsort
SELECT DISTINCT - + col0 * - ( 88 ) + col1 FROM tab2 AS cor0
----
647
6923
6969

query I rowsort
SELECT - col2 * tab2.col0 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT 78 + - cor0.col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 62dad22bbcbb8546a1fd2f1202cc7e2b

query I rowsort
SELECT + + cor0.col0 + col0 * - col1 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT - + cor0.col1 + + ( col2 * + col0 ) FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT DISTINCT - col1 * 58 FROM tab1 cor0
----
-1508
-580
-754

query I rowsort
SELECT DISTINCT + col0 + - 68 AS col2 FROM tab0 cor0
----
-33
-44
21

query I rowsort
SELECT ALL - col0 + - 14 AS col1 FROM tab0
----
-103
-38
-49

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2960
SELECT + col1 + - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2960
SELECT + col1 + - CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + col0 + col1 col0 FROM tab2
----
134
163
65

query I rowsort
SELECT ALL 95 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query I rowsort
SELECT ALL + ( - col2 ) + - col2 AS col1 FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT 27 FROM tab2, tab0 AS cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

onlyif mysql # use DIV operator for integer division
query I rowsort label-2965
SELECT DISTINCT - 61 DIV 46 FROM tab0, tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2965
SELECT DISTINCT - 61 / 46 FROM tab0, tab2 AS cor0
----
-1

query I rowsort
SELECT col0 + - 34 FROM tab0 AS cor0
----
-10
1
55

query I rowsort
SELECT + ( + 75 ) + col2 FROM tab1 AS cor0
----
129
132
171

query I rowsort
SELECT - + cor0.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

query I rowsort
SELECT + - col0 * + 61 + - col0 * + ( col2 ) AS col2 FROM tab1 AS cor0
----
-12560
-345
-7552

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 AS cor2, tab2 AS cor3
----
3645 values hashing to 81a27955147133c47c9e8e63dacc5c37

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab0 cor1, tab0, tab0 AS cor2
----
3645 values hashing to db9b93cf4fdd5de4106f0487a66ce0a5

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab2 AS cor2, tab2 AS cor3
----
3645 values hashing to 42d854e4c33cb5afd5528228bff9250d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col2 col2 FROM tab1
----
121
176
57

query I rowsort
SELECT DISTINCT 59 * col0 FROM tab0
----
1416
2065
5251

query I rowsort
SELECT ALL 77 FROM tab0, tab1 AS cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2976
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col2 * - col0 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2976
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col2 * - col0 AS col2 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col1 * + col2 col2 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT + tab2.col2 * - tab2.col1 FROM tab2
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-2979
SELECT DISTINCT col0 DIV - col0 AS col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-2979
SELECT DISTINCT col0 / - col0 AS col2 FROM tab1
----
-1

query I rowsort
SELECT - tab2.col0 + - col1 FROM tab2
----
-137
-38
-96

query I rowsort
SELECT DISTINCT - 57 FROM tab2 AS cor0
----
-57

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab0 AS cor1, tab1 AS cor2
----
972 values hashing to 0210050fb1701e2797a9b17e1ebac91e

query I rowsort
SELECT DISTINCT col1 + col0 * + col0 * col0 AS col2 FROM tab1 AS cor0
----
262154
512013
53

query I rowsort
SELECT + - cor0.col2 + 71 FROM tab1 AS cor0
----
-25
14
17

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2985
SELECT DISTINCT - + col2 + CAST( - col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-164
-2
-66

skipif mysql # not compatible
query I rowsort label-2985
SELECT DISTINCT - + col2 + CAST ( - col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-164
-2
-66

onlyif mysql # use DIV operator for integer division
query I rowsort label-2986
SELECT DISTINCT - + cor0.col2 * - col1 + col1 DIV col2 FROM tab0 AS cor0
----
194
2840
7463

skipif mysql # not compatible
query I rowsort label-2986
SELECT DISTINCT - + cor0.col2 * - col1 + col1 / col2 FROM tab0 AS cor0
----
194
2840
7463

query I rowsort
SELECT ALL - 87 FROM tab2, tab1 cor0
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

query I rowsort
SELECT - col0 + + col1 * 67 AS col2 FROM tab2 AS cor0
----
1060
2070
3875

query I rowsort
SELECT ALL + col1 + + col0 AS col2 FROM tab1 cor0
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * col1 - + col1 col0 FROM tab0 cor0
----
0
2752
7371

query I rowsort
SELECT DISTINCT - 29 * - col1 - col2 AS col1 FROM tab2
----
1685
455
872

query I rowsort
SELECT DISTINCT - 40 - col0 AS col0 FROM tab0
----
-129
-64
-75

query I rowsort
SELECT - + 85 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 91e44ead5e72fa22f87a57243e232ede

query I rowsort
SELECT 91 + col2 FROM tab1 AS cor0
----
145
148
187

query I rowsort
SELECT ALL - + col0 * - col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-2996
SELECT + col0 + + col1 DIV - col2 + + col2 FROM tab0 AS cor0
----
-61
170
55

skipif mysql # not compatible
query I rowsort label-2996
SELECT + col0 + + col1 / - col2 + + col2 FROM tab0 AS cor0
----
-61
170
55

query I rowsort
SELECT - + col0 * col0 * col0 FROM tab2 AS cor0
----
-343
-474552
-493039

query I rowsort
SELECT DISTINCT - + col0 * col1 + col0 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT + + cor0.col1 AS col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL col2 + 95 * col1 * - col0 FROM tab2 cor0
----
-127547
-20588
-437164

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 22 col0 FROM tab2 AS cor0
----
39
53
81

query I rowsort
SELECT ALL + col2 * ( cor0.col0 ) + + col0 AS col1 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT - - col0 + 77 + col1 FROM tab1 cor0
----
106
151
170

query I rowsort
SELECT + + col1 + - 18 * - col2 FROM tab0 AS cor0
----
115
1567
680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3005
SELECT ALL + cor0.col1 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3005
SELECT ALL + cor0.col1 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - cor0.col1 AS col2 FROM tab2 AS cor0
----
-17
-31
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + ( col2 ) + + col2 * col2 col0 FROM tab0 AS cor0
----
-95
1036
6715

onlyif mysql # use DIV operator for integer division
query I rowsort label-3008
SELECT + ( col0 ) DIV col1 FROM tab1
----
0
6
6

skipif mysql # not compatible
query I rowsort label-3008
SELECT + ( col0 ) / col1 FROM tab1
----
0
6
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT ALL 1 FROM tab0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab1.col0 * col1 col1 FROM tab1
----
1040
640
78

query I rowsort
SELECT - 75 FROM tab2 AS cor0
----
-75
-75
-75

query I rowsort
SELECT + col2 * 0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + + 85 FROM tab1 cor0
----
85
85
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3015
SELECT CAST( 54 AS SIGNED ) FROM tab1 cor0
----
54
54
54

skipif mysql # not compatible
query I rowsort label-3015
SELECT CAST ( 54 AS INTEGER ) FROM tab1 cor0
----
54
54
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 58 col0 FROM tab1, tab2 AS cor0
----
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 43 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3018
SELECT ALL + - CAST( - col2 AS SIGNED ) FROM tab1 cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-3018
SELECT ALL + - CAST ( - col2 AS INTEGER ) FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT ALL 99 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query I rowsort
SELECT + + cor0.col1 * + 99 FROM tab1 AS cor0
----
1287
2574
990

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3021
SELECT + CAST( col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-3021
SELECT + CAST ( col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT - 15 AS col1 FROM tab2
----
-15
-15
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - cor0.col2 col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT - + cor0.col1 * - col1 AS col0 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT ALL col1 + + cor0.col2 FROM tab1 AS cor0
----
109
67
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col1 ) + col1 * - 61 col0 FROM tab0 AS cor0
----
-5332
-5642
-6014

query I rowsort
SELECT + - cor0.col2 * - col2 FROM tab1 cor0
----
2916
3249
9216

query I rowsort
SELECT ALL - ( + col1 ) FROM tab0 AS cor0
----
-86
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 43 col0 FROM tab2 AS cor0
----
43
43
43

query I rowsort
SELECT DISTINCT - - cor0.col2 + + col2 * 45 FROM tab0 cor0
----
1518
3772
46

query I rowsort
SELECT ALL + 43 * - col1 FROM tab1
----
-1118
-430
-559

query I rowsort
SELECT col0 - 66 * + col2 FROM tab0
----
-2154
-31
-5323

query I rowsort
SELECT tab0.col1 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT DISTINCT col1 * + col1 AS col0 FROM tab1
----
100
169
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-3035
SELECT ALL + - cor0.col2 + + col1 * - col2 DIV - cor0.col2 AS col1 FROM tab1 AS cor0
----
-28
-47
-83

skipif mysql # not compatible
query I rowsort label-3035
SELECT ALL + - cor0.col2 + + col1 * - col2 / - cor0.col2 AS col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT DISTINCT - col2 - cor0.col2 * col0 FROM tab2 AS cor0
----
-2054
-216
-3040

query I rowsort
SELECT ALL - col0 + col1 * - 16 AS col2 FROM tab0 AS cor0
----
-1400
-1545
-1587

query I rowsort
SELECT - 73 AS col0 FROM tab1 cor0
----
-73
-73
-73

query I rowsort
SELECT DISTINCT + 92 AS col1 FROM tab1 AS cor0
----
92

query I rowsort
SELECT - - col0 + - col2 AS col1 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT ALL + cor0.col0 * col2 + - 42 * 59 AS col2 FROM tab1 AS cor0
----
-2316
1170
5202

query I rowsort
SELECT - 41 AS col2 FROM tab2 AS cor0
----
-41
-41
-41

query I rowsort
SELECT DISTINCT + - col1 - col0 AS col0 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT + 13 * - cor0.col2 FROM tab1 cor0
----
-1248
-702
-741

query I rowsort
SELECT DISTINCT - col1 + + col0 FROM tab0 AS cor0
----
-2
-62

query I rowsort
SELECT ALL - + col1 + col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + - col1 * - col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT - - cor1.col2 AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT - col1 * 93 + - col0 * cor0.col0 FROM tab0 AS cor0
----
-10246
-16384
-8574

onlyif mysql # use DIV operator for integer division
query I rowsort label-3050
SELECT col0 DIV + 61 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3050
SELECT col0 / + 61 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3051
SELECT col2 DIV + 25 + col2 * col0 * + col0 + cor0.col2 AS col1 FROM tab1 AS cor0
----
233531
542
614499

skipif mysql # not compatible
query I rowsort label-3051
SELECT col2 / + 25 + col2 * col0 * + col0 + cor0.col2 AS col1 FROM tab1 AS cor0
----
233531
542
614499

query I rowsort
SELECT + col1 * col2 + + col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT + col1 * + 40 + 98 * col1 + col1 AS col0 FROM tab1 AS cor0
----
1390
1807
3614

query I rowsort
SELECT 6 FROM tab2, tab2 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3055
SELECT ALL + CAST( NULL AS DECIMAL ) * 0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3055
SELECT ALL + CAST ( NULL AS REAL ) * 0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3056
SELECT + CAST( + col1 AS SIGNED ) + - col0 AS col1 FROM tab1
----
-54
-67
23

skipif mysql # not compatible
query I rowsort label-3056
SELECT + CAST ( + col1 AS INTEGER ) + - col0 AS col1 FROM tab1
----
-54
-67
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-3057
SELECT - - 71 DIV col0 FROM tab1 AS cor0
----
0
1
23

skipif mysql # not compatible
query I rowsort label-3057
SELECT - - 71 / col0 FROM tab1 AS cor0
----
0
1
23

query I rowsort
SELECT - 22 + - col0 AS col1 FROM tab0 AS cor0
----
-111
-46
-57

query I rowsort
SELECT DISTINCT + 27 AS col0 FROM tab1 AS cor0
----
27

onlyif mysql # use DIV operator for integer division
query I rowsort label-3060
SELECT - 20 * col1 + col2 DIV - ( - col2 ) FROM tab0 AS cor0
----
-1719
-1819
-1939

skipif mysql # not compatible
query I rowsort label-3060
SELECT - 20 * col1 + col2 / - ( - col2 ) FROM tab0 AS cor0
----
-1719
-1819
-1939

query I rowsort
SELECT - - 40 * cor0.col1 AS col0 FROM tab0 AS cor0
----
3440
3640
3880

query I rowsort
SELECT ALL 46 FROM tab2 AS cor0
----
46
46
46

query I rowsort
SELECT - 39 FROM tab0, tab0 AS cor0
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

query I rowsort
SELECT DISTINCT ( + ( - col0 ) ) * cor0.col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL + cor0.col2 * ( col0 ) FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-3066
SELECT DISTINCT - 98 * 32 DIV col2 AS col1 FROM tab0 AS cor0
----
-3136
-38
-95

skipif mysql # not compatible
query I rowsort label-3066
SELECT DISTINCT - 98 * 32 / col2 AS col1 FROM tab0 AS cor0
----
-3136
-38
-95

query I rowsort
SELECT + 54 * - col1 + col0 FROM tab1 AS cor0
----
-1401
-476
-622

query I rowsort
SELECT ALL tab1.col0 + col2 FROM tab1
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 80 + + 25 col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

query I rowsort
SELECT ALL + + 12 AS col0 FROM tab0 cor0
----
12
12
12

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3071
SELECT col1 + + col1 + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3071
SELECT col1 + + col1 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 93 * - col0 FROM tab2 AS cor0
----
-651
-7254
-7347

onlyif mysql # use DIV operator for integer division
query I rowsort label-3073
SELECT DISTINCT + cor0.col0 DIV + col2 AS col1 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-3073
SELECT DISTINCT + cor0.col0 / + col2 AS col1 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT + ( col2 ) * col1 AS col2 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-3075
SELECT + col1 + - col1 + + col2 DIV 17 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-3075
SELECT + col1 + - col1 + + col2 / 17 FROM tab2 AS cor0
----
1
1
2

query I rowsort
SELECT DISTINCT - 98 * + col1 AS col1 FROM tab1 AS cor0
----
-1274
-2548
-980

query I rowsort
SELECT ALL 56 + col0 * + col0 FROM tab1
----
4152
6456
65

query I rowsort
SELECT ALL col1 + - col1 * col0 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT ALL - col0 * + tab0.col1 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL + tab1.col2 * ( col0 ) FROM tab1
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col2 * col0 + col0 col0 FROM tab2 cor0
----
196
2106
3081

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3082
SELECT - - col2 * + col2 * col1 + + cor0.col2 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3082
SELECT - - col2 * + col2 * col1 + + cor0.col2 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 cor0, tab0 AS cor1, tab1 AS cor2
----
972 values hashing to 9af67d6f98010464af5d560bf949d487

query I rowsort
SELECT ALL cor0.col0 * - col2 + - 96 AS col2 FROM tab1 cor0
----
-258
-3744
-7776

query I rowsort
SELECT DISTINCT + - col2 * + col0 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3086
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3086
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab0 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3087
SELECT col2 * CAST( + col2 AS SIGNED ) + col0 + - col0 * + col2 AS col0 FROM tab2 cor0
----
-1274
-1479
547

skipif mysql # not compatible
query I rowsort label-3087
SELECT col2 * CAST ( + col2 AS INTEGER ) + col0 + - col0 * + col2 AS col0 FROM tab2 cor0
----
-1274
-1479
547

query I rowsort
SELECT ALL col1 * 4 FROM tab1 cor0
----
104
40
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( cor0.col0 ) * + col0 col1 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT 67 AS col0 FROM tab2
----
67
67
67

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab1 AS cor1, tab1 AS cor2
----
972 values hashing to a8481bfbfcb330825976c5896e54bc19

query I rowsort
SELECT DISTINCT + + ( - col2 ) * col1 - 17 AS col0 FROM tab2 AS cor0
----
-1551
-663
-854

query I rowsort
SELECT + 63 * col2 FROM tab1 AS cor0
----
3402
3591
6048

query I rowsort
SELECT ALL - + cor0.col2 * 24 FROM tab2 AS cor0
----
-624
-648
-912

query I rowsort
SELECT DISTINCT 49 * - 89 AS col2 FROM tab0 AS cor0
----
-4361

query I rowsort
SELECT - tab1.col0 * + 70 * col0 + ( - col2 ) * - col1 AS col1 FROM tab1
----
-286150
-446752
774

query I rowsort
SELECT + col0 * col2 + tab2.col0 FROM tab2
----
196
2106
3081

query I rowsort
SELECT - 52 AS col1 FROM tab2
----
-52
-52
-52

query I rowsort
SELECT ( - ( + tab0.col2 ) ) AS col0 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT ( col1 * col1 ) FROM tab2
----
289
3481
961

query I rowsort
SELECT ALL + col2 * + col2 FROM tab2 AS cor0
----
1444
676
729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 15 + - col1 col1 FROM tab1 AS cor0
----
-25
-28
-41

query I rowsort
SELECT ALL 90 + + col1 FROM tab2 AS cor0
----
107
121
149

query I rowsort
SELECT col2 * - col1 * + col0 AS col0 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT DISTINCT ( col0 ) * col2 + + col1 AS col1 FROM tab0 cor0
----
132
7389
878

query I rowsort
SELECT ALL ( + 64 ) AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab0 cor2
----
81 values hashing to 9bd8c7417aea89812d57dc6142310b3f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3107
SELECT + CAST( - col0 AS SIGNED ) FROM tab2 cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-3107
SELECT + CAST ( - col0 AS INTEGER ) FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT + - col1 - - col2 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT ALL + 34 AS col1 FROM tab0 AS cor0
----
34
34
34

query I rowsort
SELECT + 43 AS col0 FROM tab2 AS cor0
----
43
43
43

onlyif mysql # use DIV operator for integer division
query I rowsort label-3111
SELECT - 29 DIV col0 - + ( + ( col0 ) ) AS col0 FROM tab0 AS cor0
----
-25
-35
-89

skipif mysql # not compatible
query I rowsort label-3111
SELECT - 29 / col0 - + ( + ( col0 ) ) AS col0 FROM tab0 AS cor0
----
-25
-35
-89

query I rowsort
SELECT ALL + - 23 * + col1 * - 64 AS col2 FROM tab2 AS cor0
----
25024
45632
86848

query I rowsort
SELECT + col0 * col0 * - 54 AS col2 FROM tab0 cor0
----
-31104
-427734
-66150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col0 + - 5 + - col1 col1 FROM tab0 AS cor0
----
-1327
-667
-8017

query I rowsort
SELECT ALL + - col2 * col0 + + 34 FROM tab0 cor0
----
-1
-7264
-758

query I rowsort
SELECT DISTINCT + col0 * col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col0 * + ( col2 ) col2 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT + col1 - + cor0.col1 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col1 + + cor0.col0 + ( col1 ) FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT 30 + col2 * ( col0 ) FROM tab0 AS cor0
----
65
7328
822

query I rowsort
SELECT DISTINCT + 7 + cor0.col0 AS col0 FROM tab2 AS cor0
----
14
85
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 col2 FROM tab2, tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL - 80 AS col2 FROM tab2
----
-80
-80
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3124
SELECT ALL tab2.col0 + ( + col2 ) - ( tab2.col1 + col0 ) DIV 16 AS col2 FROM tab2
----
111
32
96

skipif mysql # not compatible
query I rowsort label-3124
SELECT ALL tab2.col0 + ( + col2 ) - ( tab2.col1 + col0 ) / 16 AS col2 FROM tab2
----
111
32
96

query I rowsort
SELECT ALL tab2.col1 - col1 * + col0 AS col1 FROM tab2
----
-1326
-186
-4543

query I rowsort
SELECT ALL col2 + - tab1.col2 - - tab1.col0 AS col0 FROM tab1
----
3
64
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3127
SELECT ALL CAST( NULL AS SIGNED ) * - col0 - col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3127
SELECT ALL CAST ( NULL AS INTEGER ) * - col0 - col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 38 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
38

query I rowsort
SELECT DISTINCT 1 * + col0 FROM tab1 AS cor0
----
3
64
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3130
SELECT ALL + CAST( NULL AS SIGNED ) col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3130
SELECT ALL + CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col1 * col1 AS col0 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT + 17 * col0 AS col2 FROM tab2
----
119
1326
1343

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3133
SELECT DISTINCT + CAST( + 77 AS SIGNED ) FROM tab2, tab0 AS cor0, tab2 cor1
----
77

skipif mysql # not compatible
query I rowsort label-3133
SELECT DISTINCT + CAST ( + 77 AS INTEGER ) FROM tab2, tab0 AS cor0, tab2 cor1
----
77

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3134
SELECT col2 * + CAST( NULL AS SIGNED ) + 57 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3134
SELECT col2 * + CAST ( NULL AS INTEGER ) + 57 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + - col1 FROM tab1
----
-23
54
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 94 + + col0 + + col2 col0 FROM tab0 AS cor0
----
-3045
-58
-7537

query I rowsort
SELECT - 27 AS col2 FROM tab1 AS cor0
----
-27
-27
-27

query I rowsort
SELECT + 63 * + col0 AS col0 FROM tab0 AS cor0
----
1512
2205
5607

onlyif mysql # use DIV operator for integer division
query I rowsort label-3139
SELECT + col1 DIV 54 AS col0 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3139
SELECT + col1 / 54 AS col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL + col2 * + col2 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT ALL 16 * + col0 FROM tab1
----
1024
1280
48

query I rowsort
SELECT ALL ( - col0 ) AS col0 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT col1 * - 29 + col2 * cor0.col1 FROM tab1 cor0
----
280
650
871

query I rowsort
SELECT DISTINCT - + 84 * + col0 AS col1 FROM tab1 AS cor0
----
-252
-5376
-6720

query I rowsort
SELECT ALL + col1 + col2 AS col0 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT - 41 + col1 FROM tab1 cor0
----
-15
-28
-31

query I rowsort
SELECT DISTINCT col2 + - ( + col2 ) FROM tab2 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3148
SELECT DISTINCT + CAST( NULL AS SIGNED ) - col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3148
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3149
SELECT ALL col0 DIV tab1.col1 AS col2 FROM tab1
----
0
6
6

skipif mysql # not compatible
query I rowsort label-3149
SELECT ALL col0 / tab1.col1 AS col2 FROM tab1
----
0
6
6

query I rowsort
SELECT ALL + col2 * + ( + tab0.col0 ) FROM tab0
----
35
7298
792

query I rowsort
SELECT ALL - ( 82 ) FROM tab1, tab2 AS cor0
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

query I rowsort
SELECT col0 * 54 FROM tab1 AS cor0
----
162
3456
4320

query I rowsort
SELECT + - cor0.col2 + + col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT + - 64 + + col0 * + col2 AS col1 FROM tab0 AS cor0
----
-29
7234
728

query I rowsort
SELECT col2 - + 77 * + col1 FROM tab1 AS cor0
----
-1948
-713
-905

query I rowsort
SELECT + cor0.col0 - - col2 AS col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT DISTINCT - col0 * - col2 AS col2 FROM tab0
----
35
7298
792

query I rowsort
SELECT ALL - 41 + - 79 * cor0.col2 FROM tab0 cor0
----
-120
-2648
-6519

query I rowsort
SELECT ( col2 ) + - col0 * 7 FROM tab2 cor0
----
-22
-515
-520

onlyif mysql # use DIV operator for integer division
query I rowsort label-3160
SELECT ALL - 93 DIV + cor0.col1 AS col0 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3160
SELECT ALL - 93 / + cor0.col1 AS col0 FROM tab0 AS cor0
----
-1
-1
0

query I rowsort
SELECT 77 FROM tab1, tab0 AS cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query I rowsort
SELECT 45 FROM tab2, tab2 cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT col1 * + ( + cor0.col2 ) FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT ( + 69 ) * col0 AS col1 FROM tab0 AS cor0
----
1656
2415
6141

query I rowsort
SELECT DISTINCT ( - 11 ) AS col0 FROM tab0 AS cor0
----
-11

query I rowsort
SELECT + + 36 * - cor0.col1 FROM tab2 AS cor0
----
-1116
-2124
-612

query I rowsort
SELECT ALL ( - col2 ) * col2 * col2 FROM tab2 AS cor0
----
-17576
-19683
-54872

query I rowsort
SELECT - 31 AS col1 FROM tab0 AS cor0
----
-31
-31
-31

query I rowsort
SELECT DISTINCT - ( ( - cor0.col2 ) ) AS col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT + col0 * + col2 + col1 * + col2 AS col0 FROM tab1 cor0
----
1566
4218
8928

query I rowsort
SELECT - cor0.col2 * col0 + ( col1 ) FROM tab2 AS cor0
----
-158
-1969
-2985

onlyif mysql # use DIV operator for integer division
query I rowsort label-3172
SELECT - 48 DIV - col1 + col2 * 38 col1 FROM tab2 AS cor0
----
1027
1446
988

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3172
SELECT - 48 / - col1 + col2 * 38 col1 FROM tab2 AS cor0
----
1027
1446
988

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col0 ) + col2 col1 FROM tab2 AS cor0
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 13 * col0 + 58 col2 FROM tab1 AS cor0
----
1098
890
97

query I rowsort
SELECT + + col2 * col2 + 12 * 53 AS col0 FROM tab2 AS cor0
----
1312
1365
2080

query I rowsort
SELECT - + col2 + col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col0 + 68 FROM tab2 AS cor0
----
-10
-11
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-3178
SELECT ALL + col2 - + col2 DIV col0 FROM tab2 AS cor0
----
24
26
38

skipif mysql # not compatible
query I rowsort label-3178
SELECT ALL + col2 - + col2 / col0 FROM tab2 AS cor0
----
24
26
38

query I rowsort
SELECT DISTINCT - ( col0 ) * - 95 FROM tab1
----
285
6080
7600

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-3181
SELECT - - col1 + + 91 DIV + 23 + - col0 FROM tab0 AS cor0
----
5
65
65

skipif mysql # not compatible
query I rowsort label-3181
SELECT - - col1 + + 91 / + 23 + - col0 FROM tab0 AS cor0
----
5
65
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-3182
SELECT ALL + - col0 + + 97 DIV - col0 + cor0.col0 AS col0 FROM tab1 cor0
----
-1
-1
-32

skipif mysql # not compatible
query I rowsort label-3182
SELECT ALL + - col0 + + 97 / - col0 + cor0.col0 AS col0 FROM tab1 cor0
----
-1
-1
-32

query I rowsort
SELECT ALL - + col1 + ( col1 * col1 + - 3 * - col1 ) AS col1 FROM tab0 AS cor0
----
7568
8463
9603

query I rowsort
SELECT ALL + col1 * ( + col2 ) - - col2 AS col1 FROM tab2 AS cor0
----
1560
684
864

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3185
SELECT ALL + col2 * CAST( NULL AS SIGNED ) + + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3185
SELECT ALL + col2 * CAST ( NULL AS INTEGER ) + + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + col0 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT 33 FROM tab2
----
33

query I rowsort
SELECT tab1.col1 * col0 - 23 FROM tab1
----
1017
55
617

onlyif mysql # use DIV operator for integer division
query I rowsort label-3189
SELECT + col2 + col1 DIV col0 + col0 * + col0 FROM tab0
----
1228
612
8004

skipif mysql # not compatible
query I rowsort label-3189
SELECT + col2 + col1 / col0 + col0 * + col0 FROM tab0
----
1228
612
8004

query I rowsort
SELECT ALL - col0 + 49 AS col0 FROM tab2 AS cor0
----
-29
-30
42

query I rowsort
SELECT DISTINCT + - col0 * cor0.col2 + 54 FROM tab0 AS cor0
----
-7244
-738
19

query I rowsort
SELECT DISTINCT col1 + + ( col1 ) - col1 AS col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT col0 * - col0 FROM tab2 cor0
----
-49
-6084
-6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-3194
SELECT col2 DIV - 43 AS col1 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3194
SELECT col2 / - 43 AS col1 FROM tab0
----
-1
0
0

query I rowsort
SELECT cor1.col2 FROM tab2, tab2 cor0, tab1 cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + cor0.col2 col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL - 87 AS col0 FROM tab0 cor0
----
-87
-87
-87

query I rowsort
SELECT DISTINCT + cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-3199
SELECT ALL col2 DIV - col0 - + col0 FROM tab2
----
-10
-78
-79

skipif mysql # not compatible
query I rowsort label-3199
SELECT ALL col2 / - col0 - + col0 FROM tab2
----
-10
-78
-79

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 cor0 CROSS JOIN tab1, tab1 cor1
----
972 values hashing to 635619591835474e6aa6acdff4ab166c

query I rowsort
SELECT - col2 * col2 + 49 AS col1 FROM tab2
----
-1395
-627
-680

onlyif mysql # use DIV operator for integer division
query I rowsort label-3202
SELECT DISTINCT + col0 + - col0 DIV tab0.col2 + + tab0.col0 DIV col0 col1 FROM tab0
----
1
25
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3202
SELECT DISTINCT + col0 + - col0 / tab0.col2 + + tab0.col0 / col0 col1 FROM tab0
----
1
25
89

query I rowsort
SELECT DISTINCT 10 * - col2 + col2 * tab0.col1 FROM tab0
----
2508
6642
87

query I rowsort
SELECT DISTINCT col0 + + col2 * - col0 FROM tab0
----
-7209
-768
0

query I rowsort
SELECT + 44 FROM tab1
----
44
44
44

query I rowsort
SELECT DISTINCT - col0 * - col0 + + col1 AS col0 FROM tab2
----
6143
6258
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col2 col2 FROM tab0
----
164
2
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3208
SELECT ( col1 ) * CAST( NULL AS SIGNED ) + 33 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3208
SELECT ( col1 ) * CAST ( NULL AS INTEGER ) + 33 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * col1 + 90 FROM tab1
----
190
259
766

query I rowsort
SELECT + + col2 + - col1 * + 78 FROM tab0 AS cor0
----
-6675
-7016
-7565

query I rowsort
SELECT ALL + - col0 AS col0 FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT col1 + - col1 * col0 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT cor1.col2 AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT DISTINCT + 46 AS col0 FROM tab0, tab0 AS cor0
----
46

query I rowsort
SELECT DISTINCT - + col1 + + cor0.col1 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT col0 * - col1 - col0 FROM tab2 AS cor0
----
-1422
-224
-4680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL - + col1 AS col1 FROM tab2 cor0
----
-17
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-3219
SELECT DISTINCT + - col1 * col0 + col2 DIV cor0.col1 AS col0 FROM tab2 AS cor0
----
-1341
-217
-4602

skipif mysql # not compatible
query I rowsort label-3219
SELECT DISTINCT + - col1 * col0 + col2 / cor0.col1 AS col0 FROM tab2 AS cor0
----
-1341
-217
-4602

query I rowsort
SELECT ALL + col2 - cor0.col0 * col1 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT + cor0.col0 + + col0 * - col1 AS col1 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT + cor0.col2 + col0 FROM tab2 AS cor0
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-3223
SELECT ALL - tab2.col0 DIV - col1 + col2 * col1 AS col1 FROM tab2
----
1535
650
837

skipif mysql # not compatible
query I rowsort label-3223
SELECT ALL - tab2.col0 / - col1 + col2 * col1 AS col1 FROM tab2
----
1535
650
837

query I rowsort
SELECT DISTINCT col0 * col2 + - tab2.col0 FROM tab2
----
182
1950
2923

query I rowsort
SELECT ALL + col2 * col2 + + col0 * + col1 FROM tab0
----
14823
3153
3396

query I rowsort
SELECT ALL - - col2 + - col1 AS col0 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT DISTINCT - col1 + - col2 * + col0 AS col1 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT ALL col0 * + col0 FROM tab0 cor0
----
1225
576
7921

query I rowsort
SELECT DISTINCT col2 * - col1 - col2 * cor0.col2 AS col1 FROM tab2 AS cor0
----
-1566
-2090
-2210

query I rowsort
SELECT col2 + + col2 * col0 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT + cor0.col2 - + cor0.col1 * col1 FROM tab1 AS cor0
----
-43
-622
-73

query I rowsort
SELECT ALL col0 * col2 + col2 AS col0 FROM tab2 WHERE NOT ( col2 ) NOT BETWEEN col1 * + col0 AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3233
SELECT - col1 DIV col0 col2 FROM tab0
----
-1
-2
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3233
SELECT - col1 / col0 col2 FROM tab0
----
-1
-2
-3

query I rowsort
SELECT col1 * tab0.col0 + - col0 AS col2 FROM tab0
----
2040
3360
8010

query I rowsort
SELECT - + 39 * cor0.col2 FROM tab2 AS cor0
----
-1014
-1053
-1482

query I rowsort
SELECT DISTINCT - 90 + + col2 AS col2 FROM tab1 AS cor0
----
-33
-36
6

query I rowsort
SELECT + ( col2 ) + + col2 * - col2 FROM tab1
----
-2862
-3192
-9120

query I rowsort
SELECT ALL + col2 + col1 * col1 AS col2 FROM tab1 WHERE NOT NULL <> ( col2 * col2 / col1 ) AND NULL NOT IN ( + col1 )
----

query I rowsort
SELECT ALL - + cor0.col1 + - cor0.col1 AS col2 FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT DISTINCT - + col0 * + cor0.col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT ALL col0 * col1 AS col2 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT + col0 * - col0 * + col1 AS col1 FROM tab2 AS cor0
----
-106097
-1519
-358956

query I rowsort
SELECT ALL col1 * col0 - cor0.col1 * - col0 AS col1 FROM tab1 AS cor0
----
1280
156
2080

query I rowsort
SELECT DISTINCT + cor0.col0 * col0 FROM tab0 cor0
----
1225
576
7921

query I rowsort
SELECT DISTINCT - col2 * + col2 + + col1 * col0 FROM tab2
----
-101
-512
3926

query I rowsort
SELECT tab2.col0 - tab2.col0 FROM tab2
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3247
SELECT DISTINCT - tab2.col0 * + tab2.col0 + col2 DIV tab2.col0 FROM tab2
----
-46
-6084
-6241

skipif mysql # not compatible
query I rowsort label-3247
SELECT DISTINCT - tab2.col0 * + tab2.col0 + col2 / tab2.col0 FROM tab2
----
-46
-6084
-6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col2 col2 FROM tab2
----
26
27
38

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 NOT IN ( + col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT - col1 * + tab0.col0 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT - col2 + col0 + - col1 * + col2 FROM tab2 WHERE NOT col2 + - col1 + + col0 BETWEEN col2 + + col2 AND ( - col1 )
----
-1482
-605
-857

query I rowsort
SELECT ALL + col1 * col1 AS col0 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT ALL col0 * + col2 FROM tab2
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col0 col1 FROM tab1
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-3255
SELECT + col1 DIV + col2 FROM tab0 WHERE NOT + col2 * - col0 + col0 * col0 IN ( col0 )
----
1
2
97

skipif mysql # not compatible
query I rowsort label-3255
SELECT + col1 / + col2 FROM tab0 WHERE NOT + col2 * - col0 + col0 * col0 IN ( col0 )
----
1
2
97

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 - col1 + tab0.col1 col0 FROM tab0 WHERE NULL <= NULL
----

query I rowsort
SELECT col2 * col0 + col0 * + col2 FROM tab0
----
14596
1584
70

query I rowsort
SELECT DISTINCT + tab0.col2 + - col0 FROM tab0
----
-34
-7
9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <= NULL
----

query I rowsort
SELECT + col1 + + col1 AS col0 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE NOT col1 * + col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col0 + col1 AS col2 FROM tab1 cor0
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col1 col2 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT DISTINCT tab1.col1 * tab1.col0 + tab1.col1 FROM tab1
----
104
1053
650

query I rowsort
SELECT ALL + col2 * col0 + + col2 * + col2 FROM tab2
----
2704
4446
918

query III rowsort
SELECT * FROM tab0 WHERE col1 <= ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3268
SELECT DISTINCT col1 DIV col0 + col0 FROM tab1 AS cor0
----
11
64
80

skipif mysql # not compatible
query I rowsort label-3268
SELECT DISTINCT col1 / col0 + col0 FROM tab1 AS cor0
----
11
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + cor0.col1 * col0 * + col1 col1 FROM tab2 AS cor0
----
22752
271440
6720

query I rowsort
SELECT tab2.col0 * - col0 + + col0 - + col2 FROM tab2
----
-6032
-6200
-69

query I rowsort
SELECT - col0 + col0 + col2 AS col0 FROM tab0
----
1
33
82

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT IN ( col0 )
----

query I rowsort
SELECT DISTINCT tab1.col1 + col2 * + tab1.col0 FROM tab1
----
188
3658
7693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col2 + col0 col1 FROM tab0
----
132
2862
7551

query I rowsort
SELECT col2 / + col0 FROM tab1 WHERE NOT ( NULL ) IN ( - col2 * col2 * col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab1.col0 col0 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT col2 - tab2.col2 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT col2 + - tab1.col1 AS col1 FROM tab1
----
28
47
83

query I rowsort
SELECT + col2 * + col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT ALL col0 * col2 + + col2 * col0 FROM tab0
----
14596
1584
70

query III rowsort
SELECT * FROM tab2 WHERE NULL >= + col2
----

query I rowsort
SELECT ALL col0 + col1 AS col2 FROM tab1
----
29
74
93

query I rowsort
SELECT - col0 * - col1 + col1 FROM tab2
----
1360
248
4661

query I rowsort
SELECT DISTINCT - tab1.col2 + col0 AS col0 FROM tab1
----
-16
-51
7

query I rowsort
SELECT tab0.col2 * col1 + col2 FROM tab0
----
2871
7544
98

query I rowsort
SELECT DISTINCT + - cor0.col0 * - col0 AS col2 FROM tab2 AS cor0
----
49
6084
6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-3287
SELECT DISTINCT - + col0 DIV col1 AS col1 FROM tab2 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-3287
SELECT DISTINCT - + col0 / col1 AS col1 FROM tab2 AS cor0
----
-1
-4
0

query I rowsort
SELECT + - cor0.col1 * - col0 AS col0 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT col2 + + col0 AS col1 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL - - col0 * col1 - 95 FROM tab0 AS cor0
----
1969
3300
8004

query I rowsort
SELECT ALL + + col0 - - col0 * + ( col2 * cor0.col1 + + col1 ) FROM tab2 AS cor0
----
124332
52456
6083

query I rowsort
SELECT - ( - col1 ) * col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT + col1 * - cor0.col0 * - ( + cor0.col1 ) FROM tab1 AS cor0
----
13520
2028
6400

query I rowsort
SELECT ALL + 43 + - col0 * col1 AS col0 FROM tab2
----
-1300
-174
-4559

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col0 ) * + 7 * 46 col2 FROM tab2
----
2254
25116
25438

query I rowsort
SELECT ALL + tab2.col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT DISTINCT - 32 AS col2 FROM tab2
----
-32

skipif mysql # not compatible
query I rowsort
SELECT tab0.col1 + tab0.col0 * - CAST ( - col1 AS REAL ) * - col2 FROM tab0
----
-3298
-664027
-68026

query I rowsort
SELECT - col2 + col1 AS col0 FROM tab1 cor0
----
-28
-47
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 52 col1 FROM tab1 AS cor0
----
52
52
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-3301
SELECT col1 DIV col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3301
SELECT col1 / col2 AS col2 FROM tab1
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3302
SELECT + cor0.col2 * - CAST( + 12 AS SIGNED ) AS col1 FROM tab1, tab2, tab2 cor0
----
27 values hashing to 559aa6d59e761ab5d3c503fb12223a24

skipif mysql # not compatible
query I rowsort label-3302
SELECT + cor0.col2 * - CAST ( + 12 AS INTEGER ) AS col1 FROM tab1, tab2, tab2 cor0
----
27 values hashing to 559aa6d59e761ab5d3c503fb12223a24

query I rowsort
SELECT ALL tab0.col2 * - 47 FROM tab0
----
-1551
-3854
-47

query I rowsort
SELECT ALL col0 * - ( ( - col2 ) ) AS col1 FROM tab1
----
162
3648
7680

query I rowsort
SELECT - + cor0.col2 + cor0.col0 + + col0 AS col0 FROM tab2 AS cor0
----
-13
120
130

query I rowsort
SELECT DISTINCT + col2 - 44 * 32 AS col2 FROM tab0
----
-1326
-1375
-1407

query I rowsort
SELECT + tab1.col1 - - col0 FROM tab1
----
29
74
93

query I rowsort
SELECT + col1 + ( col2 ) - - col0 FROM tab0
----
133
143
262

query I rowsort
SELECT ALL + 44 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b

onlyif mysql # use DIV operator for integer division
query I rowsort label-3310
SELECT - col2 DIV 23 AS col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3310
SELECT - col2 / 23 AS col0 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT + ( - col1 ) + + col0 * + ( + ( + col2 ) ) + col2 AS col1 FROM tab1 AS cor0
----
190
3695
7763

query I rowsort
SELECT col1 + - col0 * + col2 + - col1 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT - ( 50 ) + col0 FROM tab2 AS cor0
----
-43
28
29

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3314
SELECT + + CAST( NULL AS SIGNED ) * 69 + + col0 * 63 + col2 * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3314
SELECT + + CAST ( NULL AS INTEGER ) * 69 + + col0 * 63 + col2 * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col1 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 * - 93 + col1 col2 FROM tab2
----
-620
-7195
-7330

query I rowsort
SELECT cor0.col0 * + col2 + + col1 AS col0 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT DISTINCT + col1 + + col2 * + col2 AS col0 FROM tab1 AS cor0
----
2942
3259
9229

onlyif mysql # use DIV operator for integer division
query I rowsort label-3319
SELECT DISTINCT - + col2 DIV + col2 - - col0 DIV + ( ( + col1 ) ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3319
SELECT DISTINCT - + col2 / + col2 - - col0 / + ( ( + col1 ) ) AS col1 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT + + ( col0 ) FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL - 38 FROM tab1 AS cor0
----
-38
-38
-38

skipif mysql # not compatible
query I rowsort
SELECT ALL + + CAST ( col0 AS REAL ) * - col2 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL + 43 FROM tab2 cor0
----
43
43
43

query I rowsort
SELECT 47 + col2 FROM tab2 AS cor0
----
73
74
85

query I rowsort
SELECT ALL - ( - col2 ) + col1 AS col0 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT - ( - ( col1 ) ) * ( + col0 ) FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT - col2 * 93 FROM tab2 cor0
----
-2418
-2511
-3534

query I rowsort
SELECT - 60 + col1 AS col2 FROM tab2 AS cor0
----
-1
-29
-43

query I rowsort
SELECT + - col0 + + 74 AS col0 FROM tab1 AS cor0
----
-6
10
71

query I rowsort
SELECT DISTINCT - + col2 - + cor0.col0 AS col0 FROM tab0 AS cor0
----
-171
-36
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-3331
SELECT DISTINCT tab0.col1 DIV col1 + col1 + tab0.col1 AS col0 FROM tab0
----
173
183
195

skipif mysql # not compatible
query I rowsort label-3331
SELECT DISTINCT tab0.col1 / col1 + col1 + tab0.col1 AS col0 FROM tab0
----
173
183
195

query I rowsort
SELECT - col1 * - 45 AS col0 FROM tab1
----
1170
450
585

onlyif mysql # use DIV operator for integer division
query I rowsort label-3333
SELECT 49 DIV - col0 + + col2 * col1 * + col0 + - col1 FROM tab2
----
119593
51017
5821

skipif mysql # not compatible
query I rowsort label-3333
SELECT 49 / - col0 + + col2 * col1 * + col0 + - col1 FROM tab2
----
119593
51017
5821

query I rowsort
SELECT + col2 + + tab1.col0 FROM tab1
----
121
176
57

query I rowsort
SELECT 22 + + col2 FROM tab1
----
118
76
79

query I rowsort
SELECT DISTINCT + 28 * + col2 + - tab0.col0 FROM tab0
----
-7
2207
900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + tab0.col2 col1 FROM tab0
----
119
173
98

query I rowsort
SELECT - tab0.col0 * 64 AS col0 FROM tab0
----
-1536
-2240
-5696

query I rowsort
SELECT 87 + 81 FROM tab1
----
168
168
168

query I rowsort
SELECT DISTINCT + col1 + - col2 * - col1 + - col1 * - col1 * col0 AS col2 FROM tab2
----
23494
273111
7595

query I rowsort
SELECT DISTINCT + ( - col0 ) * + col0 FROM tab1 AS cor0
----
-4096
-6400
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 9 + col2 * - col2 + + col2 * + col1 * - col2 col2 FROM tab0 AS cor0
----
-618599
-89
-94734

query I rowsort
SELECT ALL 56 * - col1 FROM tab0 AS cor0
----
-4816
-5096
-5432

query I rowsort
SELECT ALL - + 78 + 28 FROM tab0 AS cor0
----
-50
-50
-50

query I rowsort
SELECT ALL + col1 * - col2 * - col2 FROM tab1 AS cor0
----
119808
32490
75816

query I rowsort
SELECT DISTINCT 17 * cor0.col1 FROM tab1 AS cor0
----
170
221
442

query I rowsort
SELECT ALL - ( - col1 ) AS col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT - ( col0 ) * col1 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-3349
SELECT - col2 DIV col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3349
SELECT - col2 / col2 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - + 56 * col0 FROM tab1 AS cor0
----
-168
-3584
-4480

query I rowsort
SELECT cor0.col2 * cor0.col2 + - col0 + + col2 FROM tab0 cor0
----
-33
1098
6717

query I rowsort
SELECT DISTINCT - 38 FROM tab1 AS cor0
----
-38

query I rowsort
SELECT 42 * + col1 + col0 FROM tab1 AS cor0
----
1095
484
626

query I rowsort
SELECT DISTINCT + + 36 AS col2 FROM tab0 cor0
----
36

query I rowsort
SELECT ALL + cor0.col2 * col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT 91 FROM tab1 cor0
----
91
91
91

query I rowsort
SELECT ALL col1 * cor0.col2 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-3358
SELECT DISTINCT - col2 DIV + col0 col1 FROM tab1 AS cor0
----
-1
-18
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3358
SELECT DISTINCT - col2 / + col0 col1 FROM tab1 AS cor0
----
-1
-18
0

query I rowsort
SELECT + ( tab1.col0 * - col1 + - col1 ) FROM tab1
----
-104
-1053
-650

query I rowsort
SELECT 97 - tab0.col2 AS col1 FROM tab0
----
15
64
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3361
SELECT DISTINCT - col1 + - col0 DIV - tab0.col1 + - col0 FROM tab0
----
-110
-132
-180

skipif mysql # not compatible
query I rowsort label-3361
SELECT DISTINCT - col1 + - col0 / - tab0.col1 + - col0 FROM tab0
----
-110
-132
-180

query I rowsort
SELECT DISTINCT 73 + + col0 AS col1 FROM tab0
----
108
162
97

query I rowsort
SELECT col1 * + col1 * cor0.col1 AS col2 FROM tab2 AS cor0
----
205379
29791
4913

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 col0 FROM tab0 AS cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-3365
SELECT DISTINCT + + col2 + - col0 DIV - col0 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-3365
SELECT DISTINCT + + col2 + - col0 / - col0 FROM tab0 AS cor0
----
2
34
83

query I rowsort
SELECT ALL cor0.col0 * col0 + - 3 FROM tab2 cor0
----
46
6081
6238

query I rowsort
SELECT DISTINCT + col0 - col2 * + 18 FROM tab2 AS cor0
----
-390
-479
-605

onlyif mysql # use DIV operator for integer division
query I rowsort label-3368
SELECT ALL - col2 + col2 DIV + col1 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-3368
SELECT ALL - col2 + col2 / + col1 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT - col1 * col1 * + col1 + col1 FROM tab0 AS cor0
----
-635970
-753480
-912576

query I rowsort
SELECT col0 + - 53 AS col1 FROM tab0 AS cor0
----
-18
-29
36

query I rowsort
SELECT DISTINCT - - cor0.col0 * - col1 + cor0.col0 * + col1 * col2 AS col2 FROM tab2 AS cor0
----
115050
49691
5642

query I rowsort
SELECT ALL - col1 * - 81 FROM tab2 AS cor0
----
1377
2511
4779

query I rowsort
SELECT DISTINCT - 42 FROM tab1
----
-42

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3374
SELECT DISTINCT col1 + CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3374
SELECT DISTINCT col1 + CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col2 - + col0 * + col1 AS col1 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT - - col1 * - ( col1 ) FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL + cor0.col2 FROM tab1 cor0
----
54
57
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3378
SELECT + col1 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3378
SELECT + col1 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col1 + + col0 FROM tab2 AS cor0
----
-24
19
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - ( col2 ) col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL + - col2 * - 69 FROM tab0 AS cor0
----
2277
5658
69

query I rowsort
SELECT ALL - + cor0.col1 + - col0 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT - - col0 * + col2 * + col1 + col1 + - col2 FROM tab0 AS cor0
----
3491
664127
68165

query I rowsort
SELECT 27 + - 70 FROM tab2 AS cor0
----
-43
-43
-43

query I rowsort
SELECT DISTINCT - cor0.col0 * 2 AS col2 FROM tab0 AS cor0
----
-178
-48
-70

query I rowsort
SELECT ALL + 68 + - cor0.col0 + + col2 FROM tab1 AS cor0
----
119
61
84

query I rowsort
SELECT ALL 14 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query I rowsort
SELECT cor0.col1 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0 AS cor2
----
972 values hashing to 95de14c88adc44eda4adb5267fe9ebd1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3390
SELECT ALL col0 - - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3390
SELECT ALL col0 - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * - ( - ( - col0 ) ) + cor0.col0 AS col1 FROM tab2 cor0
----
-1264
-210
-4524

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col2 - + col2 * col2 col1 FROM tab0 AS cor0
----
-297
34
574

query I rowsort
SELECT + + col2 * ( - col2 ) AS col1 FROM tab2 AS cor0
----
-1444
-676
-729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col2 + - col1 col1 FROM tab2 cor0
----
158
1969
2985

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-3396
SELECT DISTINCT + col1 DIV col1 AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3396
SELECT DISTINCT + col1 / col1 AS col2 FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT + col2 + 13 FROM tab2 AS cor0
----
39
40
51

query I rowsort
SELECT + - cor0.col1 AS col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT col2 + col1 AS col0 FROM tab2 cor0
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-3400
SELECT 82 + col0 DIV ( + col2 ) AS col1 FROM tab0
----
117
82
83

skipif mysql # not compatible
query I rowsort label-3400
SELECT 82 + col0 / ( + col2 ) AS col1 FROM tab0
----
117
82
83

query I rowsort
SELECT DISTINCT - - cor0.col0 + + 1 AS col2 FROM tab2 AS cor0
----
79
8
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col2 + col1 + - col2 col2 FROM tab1 cor0
----
-190
-3695
-7763

query I rowsort
SELECT ALL col0 * - cor0.col0 AS col1 FROM tab0 cor0
----
-1225
-576
-7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-3404
SELECT col2 DIV - 88 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3404
SELECT col2 / - 88 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col1 * ( col1 ) * col1 AS col2 FROM tab0 AS cor0
----
-636056
-753571
-912673

query I rowsort
SELECT - - col2 + ( ( + col0 ) ) FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL + 93 FROM tab2, tab1 AS cor0, tab2 cor1, tab2 AS cor2
----
81 values hashing to bed80270d2bd273301f8ff63d7ef9f43

query I rowsort
SELECT cor0.col2 + tab0.col0 + cor0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to fdc0287773b7d6caec370d81f553750d

query I rowsort
SELECT ALL + 41 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
1066
410
533

query I rowsort
SELECT DISTINCT - - col1 + + col0 AS col0 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT - 69 * - col1 * - ( col2 ) + - cor0.col0 + col2 * - col1 FROM tab1 AS cor0
----
-39964
-87440
-98283

query I rowsort
SELECT 97 * col0 + ( 50 ) * + col1 AS col0 FROM tab2 AS cor0
----
10516
2229
8513

query I rowsort
SELECT DISTINCT cor1.col0 FROM tab1, tab2 cor0, tab0 AS cor1
----
24
35
89

query I rowsort
SELECT ALL col2 + - col0 * + col1 + 91 AS col0 FROM tab1 AS cor0
----
-492
-853
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-3415
SELECT DISTINCT col2 DIV + col0 - col2 FROM tab2 AS cor0
----
-24
-26
-38

skipif mysql # not compatible
query I rowsort label-3415
SELECT DISTINCT col2 / + col0 - col2 FROM tab2 AS cor0
----
-24
-26
-38

query I rowsort
SELECT - 82 * + col0 + cor0.col0 FROM tab1 AS cor0
----
-243
-5184
-6480

onlyif mysql # use DIV operator for integer division
query I rowsort label-3417
SELECT - col1 + + col2 DIV CAST( col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-17
-28
-59

skipif mysql # not compatible
query I rowsort label-3417
SELECT - col1 + + col2 / CAST ( col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-17
-28
-59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3418
SELECT ALL - CAST( - col1 AS SIGNED ) * col1 + ( col1 + col1 ) * - 50 AS col0 FROM tab2
----
-1411
-2139
-2419

skipif mysql # not compatible
query I rowsort label-3418
SELECT ALL - CAST ( - col1 AS INTEGER ) * col1 + ( col1 + col1 ) * - 50 AS col0 FROM tab2
----
-1411
-2139
-2419

query I rowsort
SELECT DISTINCT cor0.col2 FROM tab2, tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT + col2 + - 98 FROM tab0
----
-16
-65
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3421
SELECT + ( + col1 ) DIV col0 + - col1 FROM tab2
----
-17
-27
-59

skipif mysql # not compatible
query I rowsort label-3421
SELECT + ( + col1 ) / col0 + - col1 FROM tab2
----
-17
-27
-59

query I rowsort
SELECT cor0.col0 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

onlyif mysql # use DIV operator for integer division
query I rowsort label-3423
SELECT DISTINCT - cor0.col0 + col2 DIV + col1 + + cor0.col0 FROM tab2 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-3423
SELECT DISTINCT - cor0.col0 + col2 / + col1 + + cor0.col0 FROM tab2 AS cor0
----
0
2

query I rowsort
SELECT ALL + col0 - col2 * ( + col2 ) FROM tab1 AS cor0
----
-2913
-3185
-9136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 col0 FROM tab2 AS cor0
----
-26
-27
-38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3426
SELECT ALL col1 + col1 * + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3426
SELECT ALL col1 + col1 * + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 52 AS col1 FROM tab1
----
52
52
52

query I rowsort
SELECT ALL - col2 * col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col1 * CAST ( col2 + + col1 AS REAL ) FROM tab1
----
1417
2080
670

query I rowsort
SELECT - + cor0.col1 * - col2 AS col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT - col0 + + ( 39 ) AS col1 FROM tab1 cor0
----
-25
-41
36

query I rowsort
SELECT 79 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query I rowsort
SELECT - col2 * + tab0.col1 FROM tab0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3434
SELECT CAST( - 76 AS SIGNED ) DIV tab1.col0 FROM tab1
----
-1
-25
0

skipif mysql # not compatible
query I rowsort label-3434
SELECT CAST ( - 76 AS INTEGER ) / tab1.col0 FROM tab1
----
-1
-25
0

query I rowsort
SELECT DISTINCT - tab0.col2 AS col0 FROM tab0, tab1 AS cor0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-3436
SELECT ALL tab2.col0 DIV - col1 AS col0 FROM tab2
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-3436
SELECT ALL tab2.col0 / - col1 AS col0 FROM tab2
----
-1
-4
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3437
SELECT ALL + CAST( NULL AS DECIMAL ) * col0 + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3437
SELECT ALL + CAST ( NULL AS REAL ) * col0 + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( + col2 ) * col0 + - 55 FROM tab0 cor0
----
-20
7243
737

onlyif mysql # use DIV operator for integer division
query I rowsort label-3439
SELECT - col2 + + ( + col1 ) DIV col2 AS col2 FROM tab0 AS cor0
----
-31
-81
96

skipif mysql # not compatible
query I rowsort label-3439
SELECT - col2 + + ( + col1 ) / col2 AS col2 FROM tab0 AS cor0
----
-31
-81
96

query I rowsort
SELECT DISTINCT + 59 + + 30 AS col0 FROM tab1 AS cor0
----
89

query I rowsort
SELECT + - col2 * ( + col1 ) - col1 * 14 FROM tab0 AS cor0
----
-1455
-4042
-8736

query I rowsort
SELECT DISTINCT - + col2 * + ( - cor0.col2 ) AS col2 FROM tab0 AS cor0
----
1
1089
6724

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3443
SELECT + 31 + - col2 * CAST( + col0 AS SIGNED ) * col0 AS col1 FROM tab2 AS cor0
----
-1292
-158153
-237127

skipif mysql # not compatible
query I rowsort label-3443
SELECT + 31 + - col2 * CAST ( + col0 AS INTEGER ) * col0 AS col1 FROM tab2 AS cor0
----
-1292
-158153
-237127

query I rowsort
SELECT - + 62 * - col2 FROM tab1 cor0
----
3348
3534
5952

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + cor0.col2 * + col0 * - col0 + col1 col0 FROM tab2 AS cor0
----
-1261
-158066
-237124

query I rowsort
SELECT + - ( col2 ) + col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT ALL - 6 * - col1 FROM tab2 cor0
----
102
186
354

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 59 + + col0 * 31 col0 FROM tab2 AS cor0
----
2477
2508
276

query I rowsort
SELECT ALL - col0 * + col2 + col1 * - ( tab1.col2 ) FROM tab1
----
-1566
-4218
-8928

query I rowsort
SELECT DISTINCT tab2.col1 + col2 + + col1 AS col1 FROM tab2
----
144
72
89

query I rowsort
SELECT DISTINCT 28 AS col2 FROM tab2, tab1 cor0
----
28

query I rowsort
SELECT + 23 FROM tab2 cor0
----
23
23
23

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3453
SELECT - cor0.col1 / - col0 - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3453
SELECT - cor0.col1 / - col0 - + 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-3454
SELECT - ( col2 ) * CAST( NULL AS SIGNED ) + col1 + col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3454
SELECT - ( col2 ) * CAST ( NULL AS INTEGER ) + col1 + col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + col0 AS col2 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT 8 * - 50 + col1 AS col0 FROM tab2 AS cor0
----
-341
-369
-383

query I rowsort
SELECT 75 * col0 AS col1 FROM tab2 AS cor0
----
525
5850
5925

onlyif mysql # use DIV operator for integer division
query I rowsort label-3458
SELECT + col1 DIV cor0.col1 + col1 * col2 FROM tab0 cor0
----
2839
7463
98

skipif mysql # not compatible
query I rowsort label-3458
SELECT + col1 / cor0.col1 + col1 * col2 FROM tab0 cor0
----
2839
7463
98

query I rowsort
SELECT ALL + + ( 28 ) + col0 FROM tab0 AS cor0
----
117
52
63

query I rowsort
SELECT ALL - 91 FROM tab0, tab1 AS cor0, tab2 AS cor1, tab1 cor2
----
81 values hashing to ef93c6bfa06f5a2259971541054317e0

query I rowsort
SELECT cor1.col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

onlyif mysql # use DIV operator for integer division
query I rowsort label-3462
SELECT + col0 DIV col2 col0 FROM tab1
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3462
SELECT + col0 / col2 col0 FROM tab1
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3463
SELECT - + CAST( col2 AS SIGNED ) * - col2 + col0 DIV 60 col0 FROM tab2 AS cor0
----
1445
677
729

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3463
SELECT - + CAST ( col2 AS INTEGER ) * - col2 + col0 / 60 col0 FROM tab2 AS cor0
----
1445
677
729

query I rowsort
SELECT DISTINCT ( + col1 ) + col1 * + ( col0 + + col1 ) AS col2 FROM tab1 AS cor0
----
1222
750
780

query I rowsort
SELECT ( col2 ) + - col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 + 61 * col1 AS col0 FROM tab2 AS cor0
----
1075
1918
3625

query I rowsort
SELECT ALL + ( cor0.col1 ) + - col2 FROM tab2 AS cor0
----
-21
33
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3468
SELECT - CAST( col1 AS SIGNED ) * col2 AS col1 FROM tab0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-3468
SELECT - CAST ( col1 AS INTEGER ) * col2 AS col1 FROM tab0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col2 * col0 ) col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT ALL cor0.col1 + + col0 * col1 * 60 + col0 FROM tab1 AS cor0
----
38474
4709
62493

query I rowsort
SELECT DISTINCT cor0.col0 * col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL + 78 FROM tab2 cor0
----
78
78
78

query I rowsort
SELECT - 7 * ( col1 ) FROM tab2
----
-119
-217
-413

query I rowsort
SELECT col2 - col1 * col2 FROM tab0
----
-2805
-7380
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3475
SELECT - CAST( NULL AS SIGNED ) - tab2.col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3475
SELECT - CAST ( NULL AS INTEGER ) - tab2.col1 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * + col1 + - col1 FROM tab0
----
7310
8190
9312

query I rowsort
SELECT DISTINCT ( ( col1 ) ) + ( - col1 ) * + col0 * 93 AS col1 FROM tab1
----
-59510
-7228
-96707

query I rowsort
SELECT DISTINCT col2 * + 85 + + col2 FROM tab1
----
4644
4902
8256

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3479
SELECT + CAST( + 80 AS SIGNED ) AS col2 FROM tab0
----
80
80
80

skipif mysql # not compatible
query I rowsort label-3479
SELECT + CAST ( + 80 AS INTEGER ) AS col2 FROM tab0
----
80
80
80

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0, tab1 cor0, tab2
----
972 values hashing to f0b9665afa0b835e4e5097af17c51766

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3481
SELECT DISTINCT - CAST( - ( col2 ) * col0 AS SIGNED ) + col0 + - tab2.col2 AS col0 FROM tab2
----
169
2080
3043

skipif mysql # not compatible
query I rowsort label-3481
SELECT DISTINCT - CAST ( - ( col2 ) * col0 AS INTEGER ) + col0 + - tab2.col2 AS col0 FROM tab2
----
169
2080
3043

query I rowsort
SELECT + ( col0 * col0 ) FROM tab2
----
49
6084
6241

query I rowsort
SELECT DISTINCT 36 * + 15 + col1 FROM tab1
----
550
553
566

query I rowsort
SELECT DISTINCT + tab2.col1 + tab2.col2 AS col1 FROM tab2
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-3485
SELECT + col1 DIV + col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3485
SELECT + col1 / + col1 FROM tab0
----
1
1
1

query I rowsort
SELECT 31 * col2 FROM tab2
----
1178
806
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-3487
SELECT + ( + col1 ) DIV + ( + col1 ) AS col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3487
SELECT + ( + col1 ) / + ( + col1 ) AS col2 FROM tab0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col0 * - col2 + + col2 * col0 col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT + col0 * + cor0.col2 - - 66 FROM tab1 AS cor0
----
228
3714
7746

query I rowsort
SELECT DISTINCT + col2 * cor0.col2 FROM tab2 cor0
----
1444
676
729

query I rowsort
SELECT cor0.col0 * - ( col2 ) + col0 AS col2 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT DISTINCT col0 * + col0 AS col0 FROM tab1
----
4096
6400
9

query I rowsort
SELECT 76 AS col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da

query I rowsort
SELECT ALL 83 AS col2 FROM tab1
----
83
83
83

query I rowsort
SELECT DISTINCT + 82 AS col1 FROM tab1
----
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-3496
SELECT DISTINCT col2 DIV ( + col1 ) - col1 FROM tab2
----
-15
-31
-59

skipif mysql # not compatible
query I rowsort label-3496
SELECT DISTINCT col2 / ( + col1 ) - col1 FROM tab2
----
-15
-31
-59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3497
SELECT - + col2 * CAST( NULL AS SIGNED ) + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3497
SELECT - + col2 * CAST ( NULL AS INTEGER ) + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + ( col1 ) col0 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT - - col1 * col2 + 8 AS col1 FROM tab0 AS cor0
----
105
2846
7470

query I rowsort
SELECT - - cor0.col0 * + cor0.col0 + - col0 * - col2 FROM tab2 AS cor0
----
238
8112
9243

query I rowsort
SELECT ALL 17 * 15 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to b2f39c9d3ef21df12bda291913b529b6

query I rowsort
SELECT ALL + 14 AS col2 FROM tab1 AS cor0
----
14
14
14

query I rowsort
SELECT DISTINCT - col2 * 99 FROM tab2
----
-2574
-2673
-3762

query I rowsort
SELECT - cor0.col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

onlyif mysql # use DIV operator for integer division
query I rowsort label-3505
SELECT col1 DIV - 86 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3505
SELECT col1 / - 86 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT 28 * cor1.col0 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 30aa3594d67af24d5272b70ab120f514

query I rowsort
SELECT DISTINCT 81 AS col0 FROM tab1, tab0 AS cor0
----
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-3508
SELECT DISTINCT tab2.col2 - tab2.col0 DIV col1 AS col1 FROM tab2
----
25
27
34

skipif mysql # not compatible
query I rowsort label-3508
SELECT DISTINCT tab2.col2 - tab2.col0 / col1 AS col1 FROM tab2
----
25
27
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-3509
SELECT ALL + col0 DIV col0 AS col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3509
SELECT ALL + col0 / col0 AS col2 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + col2 * col2 AS col0 FROM tab1 AS cor0
----
2916
3249
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col2 col1 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT - 64 * + col2 AS col1 FROM tab1 AS cor0
----
-3456
-3648
-6144

query I rowsort
SELECT - 4 + col0 * + cor0.col0 FROM tab1 cor0
----
4092
5
6396

query I rowsort
SELECT DISTINCT - - col2 * col2 * - col1 FROM tab2 AS cor0
----
-22599
-24548
-39884

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3515
SELECT + CAST( 94 * col2 AS SIGNED ) FROM tab1
----
5076
5358
9024

skipif mysql # not compatible
query I rowsort label-3515
SELECT + CAST ( 94 * col2 AS INTEGER ) FROM tab1
----
5076
5358
9024

query I rowsort
SELECT DISTINCT - - cor0.col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + 8 * - col1 * col0 FROM tab0 AS cor0
----
-16512
-27160
-64792

query I rowsort
SELECT ALL + 9 AS col1 FROM tab0 AS cor0
----
9
9
9

query I rowsort
SELECT - 74 * col1 + col0 FROM tab1 AS cor0
----
-1921
-676
-882

query I rowsort
SELECT DISTINCT 6 * col2 AS col0 FROM tab0 cor0
----
198
492
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3521
SELECT + CAST( NULL AS SIGNED ) * - col0 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3521
SELECT + CAST ( NULL AS INTEGER ) * - col0 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - ( col1 ) FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT + 91 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
3003
7462
91

query I rowsort
SELECT DISTINCT - - col0 + - col1 AS col2 FROM tab0 AS cor0
----
-2
-62

query I rowsort
SELECT + + col0 * - 20 + + col2 FROM tab1 AS cor0
----
-1223
-1504
-6

onlyif mysql # use DIV operator for integer division
query I rowsort label-3526
SELECT ALL - - 14 * col2 + + col0 DIV col2 + col0 * col0 * + col0 FROM tab0 cor0
----
14286
42924
706118

skipif mysql # not compatible
query I rowsort label-3526
SELECT ALL - - 14 * col2 + + col0 / col2 + col0 * col0 * + col0 FROM tab0 cor0
----
14286
42924
706118

query I rowsort
SELECT ALL cor0.col1 * cor0.col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT col1 - 77 FROM tab0 AS cor0
----
14
20
9

query I rowsort
SELECT ALL - ( cor0.col1 ) + col1 + + col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT - + col1 * cor0.col0 - + col2 AS col0 FROM tab1 AS cor0
----
-1136
-132
-697

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3531
SELECT CAST( col2 AS SIGNED ) + + col2 FROM tab0 AS cor0
----
164
2
66

skipif mysql # not compatible
query I rowsort label-3531
SELECT CAST ( col2 AS INTEGER ) + + col2 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT DISTINCT - - col0 + col1 AS col2 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL + + ( - 82 ) - col1 FROM tab0 AS cor0
----
-168
-173
-179

query I rowsort
SELECT + col0 + cor0.col0 AS col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT + tab1.col0 * col2 + 84 FROM tab1
----
246
3732
7764

query I rowsort
SELECT DISTINCT + 56 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
56

query I rowsort
SELECT + - col1 * col0 AS col2 FROM tab1 cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-3538
SELECT ALL + + col2 DIV col2 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3538
SELECT ALL + + col2 / col2 FROM tab0 cor0
----
1
1
1

query I rowsort
SELECT - + cor0.col2 * - cor0.col0 * 6 FROM tab0 AS cor0
----
210
43788
4752

onlyif mysql # use DIV operator for integer division
query I rowsort label-3540
SELECT ALL - col0 DIV cor0.col2 + + ( - col1 ) FROM tab1 AS cor0
----
-11
-13
-26

skipif mysql # not compatible
query I rowsort label-3540
SELECT ALL - col0 / cor0.col2 + + ( - col1 ) FROM tab1 AS cor0
----
-11
-13
-26

query I rowsort
SELECT DISTINCT 32 * - col1 AS col0 FROM tab0 AS cor0
----
-2752
-2912
-3104

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3542
SELECT DISTINCT + 72 * cor0.col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3542
SELECT DISTINCT + 72 * cor0.col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3543
SELECT + - cor0.col0 DIV col2 FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-3543
SELECT + - cor0.col0 / col2 FROM tab0 AS cor0
----
-1
-35
0

query I rowsort
SELECT - + ( - cor0.col0 ) + col0 * 29 * cor0.col0 FROM tab1 AS cor0
----
118848
185680
264

onlyif mysql # use DIV operator for integer division
query I rowsort label-3545
SELECT DISTINCT col1 DIV col0 FROM tab2 AS cor0
----
0
4

skipif mysql # not compatible
query I rowsort label-3545
SELECT DISTINCT col1 / col0 FROM tab2 AS cor0
----
0
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3546
SELECT - col2 + + col1 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3546
SELECT - col2 + + col1 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col2 * col2 + ( - col1 ) * + col0 FROM tab1 AS cor0
----
2609
2838
8176

onlyif mysql # use DIV operator for integer division
query I rowsort label-3548
SELECT 92 DIV - col0 FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-3548
SELECT 92 / - col0 FROM tab0 AS cor0
----
-1
-2
-3

query I rowsort
SELECT ALL - col1 + 25 FROM tab0 AS cor0
----
-61
-66
-72

onlyif mysql # use DIV operator for integer division
query I rowsort label-3550
SELECT - - col1 + - col0 DIV col0 AS col0 FROM tab1 AS cor0
----
12
25
9

skipif mysql # not compatible
query I rowsort label-3550
SELECT - - col1 + - col0 / col0 AS col0 FROM tab1 AS cor0
----
12
25
9

query I rowsort
SELECT DISTINCT - cor0.col1 + col2 * + col1 AS col2 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT ALL + 40 FROM tab2, tab2 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT ALL - cor0.col2 + + ( col2 ) AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3554
SELECT DISTINCT cor0.col2 DIV + col1 + cor0.col2 AS col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-3554
SELECT DISTINCT cor0.col2 / + col1 + cor0.col2 AS col1 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-3555
SELECT col1 DIV 81 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3555
SELECT col1 / 81 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - tab2.col0 * col2 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT + cor0.col0 + - cor0.col1 FROM tab0, tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT + cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT ALL + col0 * col0 AS col2 FROM tab0
----
1225
576
7921

query I rowsort
SELECT ( - 91 ) + - col0 * tab2.col1 FROM tab2
----
-1434
-308
-4693

query I rowsort
SELECT ALL 76 * tab0.col1 FROM tab0
----
6536
6916
7372

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( 85 AS REAL ) * - col2 FROM tab0
----
-2805
-6970
-85

query I rowsort
SELECT 88 + col0 AS col2 FROM tab0
----
112
123
177

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3564
SELECT ALL + CAST( 32 AS SIGNED ) * col1 col2 FROM tab0 AS cor0
----
2752
2912
3104

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3564
SELECT ALL + CAST ( 32 AS INTEGER ) * col1 col2 FROM tab0 AS cor0
----
2752
2912
3104

query I rowsort
SELECT ALL cor0.col0 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT DISTINCT - + 17 * + 53 * + col0 AS col1 FROM tab1 AS cor0
----
-2703
-57664
-72080

query I rowsort
SELECT - 80 + col1 FROM tab0 AS cor0
----
11
17
6

query I rowsort
SELECT DISTINCT 31 FROM tab2, tab1 AS cor0, tab1 cor1, tab2 AS cor2
----
31

query I rowsort
SELECT DISTINCT - + ( - col1 ) * + col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT - + col1 * - col1 AS col0 FROM tab2 AS cor0
----
289
3481
961

onlyif mysql # use DIV operator for integer division
query I rowsort label-3571
SELECT DISTINCT col0 DIV + col2 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-3571
SELECT DISTINCT col0 / + col2 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT ( col0 ) * 10 + 3 AS col2 FROM tab1 AS cor0
----
33
643
803

query I rowsort
SELECT cor0.col2 * col0 AS col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL - 84 * col0 FROM tab0
----
-2016
-2940
-7476

query I rowsort
SELECT - 10 FROM tab1 AS cor0
----
-10
-10
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col0 FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT 44 * - col2 FROM tab0 cor0
----
-1452
-3608
-44

query I rowsort
SELECT ALL 15 AS col1 FROM tab2
----
15
15
15

query I rowsort
SELECT cor1.col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3580
SELECT + + col0 + + col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3580
SELECT + + col0 + + col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * col2 + col1 * + 73 FROM tab0
----
-819
3440
6984

query I rowsort
SELECT + 20 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT - + cor0.col2 * + col0 FROM tab0 AS cor0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 27 col0 FROM tab2 cor0
----
-27
-27
-27

query I rowsort
SELECT DISTINCT + + col2 + + col0 AS col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL col1 + cor0.col2 + 5 AS col0 FROM tab1 AS cor0
----
114
72
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3587
SELECT - col2 * - CAST( 70 AS SIGNED ) + col0 FROM tab0 AS cor0
----
105
2334
5829

skipif mysql # not compatible
query I rowsort label-3587
SELECT - col2 * - CAST ( 70 AS INTEGER ) + col0 FROM tab0 AS cor0
----
105
2334
5829

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3588
SELECT ALL - + col0 * - CAST( + col2 AS SIGNED ) * cor0.col1 AS col0 FROM tab1 AS cor0
----
36480
4212
99840

skipif mysql # not compatible
query I rowsort label-3588
SELECT ALL - + col0 * - CAST ( + col2 AS INTEGER ) * cor0.col1 AS col0 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT col2 * ( - col0 ) - col1 * 87 AS col1 FROM tab1 AS cor0
----
-2424
-4518
-8811

query I rowsort
SELECT DISTINCT - - cor0.col1 + - ( col0 ) FROM tab0 AS cor0
----
2
62

query I rowsort
SELECT ALL + + col2 + 37 * + 83 FROM tab0 AS cor0
----
3072
3104
3153

query I rowsort
SELECT ALL - col2 + 46 * col1 FROM tab1
----
1142
403
502

skipif mysql # not compatible
query I rowsort
SELECT cor0.col2 * CAST ( - 33 AS REAL ) - col2 FROM tab0 AS cor0
----
-1122
-2788
-34

query I rowsort
SELECT - col1 - col2 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT + col0 * - ( - cor0.col2 ) + cor0.col2 + col2 FROM tab0 AS cor0
----
37
7462
858

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3596
SELECT DISTINCT - col0 * 75 * + 61 + + col1 * CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
-13647
-292160
-364960

skipif mysql # not compatible
query I rowsort label-3596
SELECT DISTINCT - col0 * 75 * + 61 + + col1 * CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
-13647
-292160
-364960

query I rowsort
SELECT col0 + + cor0.col1 * - cor0.col1 * col2 AS col1 FROM tab0 cor0
----
-244044
-678953
-9374

query I rowsort
SELECT DISTINCT col2 + - col2 * + 63 FROM tab1 AS cor0
----
-3348
-3534
-5952

query I rowsort
SELECT ALL + + col1 * + 52 AS col2 FROM tab2 AS cor0
----
1612
3068
884

query I rowsort
SELECT ALL - col1 * - cor0.col1 AS col2 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT - col0 + col0 + col1 FROM tab2 AS cor0
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-3602
SELECT + col1 DIV - col1 + - col1 + + 79 AS col0 FROM tab1 AS cor0
----
52
65
68

skipif mysql # not compatible
query I rowsort label-3602
SELECT + col1 / - col1 + - col1 + + 79 AS col0 FROM tab1 AS cor0
----
52
65
68

query I rowsort
SELECT + col1 * - col1 + col2 AS col2 FROM tab0 AS cor0
----
-7363
-8199
-9408

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3604
SELECT ALL - cor0.col0 + + CAST( 75 AS SIGNED ) FROM tab2, tab0 AS cor0
----
9 values hashing to 9cc707ebe3ac352dd6a326f4ba080035

skipif mysql # not compatible
query I rowsort label-3604
SELECT ALL - cor0.col0 + + CAST ( 75 AS INTEGER ) FROM tab2, tab0 AS cor0
----
9 values hashing to 9cc707ebe3ac352dd6a326f4ba080035

query I rowsort
SELECT DISTINCT + + cor1.col0 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
7
78
79

query I rowsort
SELECT + col0 * ( col2 ) FROM tab2
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - ( col0 ) * tab0.col0 + - col0 col1 FROM tab0
----
-1259
-567
-7928

query I rowsort
SELECT ( col2 ) * col0 - - 37 * + cor0.col1 * col0 AS col1 FROM tab2 AS cor0
----
172302
52693
8218

query I rowsort
SELECT 62 + 70 AS col1 FROM tab1 AS cor0
----
132
132
132

onlyif mysql # use DIV operator for integer division
query I rowsort label-3610
SELECT + 2 DIV col1 + + col2 AS col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-3610
SELECT + 2 / col1 + + col2 AS col2 FROM tab1 AS cor0
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + ( - col1 ) * + col0 col1 FROM tab0 cor0
----
-2097
-3396
-8181

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-3613
SELECT DISTINCT + col2 + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3613
SELECT DISTINCT + col2 + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT - col2 - cor0.col2 FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT ALL ( - cor0.col1 ) * - cor0.col2 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3616
SELECT col2 * CAST( NULL AS SIGNED ) / + col0 + - tab0.col2 + ( + tab0.col2 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3616
SELECT col2 * CAST ( NULL AS INTEGER ) / + col0 + - tab0.col2 + ( + tab0.col2 ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3617
SELECT - col1 DIV + tab0.col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3617
SELECT - col1 / + tab0.col1 FROM tab0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3618
SELECT col1 * col0 - col2 DIV - col0 AS col1 FROM tab0 cor0
----
2065
3395
8099

skipif mysql # not compatible
query I rowsort label-3618
SELECT col1 * col0 - col2 / - col0 AS col1 FROM tab0 cor0
----
2065
3395
8099

query I rowsort
SELECT - + 7 + 99 FROM tab2 AS cor0
----
92
92
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + col1 col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3621
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3621
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - ( col2 ) * + col0 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT + 77 FROM tab1
----
77
77
77

query I rowsort
SELECT cor0.col0 * col1 + ( - col1 ) * + col0 + - 6 FROM tab0 cor0
----
-6
-6
-6

onlyif mysql # use DIV operator for integer division
query I rowsort label-3625
SELECT + col2 DIV col1 + CAST( + col2 AS SIGNED ) FROM tab1 AS cor0
----
103
56
62

skipif mysql # not compatible
query I rowsort label-3625
SELECT + col2 / col1 + CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
103
56
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-3626
SELECT ALL + 54 * - cor0.col0 + 54 DIV + col0 AS col1 FROM tab1 AS cor0
----
-144
-3456
-4320

skipif mysql # not compatible
query I rowsort label-3626
SELECT ALL + 54 * - cor0.col0 + 54 / + col0 AS col1 FROM tab1 AS cor0
----
-144
-3456
-4320

query I rowsort
SELECT - 73 - 85 * col1 AS col2 FROM tab0
----
-7383
-7808
-8318

onlyif mysql # use DIV operator for integer division
query I rowsort label-3628
SELECT - col0 * + col2 DIV col2 FROM tab0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-3628
SELECT - col0 * + col2 / col2 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT cor0.col1 * - col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT - + cor0.col2 * + 43 FROM tab2 AS cor0
----
-1118
-1161
-1634

query I rowsort
SELECT DISTINCT + 18 * 97 AS col1 FROM tab0, tab0 AS cor0
----
1746

query I rowsort
SELECT DISTINCT - ( tab1.col1 ) AS col0 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT DISTINCT 54 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
54

onlyif mysql # use DIV operator for integer division
query I rowsort label-3634
SELECT col1 DIV + 41 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3634
SELECT col1 / + 41 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL - 27 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

onlyif mysql # use DIV operator for integer division
query I rowsort label-3636
SELECT col0 * 91 DIV ( - col2 ) AS col0 FROM tab0
----
-3185
-66
-98

skipif mysql # not compatible
query I rowsort label-3636
SELECT col0 * 91 / ( - col2 ) AS col0 FROM tab0
----
-3185
-66
-98

query I rowsort
SELECT - 8 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0 WHERE NOT NULL <= NULL
----

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab1 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to b62c1ebc681aca72d13feadb888b3be7

query I rowsort
SELECT col1 + 2 FROM tab0 AS cor0
----
88
93
99

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT 72 + col0 - + CAST ( - col0 + col2 AS REAL ) * col0 * col2 FROM tab0
----
-7032
1297
51247

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - col1 col1 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT - 29 * - col2 AS col1 FROM tab1 AS cor0
----
1566
1653
2784

query I rowsort
SELECT ALL + col1 * + col2 * + cor0.col2 FROM tab2 AS cor0
----
22599
24548
39884

query I rowsort
SELECT - 59 FROM tab1 AS cor0
----
-59
-59
-59

query I rowsort
SELECT ALL + col2 + col1 * ( col2 * col2 ) AS col2 FROM tab2 AS cor0
----
22626
24586
39910

query I rowsort
SELECT - 28 * col1 + col0 + col0 * col1 AS col1 FROM tab2 cor0
----
-644
3028
946

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + + col2 + + col1 col0 FROM tab2 AS cor0
----
111
85
93

query I rowsort
SELECT - cor0.col0 * + ( - col2 ) + - col0 FROM tab2 AS cor0
----
182
1950
2923

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3650
SELECT ALL col0 * - CAST( 81 AS SIGNED ) + cor0.col2 FROM tab2 AS cor0
----
-540
-6292
-6361

skipif mysql # not compatible
query I rowsort label-3650
SELECT ALL col0 * - CAST ( 81 AS INTEGER ) + cor0.col2 FROM tab2 AS cor0
----
-540
-6292
-6361

query I rowsort
SELECT ALL + col0 + col1 * col1 AS col0 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT - - col1 + col2 + - col2 AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT - col1 * + col0 * - col2 FROM tab2 AS cor0
----
119652
51034
5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-3654
SELECT DISTINCT + col2 DIV col1 FROM tab1 cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-3654
SELECT DISTINCT + col2 / col1 FROM tab1 cor0
----
2
5
7

query I rowsort
SELECT DISTINCT + 58 + 19 * - cor0.col2 FROM tab0, tab1 AS cor0
----
-1025
-1766
-968

query I rowsort
SELECT ALL - 1 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query I rowsort
SELECT DISTINCT - col2 - - col2 FROM tab1 AS cor0
----
0

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0, tab2 cor1, tab0 AS cor2
----
972 values hashing to e4c748f267e8d2a0e6d563281e1fb975

query I rowsort
SELECT + cor1.col2 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT + - tab1.col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

onlyif mysql # use DIV operator for integer division
query I rowsort label-3661
SELECT ALL 83 * col2 DIV + tab1.col0 FROM tab1
----
1494
73
99

skipif mysql # not compatible
query I rowsort label-3661
SELECT ALL 83 * col2 / + tab1.col0 FROM tab1
----
1494
73
99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3662
SELECT + CAST( NULL AS DECIMAL ) / 5 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3662
SELECT + CAST ( NULL AS REAL ) / 5 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 12 col0 FROM tab1 AS cor0
----
-12
-12
-12

query I rowsort
SELECT DISTINCT cor0.col2 + + ( 0 ) FROM tab0, tab1 AS cor0, tab1 cor1
----
54
57
96

query I rowsort
SELECT DISTINCT + 59 FROM tab1 AS cor0
----
59

query I rowsort
SELECT DISTINCT - 25 FROM tab0, tab1 AS cor0
----
-25

query I rowsort
SELECT - ( + col1 ) + col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col1 + + 37 - col0 FROM tab1 AS cor0
----
-37
-56
8

query I rowsort
SELECT DISTINCT 64 AS col2 FROM tab1 AS cor0
----
64

query I rowsort
SELECT ALL - col0 + - col0 + - cor0.col1 AS col2 FROM tab1 AS cor0
----
-138
-173
-32

query I rowsort
SELECT DISTINCT + - 62 + col1 FROM tab0 AS cor0
----
24
29
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 col1 FROM tab1
----
42
42
42

query I rowsort
SELECT ALL + col2 + + col1 AS col0 FROM tab1 cor0
----
109
67
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3674
SELECT + cor0.col0 + + col2 * + 10 * ( - col1 + - CAST( col2 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
-104560
-38126
-43197

skipif mysql # not compatible
query I rowsort label-3674
SELECT + cor0.col0 + + col2 * + 10 * ( - col1 + - CAST ( col2 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
-104560
-38126
-43197

query I rowsort
SELECT ALL + - col1 FROM tab1 cor0
----
-10
-13
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-3676
SELECT 8 DIV cor0.col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3676
SELECT 8 / cor0.col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - cor0.col2 * col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ALL + - col1 * col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT + col0 - + col2 AS col0 FROM tab1
----
-16
-51
7

query I rowsort
SELECT ( 14 * + tab2.col1 ) + - 75 AS col1 FROM tab2
----
163
359
751

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col2 * col1 col1 FROM tab0
----
2838
7462
97

query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab1, tab0, tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT - cor0.col0 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
-3
-64
-80

query I rowsort
SELECT 80 + + col2 AS col1 FROM tab0 AS cor0
----
113
162
81

query I rowsort
SELECT DISTINCT - col1 * + col2 - + ( + col0 + col1 ) FROM tab1 AS cor0
----
-1341
-1433
-644

query I rowsort
SELECT ALL + 23 + cor0.col0 FROM tab0 AS cor0
----
112
47
58

query I rowsort
SELECT ALL + - col1 AS col0 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT 20 FROM tab1 AS cor0
----
20
20
20

query I rowsort
SELECT ALL + col2 * - col0 + col1 AS col1 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT DISTINCT + 30 * col2 AS col0 FROM tab0 AS cor0
----
2460
30
990

query I rowsort
SELECT ALL 83 AS col0 FROM tab1
----
83
83
83

query I rowsort
SELECT ALL - cor0.col2 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query I rowsort
SELECT ALL - 12 AS col2 FROM tab0
----
-12
-12
-12

query I rowsort
SELECT ALL col0 * + col0 + col0 * tab1.col1 - col2 * col1 FROM tab1
----
-1317
4166
6192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 * col1 + - cor0.col1 col0 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT ALL - col2 * col1 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL 62 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b

query I rowsort
SELECT ALL - ( + col0 ) AS col2 FROM tab1
----
-3
-64
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3699
SELECT CAST( + col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-3699
SELECT CAST ( + col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL + cor0.col1 - - col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL - - col1 - cor0.col2 * + col1 AS col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT ALL - + 99 + col0 + - col0 AS col1 FROM tab1 AS cor0
----
-99
-99
-99

query I rowsort
SELECT - 19 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

query I rowsort
SELECT DISTINCT col0 * + 30 * - col1 FROM tab1
----
-19200
-2340
-31200

query I rowsort
SELECT DISTINCT - tab2.col0 + - col2 FROM tab2
----
-104
-117
-34

query I rowsort
SELECT DISTINCT + tab1.col1 + - ( + col0 ) AS col0 FROM tab1
----
-54
-67
23

query I rowsort
SELECT DISTINCT tab1.col0 * - col0 + + col2 FROM tab1
----
-4039
-6304
45

query I rowsort
SELECT - cor1.col2 * cor0.col2 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to 5bcee6a8ffbd87f0429551bc7e631cdb

query I rowsort
SELECT ALL + col1 * 22 + - col1 FROM tab2
----
1239
357
651

query I rowsort
SELECT + col1 * + ( ( - tab2.col1 ) * ( col1 ) ) AS col1 FROM tab2
----
-205379
-29791
-4913

query I rowsort
SELECT DISTINCT - col1 * + ( tab0.col2 ) + col0 * + ( - col2 ) + - col1 AS col1 FROM tab0
----
-14851
-229
-3716

query I rowsort
SELECT - col1 + col0 * - col2 AS col1 FROM tab2
----
-2087
-220
-3019

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3713
SELECT DISTINCT col0 + CAST( ( col0 ) AS SIGNED ) AS col0 FROM tab1
----
128
160
6

skipif mysql # not compatible
query I rowsort label-3713
SELECT DISTINCT col0 + CAST ( ( col0 ) AS INTEGER ) AS col0 FROM tab1
----
128
160
6

query I rowsort
SELECT + col0 * 6 FROM tab0
----
144
210
534

query I rowsort
SELECT ALL - 75 AS col2 FROM tab2 AS cor0
----
-75
-75
-75

query I rowsort
SELECT - + col1 + + col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 + col0 - - col1 FROM tab1 AS cor0
----
106
55
84

query I rowsort
SELECT DISTINCT col1 * - col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

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 DISTINCT - col1 * + col2 + col1 + ( 19 + cor0.col0 ) FROM tab2 cor0
----
-1378
-531
-780

onlyif mysql # use DIV operator for integer division
query I rowsort label-3721
SELECT ALL - col1 + 94 DIV + cor0.col1 AS col1 FROM tab1 cor0
----
-1
-23
-6

skipif mysql # not compatible
query I rowsort label-3721
SELECT ALL - col1 + 94 / + cor0.col1 AS col1 FROM tab1 cor0
----
-1
-23
-6

query I rowsort
SELECT DISTINCT + 59 * + cor0.col1 * - col2 + cor0.col2 AS col0 FROM tab0 AS cor0
----
-167409
-440176
-5722

query I rowsort
SELECT + - 77 * 46 AS col1 FROM tab2 AS cor0
----
-3542
-3542
-3542

query I rowsort
SELECT DISTINCT - 50 AS col0 FROM tab1 AS cor0
----
-50

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3725
SELECT - CAST( + col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-3725
SELECT - CAST ( + col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ALL 68 + - col0 * cor0.col1 FROM tab2 AS cor0
----
-1275
-149
-4534

query I rowsort
SELECT - ( col1 ) + cor0.col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 + - ( col1 ) AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT ( + col2 ) + col0 AS col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT tab1.col2 + + col1 * col1 + + col2 AS col1 FROM tab1
----
214
361
784

query I rowsort
SELECT - col2 * col0 + 97 FROM tab2
----
-1931
-2905
-92

query I rowsort
SELECT col1 + tab2.col2 * - ( col1 ) FROM tab2
----
-1475
-629
-806

query I rowsort
SELECT - - cor0.col1 * + ( cor0.col1 ) AS col0 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT col1 - col1 * col1 FROM tab0 AS cor0
----
-7310
-8190
-9312

query I rowsort
SELECT DISTINCT - col1 * col2 + + ( - tab0.col0 ) FROM tab0
----
-132
-2862
-7551

query I rowsort
SELECT + col0 * + col0 AS col0 FROM tab2
----
49
6084
6241

query I rowsort
SELECT ALL tab2.col2 * col2 + - ( + col2 ) * - col1 * - col0 FROM tab2
----
-118976
-49590
-5130

onlyif mysql # use DIV operator for integer division
query I rowsort label-3738
SELECT col1 DIV - col2 AS col2 FROM tab0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-3738
SELECT col1 / - col2 AS col2 FROM tab0
----
-1
-2
-97

query I rowsort
SELECT tab0.col2 * col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT col1 * 34 + + col2 AS col1 FROM tab1 cor0
----
397
538
938

query I rowsort
SELECT DISTINCT + + col1 * ( col1 ) + col0 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT + + col0 * + 98 * col2 FROM tab2 AS cor0
----
18522
198744
294196

query I rowsort
SELECT DISTINCT col1 * 27 * col1 AS col0 FROM tab2 AS cor0
----
25947
7803
93987

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 29 col2 FROM tab0, tab0 cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT DISTINCT + cor0.col0 * + 28 AS col1 FROM tab0 AS cor0
----
2492
672
980

query I rowsort
SELECT ALL - - 73 AS col2 FROM tab2 AS cor0
----
73
73
73

query I rowsort
SELECT ALL + col0 * col2 AS col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT + 29 * ( col0 ) AS col0 FROM tab1 AS cor0
----
1856
2320
87

query I rowsort
SELECT 18 AS col0 FROM tab1 AS cor0
----
18
18
18

query I rowsort
SELECT DISTINCT 99 AS col0 FROM tab2 AS cor0
----
99

query I rowsort
SELECT ALL + + ( + col1 ) FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT + col2 * col0 AS col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT + + 41 FROM tab2 AS cor0
----
41
41
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT - 88 * 13 FROM tab2 AS cor0
----
-1144
-1144
-1144

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3756
SELECT ALL + CAST( col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-3756
SELECT ALL + CAST ( col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3757
SELECT ALL col0 DIV cor0.col2 AS col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3757
SELECT ALL col0 / cor0.col2 AS col0 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT ALL 62 AS col2 FROM tab0 AS cor0
----
62
62
62

query I rowsort
SELECT - + 43 * - col0 FROM tab0 cor0
----
1032
1505
3827

query I rowsort
SELECT DISTINCT - - ( + col0 ) FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL + 63 FROM tab1 AS cor0
----
63
63
63

query I rowsort
SELECT - col1 * col2 AS col1 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT ( - 30 ) FROM tab1
----
-30

query I rowsort
SELECT col2 * - cor0.col2 + + col2 AS col0 FROM tab1 AS cor0
----
-2862
-3192
-9120

query I rowsort
SELECT - col2 + + col2 * col0 AS col2 FROM tab1 cor0
----
108
3591
7584

query I rowsort
SELECT col0 + - col2 * cor0.col1 FROM tab2 AS cor0
----
-1456
-567
-830

onlyif mysql # use DIV operator for integer division
query I rowsort label-3767
SELECT DISTINCT 98 DIV - col0 FROM tab2
----
-1
-14

skipif mysql # not compatible
query I rowsort label-3767
SELECT DISTINCT 98 / - col0 FROM tab2
----
-1
-14

query I rowsort
SELECT cor0.col2 + col1 AS col0 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT + 28 FROM tab2 AS cor0
----
28
28
28

query I rowsort
SELECT 33 * - col0 + ( col1 ) FROM tab0 AS cor0
----
-1058
-2846
-706

query I rowsort
SELECT cor0.col0 * + col2 * 95 AS col2 FROM tab0 AS cor0
----
3325
693310
75240

query I rowsort
SELECT + - 52 + col2 * + cor0.col2 FROM tab1 AS cor0
----
2864
3197
9164

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT + + col2 * col1 + - col1 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT DISTINCT cor0.col2 AS col2 FROM tab0, tab2 AS cor0
----
26
27
38

query I rowsort
SELECT + - col1 * - 86 - ( - cor0.col2 ) * - 77 AS col2 FROM tab0 AS cor0
----
1512
4855
8265

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - ( col0 ) col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT col0 * 64 FROM tab2 AS cor0
----
448
4992
5056

onlyif mysql # use DIV operator for integer division
query I rowsort label-3779
SELECT - + col0 DIV - col0 + + 68 AS col1 FROM tab1 AS cor0
----
69
69
69

skipif mysql # not compatible
query I rowsort label-3779
SELECT - + col0 / - col0 + + 68 AS col1 FROM tab1 AS cor0
----
69
69
69

query I rowsort
SELECT - col0 * col2 AS col2 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT - col2 + col2 AS col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ( - 74 ) + + col2 AS col2 FROM tab2 AS cor0
----
-36
-47
-48

query I rowsort
SELECT + 31 FROM tab2, tab1 cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query I rowsort
SELECT ALL 58 FROM tab0
----
58
58
58

query I rowsort
SELECT DISTINCT ( col0 ) AS col2 FROM tab2
----
7
78
79

query I rowsort
SELECT ALL + 42 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e

query I rowsort
SELECT ( + col1 ) * + 75 FROM tab0 cor0
----
6450
6825
7275

query I rowsort
SELECT + col2 * + 59 + - col1 FROM tab2
----
1475
1562
2225

query I rowsort
SELECT + 19 FROM tab2
----
19
19
19

query I rowsort
SELECT 67 AS col1 FROM tab0
----
67
67
67

query I rowsort
SELECT - col0 * ( col2 ) FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-3792
SELECT ALL - 81 + - col0 * + col0 + 70 DIV 1 AS col1 FROM tab2 AS cor0
----
-60
-6095
-6252

skipif mysql # not compatible
query I rowsort label-3792
SELECT ALL - 81 + - col0 * + col0 + 70 / 1 AS col1 FROM tab2 AS cor0
----
-60
-6095
-6252

query I rowsort
SELECT 21 AS col2 FROM tab1
----
21
21
21

query I rowsort
SELECT DISTINCT - col1 * - tab2.col0 AS col1 FROM tab2
----
1343
217
4602

query I rowsort
SELECT DISTINCT + 80 * + col2 AS col2 FROM tab1
----
4320
4560
7680

query I rowsort
SELECT DISTINCT + col2 * - col1 AS col1 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT cor0.col1 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7

onlyif mysql # use DIV operator for integer division
query I rowsort label-3798
SELECT ALL 38 + col2 DIV + col1 AS col2 FROM tab2 cor0
----
38
38
40

skipif mysql # not compatible
query I rowsort label-3798
SELECT ALL 38 + col2 / + col1 AS col2 FROM tab2 cor0
----
38
38
40

onlyif mysql # use DIV operator for integer division
query I rowsort label-3799
SELECT col2 + col0 DIV col1 FROM tab1
----
102
54
63

skipif mysql # not compatible
query I rowsort label-3799
SELECT col2 + col0 / col1 FROM tab1
----
102
54
63

query I rowsort
SELECT col0 - 90 FROM tab2
----
-11
-12
-83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3801
SELECT DISTINCT - CAST( NULL AS SIGNED ) * tab1.col1 FROM tab1, tab2, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3801
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * tab1.col1 FROM tab1, tab2, tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 34 - tab1.col1 AS col2 FROM tab1
----
21
24
8

query I rowsort
SELECT col0 * ( col0 ) - col1 * - 1 FROM tab0
----
1322
662
8012

query I rowsort
SELECT DISTINCT ( col1 * - col2 ) - col1 FROM tab1
----
-1261
-1430
-580

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3805
SELECT CAST( col1 AS SIGNED ) + - col2 + + col2 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-3805
SELECT CAST ( col1 AS INTEGER ) + - col2 + + col2 FROM tab0
----
86
91
97

query I rowsort
SELECT ( - col0 ) + col1 + + 69 FROM tab2
----
50
7
93

query I rowsort
SELECT DISTINCT - 77 - + ( + col2 + 72 ) * col1 * col0 FROM tab2
----
-147807
-21560
-451073

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3808
SELECT DISTINCT + CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-3808
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT ( + 7 ) FROM tab1 AS cor0
----
7
7
7

query I rowsort
SELECT 51 FROM tab1, tab1 AS cor0, tab0 cor1, tab1 cor2
----
81 values hashing to c9771396949659773ab2fa2a1ac228de

query I rowsort
SELECT ALL - + col2 * col0 + col1 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT - - col2 * - cor0.col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT - - col2 + - col0 * - col0 FROM tab1 AS cor0
----
4153
63
6496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + cor0.col1 ) * - col1 col0 FROM tab2 AS cor0
----
-289
-3481
-961

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3815
SELECT + ( - ( col1 ) ) * + CAST( col0 AS SIGNED ) + - col1 AS col2 FROM tab2 cor0
----
-1360
-248
-4661

skipif mysql # not compatible
query I rowsort label-3815
SELECT + ( - ( col1 ) ) * + CAST ( col0 AS INTEGER ) + - col1 AS col2 FROM tab2 cor0
----
-1360
-248
-4661

query I rowsort
SELECT - - col0 * - col1 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT + + col1 * cor0.col2 AS col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT + 44 FROM tab2 AS cor0
----
44

onlyif mysql # use DIV operator for integer division
query I rowsort label-3819
SELECT DISTINCT + tab1.col1 DIV col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3819
SELECT DISTINCT + tab1.col1 / col2 FROM tab1
----
0

query I rowsort
SELECT DISTINCT - col1 + tab2.col0 + col1 FROM tab2
----
7
78
79

query I rowsort
SELECT tab2.col2 * 75 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to be3e558b1a5ac6788c57b5d675e8eda0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3822
SELECT - + col1 DIV col2 AS col2 FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-3822
SELECT - + col1 / col2 AS col2 FROM tab0 AS cor0
----
-1
-2
-97

query I rowsort
SELECT - col0 + 53 * - col2 FROM tab1 AS cor0
----
-2865
-3085
-5168

query I rowsort
SELECT DISTINCT - col0 * 5 FROM tab0 AS cor0
----
-120
-175
-445

query I rowsort
SELECT DISTINCT + + cor0.col2 + col1 * 20 FROM tab2 AS cor0
----
1206
378
647

query I rowsort
SELECT - - col2 * col2 FROM tab2 cor0
----
1444
676
729

query I rowsort
SELECT DISTINCT - cor0.col2 + col0 AS col0 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT + col0 * - ( 81 ) FROM tab1 AS cor0
----
-243
-5184
-6480

query I rowsort
SELECT + cor0.col1 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT DISTINCT - 47 FROM tab2
----
-47

query I rowsort
SELECT DISTINCT - cor0.col0 + col1 AS col1 FROM tab0 AS cor0
----
2
62

query I rowsort
SELECT + col1 + 11 FROM tab2 cor0
----
28
42
70

query I rowsort
SELECT DISTINCT + col0 + col1 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT DISTINCT + - col1 * cor0.col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT ALL + col2 * 12 * 12 AS col2 FROM tab1 AS cor0
----
13824
7776
8208

query I rowsort
SELECT DISTINCT - col1 + - col0 * + 7 * - col1 AS col2 FROM tab0 AS cor0
----
14362
23668
56602

query I rowsort
SELECT DISTINCT - + col0 * - ( - col0 ) + col2 AS col0 FROM tab0 AS cor0
----
-1224
-543
-7839

query I rowsort
SELECT 11 * + cor0.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 2317ce0c4c8f7dfe40c62e4e9ed83fb1

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0, tab0 AS cor1, tab2, tab0 cor2
----
3645 values hashing to c8e4a9d810c83d17322e338b2adc95b6

query I rowsort
SELECT + col0 + col0 AS col0 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT ALL cor0.col1 AS col0 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT ALL + col0 * col0 + 24 FROM tab2 cor0
----
6108
6265
73

query I rowsort
SELECT + cor1.col0 FROM tab0, tab1 AS cor0, tab0 cor1, tab2, tab2 AS cor2
----
243 values hashing to ee8b23a58dda2d92e14ed437e06ed8d2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3844
SELECT DISTINCT - col1 + CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3844
SELECT DISTINCT - col1 + CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - col0 * - cor0.col0 + - col2 FROM tab1 cor0
----
-45
4039
6304

query I rowsort
SELECT + cor1.col0 FROM tab2, tab1 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3847
SELECT - col1 / ( cor0.col0 ) + - col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3847
SELECT - col1 / ( cor0.col0 ) + - col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3848
SELECT ALL + col2 + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3848
SELECT ALL + col2 + 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 col0 * - col0 col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT + col1 * col0 + col1 FROM tab2
----
1360
248
4661

query I rowsort
SELECT DISTINCT - 98 FROM tab1 AS cor0
----
-98

query I rowsort
SELECT ALL + 66 + col2 FROM tab1 AS cor0
----
120
123
162

query I rowsort
SELECT DISTINCT - 31 AS col0 FROM tab1 AS cor0
----
-31

query I rowsort
SELECT DISTINCT ( + col0 ) + - col2 + col0 * 62 FROM tab2 AS cor0
----
414
4888
4939

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3855
SELECT ALL - - CAST( NULL AS SIGNED ) * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3855
SELECT ALL - - CAST ( NULL AS INTEGER ) * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + 7 FROM tab1 AS cor0
----
10
71
87

query I rowsort
SELECT DISTINCT - + col1 * col2 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3858
SELECT + ( ( - col1 ) ) DIV - CAST( cor0.col2 AS SIGNED ) FROM tab0 cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-3858
SELECT + ( ( - col1 ) ) / - CAST ( cor0.col2 AS INTEGER ) FROM tab0 cor0
----
1
2
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3859
SELECT DISTINCT + cor0.col0 DIV 96 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3859
SELECT DISTINCT + cor0.col0 / 96 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + col2 - 87 FROM tab0
----
-5
-54
-86

query I rowsort
SELECT DISTINCT col0 * + col0 + col0 * col1 AS col0 FROM tab2 AS cor0
----
10686
266
7584

query I rowsort
SELECT ALL - col0 + - col0 - - col0 FROM tab2 AS cor0
----
-7
-78
-79

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-3864
SELECT ALL + col1 DIV col0 AS col0 FROM tab2 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-3864
SELECT ALL + col1 / col0 AS col0 FROM tab2 AS cor0
----
0
0
4

query I rowsort
SELECT ALL + col2 - col1 AS col2 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT - - col0 + col2 AS col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL 97 FROM tab2 AS cor0
----
97
97
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + col2 col1 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT - + ( col2 ) * + 46 AS col2 FROM tab0 AS cor0
----
-1518
-3772
-46

query I rowsort
SELECT DISTINCT col0 + cor0.col2 + ( - cor0.col2 ) FROM tab0 AS cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-3871
SELECT ALL - - cor0.col1 + - col2 DIV 48 col1 FROM tab0 AS cor0
----
86
90
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3871
SELECT ALL - - cor0.col1 + - col2 / 48 col1 FROM tab0 AS cor0
----
86
90
97

query I rowsort
SELECT col2 + - col2 * - ( col2 ) FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT ALL + - 14 * - col2 + col2 AS col0 FROM tab0 AS cor0
----
1230
15
495

query I rowsort
SELECT ALL - 94 FROM tab2 cor0
----
-94
-94
-94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3875
SELECT col0 * + col1 * CAST( NULL AS SIGNED ) - + 62 col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3875
SELECT col0 * + col1 * CAST ( NULL AS INTEGER ) - + 62 col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 26 + col0 col1 FROM tab2 AS cor0
----
-19
52
53

query I rowsort
SELECT - col0 + - col1 AS col2 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT DISTINCT ( col0 ) + 15 FROM tab0 AS cor0
----
104
39
50

query I rowsort
SELECT DISTINCT + 29 + col1 FROM tab0 AS cor0
----
115
120
126

query I rowsort
SELECT - - col0 + + col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT tab1.col0 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT - col2 + 49 + - col2 AS col2 FROM tab1
----
-143
-59
-65

query I rowsort
SELECT - ( col2 ) - col1 * col1 AS col2 FROM tab2
----
-327
-3507
-988

onlyif mysql # use DIV operator for integer division
query I rowsort label-3884
SELECT ALL - - col2 * - cor0.col2 + col1 * col1 DIV col2 AS col1 FROM tab0 AS cor0
----
-6624
-865
9408

skipif mysql # not compatible
query I rowsort label-3884
SELECT ALL - - col2 * - cor0.col2 + col1 * col1 / col2 AS col1 FROM tab0 AS cor0
----
-6624
-865
9408

query I rowsort
SELECT + 25 + - col1 FROM tab2 AS cor0
----
-34
-6
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT - + ( col0 ) + - 60 * - col2 FROM tab2 AS cor0
----
1482
1613
2201

query I rowsort
SELECT ALL 78 AS col0 FROM tab2 cor0
----
78
78
78

query I rowsort
SELECT DISTINCT col2 + + col2 AS col2 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT tab2.col0 + tab2.col0 + + 24 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to dc26caf9c0397b34f1bc5501d4ebf06f

query I rowsort
SELECT ALL + 5 AS col1 FROM tab2, tab2 cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 0da436460d6fcea5a1eb4b1d2219d7c9

query I rowsort
SELECT DISTINCT - col2 * col2 AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ALL ( cor0.col2 ) + - col2 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT 63 * + col2 AS col0 FROM tab0 AS cor0
----
2079
5166
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-3895
SELECT - + 84 DIV col0 AS col1 FROM tab2 cor0
----
-1
-1
-12

skipif mysql # not compatible
query I rowsort label-3895
SELECT - + 84 / col0 AS col1 FROM tab2 cor0
----
-1
-1
-12

query I rowsort
SELECT ALL 94 FROM tab2, tab1, tab2 cor0
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3897
SELECT col0 * + tab1.col1 + - CAST( NULL AS SIGNED ) * col0 + col2 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3897
SELECT col0 * + tab1.col1 + - CAST ( NULL AS INTEGER ) * col0 + col2 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3898
SELECT - cor0.col1 + - col0 + col1 DIV col0 AS col1 FROM tab1 cor0
----
-21
-74
-93

skipif mysql # not compatible
query I rowsort label-3898
SELECT - cor0.col1 + - col0 + col1 / col0 AS col1 FROM tab1 cor0
----
-21
-74
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-3899
SELECT + ( col1 ) DIV + 99 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3899
SELECT + ( col1 ) / + 99 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT col2 * + col2 AS col2 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT DISTINCT + - cor0.col2 AS col0 FROM tab2, tab1, tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT ALL col1 * + tab1.col0 FROM tab1
----
1040
640
78

query I rowsort
SELECT - 77 + + col1 FROM tab1 AS cor0
----
-51
-64
-67

query I rowsort
SELECT + col0 * col1 + - ( col2 ) AS col2 FROM tab2
----
1305
190
4576

query I rowsort
SELECT cor0.col2 * - 16 FROM tab0 AS cor0
----
-1312
-16
-528

query I rowsort
SELECT - + ( + col2 ) AS col1 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT + + col2 * - col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT col2 + 75 * col2 FROM tab1 AS cor0
----
4104
4332
7296

query I rowsort
SELECT ALL + + 40 AS col1 FROM tab1 AS cor0
----
40
40
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * + ( cor0.col1 + - ( + col2 ) ) col1 FROM tab2 AS cor0
----
-108
-858
798

query I rowsort
SELECT DISTINCT - - cor0.col0 AS col1 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT + ( ( - cor0.col0 ) ) AS col0 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT + + 23 AS col2 FROM tab1 AS cor0
----
23
23
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-3914
SELECT ALL + 4 DIV col1 + + cor0.col0 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-3914
SELECT ALL + 4 / col1 + + cor0.col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT + 34 + + col0 * col0 FROM tab2 AS cor0
----
6118
6275
83

query I rowsort
SELECT + + cor0.col1 * - 90 FROM tab1 AS cor0
----
-1170
-2340
-900

query I rowsort
SELECT ALL col0 - + col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT DISTINCT + + 55 FROM tab1 AS cor0
----
55

query I rowsort
SELECT DISTINCT + tab2.col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-3920
SELECT DISTINCT 45 DIV + col2 + 56 AS col1 FROM tab0 AS cor0
----
101
56
57

skipif mysql # not compatible
query I rowsort label-3920
SELECT DISTINCT 45 / + col2 + 56 AS col1 FROM tab0 AS cor0
----
101
56
57

query I rowsort
SELECT ALL + tab0.col1 AS col0 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT - + cor0.col0 AS col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT tab0.col2 * col1 - + ( col0 + + col0 ) FROM tab0
----
27
2790
7284

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT cor0.col2 + + col2 AS col1 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT - 58 AS col1 FROM tab1 AS cor0
----
-58
-58
-58

query I rowsort
SELECT cor0.col1 * col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * - col2 - col2 col2 FROM tab2 AS cor0
----
1406
650
702

query I rowsort
SELECT + + col2 * + col1 + + ( col0 ) FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT + cor0.col2 * col2 + col0 AS col2 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT cor1.col1 * cor0.col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to beb2df893579871bcb51459c78b13f94

query I rowsort
SELECT + col1 * - col1 + - col0 + - ( cor0.col2 ) FROM tab2 AS cor0
----
-3585
-406
-995

query I rowsort
SELECT ALL ( 19 ) + + col0 AS col2 FROM tab2 AS cor0
----
26
97
98

query I rowsort
SELECT DISTINCT - col1 + 46 AS col0 FROM tab2 AS cor0
----
-13
15
29

query I rowsort
SELECT DISTINCT col2 * ( - col0 ) AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col0 col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT - col1 + + ( + col0 ) FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT ALL col1 + + col0 * - col1 + col1 FROM tab2 AS cor0
----
-1309
-155
-4484

query I rowsort
SELECT ALL - col1 + - cor0.col0 * 16 FROM tab0 AS cor0
----
-1515
-470
-657

query I rowsort
SELECT DISTINCT + col0 + + 44 AS col0 FROM tab1 cor0
----
108
124
47

query I rowsort
SELECT + + cor0.col1 + + 42 FROM tab2 AS cor0
----
101
59
73

query I rowsort
SELECT ALL - cor0.col2 + 47 * + col1 FROM tab0 AS cor0
----
4009
4195
4558

onlyif mysql # use DIV operator for integer division
query I rowsort label-3943
SELECT DISTINCT col0 DIV col1 + 98 * col0 + - 77 AS col2 FROM tab1 AS cor0
----
217
6201
7769

skipif mysql # not compatible
query I rowsort label-3943
SELECT DISTINCT col0 / col1 + 98 * col0 + - 77 AS col2 FROM tab1 AS cor0
----
217
6201
7769

query I rowsort
SELECT col0 - col2 AS col2 FROM tab0
----
-9
34
7

query I rowsort
SELECT ALL + col1 * col1 + 9 AS col0 FROM tab2
----
298
3490
970

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3946
SELECT col1 - - tab1.col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3946
SELECT col1 - - tab1.col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 + ( cor0.col0 ) AS col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT - col0 * + 46 - - col1 FROM tab0 cor0
----
-1018
-1513
-4003

query I rowsort
SELECT + 44 * col0 + - cor0.col2 * 64 FROM tab2 cor0
----
-1420
1044
1768

query I rowsort
SELECT + col1 * - 85 + tab2.col0 AS col1 FROM tab2
----
-1366
-2628
-4937

query I rowsort
SELECT col1 * - 24 FROM tab1 AS cor0
----
-240
-312
-624

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 IN ( col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query III rowsort
SELECT * FROM tab2 WHERE - col0 * col0 = NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3954
SELECT DISTINCT + col1 DIV - col1 + + col0 AS col0 FROM tab1
----
2
63
79

skipif mysql # not compatible
query I rowsort label-3954
SELECT DISTINCT + col1 / - col1 + + col0 AS col0 FROM tab1
----
2
63
79

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT DISTINCT - + cor0.col2 * - col2 + + ( col2 ) * - col2 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + + col1 * col1 + - col1 AS col2 FROM tab2 AS cor0
----
272
3422
930

query I rowsort
SELECT - 76 + - col0 * - col2 AS col1 FROM tab1 AS cor0
----
3572
7604
86

query I rowsort
SELECT + col1 * tab2.col2 * col0 AS col0 FROM tab2
----
119652
51034
5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-3960
SELECT ALL col1 DIV + col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3960
SELECT ALL col1 / + col1 FROM tab1
----
1
1
1

query I rowsort
SELECT ALL - col2 + - col2 + + col1 * - col2 AS col1 FROM tab0
----
-2904
-7626
-99

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 * + col1 - - col0 IN ( - col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT - col1 * col0 * col1 FROM tab2
----
-22831
-271518
-6727

query I rowsort
SELECT col2 * + col1 + + col1 FROM tab1
----
1261
1430
580

onlyif mysql # use DIV operator for integer division
query I rowsort label-3965
SELECT DISTINCT - tab1.col0 DIV - col2 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-3965
SELECT DISTINCT - tab1.col0 / - col2 FROM tab1
----
0
1

query I rowsort
SELECT DISTINCT - col0 * col0 + col1 + col2 FROM tab0
----
-1127
-457
-7748

onlyif mysql # use DIV operator for integer division
query I rowsort label-3967
SELECT - tab0.col1 DIV - col1 - col1 col2 FROM tab0
----
-85
-90
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3967
SELECT - tab0.col1 / - col1 - col1 col2 FROM tab0
----
-85
-90
-96

query I rowsort
SELECT ALL + col0 + col1 + tab2.col2 * - col1 AS col2 FROM tab2
----
-1397
-550
-799

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) IN ( + col1 / + col0 + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col2 * - 84 * 16 col1 FROM tab1
----
128944
72573
76544

query I rowsort
SELECT + col0 * tab2.col2 + col0 + - col0 FROM tab2
----
189
2028
3002

query I rowsort
SELECT + col0 * + col1 AS col0 FROM tab1
----
1040
640
78

query I rowsort
SELECT - ( col1 ) * col2 AS col1 FROM tab0
----
-2838
-7462
-97

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 cor0, tab0 AS cor1, tab1 AS cor2
----
972 values hashing to 82e15d5967b272804e574774895a0222

query I rowsort
SELECT ALL - 80 + col0 FROM tab0 AS cor0
----
-45
-56
9

query I rowsort
SELECT ALL + + cor0.col1 * col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT cor0.col2 + col2 * - ( - 14 ) FROM tab1 AS cor0
----
1440
810
855

query I rowsort
SELECT ALL + col1 + - col0 AS col2 FROM tab2
----
-19
-62
24

query I rowsort
SELECT ALL - 48 - - col1 FROM tab0 AS cor0
----
38
43
49

query I rowsort
SELECT + cor0.col2 * - col2 + 25 AS col0 FROM tab2 AS cor0
----
-1419
-651
-704

query I rowsort
SELECT ALL + 48 * + col2 FROM tab1 AS cor0
----
2592
2736
4608

query I rowsort
SELECT DISTINCT 36 * + col0 + 0 AS col0 FROM tab2 AS cor0
----
252
2808
2844

query I rowsort
SELECT ALL 26 - col1 * col1 * col0 AS col0 FROM tab2 AS cor0
----
-22805
-271492
-6701

query I rowsort
SELECT ALL - - 2 - col2 AS col0 FROM tab0 AS cor0
----
-31
-80
1

query I rowsort
SELECT + col0 + - col1 * ( col2 + - col2 ) FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT + + col2 + col0 AS col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT - 5 * - cor0.col1 * col0 + - col2 * col0 FROM tab0 AS cor0
----
16940
33197
9528

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab1 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to 44545a6297aa29bb730ffb907c13bc58

query I rowsort
SELECT ALL + + col1 * col0 + + 30 FROM tab2 AS cor0
----
1373
247
4632

query I rowsort
SELECT DISTINCT + + col0 * ( col0 ) FROM tab0 cor0
----
1225
576
7921

query I rowsort
SELECT + - col2 * col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT - col2 + ( + col0 ) AS col0 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT col0 * - 39 + cor0.col2 AS col2 FROM tab0 AS cor0
----
-1364
-3389
-903

onlyif mysql # use DIV operator for integer division
query I rowsort label-3994
SELECT col0 + + ( + col2 ) DIV col2 AS col1 FROM tab1 AS cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-3994
SELECT col0 + + ( + col2 ) / col2 AS col1 FROM tab1 AS cor0
----
4
65
81

query I rowsort
SELECT + - col1 * ( + 24 + col2 ) AS col1 FROM tab1 cor0
----
-1560
-2028
-810

query I rowsort
SELECT - col0 + col0 * - 19 FROM tab0 AS cor0
----
-1780
-480
-700

query I rowsort
SELECT ALL - - col1 * col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT + col1 * col0 FROM tab1
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3999
SELECT ALL - CAST( - ( + col2 ) AS SIGNED ) + ( - ( col0 ) ) AS col2 FROM tab1 AS cor0
----
-7
16
51

skipif mysql # not compatible
query I rowsort label-3999
SELECT ALL - CAST ( - ( + col2 ) AS INTEGER ) + ( - ( col0 ) ) AS col2 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT ALL + ( col0 ) + + col0 * col1 AS col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT DISTINCT 44 AS col0 FROM tab2, tab0 AS cor0
----
44

query I rowsort
SELECT ALL col1 * - tab0.col2 AS col2 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT 8 + - col1 * col2 FROM tab1
----
-1240
-1396
-562

query I rowsort
SELECT + 10 AS col2 FROM tab2 AS cor0
----
10
10
10

onlyif mysql # use DIV operator for integer division
query I rowsort label-4005
SELECT ( + col2 ) DIV cor0.col0 AS col2 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4005
SELECT ( + col2 ) / cor0.col0 AS col2 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4006
SELECT DISTINCT + col1 DIV col0 FROM tab2 AS cor0
----
0
4

skipif mysql # not compatible
query I rowsort label-4006
SELECT DISTINCT + col1 / col0 FROM tab2 AS cor0
----
0
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-4007
SELECT DISTINCT - ( col2 ) + + cor0.col1 DIV col0 col1 FROM tab2 AS cor0
----
-23
-26
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4007
SELECT DISTINCT - ( col2 ) + + cor0.col1 / col0 col1 FROM tab2 AS cor0
----
-23
-26
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-4008
SELECT + 12 DIV 14 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4008
SELECT + 12 / 14 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + ( - col2 ) + col1 + col0 FROM tab2 AS cor0
----
11
111
58

query I rowsort
SELECT DISTINCT + + 58 + col1 FROM tab1 AS cor0
----
68
71
84

query I rowsort
SELECT DISTINCT ( 39 ) FROM tab0 cor0
----
39

query I rowsort
SELECT - col2 * + cor0.col1 + col0 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT - col0 - + col2 * - ( col0 ) FROM tab2 AS cor0
----
182
1950
2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-4014
SELECT ALL col2 + cor0.col0 DIV + cor0.col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-4014
SELECT ALL col2 + cor0.col0 / + cor0.col1 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4015
SELECT ALL - + col1 * col1 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4015
SELECT ALL - + col1 * col1 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4016
SELECT - col1 * col2 + + cor0.col1 DIV col1 FROM tab2 cor0
----
-1533
-645
-836

skipif mysql # not compatible
query I rowsort label-4016
SELECT - col1 * col2 + + cor0.col1 / col1 FROM tab2 cor0
----
-1533
-645
-836

onlyif mysql # use DIV operator for integer division
query I rowsort label-4017
SELECT ALL col0 DIV cor0.col0 AS col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4017
SELECT ALL col0 / cor0.col0 AS col2 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT - + ( col0 ) * cor0.col1 AS col0 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL - col1 * - col2 AS col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT - ( + col2 ) * 2 AS col0 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT DISTINCT + + 12 + col0 AS col1 FROM tab0 AS cor0
----
101
36
47

query I rowsort
SELECT col0 * + col0 - + col0 AS col0 FROM tab2 AS cor0
----
42
6006
6162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col2 + - col0 col2 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT - col2 + + col0 * 92 FROM tab0 AS cor0
----
2175
3219
8106

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4025
SELECT DISTINCT + col0 * col2 + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4025
SELECT DISTINCT + col0 * col2 + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - - 17 col0 FROM tab0
----
103
108
114

query I rowsort
SELECT DISTINCT + col2 * col1 AS col2 FROM tab0
----
2838
7462
97

query I rowsort
SELECT ALL col0 - col0 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - col1 - - col1 FROM tab1
----
0
0
0

query I rowsort
SELECT 72 - + col0 * - col1 AS col2 FROM tab2
----
1415
289
4674

query I rowsort
SELECT ALL - ( tab2.col2 ) + tab2.col0 - col0 AS col0 FROM tab2
----
-26
-27
-38

query I rowsort
SELECT DISTINCT col2 * - ( 94 ) AS col2 FROM tab1
----
-5076
-5358
-9024

query I rowsort
SELECT ALL + + col1 + col2 AS col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT + + col1 * + col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT - col1 + - 98 AS col1 FROM tab2 AS cor0
----
-115
-129
-157

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4036
SELECT + col2 / CAST( NULL AS SIGNED ) + - col1 col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4036
SELECT + col2 / CAST ( NULL AS INTEGER ) + - col1 col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - cor0.col0 * ( col2 + + col1 ) FROM tab1 AS cor0
----
240
4288
8720

query I rowsort
SELECT ALL col2 + - 57 FROM tab1 AS cor0
----
-3
0
39

query I rowsort
SELECT + - col0 + col2 * + col2 AS col0 FROM tab2 AS cor0
----
1365
598
722

query I rowsort
SELECT + col0 * col0 AS col2 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT + 94 AS col0 FROM tab1 AS cor0
----
94
94
94

query I rowsort
SELECT + - col0 + col0 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col1 + col2 * cor0.col2 FROM tab2 AS cor0
----
1461
735
760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 62 * 30 col0 FROM tab0 AS cor0
----
-1860
-1860
-1860

query I rowsort
SELECT + - 21 * col1 FROM tab1 AS cor0
----
-210
-273
-546

query I rowsort
SELECT - + 24 * cor0.col2 FROM tab2 AS cor0
----
-624
-648
-912

query I rowsort
SELECT ALL col0 * + col1 * + 77 AS col1 FROM tab0
----
158928
261415
623623

query I rowsort
SELECT ALL col2 * + 23 * + col2 AS col2 FROM tab1
----
211968
67068
74727

query I rowsort
SELECT DISTINCT col2 * - col0 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT - 72 AS col0 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to b7689a8218ac9df1cca20d2ba5c53888

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 67 col1 FROM tab2 AS cor0
----
67
67
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-4052
SELECT - tab0.col2 + + 18 DIV cor0.col1 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

skipif mysql # not compatible
query I rowsort label-4052
SELECT - tab0.col2 + + 18 / cor0.col1 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT ALL - + col1 + col2 AS col0 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT - col0 * col1 + col1 AS col2 FROM tab1 cor0
----
-1027
-52
-630

query I rowsort
SELECT ALL + - col0 + cor0.col0 * + col0 FROM tab1 AS cor0
----
4032
6
6320

query I rowsort
SELECT - + 80 + cor0.col2 FROM tab1 AS cor0
----
-23
-26
16

query I rowsort
SELECT DISTINCT + 31 + col1 * + ( col0 ) AS col0 FROM tab0 AS cor0
----
2095
3426
8130

query I rowsort
SELECT DISTINCT + col0 + + tab1.col2 AS col1 FROM tab1
----
121
176
57

query I rowsort
SELECT ALL - col2 * - tab1.col1 + col2 * + ( col2 ) + + col0 FROM tab1
----
10544
3883
4323

query I rowsort
SELECT ( 56 * - col0 ) FROM tab1
----
-168
-3584
-4480

query I rowsort
SELECT col1 + - col2 + + tab0.col1 AS col1 FROM tab0
----
100
139
193

query I rowsort
SELECT - - cor0.col2 AS col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ( col0 * - 71 ) FROM tab1
----
-213
-4544
-5680

onlyif mysql # use DIV operator for integer division
query I rowsort label-4064
SELECT 87 * - tab2.col0 + col1 DIV col0 AS col0 FROM tab2
----
-605
-6786
-6873

skipif mysql # not compatible
query I rowsort label-4064
SELECT 87 * - tab2.col0 + col1 / col0 AS col0 FROM tab2
----
-605
-6786
-6873

onlyif mysql # use DIV operator for integer division
query I rowsort label-4065
SELECT col0 * 34 DIV + col0 + + col2 AS col2 FROM tab2 cor0
----
60
61
72

skipif mysql # not compatible
query I rowsort label-4065
SELECT col0 * 34 / + col0 + + col2 AS col2 FROM tab2 cor0
----
60
61
72

query I rowsort
SELECT ALL + 77 AS col2 FROM tab2 AS cor0
----
77
77
77

query I rowsort
SELECT - 96 * col2 + + ( + cor0.col2 + + col0 ) * - ( 3 ) FROM tab1 AS cor0
----
-5355
-5835
-9744

query I rowsort
SELECT DISTINCT + 25 FROM tab2
----
25

query I rowsort
SELECT col2 * + 16 + - col1 AS col0 FROM tab2 AS cor0
----
357
401
591

query I rowsort
SELECT ALL col2 - + col1 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT ALL col1 * + ( - col2 ) FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4072
SELECT DISTINCT - col0 + + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4072
SELECT DISTINCT - col0 + + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT + tab1.col2 AS col1 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 60 col2 FROM tab0 cor0
----
146
151
157

query I rowsort
SELECT cor0.col2 * - ( + col0 ) + - col1 * cor0.col2 FROM tab0 AS cor0
----
-132
-14760
-3630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + + ( col0 ) col1 FROM tab0 cor0
----
110
132
180

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4077
SELECT tab0.col2 * tab0.col2 * ( - col2 * + col0 + CAST( + 8 AS SIGNED ) ) FROM tab0
----
-27
-49017960
-853776

skipif mysql # not compatible
query I rowsort label-4077
SELECT tab0.col2 * tab0.col2 * ( - col2 * + col0 + CAST ( + 8 AS INTEGER ) ) FROM tab0
----
-27
-49017960
-853776

query I rowsort
SELECT DISTINCT - 76 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1, tab1 AS cor2, tab2
----
-76

query I rowsort
SELECT ALL col2 * + 71 + + tab0.col1 FROM tab0
----
168
2429
5913

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4080
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4080
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT cor0.col1 FROM tab0 cor0 CROSS JOIN tab0, tab0 cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab1, tab2 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to 8d4d13f65f86e1b26b6004a6bdc662b3

query I rowsort
SELECT + col1 * - cor0.col1 + - 30 * col2 FROM tab1 AS cor0
----
-1810
-2296
-3049

query I rowsort
SELECT + col1 + + col0 + + col2 FROM tab0 cor0
----
133
143
262

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4085
SELECT ALL - CAST( NULL AS SIGNED ) * - col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4085
SELECT ALL - CAST ( NULL AS INTEGER ) * - col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col0 + col2 * + col1 AS col1 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT + 81 * 37 FROM tab2 AS cor0
----
2997
2997
2997

query I rowsort
SELECT ALL + - 98 - + col0 FROM tab1 AS cor0
----
-101
-162
-178

onlyif mysql # use DIV operator for integer division
query I rowsort label-4089
SELECT ALL + + ( col2 ) DIV cor0.col0 AS col1 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4089
SELECT ALL + + ( col2 ) / cor0.col0 AS col1 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT + ( col0 ) * col2 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT + - col2 * - col0 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT ALL - tab2.col1 * + cor0.col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to b1d1c8abbc483ff4a42f7a4fd637cd89

query I rowsort
SELECT - 25 * cor0.col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to a64894425db712ef9733e8497ebd1e4e

query I rowsort
SELECT col1 * col0 * - col1 FROM tab2
----
-22831
-271518
-6727

query I rowsort
SELECT - - 24 + + col0 * + ( + col0 ) * + col1 FROM tab0 AS cor0
----
118849
49560
720835

query I rowsort
SELECT 40 * col1 AS col2 FROM tab0 AS cor0
----
3440
3640
3880

query I rowsort
SELECT + 6 * - col2 FROM tab2 cor0
----
-156
-162
-228

query I rowsort
SELECT + col2 + col2 * - 19 AS col1 FROM tab2 AS cor0
----
-468
-486
-684

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4099
SELECT CAST( NULL AS SIGNED ) * col2 + col2 * + 76 * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4099
SELECT CAST ( NULL AS INTEGER ) * col2 + col2 * + 76 * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( col0 ) * col0 AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT + 24 FROM tab2, tab2 AS cor0
----
24

query I rowsort
SELECT DISTINCT + 18 + col0 * col1 FROM tab2 AS cor0
----
1361
235
4620

query I rowsort
SELECT col0 * + col0 + - cor0.col0 + + col0 AS col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT + 57 * + col1 FROM tab1 AS cor0
----
1482
570
741

query I rowsort
SELECT DISTINCT + 74 FROM tab0 AS cor0
----
74

query I rowsort
SELECT - + cor0.col2 * 98 + + cor0.col1 - col1 FROM tab2 AS cor0
----
-2548
-2646
-3724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + col2 + - col1 col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT + col0 * col1 + - col0 + 6 AS col2 FROM tab1 AS cor0
----
582
81
966

query I rowsort
SELECT ALL - 49 FROM tab2 AS cor0
----
-49
-49
-49

query I rowsort
SELECT DISTINCT - - col2 + ( col2 ) FROM tab2 AS cor0
----
52
54
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col0 col0 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT ALL - + ( col0 ) * - col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ( 87 ) - + col0 * - col0 AS col1 FROM tab0 AS cor0
----
1312
663
8008

query I rowsort
SELECT DISTINCT - + ( + 61 ) * col1 + + col2 FROM tab0 cor0
----
-5213
-5469
-5916

query I rowsort
SELECT DISTINCT - col1 * 33 + col1 + col1 * 58 FROM tab1 AS cor0
----
260
338
676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col2 + col2 col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT DISTINCT ( col1 ) + + col1 AS col2 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT ALL col1 * - col2 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT + 42 * col0 FROM tab2 AS cor0
----
294
3276
3318

query I rowsort
SELECT ALL + - cor0.col2 * + col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT + 65 * + col0 FROM tab1 cor0
----
195
4160
5200

onlyif mysql # use DIV operator for integer division
query I rowsort label-4122
SELECT + ( - cor0.col0 ) DIV - 59 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4122
SELECT + ( - cor0.col0 ) / - 59 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT + + 58 * col1 AS col2 FROM tab2 AS cor0
----
1798
3422
986

query I rowsort
SELECT ALL + 24 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080

query I rowsort
SELECT cor0.col1 + - col2 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT ALL + + col0 + col2 * - col2 AS col1 FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT ALL - + 57 AS col1 FROM tab2 AS cor0
----
-57
-57
-57

query I rowsort
SELECT ALL + 53 + + col2 FROM tab2
----
79
80
91

query I rowsort
SELECT ALL - + cor0.col2 + 67 FROM tab0 AS cor0
----
-15
34
66

query I rowsort
SELECT ALL + col1 + - col0 * col0 FROM tab1 AS cor0
----
-4086
-6387
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 10 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query I rowsort
SELECT ALL - col1 * - ( cor0.col0 + col0 ) FROM tab0 AS cor0
----
16198
4128
6790

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4133
SELECT DISTINCT CAST( NULL AS DECIMAL ) FROM tab2, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4133
SELECT DISTINCT CAST ( NULL AS REAL ) FROM tab2, tab0 AS cor0
----
NULL

query I rowsort
SELECT 49 AS col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to a40d8754a5be3ce2309c61bfd3e00197

query I rowsort
SELECT + 43 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( - 14 AS REAL ) col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4137
SELECT DISTINCT tab2.col1 - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4137
SELECT DISTINCT tab2.col1 - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + col1 * + tab2.col1 FROM tab2
----
289
3481
961

onlyif mysql # use DIV operator for integer division
query I rowsort label-4139
SELECT ALL - col1 DIV col1 AS col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4139
SELECT ALL - col1 / col1 AS col0 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT - 19 * 25 - cor0.col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 38aa812652ae24a673b1cbc5d75b0108

query I rowsort
SELECT + col1 - col2 AS col0 FROM tab0 cor0
----
53
9
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4142
SELECT col0 DIV + col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4142
SELECT col0 / + col2 FROM tab1
----
0
0
1

query I rowsort
SELECT col1 + col0 * + col2 - col1 AS col0 FROM tab0
----
35
7298
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4144
SELECT DISTINCT col0 - CAST( col2 AS SIGNED ) FROM tab1
----
-16
-51
7

skipif mysql # not compatible
query I rowsort label-4144
SELECT DISTINCT col0 - CAST ( col2 AS INTEGER ) FROM tab1
----
-16
-51
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-4145
SELECT tab0.col1 DIV 41 FROM tab0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-4145
SELECT tab0.col1 / 41 FROM tab0
----
2
2
2

query I rowsort
SELECT ALL 30 FROM tab2 AS cor0
----
30
30
30

onlyif mysql # use DIV operator for integer division
query I rowsort label-4147
SELECT ALL - + col2 DIV 58 + - cor0.col2 AS col1 FROM tab1 AS cor0
----
-54
-57
-97

skipif mysql # not compatible
query I rowsort label-4147
SELECT ALL - + col2 / 58 + - cor0.col2 AS col1 FROM tab1 AS cor0
----
-54
-57
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4148
SELECT + CAST( 35 AS SIGNED ) + + col0 AS col0 FROM tab0 AS cor0
----
124
59
70

skipif mysql # not compatible
query I rowsort label-4148
SELECT + CAST ( 35 AS INTEGER ) + + col0 AS col0 FROM tab0 AS cor0
----
124
59
70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4149
SELECT + + CAST( + col1 AS SIGNED ) * col2 * col2 + col2 AS col1 FROM tab0 AS cor0
----
611966
93687
98

skipif mysql # not compatible
query I rowsort label-4149
SELECT + + CAST ( + col1 AS INTEGER ) * col2 * col2 + col2 AS col1 FROM tab0 AS cor0
----
611966
93687
98

query I rowsort
SELECT - 1 FROM tab0, tab1 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query I rowsort
SELECT tab0.col1 + ( 29 ) + col2 * + col1 AS col1 FROM tab0
----
223
2953
7582

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 AS cor2
----
972 values hashing to 9364ef7545b07c67767dceb70f02c643

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4153
SELECT 22 + - tab1.col1 + col1 * + CAST( + col2 AS SIGNED ) AS col1 FROM tab1
----
1257
1400
582

skipif mysql # not compatible
query I rowsort label-4153
SELECT 22 + - tab1.col1 + col1 * + CAST ( + col2 AS INTEGER ) AS col1 FROM tab1
----
1257
1400
582

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4154
SELECT DISTINCT + ( - col0 ) * - col0 / ( tab1.col2 ) + tab1.col0 * CAST( NULL AS SIGNED ) * col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4154
SELECT DISTINCT + ( - col0 ) * - col0 / ( tab1.col2 ) + tab1.col0 * CAST ( NULL AS INTEGER ) * col2 FROM tab1
----
NULL

query I rowsort
SELECT 65 FROM tab0, tab1 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT ALL - 95 + col1 FROM tab2
----
-36
-64
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-4157
SELECT + tab0.col1 DIV + col1 AS col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4157
SELECT + tab0.col1 / + col1 AS col2 FROM tab0
----
1
1
1

query I rowsort
SELECT DISTINCT 96 FROM tab0 AS cor0
----
96

query I rowsort
SELECT DISTINCT - 30 * + 62 AS col0 FROM tab1 AS cor0
----
-1860

onlyif mysql # use DIV operator for integer division
query I rowsort label-4160
SELECT ALL 56 DIV + col2 + - col0 AS col2 FROM tab1 AS cor0
----
-2
-64
-80

skipif mysql # not compatible
query I rowsort label-4160
SELECT ALL 56 / + col2 + - col0 AS col2 FROM tab1 AS cor0
----
-2
-64
-80

query I rowsort
SELECT ALL 43 * col2 AS col2 FROM tab0 AS cor0
----
1419
3526
43

query I rowsort
SELECT 5 AS col1 FROM tab1 AS cor0
----
5
5
5

query I rowsort
SELECT - col1 - col0 FROM tab2
----
-137
-38
-96

skipif mysql # not compatible
query I rowsort
SELECT 21 * + col1 * CAST ( + col0 AS REAL ) + col0 FROM tab2
----
28282
4564
96720

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1, tab1 cor0, tab0 AS cor1
----
972 values hashing to b51b4342db121ebc2d3d353dcd8ed521

query I rowsort
SELECT DISTINCT - 82 AS col1 FROM tab1
----
-82

query I rowsort
SELECT ALL + 46 FROM tab1, tab2, tab2 cor0
----
27 values hashing to 2f97924b57b73102233df7c9ce8ad602

query I rowsort
SELECT ALL + col0 - + col0 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - cor0.col1 * - col2 + col1 * + col2 FROM tab1 AS cor0
----
1140
2496
2808

query I rowsort
SELECT DISTINCT 65 * col2 AS col2 FROM tab2 AS cor0
----
1690
1755
2470

query I rowsort
SELECT DISTINCT - col0 + - col1 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT + + ( - col1 ) AS col1 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT + cor0.col1 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT ALL col1 - + col0 * 30 AS col0 FROM tab2 AS cor0
----
-179
-2281
-2353

query I rowsort
SELECT ALL + col2 * + 19 + - cor0.col2 * col0 AS col2 FROM tab2 AS cor0
----
-1534
-2280
324

query I rowsort
SELECT DISTINCT + + cor0.col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT cor0.col1 * col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT - col1 + - 68 AS col1 FROM tab1 AS cor0
----
-78
-81
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * ( col1 ) col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL - cor0.col1 + ( + col2 ) * col2 AS col0 FROM tab2 AS cor0
----
1427
617
698

query I rowsort
SELECT DISTINCT - col1 - col2 AS col0 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT ALL - + cor0.col1 + - cor0.col0 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT DISTINCT - - cor0.col2 * col2 AS col0 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT ALL col1 + col0 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT DISTINCT + col1 + ( - col2 ) AS col1 FROM tab0 AS cor0
----
53
9
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4186
SELECT + col1 * + CAST( + col1 AS SIGNED ) * - col2 col0 FROM tab1 AS cor0
----
-16224
-36504
-5700

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4186
SELECT + col1 * + CAST ( + col1 AS INTEGER ) * - col2 col0 FROM tab1 AS cor0
----
-16224
-36504
-5700

query I rowsort
SELECT + tab1.col2 AS col2 FROM tab0, tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886

query I rowsort
SELECT ALL - - 53 FROM tab1, tab2 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to 63949b5362442f48bd29195397a57dad

query I rowsort
SELECT DISTINCT cor1.col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
3
64
80

query I rowsort
SELECT DISTINCT + cor0.col0 * + 22 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
1408
1760
66

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 AS cor2
----
3645 values hashing to 87d4c8f6b827823252b140738d532e5c

query I rowsort
SELECT DISTINCT - cor0.col1 * + 97 * - cor0.col0 FROM tab0 cor0
----
200208
329315
785603

query I rowsort
SELECT 97 AS col1 FROM tab2
----
97
97
97

query I rowsort
SELECT col0 * col0 * - 19 FROM tab2
----
-115596
-118579
-931

query I rowsort
SELECT + col0 * - col1 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT - 48 FROM tab2
----
-48
-48
-48

query I rowsort
SELECT 6 AS col1 FROM tab1
----
6
6
6

query I rowsort
SELECT - 17 * col1 + - 92 * - cor0.col2 FROM tab2 AS cor0
----
1389
1957
3207

onlyif mysql # use DIV operator for integer division
query I rowsort label-4199
SELECT + cor1.col1 DIV - 31 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to d1b3390bf3c224e527bf68f43fea665f

skipif mysql # not compatible
query I rowsort label-4199
SELECT + cor1.col1 / - 31 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to d1b3390bf3c224e527bf68f43fea665f

query I rowsort
SELECT cor1.col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT + col2 * ( - 10 ) + col2 FROM tab1
----
-486
-513
-864

query I rowsort
SELECT - col1 * tab1.col0 + + ( col2 ) FROM tab1
----
-24
-583
-944

query I rowsort
SELECT col0 * + col1 * - col1 AS col2 FROM tab0
----
-177504
-329315
-737009

query I rowsort
SELECT + 99 * + 16 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 6e06129d5e137deef55d8e6dec681152

query I rowsort
SELECT + - col2 * + ( + col0 ) + - col2 * + col0 FROM tab1 AS cor0
----
-15360
-324
-7296

query I rowsort
SELECT - 5 + 82 FROM tab1 cor0
----
77
77
77

query I rowsort
SELECT ALL + - 44 + col2 * - col0 FROM tab1 AS cor0
----
-206
-3692
-7724

query I rowsort
SELECT + col2 + - ( col2 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + col1 * - col0 - + col2 FROM tab1 AS cor0
----
-1136
-132
-697

query I rowsort
SELECT DISTINCT - ( col2 ) * col0 + col1 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT - + col1 * - 23 FROM tab1 AS cor0
----
230
299
598

query I rowsort
SELECT + col2 + + col0 * col2 * - col0 FROM tab2 AS cor0
----
-1296
-158158
-237120

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4213
SELECT - col0 * CAST( + col2 AS SIGNED ) AS col2 FROM tab1
----
-162
-3648
-7680

skipif mysql # not compatible
query I rowsort label-4213
SELECT - col0 * CAST ( + col2 AS INTEGER ) AS col2 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT + tab0.col0 * - 48 + col0 AS col1 FROM tab0
----
-1128
-1645
-4183

query I rowsort
SELECT col0 * 69 AS col0 FROM tab1
----
207
4416
5520

query I rowsort
SELECT + 90 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT + + 26 * col1 FROM tab1 cor0
----
260
338
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-4218
SELECT + 9 + ( cor0.col0 * 63 ) + - 18 * col0 DIV + cor0.col1 AS col2 FROM tab0 AS cor0
----
1516
2208
5599

skipif mysql # not compatible
query I rowsort label-4218
SELECT + 9 + ( cor0.col0 * 63 ) + - 18 * col0 / + cor0.col1 AS col2 FROM tab0 AS cor0
----
1516
2208
5599

query I rowsort
SELECT + 46 * cor0.col0 AS col0 FROM tab0 AS cor0
----
1104
1610
4094

query I rowsort
SELECT - + 32 * col2 FROM tab1 AS cor0
----
-1728
-1824
-3072

query I rowsort
SELECT DISTINCT ( col1 ) - col1 * + tab1.col2 * + col2 FROM tab1
----
-119795
-32480
-75790

query I rowsort
SELECT - 82 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

query I rowsort
SELECT ( - col1 ) * + tab0.col2 + ( - col1 ) * col1 + + col2 AS col1 FROM tab0
----
-10201
-15661
-9505

query I rowsort
SELECT tab2.col1 + 46 FROM tab2, tab1, tab2 cor0
----
27 values hashing to 30ed062442ecf0dc71361fa5285ffe40

query I rowsort
SELECT ( ( col1 ) ) * - col0 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 cor0, tab1 cor1, tab2 cor2
----
972 values hashing to 2507aa9f48c3db94de9fec065edf3731

query I rowsort
SELECT DISTINCT - + col1 * + col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( col1 ) + + col0 + - col0 * + col2 * - cor0.col2 col2 FROM tab0 AS cor0
----
-27
26074
598434

onlyif mysql # use DIV operator for integer division
query I rowsort label-4229
SELECT DISTINCT col1 DIV + cor0.col1 AS col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4229
SELECT DISTINCT col1 / + cor0.col1 AS col1 FROM tab2 AS cor0
----
1

query I rowsort
SELECT - col1 * + col1 + col0 * col0 + + cor0.col2 FROM tab2 AS cor0
----
-885
2629
5990

query I rowsort
SELECT col1 * - col0 + - col0 FROM tab0 AS cor0
----
-2088
-3430
-8188

query I rowsort
SELECT DISTINCT - col2 + cor0.col1 AS col2 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT + col0 + + col2 * - col0 + col0 AS col2 FROM tab0 AS cor0
----
-7120
-744
35

query I rowsort
SELECT - col2 * - col0 + col0 + - 72 * - col0 * + col2 FROM tab2 AS cor0
----
13804
148122
219225

query I rowsort
SELECT + ( + col2 ) AS col2 FROM tab0 cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-4236
SELECT - col0 + col0 DIV CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-4236
SELECT - col0 + col0 / CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
-23
-34
-88

query I rowsort
SELECT DISTINCT + 96 FROM tab0 cor0
----
96

query I rowsort
SELECT DISTINCT + col1 + cor0.col1 * + col0 FROM tab0 AS cor0
----
2150
3492
8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-4239
SELECT ALL + col1 DIV + col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4239
SELECT ALL + col1 / + col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + col0 + - col0 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL 72 FROM tab0, tab0 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query I rowsort
SELECT ALL ( tab2.col1 * - col1 ) AS col0 FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT ALL - 20 - + tab0.col0 FROM tab0
----
-109
-44
-55

query I rowsort
SELECT ALL 33 - col0 * tab0.col1 AS col1 FROM tab0
----
-2031
-3362
-8066

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4245
SELECT ALL - CAST( - col0 * tab2.col2 AS SIGNED ) AS col0 FROM tab2
----
189
2028
3002

skipif mysql # not compatible
query I rowsort label-4245
SELECT ALL - CAST ( - col0 * tab2.col2 AS INTEGER ) AS col0 FROM tab2
----
189
2028
3002

query I rowsort
SELECT col1 * + ( col2 ) FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - col2 * + 33 AS col2 FROM tab0 AS cor0
----
-1089
-2706
-33

onlyif mysql # use DIV operator for integer division
query I rowsort label-4248
SELECT - col0 DIV ( col2 ) FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4248
SELECT - col0 / ( col2 ) FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT + col2 + col1 * col1 AS col1 FROM tab2 AS cor0
----
327
3507
988

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col0 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT ALL col2 * + 48 AS col1 FROM tab2 cor0
----
1248
1296
1824

query I rowsort
SELECT + 91 * + 94 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to d4383ed5b84d2e1d609c3870686ddc77

query I rowsort
SELECT - 30 AS col1 FROM tab1
----
-30
-30
-30

query I rowsort
SELECT ALL col1 * - tab0.col1 AS col1 FROM tab0
----
-7396
-8281
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col2 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-1
-33
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4256
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4256
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 17 * tab1.col1 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to decf680fbb3be80a98325ab9e3218364

onlyif mysql # use DIV operator for integer division
query I rowsort label-4258
SELECT - - col2 DIV - cor0.col0 AS col1 FROM tab1 AS cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-4258
SELECT - - col2 / - cor0.col0 AS col1 FROM tab1 AS cor0
----
-1
-18
0

query I rowsort
SELECT + col0 + 26 * - tab1.col1 FROM tab1
----
-196
-258
-673

query I rowsort
SELECT col1 - - 91 FROM tab2
----
108
122
150

query I rowsort
SELECT + ( - col2 + - col1 ) FROM tab1
----
-109
-67
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-4262
SELECT ALL - col2 DIV + tab0.col2 - ( col0 ) FROM tab0
----
-25
-36
-90

skipif mysql # not compatible
query I rowsort label-4262
SELECT ALL - col2 / + tab0.col2 - ( col0 ) FROM tab0
----
-25
-36
-90

query I rowsort
SELECT - - col0 + col0 * + 14 AS col0 FROM tab1 AS cor0
----
1200
45
960

query I rowsort
SELECT + 73 + col0 AS col2 FROM tab1 AS cor0
----
137
153
76

query I rowsort
SELECT DISTINCT - - col0 - + col2 AS col1 FROM tab0 AS cor0
----
-9
34
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col0 col0 FROM tab2
----
14
156
158

onlyif mysql # use DIV operator for integer division
query I rowsort label-4267
SELECT DISTINCT - 96 DIV - col0 + col2 + + tab0.col1 * col1 AS col0 FROM tab0
----
7433
8364
9412

skipif mysql # not compatible
query I rowsort label-4267
SELECT DISTINCT - 96 / - col0 + col2 + + tab0.col1 * col1 AS col0 FROM tab0
----
7433
8364
9412

query I rowsort
SELECT + + col0 * - col2 + 22 AS col0 FROM tab2 AS cor0
----
-167
-2006
-2980

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col1 + + ( col0 ) col1 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT DISTINCT - - col1 + 95 AS col2 FROM tab2 AS cor0
----
112
126
154

query I rowsort
SELECT ALL - + col2 - + col2 AS col1 FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT - col1 + col0 * - 14 AS col1 FROM tab2 AS cor0
----
-1123
-1151
-129

onlyif mysql # use DIV operator for integer division
query I rowsort label-4273
SELECT DISTINCT col2 DIV + ( col1 ) FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-4273
SELECT DISTINCT col2 / + ( col1 ) FROM tab1 AS cor0
----
2
5
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4274
SELECT DISTINCT - col2 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4274
SELECT DISTINCT - col2 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - + cor1.col0 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

query I rowsort
SELECT + - col1 + + col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col0 - col2 * - col2 AS col1 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT DISTINCT - - col1 + + 21 FROM tab1 AS cor0
----
31
34
47

query I rowsort
SELECT DISTINCT + col0 * ( + col1 ) FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT - - col1 + col0 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT DISTINCT col2 + cor0.col0 * + col1 FROM tab0 AS cor0
----
2097
3396
8181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + cor0.col0 col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT - col2 + cor0.col0 AS col2 FROM tab1 cor0
----
-16
-51
7

query I rowsort
SELECT ALL cor0.col0 + - 46 AS col0 FROM tab0 AS cor0
----
-11
-22
43

query I rowsort
SELECT - - col2 * col1 * cor0.col1 FROM tab1 AS cor0
----
16224
36504
5700

query I rowsort
SELECT ALL - + cor0.col1 - 1 AS col0 FROM tab2 cor0
----
-18
-32
-60

query I rowsort
SELECT DISTINCT cor0.col0 * - ( 96 ) AS col0 FROM tab1 AS cor0
----
-288
-6144
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 + col2 * col1 col0 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT DISTINCT col1 * 16 FROM tab2 cor0
----
272
496
944

query I rowsort
SELECT col1 - + 82 AS col0 FROM tab1 AS cor0
----
-56
-69
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 col1 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT 24 AS col2 FROM tab0 AS cor0
----
24
24
24

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
972 values hashing to 42e69ecdafb3c81046bc5cb4c98b1666

query I rowsort
SELECT ALL - + ( + col0 ) * + col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT - col1 * col0 + col2 * col2 AS col2 FROM tab0 AS cor0
----
-1375
-3394
-975

query I rowsort
SELECT - ( - col2 ) AS col0 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-4297
SELECT ALL + col2 DIV col1 AS col2 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-4297
SELECT ALL + col2 / col1 AS col2 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT ALL + col1 * - 37 FROM tab2 AS cor0
----
-1147
-2183
-629

query I rowsort
SELECT - - ( col0 ) + cor0.col1 AS col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT + - 1 * 57 FROM tab2 AS cor0
----
-57
-57
-57

query I rowsort
SELECT ALL + 90 FROM tab1 AS cor0
----
90
90
90

query I rowsort
SELECT ALL col1 * + ( col0 ) FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT + + 5 * - col1 + cor0.col0 FROM tab1 AS cor0
----
-127
14
15

query I rowsort
SELECT + + 93 AS col1 FROM tab1 AS cor0
----
93
93
93

query I rowsort
SELECT col2 * col2 AS col2 FROM tab0 cor0
----
1
1089
6724

query I rowsort
SELECT ALL + col2 * - col2 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT - + 80 AS col0 FROM tab1 AS cor0
----
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4308
SELECT - CAST( NULL AS SIGNED ) FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-4308
SELECT - CAST ( NULL AS INTEGER ) FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT - 84 FROM tab1 AS cor0
----
-84

query I rowsort
SELECT DISTINCT col0 * col0 FROM tab0 cor0
----
1225
576
7921

query I rowsort
SELECT ALL + + 26 FROM tab0 AS cor0
----
26
26
26

query I rowsort
SELECT ALL + ( - cor0.col0 ) + + 26 AS col2 FROM tab2 AS cor0
----
-52
-53
19

query I rowsort
SELECT - + col0 * + col2 FROM tab0 AS cor0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 69 * + col1 col2 FROM tab0 AS cor0
----
-5934
-6279
-6693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 45 col0 FROM tab0 AS cor0
----
-45
-45
-45

query I rowsort
SELECT col1 * + col1 - - col0 * - col0 * - 23 AS col2 FROM tab2
----
143413
143832
2088

query I rowsort
SELECT ALL + cor0.col2 + col2 + cor0.col1 * - 97 AS col1 FROM tab0 AS cor0
----
-8276
-8663
-9407

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col2 col1 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT DISTINCT + 66 AS col0 FROM tab1 AS cor0
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 42 col1 FROM tab2 AS cor0
----
42
42
42

query I rowsort
SELECT + - cor0.col1 + col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 21 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT - col1 + - col0 * col0 AS col0 FROM tab0
----
-1322
-662
-8012

query I rowsort
SELECT ALL - cor0.col0 * cor0.col0 * + tab2.col1 FROM tab2, tab2 cor0
----
9 values hashing to be8727b481daf12395c1ed4100321418

query I rowsort
SELECT ALL + col1 * tab0.col2 AS col2 FROM tab0
----
2838
7462
97

query I rowsort
SELECT col1 + 60 AS col2 FROM tab2 AS cor0
----
119
77
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-4327
SELECT - col0 DIV + col2 + + col1 FROM tab1 AS cor0
----
13
26
9

skipif mysql # not compatible
query I rowsort label-4327
SELECT - col0 / + col2 + + col1 FROM tab1 AS cor0
----
13
26
9

query I rowsort
SELECT - col0 * - 25 * - col1 - - col0 AS col2 FROM tab1
----
-15936
-1947
-25920

query I rowsort
SELECT ALL + - 42 AS col0 FROM tab2 AS cor0
----
-42
-42
-42

query I rowsort
SELECT DISTINCT + 87 + - ( + col0 ) * - col1 AS col2 FROM tab2 AS cor0
----
1430
304
4689

query I rowsort
SELECT + - 99 * col0 + + cor0.col1 FROM tab2 cor0
----
-662
-7663
-7804

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 6 ) + col2 col1 FROM tab1 AS cor0
----
48
51
90

query I rowsort
SELECT DISTINCT - 59 * - 85 + col0 * - col0 AS col2 FROM tab2 AS cor0
----
-1069
-1226
4966

query I rowsort
SELECT + + col1 + 70 AS col0 FROM tab1 AS cor0
----
80
83
96

query I rowsort
SELECT DISTINCT + tab0.col1 * col2 + + 30 * col1 * ( + col2 ) AS col2 FROM tab0
----
231322
3007
87978

query I rowsort
SELECT DISTINCT ( + col0 ) AS col2 FROM tab2
----
7
78
79

query I rowsort
SELECT ALL ( - col2 * - col2 ) AS col0 FROM tab0
----
1
1089
6724

query I rowsort
SELECT ALL + 89 AS col0 FROM tab1
----
89
89
89

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2, tab2 AS cor0, tab1 AS cor1
----
972 values hashing to 4c46de5c1773124597e14f3b372fc4ea

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col0 + 6 col1 FROM tab0
----
30
41
95

query I rowsort
SELECT DISTINCT + 84 FROM tab1, tab0 AS cor0
----
84

query I rowsort
SELECT col2 + ( + col0 ) FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL - + 85 * - col2 FROM tab2 AS cor0
----
2210
2295
3230

query I rowsort
SELECT ALL - cor1.col1 + + 96 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab1, tab2 AS cor2
----
243 values hashing to eab8f1f20bf4702772d4f5000e613727

query I rowsort
SELECT ALL col2 + col2 * col0 + cor0.col2 * col0 AS col1 FROM tab2 AS cor0
----
405
4082
6042

onlyif mysql # use DIV operator for integer division
query I rowsort label-4346
SELECT ALL + + ( + cor0.col0 ) DIV col1 col2 FROM tab1 AS cor0
----
0
6
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4346
SELECT ALL + + ( + cor0.col0 ) / col1 col2 FROM tab1 AS cor0
----
0
6
6

query I rowsort
SELECT ALL 86 AS col2 FROM tab2
----
86
86
86

query I rowsort
SELECT cor0.col1 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

onlyif mysql # use DIV operator for integer division
query I rowsort label-4349
SELECT + + cor0.col2 DIV + col0 + col0 FROM tab0 AS cor0
----
25
35
89

skipif mysql # not compatible
query I rowsort label-4349
SELECT + + cor0.col2 / + col0 + col0 FROM tab0 AS cor0
----
25
35
89

query I rowsort
SELECT col1 + - col2 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT ALL 66 + + tab2.col2 AS col1 FROM tab2
----
104
92
93

query I rowsort
SELECT DISTINCT tab1.col2 * + col2 + col0 FROM tab1
----
2919
3313
9296

query I rowsort
SELECT ALL + cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - tab2.col2 col1 FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT tab0.col2 * col2 * col0 + col0 FROM tab0
----
26160
598525
70

query I rowsort
SELECT + tab0.col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT ALL col1 * + col1 * col1 AS col0 FROM tab1
----
1000
17576
2197

onlyif mysql # use DIV operator for integer division
query I rowsort label-4358
SELECT DISTINCT + col2 DIV col1 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4358
SELECT DISTINCT + col2 / col1 AS col2 FROM tab0
----
0

query I rowsort
SELECT ALL + cor0.col1 FROM tab0, tab1 cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

onlyif mysql # use DIV operator for integer division
query I rowsort label-4360
SELECT + col2 + col0 DIV col0 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-4360
SELECT + col2 + col0 / col0 FROM tab1 AS cor0
----
55
58
97

query I rowsort
SELECT - tab1.col1 * - col1 AS col0 FROM tab1
----
100
169
676

query I rowsort
SELECT ( - col2 ) * col0 + + col0 FROM tab2
----
-182
-1950
-2923

query I rowsort
SELECT DISTINCT 25 * col0 AS col1 FROM tab2
----
175
1950
1975

query I rowsort
SELECT ALL col0 * - col0 AS col0 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT ( 46 ) * - cor0.col2 - cor0.col1 AS col1 FROM tab1 AS cor0
----
-2510
-2632
-4429

query I rowsort
SELECT DISTINCT + 92 FROM tab2
----
92

query I rowsort
SELECT DISTINCT + 62 * + cor0.col1 + - col1 FROM tab2 AS cor0
----
1037
1891
3599

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 57 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT DISTINCT + ( - col1 ) * col2 AS col0 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT ALL + 74 FROM tab1
----
74
74
74

query I rowsort
SELECT - 5 AS col1 FROM tab1
----
-5
-5
-5

query I rowsort
SELECT - + 42 FROM tab2 cor0
----
-42
-42
-42

onlyif mysql # use DIV operator for integer division
query I rowsort label-4373
SELECT ALL + col0 DIV - col1 - + col0 AS col1 FROM tab1 AS cor0
----
-3
-70
-86

skipif mysql # not compatible
query I rowsort label-4373
SELECT ALL + col0 / - col1 - + col0 AS col1 FROM tab1 AS cor0
----
-3
-70
-86

query I rowsort
SELECT + col0 * + cor0.col1 + col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT col1 * col2 + + col2 FROM tab0 cor0
----
2871
7544
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 29 + + col1 col2 FROM tab2 AS cor0
----
46
60
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col1 * - cor0.col1 * + col0 - col1 col2 FROM tab0 AS cor0
----
177418
329218
736918

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - + col1 col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + ( + cor0.col0 ) * - col1 FROM tab1 cor0
----
-1040
-640
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col2 * + cor0.col1 col0 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT DISTINCT col1 + - tab2.col2 FROM tab2
----
-21
33
4

query I rowsort
SELECT tab2.col2 - + tab2.col0 FROM tab2
----
-41
-52
20

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 * + col2 BETWEEN col1 * col2 AND + col1
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT col0 NOT IN ( + col2 + col0 * col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - - col1 col1 FROM tab1
----
29
74
93

query I rowsort
SELECT ALL col1 + tab1.col0 FROM tab1 WHERE - col2 NOT IN ( col2 )
----
29
74
93

query I rowsort
SELECT ALL - cor0.col2 FROM tab0, tab0 cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT ALL - cor0.col1 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

query I rowsort
SELECT + col1 * + tab0.col0 FROM tab0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col1 col0 FROM tab0 WHERE col0 + + col1 > ( - col0 * col0 )
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-4391
SELECT DISTINCT col0 + col0 DIV col2 + tab0.col1 FROM tab0
----
110
167
181

skipif mysql # not compatible
query I rowsort label-4391
SELECT DISTINCT col0 + col0 / col2 + tab0.col1 FROM tab0
----
110
167
181

query I rowsort
SELECT col2 + col2 * col1 FROM tab1
----
1344
1458
627

query I rowsort
SELECT ALL col0 + + col1 * col2 * - col0 FROM tab2
----
-119574
-50955
-5852

query I rowsort
SELECT tab1.col0 * - col0 * - tab1.col0 FROM tab1
----
262144
27
512000

query I rowsort
SELECT col1 * + col2 AS col2 FROM tab0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4396
SELECT DISTINCT - col0 + + col1 DIV col1 + - col0 FROM tab0
----
-177
-47
-69

skipif mysql # not compatible
query I rowsort label-4396
SELECT DISTINCT - col0 + + col1 / col1 + - col0 FROM tab0
----
-177
-47
-69

query I rowsort
SELECT ALL + tab1.col1 * - col1 AS col0 FROM tab1
----
-100
-169
-676

query I rowsort
SELECT - col2 * + tab0.col2 AS col2 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT tab2.col1 * col0 FROM tab2
----
1343
217
4602

query I rowsort
SELECT - tab1.col2 + col0 AS col1 FROM tab1
----
-16
-51
7

query I rowsort
SELECT DISTINCT + col1 + + tab2.col2 * tab2.col1 AS col0 FROM tab2
----
1593
663
868

query III rowsort
SELECT * FROM tab2 WHERE col1 <= col1
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + col0 col2 FROM tab0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-4405
SELECT - col1 DIV col2 + col2 FROM tab0
----
-96
31
81

skipif mysql # not compatible
query I rowsort label-4405
SELECT - col1 / col2 + col2 FROM tab0
----
-96
31
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col1 + + col0 * col0 * + tab1.col1 col0 FROM tab1
----
41060
83369
910

onlyif mysql # use DIV operator for integer division
query I rowsort label-4407
SELECT - - col0 DIV col1 FROM tab2 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-4407
SELECT - - col0 / col1 FROM tab2 AS cor0
----
0
1
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-4408
SELECT - cor0.col1 + col2 DIV - col1 FROM tab1 AS cor0
----
-15
-20
-28

skipif mysql # not compatible
query I rowsort label-4408
SELECT - cor0.col1 + col2 / - col1 FROM tab1 AS cor0
----
-15
-20
-28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * col2 col1 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT ALL col2 * + col1 + col2 FROM tab2
----
1560
684
864

onlyif mysql # use DIV operator for integer division
query I rowsort label-4411
SELECT + col1 + col1 DIV - cor0.col1 col2 FROM tab1 AS cor0
----
12
25
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4411
SELECT + col1 + col1 / - cor0.col1 col2 FROM tab1 AS cor0
----
12
25
9

query I rowsort
SELECT DISTINCT col0 * col0 + + col1 FROM tab0
----
1322
662
8012

query I rowsort
SELECT - col2 + + col0 AS col0 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT col0 * - col0 * - col0 + - col1 FROM tab2 AS cor0
----
312
474493
493022

query I rowsort
SELECT - col0 + col1 * col1 AS col0 FROM tab2 AS cor0
----
210
3403
954

onlyif mysql # use DIV operator for integer division
query I rowsort label-4416
SELECT + col1 DIV col1 + - col2 * col1 AS col2 FROM tab1 AS cor0
----
-1247
-1403
-569

skipif mysql # not compatible
query I rowsort label-4416
SELECT + col1 / col1 + - col2 * col1 AS col2 FROM tab1 AS cor0
----
-1247
-1403
-569

query I rowsort
SELECT - cor0.col1 * + col1 + - col0 FROM tab1 AS cor0
----
-164
-249
-679

query I rowsort
SELECT + col1 * col0 * col0 AS col1 FROM tab2 cor0
----
106097
1519
358956

query I rowsort
SELECT ALL col0 + tab1.col1 + + col1 * - col0 AS col0 FROM tab1 WHERE NULL <> NULL
----

query I rowsort
SELECT DISTINCT - col0 * col0 AS col2 FROM tab2
----
-49
-6084
-6241

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 BETWEEN NULL AND col2 / + col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * - col1 IN ( col1 * col0 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 NOT BETWEEN col2 * + col1 AND NULL
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT - col2 FROM tab2 WHERE ( + col0 + col0 ) >= ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col0 ) IN ( tab0.col2 * col2 * col0 )
----
24
86
33
89
91
82

query I rowsort
SELECT - 27 * ( - col1 ) AS col0 FROM tab2 AS cor0
----
1593
459
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4427
SELECT ALL - CAST( + col1 AS SIGNED ) + cor0.col1 * + col1 AS col0 FROM tab1 cor0
----
156
650
90

skipif mysql # not compatible
query I rowsort label-4427
SELECT ALL - CAST ( + col1 AS INTEGER ) + cor0.col1 * + col1 AS col0 FROM tab1 cor0
----
156
650
90

query I rowsort
SELECT DISTINCT ( + 60 ) - + col2 AS col2 FROM tab1 AS cor0
----
-36
3
6

query I rowsort
SELECT tab0.col0 * col0 + - col2 FROM tab0
----
1224
543
7839

query I rowsort
SELECT ALL col0 * - 98 + + col0 FROM tab0 AS cor0
----
-2328
-3395
-8633

query I rowsort
SELECT DISTINCT + 89 * + col2 AS col0 FROM tab1 AS cor0
----
4806
5073
8544

query I rowsort
SELECT DISTINCT - + 4 * - col2 FROM tab0 AS cor0
----
132
328
4

query I rowsort
SELECT ALL + 90 + + 68 * - col1 AS col2 FROM tab1 AS cor0
----
-1678
-590
-794

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - col0 col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + 99 AS col1 FROM tab1 AS cor0
----
99
99
99

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( col0 AS REAL ) * + col1 * ( col1 ) FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT tab2.col2 + - 62 FROM tab2
----
-24
-35
-36

query I rowsort
SELECT 69 * - tab2.col1 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to b8da5275e074d9481980f6b8a24fd2b2

query I rowsort
SELECT - tab0.col0 + + tab0.col2 AS col0 FROM tab0
----
-34
-7
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col0 col0 FROM tab1, tab1 AS cor0 CROSS JOIN tab2, tab0, tab0 AS cor1
----
243 values hashing to b2b584cb071e1d63bf99874835e1bfc4

onlyif mysql # use DIV operator for integer division
query I rowsort label-4441
SELECT - col2 DIV 49 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4441
SELECT - col2 / 49 FROM tab2
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4442
SELECT DISTINCT - ( 31 ) + col1 DIV 15 FROM tab0 AS cor0
----
-25
-26

skipif mysql # not compatible
query I rowsort label-4442
SELECT DISTINCT - ( 31 ) + col1 / 15 FROM tab0 AS cor0
----
-25
-26

query I rowsort
SELECT ALL - col0 * + col2 - col2 FROM tab2 AS cor0
----
-2054
-216
-3040

query I rowsort
SELECT - + 3 * + cor0.col0 * col0 AS col2 FROM tab1 AS cor0
----
-12288
-19200
-27

query I rowsort
SELECT DISTINCT + + col0 * + 73 + col2 * col2 FROM tab2 AS cor0
----
1240
6370
7211

query I rowsort
SELECT ALL + 37 * col1 * col1 AS col0 FROM tab1 AS cor0
----
25012
3700
6253

query I rowsort
SELECT DISTINCT + col2 * + 92 AS col0 FROM tab1 AS cor0
----
4968
5244
8832

query I rowsort
SELECT ( cor0.col1 ) FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL - col0 + - 2 + - col1 * col2 FROM tab2 cor0
----
-1614
-727
-846

query I rowsort
SELECT + ( + col2 ) FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL + - col2 + - col1 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT ALL + - col0 - col2 AS col1 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT ALL + 34 * cor0.col2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2102b6be9062c8709d13b34f311d6ac0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col0 col1 FROM tab0 AS cor0
----
-1225
-576
-7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-4455
SELECT - cor0.col0 + col0 DIV 58 AS col0 FROM tab0 AS cor0
----
-24
-35
-88

skipif mysql # not compatible
query I rowsort label-4455
SELECT - cor0.col0 + col0 / 58 AS col0 FROM tab0 AS cor0
----
-24
-35
-88

query I rowsort
SELECT 20 + - col0 * ( - col1 ) AS col1 FROM tab1 AS cor0
----
1060
660
98

query I rowsort
SELECT ALL col1 * + col2 + - col1 * col2 AS col2 FROM tab0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4458
SELECT DISTINCT + col1 - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4458
SELECT DISTINCT + col1 - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col1 * col0 - + col1 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT DISTINCT + cor0.col0 * 89 AS col0 FROM tab2, tab0 AS cor0
----
2136
3115
7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-4461
SELECT ALL + cor0.col0 + col2 * 20 DIV - col1 AS col1 FROM tab1 AS cor0
----
-38
-50
-67

skipif mysql # not compatible
query I rowsort label-4461
SELECT ALL + cor0.col0 + col2 * 20 / - col1 AS col1 FROM tab1 AS cor0
----
-38
-50
-67

query I rowsort
SELECT ALL + cor0.col2 + + col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT DISTINCT - cor0.col1 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL cor0.col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT ALL - cor0.col2 + + col1 * + 43 AS col1 FROM tab2 AS cor0
----
1306
2511
693

query I rowsort
SELECT ALL cor0.col0 * - col1 AS col2 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT - tab2.col2 * col2 AS col1 FROM tab2
----
-1444
-676
-729

onlyif mysql # use DIV operator for integer division
query I rowsort label-4468
SELECT cor0.col0 DIV col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4468
SELECT cor0.col0 / col0 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4469
SELECT DISTINCT - + col0 * CAST( 84 * col2 AS SIGNED ) col0 FROM tab0 AS cor0
----
-2940
-613032
-66528

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4469
SELECT DISTINCT - + col0 * CAST ( 84 * col2 AS INTEGER ) col0 FROM tab0 AS cor0
----
-2940
-613032
-66528

query I rowsort
SELECT col0 + 49 FROM tab2 AS cor0
----
127
128
56

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4471
SELECT ALL + col1 + CAST( NULL AS SIGNED ) + - col2 * + col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4471
SELECT ALL + col1 + CAST ( NULL AS INTEGER ) + - col2 * + col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 + 95 * col1 * col0 AS col0 FROM tab1 cor0
----
60857
7464
98896

query I rowsort
SELECT + + col0 + - 58 FROM tab2 AS cor0
----
-51
20
21

query I rowsort
SELECT ALL + col1 + 35 AS col0 FROM tab0 AS cor0
----
121
126
132

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 22 col1 FROM tab2 AS cor0
----
154
1716
1738

query I rowsort
SELECT DISTINCT - col1 * + col2 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT - col0 + + col1 + col2 * col1 FROM tab0 AS cor0
----
159
2900
7464

query I rowsort
SELECT DISTINCT + col2 + col0 AS col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT + + col0 * + col2 + - 67 FROM tab2 AS cor0
----
122
1961
2935

query I rowsort
SELECT + + col2 + - col0 + - col0 * col0 FROM tab0 AS cor0
----
-1259
-567
-7928

query I rowsort
SELECT DISTINCT + + col1 * + col2 + col1 FROM tab2 AS cor0
----
1593
663
868

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) + col2 * col0 col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT DISTINCT - ( + col1 ) * col2 - col2 FROM tab1 AS cor0
----
-1344
-1458
-627

query I rowsort
SELECT ALL 8 - col1 * col0 AS col0 FROM tab0 AS cor0
----
-2056
-3387
-8091

query I rowsort
SELECT + 85 * col1 FROM tab0 AS cor0
----
7310
7735
8245

query I rowsort
SELECT ALL - - col2 + - col2 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col1 + + cor0.col2 * ( cor0.col1 ) AS col1 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT ALL cor0.col2 + - cor0.col0 * col1 * 27 FROM tab1 AS cor0
----
-17223
-2052
-27984

query I rowsort
SELECT + cor0.col2 * col1 + - col1 + + col0 AS col1 FROM tab2 AS cor0
----
1553
708
813

query I rowsort
SELECT DISTINCT + 68 FROM tab0 cor0
----
68

query I rowsort
SELECT + - col2 AS col0 FROM tab2 cor0
----
-26
-27
-38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4492
SELECT - CAST( NULL AS SIGNED ) * 92 + - col0 * CAST( + col0 AS SIGNED ) - + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4492
SELECT - CAST ( NULL AS INTEGER ) * 92 + - col0 * CAST ( + col0 AS INTEGER ) - + col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 34 + - col0 FROM tab1 AS cor0
----
-114
-37
-98

query I rowsort
SELECT DISTINCT + cor0.col2 + col2 + - cor0.col1 * col1 * + col0 FROM tab2 cor0
----
-22755
-271466
-6673

query I rowsort
SELECT - col0 + + col2 * - ( 9 ) AS col2 FROM tab0 AS cor0
----
-321
-44
-827

query I rowsort
SELECT cor0.col2 * + col0 + - 92 FROM tab2 AS cor0
----
1936
2910
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4497
SELECT DISTINCT + col2 DIV col2 + CAST( - col2 AS SIGNED ) DIV tab0.col0 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-4497
SELECT DISTINCT + col2 / col2 + CAST ( - col2 AS INTEGER ) / tab0.col0 FROM tab0
----
0
1

query I rowsort
SELECT + 57 + + col0 + - col2 FROM tab0
----
48
64
91

query I rowsort
SELECT DISTINCT col1 + + col0 + + col2 FROM tab1
----
131
189
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col0 col1 FROM tab1
----
-16
-51
7

query I rowsort
SELECT col2 + 77 FROM tab0 AS cor0
----
110
159
78

query I rowsort
SELECT ALL + 31 * - col2 + + 68 + + col2 FROM tab2
----
-1072
-712
-742

query I rowsort
SELECT DISTINCT - 16 FROM tab2, tab1, tab0 AS cor0
----
-16

query I rowsort
SELECT ALL - tab1.col2 * + col2 AS col0 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT - col0 * col2 + + col1 AS col2 FROM tab0
----
-706
-7207
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 19 + + col1 * + col2 col1 FROM tab2
----
1553
665
856

query I rowsort
SELECT DISTINCT 72 + col0 AS col2 FROM tab1
----
136
152
75

query I rowsort
SELECT + 57 + - col1 FROM tab2
----
-2
26
40

query I rowsort
SELECT DISTINCT + col0 + - tab1.col2 FROM tab1
----
-16
-51
7

query I rowsort
SELECT + + 97 * col1 FROM tab0 AS cor0
----
8342
8827
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-4511
SELECT ( - col0 ) DIV 34 FROM tab2 AS cor0
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-4511
SELECT ( - col0 ) / 34 FROM tab2 AS cor0
----
-2
-2
0

query I rowsort
SELECT + + col1 + col1 FROM tab2 AS cor0
----
118
34
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-4513
SELECT cor0.col1 DIV + col0 AS col1 FROM tab2 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-4513
SELECT cor0.col1 / + col0 AS col1 FROM tab2 AS cor0
----
0
0
4

query I rowsort
SELECT + 55 * - col1 AS col0 FROM tab1 AS cor0
----
-1430
-550
-715

query I rowsort
SELECT + col0 + - ( col1 ) AS col2 FROM tab0 AS cor0
----
-2
-62
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-4516
SELECT + col1 * col2 + - 58 DIV + col0 + - 29 DIV - col1 AS col1 FROM tab1 AS cor0
----
1250
1386
572

skipif mysql # not compatible
query I rowsort label-4516
SELECT + col1 * col2 + - 58 / + col0 + - 29 / - col1 AS col1 FROM tab1 AS cor0
----
1250
1386
572

query I rowsort
SELECT ALL + col0 * col2 FROM tab1
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col1 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT DISTINCT cor0.col1 AS col0 FROM tab2, tab1 cor0
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-4520
SELECT + ( col0 ) * - col1 DIV - ( col1 + + col1 * + col0 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4520
SELECT + ( col0 ) * - col1 / - ( col1 + + col1 * + col0 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + - 83 * col2 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
-2715
-48
-6717

query I rowsort
SELECT - + 27 FROM tab0 AS cor0
----
-27
-27
-27

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4523
SELECT - CAST( + 56 AS SIGNED ) + tab0.col2 AS col0 FROM tab0
----
-23
-55
26

skipif mysql # not compatible
query I rowsort label-4523
SELECT - CAST ( + 56 AS INTEGER ) + tab0.col2 AS col0 FROM tab0
----
-23
-55
26

query I rowsort
SELECT ALL col1 * 61 AS col1 FROM tab1
----
1586
610
793

onlyif mysql # use DIV operator for integer division
query I rowsort label-4525
SELECT DISTINCT + 87 DIV col0 AS col1 FROM tab2
----
1
12

skipif mysql # not compatible
query I rowsort label-4525
SELECT DISTINCT + 87 / col0 AS col1 FROM tab2
----
1
12

query I rowsort
SELECT DISTINCT - 35 * - col2 AS col1 FROM tab1
----
1890
1995
3360

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * col2 * + col0 col2 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT cor0.col0 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT ( 92 * - col0 + tab0.col0 ) AS col2 FROM tab0
----
-2184
-3185
-8099

query I rowsort
SELECT 2 FROM tab1
----
2
2
2

query I rowsort
SELECT DISTINCT + + 71 + cor0.col2 * - col1 * 25 FROM tab1 cor0
----
-14179
-31129
-35029

query I rowsort
SELECT ALL + col2 * + col0 + + col1 AS col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT DISTINCT + ( - ( + col2 ) + col2 ) FROM tab2
----
0

query I rowsort
SELECT DISTINCT 37 FROM tab2
----
37

query I rowsort
SELECT DISTINCT - 87 + + col1 AS col2 FROM tab2 AS cor0
----
-28
-56
-70

query I rowsort
SELECT - + 36 + cor0.col1 FROM tab0 AS cor0
----
50
55
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 82 * col1 * cor0.col1 + - col0 * - col0 col1 FROM tab1 AS cor0
----
12296
20258
55441

onlyif mysql # use DIV operator for integer division
query I rowsort label-4538
SELECT - col1 DIV col2 FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-4538
SELECT - col1 / col2 FROM tab0 AS cor0
----
-1
-2
-97

query I rowsort
SELECT + 42 AS col0 FROM tab2 AS cor0
----
42
42
42

query I rowsort
SELECT DISTINCT + 23 * col0 + col2 FROM tab1
----
123
1529
1936

query I rowsort
SELECT - + 99 AS col0 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 761f5f1a166a00db99360141565a85da

onlyif mysql # use DIV operator for integer division
query I rowsort label-4542
SELECT DISTINCT col1 DIV col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-4542
SELECT DISTINCT col1 / col1 FROM tab2
----
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4543
SELECT DISTINCT col0 DIV col1 FROM tab2
----
0
1
4

skipif mysql # not compatible
query I rowsort label-4543
SELECT DISTINCT col0 / col1 FROM tab2
----
0
1
4

query I rowsort
SELECT ALL - tab2.col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT ALL + 5 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d

query I rowsort
SELECT - col2 * 28 + + col2 AS col1 FROM tab0 AS cor0
----
-2214
-27
-891

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + + col1 col2 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT DISTINCT + 8 AS col0 FROM tab2 AS cor0
----
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-4549
SELECT + col1 + - col0 DIV + col1 AS col2 FROM tab1 AS cor0
----
26
4
7

skipif mysql # not compatible
query I rowsort label-4549
SELECT + col1 + - col0 / + col1 AS col2 FROM tab1 AS cor0
----
26
4
7

query I rowsort
SELECT col1 * cor0.col1 FROM tab2 AS cor0
----
289
3481
961

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4551
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4551
SELECT DISTINCT CAST ( NULL AS REAL ) * - col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT + + 35 AS col0 FROM tab1 AS cor0
----
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-4553
SELECT 5 DIV - 48 + col2 + + col2 * + cor0.col1 FROM tab2 AS cor0
----
1560
684
864

skipif mysql # not compatible
query I rowsort label-4553
SELECT 5 / - 48 + col2 + + col2 * + cor0.col1 FROM tab2 AS cor0
----
1560
684
864

skipif mysql # not compatible
query I rowsort
SELECT ALL + + CAST ( col0 AS REAL ) + col0 * - 93 AS col0 FROM tab1 AS cor0
----
-276
-5888
-7360

query I rowsort
SELECT - - ( - ( cor0.col1 ) ) AS col1 FROM tab2 AS cor0
----
-17
-31
-59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4556
SELECT ALL - 99 + col0 / col0 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4556
SELECT ALL - 99 + col0 / col0 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 4 * cor0.col1 FROM tab2 AS cor0
----
124
236
68

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4558
SELECT ALL + - CAST( ( col0 ) AS SIGNED ) - col0 FROM tab1 AS cor0
----
-128
-160
-6

skipif mysql # not compatible
query I rowsort label-4558
SELECT ALL + - CAST ( ( col0 ) AS INTEGER ) - col0 FROM tab1 AS cor0
----
-128
-160
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 col0 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT DISTINCT - col2 * ( col2 + cor0.col0 * ( - col1 ) ) FROM tab2 AS cor0
----
118976
49590
5130

query I rowsort
SELECT ALL col0 * - col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT 37 * 42 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to a83bf087fe7fd26b3c3f46615f7480a0

query I rowsort
SELECT DISTINCT - + col0 + + col2 AS col1 FROM tab1 AS cor0
----
-7
16
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4564
SELECT ALL - col1 * - CAST( NULL AS SIGNED ) * - 33 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4564
SELECT ALL - col1 * - CAST ( NULL AS INTEGER ) * - 33 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col1 + col2 AS col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL + col2 * - cor0.col0 + cor0.col0 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT - 61 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c91d7b51e91f33d302e697913fb438b6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * 45 col1 FROM tab1 AS cor0
----
-135
-2880
-3600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - col1 col0 FROM tab0 AS cor0
----
-2
-62

query I rowsort
SELECT + - ( + col0 ) * - cor0.col2 * - 91 FROM tab0 AS cor0
----
-3185
-664118
-72072

query I rowsort
SELECT - ( col2 ) * col1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT tab0.col2 * + col2 - 74 FROM tab0
----
-73
1015
6650

query I rowsort
SELECT DISTINCT - 64 AS col0 FROM tab0 AS cor0
----
-64

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4574
SELECT - + CAST( 22 AS SIGNED ) * - col1 AS col2 FROM tab1 AS cor0
----
220
286
572

skipif mysql # not compatible
query I rowsort label-4574
SELECT - + CAST ( 22 AS INTEGER ) * - col1 AS col2 FROM tab1 AS cor0
----
220
286
572

query I rowsort
SELECT ALL col2 * + col0 + col2 AS col1 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT ( - cor0.col0 ) * + col0 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * - cor0.col1 col1 FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-4578
SELECT ALL col0 * + cor0.col0 * + col2 + - ( 60 ) DIV cor0.col2 + + 92 * col1 FROM tab1 AS cor0
----
234391
2877
615596

skipif mysql # not compatible
query I rowsort label-4578
SELECT ALL col0 * + cor0.col0 * + col2 + - ( 60 ) / cor0.col2 + + 92 * col1 FROM tab1 AS cor0
----
234391
2877
615596

query I rowsort
SELECT ALL - cor0.col1 * + col1 - col1 AS col0 FROM tab0 cor0
----
-7482
-8372
-9506

query I rowsort
SELECT + 93 * + col2 FROM tab1 AS cor0
----
5022
5301
8928

onlyif mysql # use DIV operator for integer division
query I rowsort label-4581
SELECT DISTINCT + col2 DIV 76 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4581
SELECT DISTINCT + col2 / 76 FROM tab2
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4582
SELECT ALL - col1 DIV - 3 FROM tab2
----
10
19
5

skipif mysql # not compatible
query I rowsort label-4582
SELECT ALL - col1 / - 3 FROM tab2
----
10
19
5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4583
SELECT DISTINCT + col0 * + CAST( 24 AS SIGNED ) AS col2 FROM tab0
----
2136
576
840

skipif mysql # not compatible
query I rowsort label-4583
SELECT DISTINCT + col0 * + CAST ( 24 AS INTEGER ) AS col2 FROM tab0
----
2136
576
840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col0 * col0 * + col1 col2 FROM tab1
----
234
40960
83200

query I rowsort
SELECT col2 - 20 FROM tab0
----
-19
13
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 * + col0 col1 FROM tab0 AS cor0
----
1225
576
7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL + col0 + + col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT DISTINCT + 7 FROM tab2 cor0
----
7

query I rowsort
SELECT DISTINCT - + col2 * col2 * col0 AS col1 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT ALL + 28 * col0 + + 85 + + 97 * - col1 FROM tab1 AS cor0
----
-2353
1064
907

onlyif mysql # use DIV operator for integer division
query I rowsort label-4592
SELECT col2 DIV cor0.col1 + - col1 AS col2 FROM tab1 AS cor0
----
-24
-5
-6

skipif mysql # not compatible
query I rowsort label-4592
SELECT col2 / cor0.col1 + - col1 AS col2 FROM tab1 AS cor0
----
-24
-5
-6

query I rowsort
SELECT ALL - + col1 + - col0 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT DISTINCT 12 AS col1 FROM tab2 AS cor0
----
12

query I rowsort
SELECT DISTINCT + col0 * - col1 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL - + 41 * - col2 * col0 AS col2 FROM tab1 AS cor0
----
149568
314880
6642

query I rowsort
SELECT 31 + col0 FROM tab0 AS cor0
----
120
55
66

query I rowsort
SELECT ALL + cor0.col1 * col2 FROM tab0 AS cor0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * col1 + + cor0.col0 col0 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT ALL - - 50 * + col1 FROM tab0 AS cor0
----
4300
4550
4850

query I rowsort
SELECT ALL col1 - tab2.col1 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort
SELECT ALL - col2 * + 12 - tab0.col2 * + CAST ( 37 AS REAL ) FROM tab0
----
-1617
-4018
-49

query I rowsort
SELECT DISTINCT - col0 - col1 AS col1 FROM tab1
----
-29
-74
-93

query I rowsort
SELECT DISTINCT 66 * + col1 AS col0 FROM tab2 cor0
----
1122
2046
3894

query I rowsort
SELECT ALL + 17 AS col1 FROM tab2 AS cor0
----
17
17
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col1 ) col1 FROM tab1
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 6 * + col1 + - col0 - col1 col2 FROM tab1
----
-14
-15
127

query I rowsort
SELECT - col2 + - col0 FROM tab1
----
-121
-176
-57

query I rowsort
SELECT DISTINCT col1 + - col1 AS col0 FROM tab0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4610
SELECT DISTINCT col1 * col2 * - CAST( NULL AS DECIMAL ) + - col1 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4610
SELECT DISTINCT col1 * col2 * - CAST ( NULL AS REAL ) + - col1 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + - 48 + + cor0.col0 + + cor0.col0 FROM tab0 AS cor0
----
0
130
22

query I rowsort
SELECT - 43 + col0 AS col0 FROM tab2 AS cor0
----
-36
35
36

query I rowsort
SELECT DISTINCT - 14 FROM tab0 AS cor0
----
-14

query I rowsort
SELECT ALL - col0 * + col1 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT 73 FROM tab1 AS cor0
----
73
73
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col0 + col1 col0 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT ALL + col0 + - col0 * + col2 AS col2 FROM tab0
----
-7209
-768
0

query I rowsort
SELECT DISTINCT ( cor1.col0 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
3
64
80

query I rowsort
SELECT 46 AS col1 FROM tab1
----
46
46
46

query I rowsort
SELECT + tab2.col0 + col0 * - col2 AS col0 FROM tab2
----
-182
-1950
-2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-4621
SELECT DISTINCT 58 + col0 DIV + col1 AS col1 FROM tab0
----
58

skipif mysql # not compatible
query I rowsort label-4621
SELECT DISTINCT 58 + col0 / + col1 AS col1 FROM tab0
----
58

query I rowsort
SELECT - - col1 * - cor0.col1 + + col1 AS col1 FROM tab2 AS cor0
----
-272
-3422
-930

query I rowsort
SELECT + - col0 + - col1 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT + 21 * - col1 FROM tab2
----
-1239
-357
-651

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 42 col1 FROM tab0
----
42
42
42

onlyif mysql # use DIV operator for integer division
query I rowsort label-4626
SELECT + + col2 * col0 DIV - col1 + col2 FROM tab2 AS cor0
----
-138
-8
21

skipif mysql # not compatible
query I rowsort label-4626
SELECT + + col2 * col0 / - col1 + col2 FROM tab2 AS cor0
----
-138
-8
21

query I rowsort
SELECT + cor0.col1 + - 88 FROM tab0 AS cor0
----
-2
3
9

query I rowsort
SELECT col1 + ( 89 ) * + col1 * + 17 FROM tab2 AS cor0
----
25738
46934
89326

query I rowsort
SELECT DISTINCT + cor0.col1 * col0 FROM tab2 cor0
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 + - col1 * col2 col1 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT - col0 + col2 AS col0 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT ALL - cor0.col2 + col0 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT - col2 * ( - col1 ) AS col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT col1 * col0 - + 29 AS col2 FROM tab2 AS cor0
----
1314
188
4573

query I rowsort
SELECT ALL + - col1 FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT + cor0.col0 * col0 + - col2 AS col2 FROM tab1 AS cor0
----
-45
4039
6304

query I rowsort
SELECT - ( 81 * col2 ) + col2 FROM tab2
----
-2080
-2160
-3040

query I rowsort
SELECT - ( + ( - col1 ) ) * ( - col1 ) FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT + col0 * col2 * col2 AS col0 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT + col1 * + 84 AS col0 FROM tab1 AS cor0
----
1092
2184
840

query I rowsort
SELECT DISTINCT + + cor0.col2 + - cor0.col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT ( 34 ) * + col2 * ( - cor0.col1 * col2 ) AS col1 FROM tab1 AS cor0
----
-1104660
-2577744
-4073472

query I rowsort
SELECT DISTINCT col1 + + 76 FROM tab1 AS cor0
----
102
86
89

query I rowsort
SELECT - - 9 * + col1 FROM tab1 AS cor0
----
117
234
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-4645
SELECT + col1 DIV col2 + 29 AS col2 FROM tab0 AS cor0
----
126
30
31

skipif mysql # not compatible
query I rowsort label-4645
SELECT + col1 / col2 + 29 AS col2 FROM tab0 AS cor0
----
126
30
31

query I rowsort
SELECT DISTINCT - + 32 AS col0 FROM tab2 cor0
----
-32

query I rowsort
SELECT + ( + col1 ) * - 23 AS col2 FROM tab1 cor0
----
-230
-299
-598

query I rowsort
SELECT ALL - 53 * col0 FROM tab1 AS cor0
----
-159
-3392
-4240

query I rowsort
SELECT - + 24 - cor0.col0 FROM tab1 cor0
----
-104
-27
-88

query I rowsort
SELECT + ( + 42 * - col1 ) + - ( - col2 ) FROM tab2
----
-1275
-2452
-676

query IIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 AS cor2
----
972 values hashing to b51b4342db121ebc2d3d353dcd8ed521

query I rowsort
SELECT - col0 + - col1 * col1 FROM tab1 AS cor0
----
-164
-249
-679

query I rowsort
SELECT + - col1 * + 67 FROM tab0 AS cor0
----
-5762
-6097
-6499

query I rowsort
SELECT DISTINCT cor0.col2 * 86 * - cor0.col0 AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
-3010
-627628
-68112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 14 * col0 col1 FROM tab1 cor0
----
1120
42
896

query I rowsort
SELECT DISTINCT - col1 + col2 AS col2 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT ALL - 89 FROM tab1
----
-89
-89
-89

query I rowsort
SELECT - - col0 + + col1 * 62 FROM tab0 AS cor0
----
5356
5731
6049

query I rowsort
SELECT + cor0.col2 + col0 * + col0 AS col1 FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT 89 + + col1 + - col0 FROM tab0 AS cor0
----
151
151
91

query I rowsort
SELECT cor0.col0 * col2 * ( col1 ) FROM tab0 cor0
----
3395
664118
68112

query I rowsort
SELECT - col1 * col0 + col0 * col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4663
SELECT - cor0.col1 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4663
SELECT - cor0.col1 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col2 * - col0 AS col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT col2 * ( + col2 * col1 ) AS col2 FROM tab1 AS cor0
----
119808
32490
75816

query I rowsort
SELECT - col1 * - 67 * 76 AS col0 FROM tab1 cor0
----
132392
50920
66196

query I rowsort
SELECT - 42 FROM tab0
----
-42
-42
-42

query I rowsort
SELECT DISTINCT + col2 + - 5 AS col2 FROM tab2 cor0
----
21
22
33

query I rowsort
SELECT + col0 + col1 AS col1 FROM tab2 AS cor0
----
137
38
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4670
SELECT DISTINCT cor0.col2 * - CAST( col0 AS SIGNED ) * - col0 + col2 AS col1 FROM tab0 AS cor0
----
1226
19041
649604

skipif mysql # not compatible
query I rowsort label-4670
SELECT DISTINCT cor0.col2 * - CAST ( col0 AS INTEGER ) * - col0 + col2 AS col1 FROM tab0 AS cor0
----
1226
19041
649604

query I rowsort
SELECT DISTINCT col2 * cor0.col1 + 17 * col0 + col1 AS col2 FROM tab1 AS cor0
----
1481
1668
2621

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 * col0 col1 FROM tab2
----
1343
217
4602

query I rowsort
SELECT - 56 FROM tab2, tab2 AS cor0
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

query I rowsort
SELECT + cor0.col0 * 85 + + 41 AS col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to eeba3b59d66747485f5d1773d19e30b2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4675
SELECT DISTINCT + tab0.col2 * + CAST( 19 AS SIGNED ) AS col1 FROM tab0
----
1558
19
627

skipif mysql # not compatible
query I rowsort label-4675
SELECT DISTINCT + tab0.col2 * + CAST ( 19 AS INTEGER ) AS col1 FROM tab0
----
1558
19
627

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4676
SELECT + ( - col2 ) * - col0 + - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4676
SELECT + ( - col2 ) * - col0 + - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 + cor0.col0 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT ALL + ( + col1 ) * + col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT DISTINCT + 67 FROM tab1, tab0, tab0 AS cor0, tab1 AS cor1
----
67

query I rowsort
SELECT - col0 * 17 FROM tab0
----
-1513
-408
-595

query I rowsort
SELECT col0 - + 89 * - 88 AS col1 FROM tab2
----
7839
7910
7911

query I rowsort
SELECT 66 FROM tab2, tab1 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88

query I rowsort
SELECT + col0 + 95 AS col2 FROM tab0
----
119
130
184

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col0 + col1 col1 FROM tab1
----
104
1053
650

query I rowsort
SELECT DISTINCT col2 + col0 + col1 AS col2 FROM tab0
----
133
143
262

query I rowsort
SELECT DISTINCT - 83 * + cor0.col0 FROM tab1 AS cor0
----
-249
-5312
-6640

onlyif mysql # use DIV operator for integer division
query I rowsort label-4687
SELECT + ( 36 ) DIV col1 FROM tab1
----
1
2
3

skipif mysql # not compatible
query I rowsort label-4687
SELECT + ( 36 ) / col1 FROM tab1
----
1
2
3

query I rowsort
SELECT DISTINCT - col0 * col2 + + 0 FROM tab1 AS cor0
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col0 col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT + col1 * + col1 - - col1 FROM tab2 AS cor0
----
306
3540
992

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col1 * - ( - col1 ) col1 FROM tab1 AS cor0
----
-43
-622
-73

query I rowsort
SELECT DISTINCT + + 8 * col2 AS col2 FROM tab2 AS cor0
----
208
216
304

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 * cor0.col0 + col0 + 71 col1 FROM tab0 cor0
----
1331
671
8081

query I rowsort
SELECT DISTINCT col2 * - col2 + - col1 FROM tab0 cor0
----
-1175
-6815
-98

query I rowsort
SELECT ALL - ( col2 ) * - col0 AS col2 FROM tab0
----
35
7298
792

query I rowsort
SELECT ALL + ( 60 ) AS col2 FROM tab1
----
60
60
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * - cor0.col1 col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to aff311fa1b3948e179779cc03c1fade4

query I rowsort
SELECT 8 AS col2 FROM tab1
----
8
8
8

query I rowsort
SELECT + col1 * col2 FROM tab0
----
2838
7462
97

query I rowsort
SELECT - 79 FROM tab0
----
-79
-79
-79

query I rowsort
SELECT - - col0 + - cor0.col1 AS col1 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT 48 + col1 AS col0 FROM tab1
----
58
61
74

query I rowsort
SELECT col1 * - col2 + + col1 AS col0 FROM tab0
----
-2752
-7371
0

query I rowsort
SELECT 12 FROM tab2, tab2 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT - ( - col2 ) * col1 * + col1 AS col1 FROM tab0
----
244068
679042
9409

query I rowsort
SELECT DISTINCT col0 + - 73 FROM tab0
----
-38
-49
16

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4707
SELECT CAST( NULL AS SIGNED ) * col0 + + tab1.col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4707
SELECT CAST ( NULL AS INTEGER ) * col0 + + tab1.col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - tab1.col0 + + col1 FROM tab1
----
-54
-67
23

query I rowsort
SELECT - ( - col1 + col2 ) * col1 * - col2 FROM tab2
----
-3348
-50622
13566

query I rowsort
SELECT DISTINCT col1 * + col2 AS col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL col0 * 60 AS col2 FROM tab2 AS cor0
----
420
4680
4740

query I rowsort
SELECT DISTINCT + + 20 AS col2 FROM tab0 AS cor0
----
20

query I rowsort
SELECT + col1 + col2 + - col0 * + 8 AS col0 FROM tab1 AS cor0
----
-445
-531
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col0 col0 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT DISTINCT + + ( col1 ) + + col0 * + col1 FROM tab1 AS cor0
----
104
1053
650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col1 col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT - col0 * - 7 FROM tab0 AS cor0
----
168
245
623

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 + col1 * - cor0.col2 col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT + - cor0.col0 + + col2 FROM tab1 AS cor0
----
-7
16
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 63 col2 FROM tab1 AS cor0
----
-63
-63
-63

query I rowsort
SELECT ALL - col2 + + col2 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4723
SELECT ALL + col0 DIV + cor0.col2 - - 49 * col2 AS col2 FROM tab1 AS cor0
----
2646
2794
4704

skipif mysql # not compatible
query I rowsort label-4723
SELECT ALL + col0 / + cor0.col2 - - 49 * col2 AS col2 FROM tab1 AS cor0
----
2646
2794
4704

query I rowsort
SELECT DISTINCT + + 50 AS col0 FROM tab1 AS cor0
----
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 54 + + col1 col0 FROM tab2 cor0
----
-23
-37
5

query I rowsort
SELECT - 50 + col0 - + col2 AS col2 FROM tab0
----
-16
-43
-59

query I rowsort
SELECT tab1.col2 * + tab1.col1 - col0 FROM tab1
----
1168
1401
506

query I rowsort
SELECT - col0 * col2 + - col1 AS col2 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT ALL 14 FROM tab1 AS cor0
----
14
14
14

query I rowsort
SELECT + col0 * - col1 + col1 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT + 61 AS col1 FROM tab2 AS cor0
----
61
61
61

query I rowsort
SELECT DISTINCT + col1 * - ( col2 ) * - col0 AS col0 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT ALL col1 * cor0.col1 FROM tab0 AS cor0
----
7396
8281
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 col0 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT + col1 + + 57 * ( col0 ) AS col0 FROM tab0 AS cor0
----
1454
2092
5164

query I rowsort
SELECT + col2 + col0 * 70 FROM tab2 AS cor0
----
517
5486
5568

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2, tab0 cor2
----
3645 values hashing to 4fa4bd3038de6e74a345debc8ab4cd53

query I rowsort
SELECT col1 * + cor0.col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - col1 * ( col1 * + col2 ) AS col0 FROM tab2 cor0
----
-10982
-25947
-90506

query I rowsort
SELECT - - col2 * ( - col1 ) - col1 * - 48 FROM tab0 AS cor0
----
-3094
1290
4559

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL + col2 * - col0 + col2 AS col1 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT DISTINCT col2 * col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - ( + col1 ) AS col2 FROM tab0
----
-86
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 77 col0 FROM tab1, tab1 cor0, tab1 cor1
----
27 values hashing to c7e5f48ecd3843d54a76808ed1f43ff6

query I rowsort
SELECT DISTINCT - - col0 + + ( - col0 ) AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4748
SELECT col2 DIV cor0.col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4748
SELECT col2 / cor0.col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL col2 + + col2 * - col1 + col1 FROM tab0 AS cor0
----
-2719
-7289
1

query I rowsort
SELECT ALL col1 * + col0 * col0 + col1 * 18 FROM tab0 AS cor0
----
120571
51084
722449

onlyif mysql # use DIV operator for integer division
query I rowsort label-4751
SELECT col1 DIV 98 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4751
SELECT col1 / 98 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 * col2 AS col2 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT ALL + col1 * + col2 - + col1 AS col1 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT ALL - col0 + + col0 * + col1 AS col0 FROM tab1 AS cor0
----
576
75
960

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0, tab0 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to c8e4a9d810c83d17322e338b2adc95b6

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 cor0, tab0 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to bb6428239bf7f3ea361f6a10500a581d

onlyif mysql # use DIV operator for integer division
query I rowsort label-4757
SELECT + tab0.col0 + col2 DIV ( - col0 ) FROM tab0
----
23
35
89

skipif mysql # not compatible
query I rowsort label-4757
SELECT + tab0.col0 + col2 / ( - col0 ) FROM tab0
----
23
35
89

query I rowsort
SELECT 19 AS col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 86c53e8567a17c8d91fc5aff119e0498

query I rowsort
SELECT 1 FROM tab1, tab1 cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

onlyif mysql # use DIV operator for integer division
query I rowsort label-4760
SELECT - col2 DIV tab0.col2 AS col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4760
SELECT - col2 / tab0.col2 AS col1 FROM tab0
----
-1
-1
-1

query IIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0 AS cor2
----
972 values hashing to 9a5ab925af18e11f7748f3b2e722ff3d

query I rowsort
SELECT - ( 84 ) * col1 * - col2 FROM tab2 AS cor0
----
128856
54264
70308

query I rowsort
SELECT - 59 - col1 AS col2 FROM tab2 AS cor0
----
-118
-76
-90

query I rowsort
SELECT + + col0 - col1 * col0 AS col1 FROM tab1 AS cor0
----
-576
-75
-960

skipif mysql # not compatible
query I rowsort
SELECT CAST ( + col1 AS REAL ) - col0 AS col0 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT + col2 * - col1 + + col0 + cor0.col0 * + 87 FROM tab1 AS cor0
----
-1140
5062
5792

query I rowsort
SELECT - + col2 * - cor0.col0 * - col1 AS col1 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT DISTINCT + + ( ( - col0 ) ) * + 84 FROM tab0 cor0
----
-2016
-2940
-7476

query I rowsort
SELECT - col2 * + 89 + col2 + col2 AS col1 FROM tab2 cor0
----
-2262
-2349
-3306

query I rowsort
SELECT DISTINCT - - 24 AS col1 FROM tab1 AS cor0
----
24

query I rowsort
SELECT - ( - col0 ) * col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT ALL + cor0.col1 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT DISTINCT 0 FROM tab0, tab1 AS cor0
----
0

query I rowsort
SELECT ALL tab0.col1 * col1 * col1 FROM tab0
----
636056
753571
912673

query I rowsort
SELECT + + 40 * 23 + - col1 AS col1 FROM tab0 cor0
----
823
829
834

query I rowsort
SELECT ALL tab1.col0 + + col2 * col0 + 60 FROM tab1
----
225
3772
7820

query I rowsort
SELECT + 65 * - col2 + tab0.col2 + - 99 * col2 FROM tab0
----
-13366
-163
-5379

query I rowsort
SELECT DISTINCT - 65 * col0 + col1 AS col0 FROM tab0 AS cor0
----
-1474
-2178
-5694

query I rowsort
SELECT + + 46 FROM tab2 AS cor0
----
46
46
46

query I rowsort
SELECT ALL ( - col1 ) + col2 * ( col0 ) AS col1 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT ALL + - ( - col0 ) AS col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT col0 + + 8 + col2 FROM tab2 cor0
----
112
125
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 51 col2 FROM tab1 AS cor0
----
51
51
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4784
SELECT - - col0 * + CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4784
SELECT - - col0 * + CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4785
SELECT ALL - + 38 DIV + col2 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4785
SELECT ALL - + 38 / + col2 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col1 + + col0 * cor0.col2 AS col0 FROM tab1 cor0
----
136
3638
7667

query I rowsort
SELECT DISTINCT + col0 - col2 * col0 AS col1 FROM tab1 AS cor0
----
-159
-3584
-7600

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4788
SELECT - - col1 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4788
SELECT - - col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 + + ( col1 ) AS col1 FROM tab2 cor0
----
118
34
62

query I rowsort
SELECT DISTINCT + + col1 - - col2 AS col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL + - col2 * 48 FROM tab1 AS cor0
----
-2592
-2736
-4608

onlyif mysql # use DIV operator for integer division
query I rowsort label-4792
SELECT + 30 DIV col2 AS col0 FROM tab0 cor0
----
0
0
30

skipif mysql # not compatible
query I rowsort label-4792
SELECT + 30 / col2 AS col0 FROM tab0 cor0
----
0
0
30

query I rowsort
SELECT - col2 * col2 + + col0 * col1 AS col0 FROM tab0 AS cor0
----
1375
3394
975

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 15 * - col1 col0 FROM tab0 AS cor0
----
-1290
-1365
-1455

onlyif mysql # use DIV operator for integer division
query I rowsort label-4795
SELECT ALL 76 * col2 + col0 DIV col2 FROM tab0 AS cor0
----
111
2508
6233

skipif mysql # not compatible
query I rowsort label-4795
SELECT ALL 76 * col2 + col0 / col2 FROM tab0 AS cor0
----
111
2508
6233

query I rowsort
SELECT ALL - 48 * col0 + col2 FROM tab2 cor0
----
-309
-3718
-3754

query I rowsort
SELECT DISTINCT + col2 * + col1 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT - 84 FROM tab0 cor0
----
-84
-84
-84

onlyif mysql # use DIV operator for integer division
query I rowsort label-4799
SELECT - - col2 DIV - col1 + col0 DIV col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4799
SELECT - - col2 / - col1 + col0 / col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col2 * col1 + - col0 AS col1 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT ALL 49 FROM tab1
----
49
49
49

query I rowsort
SELECT + 80 FROM tab1
----
80
80
80

query I rowsort
SELECT ALL - 99 FROM tab2
----
-99
-99
-99

query I rowsort
SELECT DISTINCT 36 FROM tab2
----
36

query I rowsort
SELECT + 47 FROM tab1
----
47
47
47

query I rowsort
SELECT 74 FROM tab0
----
74
74
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + col2 col0 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT + - cor0.col1 * - col0 + - col2 AS col0 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT + - ( - col2 ) * + cor0.col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT + + col0 * + col0 + + cor0.col2 * - col1 AS col2 FROM tab0 cor0
----
-2262
1128
459

query I rowsort
SELECT + cor0.col2 * col1 - 37 * col0 AS col1 FROM tab2 AS cor0
----
-1352
-2277
578

query I rowsort
SELECT + col2 + col0 AS col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT - col1 - + col0 AS col1 FROM tab0 AS cor0
----
-110
-132
-180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * ( + col1 ) col1 FROM tab2 AS cor0
----
-1534
-646
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT ALL + 57 * tab0.col0 FROM tab0
----
1368
1995
5073

query I rowsort
SELECT - + col0 * cor0.col0 + - cor0.col2 AS col0 FROM tab0 AS cor0
----
-1226
-609
-8003

query I rowsort
SELECT - 21 + col2 AS col1 FROM tab0 AS cor0
----
-20
12
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-4819
SELECT DISTINCT col1 + + col0 DIV - col2 AS col1 FROM tab1
----
13
26
9

skipif mysql # not compatible
query I rowsort label-4819
SELECT DISTINCT col1 + + col0 / - col2 AS col1 FROM tab1
----
13
26
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-4820
SELECT DISTINCT + col1 * + col1 * - col0 - col1 DIV - col2 FROM tab1
----
-13520
-2028
-6400

skipif mysql # not compatible
query I rowsort label-4820
SELECT DISTINCT + col1 * + col1 * - col0 - col1 / - col2 FROM tab1
----
-13520
-2028
-6400

query I rowsort
SELECT + col1 + - col2 - tab0.col1 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT + - col2 - cor0.col0 AS col0 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT ALL - col1 * - col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT - col1 + + col2 AS col2 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT cor0.col1 + + col2 * - col2 FROM tab1 AS cor0
----
-2890
-3239
-9203

query I rowsort
SELECT DISTINCT - col2 * col2 + col1 * cor0.col2 AS col1 FROM tab0 AS cor0
----
1749
738
96

query I rowsort
SELECT DISTINCT col0 - - cor0.col1 * - col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IN ( col1 )
----

query I rowsort
SELECT DISTINCT col1 * + col0 * + col1 + + cor0.col0 FROM tab2 AS cor0
----
22910
271596
6734

query I rowsort
SELECT - col0 + col0 * cor0.col2 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT ALL col0 * col2 * cor0.col2 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT - col2 + + col2 AS col1 FROM tab0 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4832
SELECT col1 - cor0.col1 DIV cor0.col2 AS col2 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-4832
SELECT col1 - cor0.col1 / cor0.col2 AS col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT + tab1.col2 * + col1 AS col2 FROM tab1
----
1248
1404
570

query I rowsort
SELECT DISTINCT - col2 * col1 + + col0 * - col1 - - col2 FROM tab2
----
-1027
-1951
-6110

onlyif mysql # use DIV operator for integer division
query I rowsort label-4835
SELECT col1 DIV col2 + col0 DIV - tab1.col2 + col0 FROM tab1
----
3
63
80

skipif mysql # not compatible
query I rowsort label-4835
SELECT col1 / col2 + col0 / - tab1.col2 + col0 FROM tab1
----
3
63
80

query I rowsort
SELECT ALL cor0.col2 * - col2 * col2 + col0 FROM tab2 AS cor0
----
-17498
-19676
-54793

query I rowsort
SELECT ALL col2 * cor0.col0 + col1 * col0 FROM tab1 AS cor0
----
240
4288
8720

query I rowsort
SELECT ALL col2 + + col2 * - col0 AS col1 FROM tab2 AS cor0
----
-162
-2002
-2964

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 col0 * + tab1.col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT col1 + + col1 * col2 FROM tab1
----
1261
1430
580

query I rowsort
SELECT + - col0 + - col0 * col2 AS col0 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT ALL col0 * col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL + + col1 AS col1 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT ALL - - cor0.col0 * col0 - col1 * - col2 FROM tab2 cor0
----
6887
7618
886

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 DISTINCT + col0 * + col1 AS col2 FROM tab2
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 col1 FROM tab2 AS cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-4849
SELECT - col2 * col0 * col2 + - col2 DIV col2 AS col2 FROM tab1 AS cor0
----
-207937
-737281
-8749

skipif mysql # not compatible
query I rowsort label-4849
SELECT - col2 * col0 * col2 + - col2 / col2 AS col2 FROM tab1 AS cor0
----
-207937
-737281
-8749

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + col0 col0 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT ALL col0 * col2 + col2 * + col1 AS col2 FROM tab2 AS cor0
----
1026
3562
3648

query I rowsort
SELECT DISTINCT col2 - col2 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - col0 * col1 + - cor0.col2 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT DISTINCT + - col0 + + col0 FROM tab1 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4855
SELECT ALL + tab0.col0 * + col1 DIV tab0.col1 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-4855
SELECT ALL + tab0.col0 * + col1 / tab0.col1 FROM tab0
----
24
35
89

query I rowsort
SELECT col2 - - col0 * + col2 AS col1 FROM tab1
----
216
3705
7776

query I rowsort
SELECT - col1 + - col0 AS col2 FROM tab2
----
-137
-38
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4858
SELECT tab2.col1 * + col0 + - tab2.col2 * + col1 DIV + col1 AS col0 FROM tab2
----
1305
190
4576

skipif mysql # not compatible
query I rowsort label-4858
SELECT tab2.col1 * + col0 + - tab2.col2 * + col1 / + col1 AS col0 FROM tab2
----
1305
190
4576

query I rowsort
SELECT DISTINCT tab0.col2 * + tab0.col1 FROM tab0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4860
SELECT col0 DIV + col0 AS col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4860
SELECT col0 / + col0 AS col2 FROM tab1
----
1
1
1

query I rowsort
SELECT + + col2 + 39 + + ( cor0.col1 ) AS col0 FROM tab2 AS cor0
----
124
94
97

query I rowsort
SELECT col1 + - col2 + col1 AS col2 FROM tab0
----
100
139
193

query I rowsort
SELECT - col0 + 74 FROM tab1
----
-6
10
71

query I rowsort
SELECT DISTINCT 19 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
19

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0, tab1 AS cor0, tab1 cor1
----
972 values hashing to 0be13143d898cc667fe1a2dd93b34703

query I rowsort
SELECT DISTINCT col0 * 91 * col0 + col0 AS col0 FROM tab0
----
111510
52440
720900

query I rowsort
SELECT DISTINCT - tab0.col0 * col0 + col0 FROM tab0
----
-1190
-552
-7832

query I rowsort
SELECT DISTINCT + 45 AS col0 FROM tab0, tab1 cor0
----
45

query I rowsort
SELECT col1 + 47 * col1 FROM tab0 AS cor0
----
4128
4368
4656

query I rowsort
SELECT DISTINCT - - ( - cor0.col0 ) FROM tab0, tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT col0 * + 24 + + col2 FROM tab1 AS cor0
----
126
1593
2016

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4872
SELECT DISTINCT + col0 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4872
SELECT DISTINCT + col0 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - col1 + - col2 AS col1 FROM tab2 AS cor0
----
-55
-58
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 col1 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT ALL 24 FROM tab2
----
24
24
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 30 col1 FROM tab0
----
-30
-30
-30

query I rowsort
SELECT ALL - col1 + + 43 FROM tab1 AS cor0
----
17
30
33

query I rowsort
SELECT ALL 51 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query I rowsort
SELECT ALL + ( - 93 ) AS col0 FROM tab2 AS cor0
----
-93
-93
-93

query I rowsort
SELECT 35 FROM tab2, tab2 cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query I rowsort
SELECT ALL - col0 * 10 FROM tab2 AS cor0
----
-70
-780
-790

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 6 ) * - col1 col0 FROM tab1 AS cor0
----
-156
-60
-78

query I rowsort
SELECT ALL - 61 AS col2 FROM tab2
----
-61
-61
-61

query I rowsort
SELECT ALL + 83 * + col1 + col1 FROM tab0 AS cor0
----
7224
7644
8148

query I rowsort
SELECT DISTINCT - 24 AS col2 FROM tab1 cor0
----
-24

query I rowsort
SELECT ALL col2 * + col0 + col1 + - col0 * col1 AS col1 FROM tab2 AS cor0
----
-2515
1676
3

query I rowsort
SELECT DISTINCT + + col2 - - col2 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT DISTINCT - 40 * col2 FROM tab0 AS cor0
----
-1320
-3280
-40

query I rowsort
SELECT DISTINCT + col0 * col0 AS col1 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT + 12 AS col1 FROM tab0 cor0
----
12
12
12

query I rowsort
SELECT ALL 67 * + cor0.col2 + - cor0.col0 AS col1 FROM tab2 AS cor0
----
1664
1802
2467

onlyif mysql # use DIV operator for integer division
query I rowsort label-4892
SELECT ALL - - col1 - col1 DIV 22 AS col2 FROM tab0 AS cor0
----
83
87
93

skipif mysql # not compatible
query I rowsort label-4892
SELECT ALL - - col1 - col1 / 22 AS col2 FROM tab0 AS cor0
----
83
87
93

query I rowsort
SELECT - + ( + col1 ) AS col1 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT 82 * cor0.col2 AS col2 FROM tab2 cor0
----
2132
2214
3116

skipif mysql # not compatible
query I rowsort
SELECT + - CAST ( + tab0.col2 AS REAL ) FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4896
SELECT DISTINCT - CAST( col2 + - col0 AS SIGNED ) * - ( 1 ) FROM tab1
----
-7
16
51

skipif mysql # not compatible
query I rowsort label-4896
SELECT DISTINCT - CAST ( col2 + - col0 AS INTEGER ) * - ( 1 ) FROM tab1
----
-7
16
51

query I rowsort
SELECT - col1 * + col1 + col0 AS col2 FROM tab0 AS cor0
----
-7372
-8192
-9374

query I rowsort
SELECT DISTINCT + + col2 * col2 + + ( 50 ) AS col0 FROM tab2 cor0
----
1494
726
779

query I rowsort
SELECT ALL + ( cor0.col0 ) FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT - col0 * + col2 + + cor0.col2 * col1 + + col1 AS col1 FROM tab0 AS cor0
----
159
2132
255

query I rowsort
SELECT DISTINCT - 45 * - col1 - + col2 * - cor0.col1 AS col0 FROM tab0 cor0
----
11557
4462
6708

query I rowsort
SELECT DISTINCT + 62 + cor0.col2 * ( - cor0.col1 + - col2 ) * - col0 AS col1 FROM tab2 AS cor0
----
11024
165172
172442

query I rowsort
SELECT DISTINCT - - 22 FROM tab1, tab0 cor0
----
22

query I rowsort
SELECT - ( + cor0.col0 ) * - 72 FROM tab1 AS cor0
----
216
4608
5760

query I rowsort
SELECT ALL 52 AS col1 FROM tab0 AS cor0
----
52
52
52

query I rowsort
SELECT - col2 * ( - col2 ) * col2 FROM tab2 AS cor0
----
17576
19683
54872

query I rowsort
SELECT DISTINCT cor0.col1 FROM tab1, tab0 cor0
----
86
91
97

query I rowsort
SELECT + 84 AS col1 FROM tab1
----
84
84
84

query I rowsort
SELECT col2 * - col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL + 61 FROM tab2
----
61
61
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * tab0.col1 col2 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT + 14 * tab2.col2 AS col0 FROM tab2
----
364
378
532

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 * + col1 col0 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT DISTINCT 67 * + 92 AS col0 FROM tab1 AS cor0
----
6164

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4915
SELECT ( 14 ) + col1 + - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4915
SELECT ( 14 ) + col1 + - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 85 + col1 AS col1 FROM tab1 AS cor0
----
-59
-72
-75

query I rowsort
SELECT - col1 + 58 FROM tab2 AS cor0
----
-1
27
41

query I rowsort
SELECT DISTINCT - cor0.col1 + col2 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT DISTINCT ( col1 ) AS col0 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT + - ( col2 ) FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT - col2 + ( - col2 ) * + 84 * ( - col0 ) FROM tab1 AS cor0
----
13554
306375
645024

query I rowsort
SELECT - - 57 FROM tab1 AS cor0
----
57
57
57

query I rowsort
SELECT DISTINCT + tab2.col2 + + col0 FROM tab2
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-4924
SELECT DISTINCT - col1 + + col0 DIV - col2 FROM tab0
----
-132
-86
-92

skipif mysql # not compatible
query I rowsort label-4924
SELECT DISTINCT - col1 + + col0 / - col2 FROM tab0
----
-132
-86
-92

onlyif mysql # use DIV operator for integer division
query I rowsort label-4925
SELECT ALL - col0 DIV col1 + col0 FROM tab2
----
7
75
77

skipif mysql # not compatible
query I rowsort label-4925
SELECT ALL - col0 / col1 + col0 FROM tab2
----
7
75
77

query I rowsort
SELECT col2 + + tab0.col1 * - 84 FROM tab0
----
-7191
-7562
-8147

onlyif mysql # use DIV operator for integer division
query I rowsort label-4927
SELECT + col0 DIV col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4927
SELECT + col0 / col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4928
SELECT col2 + col2 DIV + col2 + - col0 * 47 AS col2 FROM tab0 AS cor0
----
-1094
-1643
-4100

skipif mysql # not compatible
query I rowsort label-4928
SELECT col2 + col2 / + col2 + - col0 * 47 AS col2 FROM tab0 AS cor0
----
-1094
-1643
-4100

query I rowsort
SELECT cor1.col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT DISTINCT 23 * 10 AS col2 FROM tab2
----
230

onlyif mysql # use DIV operator for integer division
query I rowsort label-4931
SELECT DISTINCT + 28 DIV col2 col1 FROM tab0 AS cor0
----
0
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4931
SELECT DISTINCT + 28 / col2 col1 FROM tab0 AS cor0
----
0
28

query I rowsort
SELECT ALL - 82 + + 62 * col1 + cor0.col0 AS col0 FROM tab0 AS cor0
----
5274
5649
5967

query I rowsort
SELECT DISTINCT col1 * 55 FROM tab0
----
4730
5005
5335

query I rowsort
SELECT - - col0 * - cor0.col2 - col2 * + col2 FROM tab1 AS cor0
----
-16896
-3078
-6897

query I rowsort
SELECT - - 57 * - col1 - cor0.col2 AS col2 FROM tab0 cor0
----
-4935
-5269
-5530

query I rowsort
SELECT + ( col1 ) * + col0 + 41 + + 74 FROM tab2 AS cor0
----
1458
332
4717

query I rowsort
SELECT DISTINCT col0 + 81 FROM tab0 AS cor0
----
105
116
170

query I rowsort
SELECT col1 + + ( - ( - col0 ) ) + ( + col0 ) AS col0 FROM tab2
----
175
215
45

query I rowsort
SELECT DISTINCT col0 + tab2.col2 * col2 FROM tab2
----
1523
736
754

onlyif mysql # use DIV operator for integer division
query I rowsort label-4940
SELECT + col1 DIV - col0 FROM tab2
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-4940
SELECT + col1 / - col0 FROM tab2
----
-4
0
0

query I rowsort
SELECT col0 * + col0 * col1 FROM tab0
----
118825
49536
720811

onlyif mysql # use DIV operator for integer division
query I rowsort label-4942
SELECT - tab1.col2 DIV col0 AS col1 FROM tab1
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-4942
SELECT - tab1.col2 / col0 AS col1 FROM tab1
----
-1
-18
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + cor0.col0 + - cor0.col2 col1 FROM tab0 cor0
----
15
69
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4944
SELECT + - 93 DIV + col0 + - col2 DIV col0 + - col1 FROM tab2 AS cor0
----
-18
-47
-60

skipif mysql # not compatible
query I rowsort label-4944
SELECT + - 93 / + col0 + - col2 / col0 + - col1 FROM tab2 AS cor0
----
-18
-47
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col1 col0 FROM tab2 AS cor0
----
-19
-62
24

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4946
SELECT - CAST( cor0.col1 AS SIGNED ) * cor0.col1 + + 69 * + col1 AS col1 FROM tab0 AS cor0
----
-1462
-2002
-2716

skipif mysql # not compatible
query I rowsort label-4946
SELECT - CAST ( cor0.col1 AS INTEGER ) * cor0.col1 + + 69 * + col1 AS col1 FROM tab0 AS cor0
----
-1462
-2002
-2716

query I rowsort
SELECT - col0 * - col2 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT tab1.col2 AS col2 FROM tab1, tab2 AS cor0
----
54
57
96

query I rowsort
SELECT - 91 * - tab0.col0 FROM tab0
----
2184
3185
8099

query I rowsort
SELECT ALL 51 FROM tab0
----
51
51
51

query I rowsort
SELECT DISTINCT - + col2 + - col2 FROM tab1 AS cor0
----
-108
-114
-192

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0, tab1 AS cor1, tab0 cor2
----
972 values hashing to 43f0c51511c8642d19190fd4dfcf905a

query I rowsort
SELECT + 42 + col2 * - col1 AS col0 FROM tab0 AS cor0
----
-2796
-55
-7420

query I rowsort
SELECT ALL - col0 * col1 * col2 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT ALL 89 FROM tab0 AS cor0
----
89
89
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-4956
SELECT DISTINCT - 51 DIV + cor0.col2 col0 FROM tab1, tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4956
SELECT DISTINCT - 51 / + cor0.col2 col0 FROM tab1, tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
0

query I rowsort
SELECT - 12 FROM tab1
----
-12
-12
-12

query I rowsort
SELECT - 67 FROM tab2
----
-67
-67
-67

query I rowsort
SELECT + tab0.col2 + col2 AS col0 FROM tab0
----
164
2
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4960
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab1, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4960
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab1, tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4961
SELECT ALL tab0.col0 DIV - col0 AS col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4961
SELECT ALL tab0.col0 / - col0 AS col0 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT ALL - 96 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to c89b545346f99713888a7934e4caa539

query I rowsort
SELECT 13 FROM tab0, tab1 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT DISTINCT col0 * 96 AS col2 FROM tab1
----
288
6144
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 0 col1 FROM tab0, tab1 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL col2 * + col2 AS col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT cor1.col0 AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT DISTINCT - 79 + - col1 + col2 AS col0 FROM tab2 AS cor0
----
-112
-58
-83

query I rowsort
SELECT + col2 * + 93 AS col1 FROM tab0 cor0
----
3069
7626
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab1.col0 * col0 col1 FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT + 5 * 63 + - col1 + - tab1.col2 AS col1 FROM tab1
----
206
235
248

query I rowsort
SELECT + col0 * - col0 + col0 * - tab2.col0 FROM tab2
----
-12168
-12482
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + col1 * tab0.col1 col1 FROM tab0
----
7363
8199
9408

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4974
SELECT DISTINCT + CAST( - col1 AS SIGNED ) + - col0 FROM tab1
----
-29
-74
-93

skipif mysql # not compatible
query I rowsort label-4974
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) + - col0 FROM tab1
----
-29
-74
-93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4975
SELECT - CAST( + 60 AS SIGNED ) FROM tab0 cor0
----
-60
-60
-60

skipif mysql # not compatible
query I rowsort label-4975
SELECT - CAST ( + 60 AS INTEGER ) FROM tab0 cor0
----
-60
-60
-60

query I rowsort
SELECT + 35 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query I rowsort
SELECT DISTINCT + 91 * cor0.col0 FROM tab2 cor0
----
637
7098
7189

query I rowsort
SELECT col1 * ( col2 ) FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT col2 * 75 - - col0 FROM tab0 AS cor0
----
110
2499
6239

query I rowsort
SELECT ALL - - 3 + - 50 AS col2 FROM tab0 AS cor0
----
-47
-47
-47

query I rowsort
SELECT col0 + col1 AS col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL - cor0.col0 + - col0 FROM tab2 cor0
----
-14
-156
-158

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4983
SELECT ALL + + CAST( NULL AS DECIMAL ) * + col2 + col0 * + 50 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4983
SELECT ALL + + CAST ( NULL AS REAL ) * + col2 + col0 * + 50 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * - tab0.col1 + 57 FROM tab0
----
-2007
-3338
-8042

query I rowsort
SELECT DISTINCT col1 * + col0 + - 40 FROM tab0
----
2024
3355
8059

onlyif mysql # use DIV operator for integer division
query I rowsort label-4986
SELECT - col0 + col1 DIV 67 AS col2 FROM tab1
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-4986
SELECT - col0 + col1 / 67 AS col2 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT ( - col2 ) AS col1 FROM tab2
----
-26
-27
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col1 col1 FROM tab2
----
-19
-62
24

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4989
SELECT tab2.col2 + + CAST( NULL AS SIGNED ) FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4989
SELECT tab2.col2 + + CAST ( NULL AS INTEGER ) FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT - + ( tab1.col1 ) AS col0 FROM tab1, tab2, tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT - col2 + cor0.col1 AS col1 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT - + cor0.col2 + + col0 AS col0 FROM tab2 AS cor0
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-4993
SELECT DISTINCT - + col0 DIV + CAST( col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-6
0

skipif mysql # not compatible
query I rowsort label-4993
SELECT DISTINCT - + col0 / + CAST ( col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-6
0

query I rowsort
SELECT ALL col1 + 3 FROM tab1 AS cor0
----
13
16
29

query I rowsort
SELECT ALL + col2 + - col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL - - cor0.col2 * + ( - 18 ) - - col1 AS col2 FROM tab2 AS cor0
----
-409
-455
-667

query I rowsort
SELECT DISTINCT col1 * - col1 AS col0 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT - - col1 * + 41 + - col1 AS col2 FROM tab2 AS cor0
----
1240
2360
680

query I rowsort
SELECT DISTINCT + 29 AS col2 FROM tab0
----
29

query I rowsort
SELECT + col2 + ( col0 ) FROM tab1 AS cor0
----
121
176
57

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0, tab0 cor0, tab0 AS cor1
----
972 values hashing to ea0f747588ddf5869ee18a5e22d9f237

query I rowsort
SELECT - + col1 * col2 * cor0.col0 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT DISTINCT + + 65 + col0 FROM tab2 cor0
----
143
144
72

onlyif mysql # use DIV operator for integer division
query I rowsort label-5004
SELECT ALL - cor0.col1 + - col1 DIV ( col1 + col1 ) AS col2 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-5004
SELECT ALL - cor0.col1 + - col1 / ( col1 + col1 ) AS col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT + col1 * cor0.col2 AS col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT - col0 * - col0 AS col2 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT + - col2 * col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT col1 + - col1 - col0 AS col0 FROM tab0
----
-24
-35
-89

query III rowsort
SELECT * FROM tab2 WHERE NULL >= NULL
----

query I rowsort
SELECT ALL col2 AS col2 FROM tab0 WHERE NULL NOT BETWEEN + col0 * + col2 * col2 AND NULL
----

query I rowsort
SELECT col2 * col0 + col2 + - col2 AS col0 FROM tab0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-5012
SELECT tab1.col0 * - col1 + + col1 + col2 * col0 DIV - col2 FROM tab1
----
-1107
-55
-694

skipif mysql # not compatible
query I rowsort label-5012
SELECT tab1.col0 * - col1 + + col1 + col2 * col0 / - col2 FROM tab1
----
-1107
-55
-694

query I rowsort
SELECT col1 * - col1 AS col0 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT - col2 - col1 AS col2 FROM tab1 WHERE NOT NULL < col1 * + col0 + + col1
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5015
SELECT ( cor0.col0 ) DIV + 31 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to aa375397622194eb8bb1c3fa8eb66303

skipif mysql # not compatible
query I rowsort label-5015
SELECT ( cor0.col0 ) / + 31 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to aa375397622194eb8bb1c3fa8eb66303

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 28 col0 FROM tab0 AS cor0
----
-28
-28
-28

query I rowsort
SELECT DISTINCT - col0 + + col1 * + cor0.col0 FROM tab2 AS cor0
----
1264
210
4524

onlyif mysql # use DIV operator for integer division
query I rowsort label-5018
SELECT ALL 10 DIV col1 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5018
SELECT ALL 10 / col1 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5019
SELECT ALL - 34 DIV + tab1.col1 FROM tab1
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-5019
SELECT ALL - 34 / + tab1.col1 FROM tab1
----
-1
-2
-3

query I rowsort
SELECT ALL - col1 * + tab2.col1 + col2 * + col1 AS col2 FROM tab2
----
-124
-1947
357

query I rowsort
SELECT ALL + tab0.col0 * col0 AS col2 FROM tab0
----
1225
576
7921

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col0 + col0 ) >= NULL
----

query I rowsort
SELECT col1 * + col1 AS col1 FROM tab2
----
289
3481
961

query I rowsort
SELECT DISTINCT tab2.col2 + + col1 * col0 AS col0 FROM tab2
----
1381
244
4628

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( col0 / col2 + + col2 )
----

query I rowsort
SELECT DISTINCT + col0 * col0 + + col1 FROM tab1
----
35
4106
6413

query I rowsort
SELECT DISTINCT col0 + col1 * col2 AS col2 FROM tab2
----
1612
725
844

query I rowsort
SELECT + col0 + + col0 FROM tab2
----
14
156
158

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) NOT IN ( col2 )
----

query I rowsort
SELECT ALL tab2.col2 * + col0 AS col2 FROM tab2
----
189
2028
3002

query I rowsort
SELECT + col1 * col2 + - col0 AS col2 FROM tab1
----
1168
1401
506

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col2 + - col2 ) IN ( - col1 * col1 * - tab0.col1 + + col1 )
----

query I rowsort
SELECT ALL - col0 + + col2 FROM tab2
----
-41
-52
20

query I rowsort
SELECT ALL tab2.col1 * tab2.col0 AS col0 FROM tab2
----
1343
217
4602

query I rowsort
SELECT ALL col1 - tab0.col1 * col0 FROM tab0
----
-1978
-3298
-8008

query I rowsort
SELECT col2 + - tab2.col0 * + col0 FROM tab2
----
-22
-6058
-6203

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 < NULL
----

query I rowsort
SELECT ALL col1 * + col2 * col1 + + col0 AS col2 FROM tab0
----
244092
679131
9444

query I rowsort
SELECT - col2 + tab1.col1 * tab1.col2 FROM tab1
----
1152
1350
513

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col1 + col2 col1 FROM tab0
----
119
173
98

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col1 * col0 ) IN ( tab2.col2 + col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col1 * col1 / - col0 ) >= col0
----
3
26
54

query I rowsort
SELECT - col1 * - tab1.col0 FROM tab1
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-5044
SELECT ALL - col2 * + col0 + col2 * tab0.col2 DIV - col2 AS col0 FROM tab0
----
-36
-7380
-825

skipif mysql # not compatible
query I rowsort label-5044
SELECT ALL - col2 * + col0 + col2 * tab0.col2 / - col2 AS col0 FROM tab0
----
-36
-7380
-825

query I rowsort
SELECT + col0 - - tab1.col0 FROM tab1
----
128
160
6

query I rowsort
SELECT DISTINCT tab0.col0 + tab0.col2 AS col1 FROM tab0
----
171
36
57

query I rowsort
SELECT DISTINCT + col2 * col2 + tab0.col2 * col1 AS col2 FROM tab0
----
14186
3927
98

query I rowsort
SELECT ALL ( col0 ) * + col2 * 34 AS col2 FROM tab2
----
102068
6426
68952

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col0 col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL cor0.col0 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT ( col0 ) + - col1 AS col1 FROM tab1 cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT cor0.col2 AS col0 FROM tab2, tab0 cor0
----
1
33
82

query I rowsort
SELECT ALL - col1 * col0 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL + 58 + col1 AS col1 FROM tab2 AS cor0
----
117
75
89

query I rowsort
SELECT ALL col1 * col2 + + col0 * ( col1 ) * col1 FROM tab1 AS cor0
----
14768
3432
6970

query I rowsort
SELECT DISTINCT + 15 FROM tab2 cor0
----
15

query I rowsort
SELECT - cor0.col1 * col0 + col2 AS col1 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT ALL col1 * 53 AS col0 FROM tab1
----
1378
530
689

query I rowsort
SELECT + 9 * col0 AS col2 FROM tab2 AS cor0
----
63
702
711

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5060
SELECT DISTINCT + col2 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5060
SELECT DISTINCT + col2 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - + cor0.col2 + cor0.col2 * cor0.col2 AS col0 FROM tab2 AS cor0
----
1406
650
702

query I rowsort
SELECT ALL col0 * - col1 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL + col0 * + 72 FROM tab2 cor0
----
504
5616
5688

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - ( - 97 ) col1 FROM tab1 AS cor0
----
107
110
123

onlyif mysql # use DIV operator for integer division
query I rowsort label-5065
SELECT DISTINCT - col1 DIV col2 FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-5065
SELECT DISTINCT - col1 / col2 FROM tab0 AS cor0
----
-1
-2
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5067
SELECT ALL + + col0 DIV col1 AS col0 FROM tab1 AS cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-5067
SELECT ALL + + col0 / col1 AS col0 FROM tab1 AS cor0
----
0
6
6

query I rowsort
SELECT + cor0.col0 * col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-5069
SELECT - col1 + col1 DIV 9 FROM tab1 AS cor0
----
-12
-24
-9

skipif mysql # not compatible
query I rowsort label-5069
SELECT - col1 + col1 / 9 FROM tab1 AS cor0
----
-12
-24
-9

query I rowsort
SELECT + col0 * 15 - cor0.col1 FROM tab1 AS cor0
----
1187
19
950

query I rowsort
SELECT - col1 * - col1 * + 4 FROM tab0 AS cor0
----
29584
33124
37636

query I rowsort
SELECT + col1 + - ( - 36 ) FROM tab2 AS cor0
----
53
67
95

query I rowsort
SELECT ALL - col2 + cor0.col0 AS col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT - cor0.col1 * 75 AS col2 FROM tab0 cor0
----
-6450
-6825
-7275

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col1 + col1 * col1 + + col1 * + ( - 66 ) col2 FROM tab2 AS cor0
----
-1116
-472
-850

query I rowsort
SELECT DISTINCT - - col0 * + col2 FROM tab1 cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-5077
SELECT + - col2 * ( + col2 ) + - col1 DIV col2 AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216

skipif mysql # not compatible
query I rowsort label-5077
SELECT + - col2 * ( + col2 ) + - col1 / col2 AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5078
SELECT + CAST( NULL AS DECIMAL ) * col2 + cor0.col2 * 33 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5078
SELECT + CAST ( NULL AS REAL ) * col2 + cor0.col2 * 33 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5079
SELECT DISTINCT - cor1.col1 + - CAST( 73 AS SIGNED ) FROM tab0, tab0 AS cor0, tab2 cor1
----
-104
-132
-90

skipif mysql # not compatible
query I rowsort label-5079
SELECT DISTINCT - cor1.col1 + - CAST ( 73 AS INTEGER ) FROM tab0, tab0 AS cor0, tab2 cor1
----
-104
-132
-90

query I rowsort
SELECT - col2 + col1 + + col1 AS col0 FROM tab2 AS cor0
----
-4
35
92

query I rowsort
SELECT ALL + 76 AS col1 FROM tab1 AS cor0
----
76
76
76

query I rowsort
SELECT ALL col0 + + 94 * tab1.col1 AS col1 FROM tab1
----
1004
1302
2447

query I rowsort
SELECT ALL col2 + ( col1 ) + + col1 * 53 AS col1 FROM tab2
----
1701
3212
956

query I rowsort
SELECT 45 FROM tab2, tab1 AS cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT - 96 FROM tab0
----
-96
-96
-96

query I rowsort
SELECT ALL ( - col2 ) FROM tab0
----
-1
-33
-82

query I rowsort
SELECT - 97 FROM tab2
----
-97
-97
-97

query I rowsort
SELECT DISTINCT + cor0.col1 AS col2 FROM tab2, tab2 AS cor0
----
17
31
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5089
SELECT + col0 + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5089
SELECT + col0 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + cor0.col0 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT - col2 - - ( 23 ) FROM tab2 AS cor0
----
-15
-3
-4

query I rowsort
SELECT DISTINCT + - col0 * 4 * - col2 - col0 FROM tab0 cor0
----
105
29103
3144

query I rowsort
SELECT col0 + 88 AS col2 FROM tab2 cor0
----
166
167
95

query I rowsort
SELECT + col0 * - ( col2 ) - - col0 AS col0 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT DISTINCT - + col2 - cor0.col2 * 47 FROM tab0 AS cor0
----
-1584
-3936
-48

query I rowsort
SELECT DISTINCT col2 + + col1 + col1 AS col2 FROM tab1 AS cor0
----
106
122
77

query I rowsort
SELECT - + col1 - col1 AS col2 FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT - + 17 AS col2 FROM tab2 AS cor0
----
-17
-17
-17

query I rowsort
SELECT + - col0 * + 20 AS col0 FROM tab1 AS cor0
----
-1280
-1600
-60

query I rowsort
SELECT cor0.col2 + col2 * - col2 FROM tab2 AS cor0
----
-1406
-650
-702

query I rowsort
SELECT - 2 FROM tab0, tab1 AS cor0
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

query I rowsort
SELECT DISTINCT + 30 AS col2 FROM tab0, tab1 AS cor0, tab2, tab1 cor1
----
30

query I rowsort
SELECT col1 * 66 AS col1 FROM tab1 AS cor0
----
1716
660
858

onlyif mysql # use DIV operator for integer division
query I rowsort label-5104
SELECT + 26 DIV + 39 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5104
SELECT + 26 / + 39 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT 44 + + ( - cor0.col0 ) * 84 FROM tab2 cor0
----
-544
-6508
-6592

onlyif mysql # use DIV operator for integer division
query I rowsort label-5106
SELECT - ( - cor0.col0 ) * col1 DIV col2 AS col2 FROM tab1 AS cor0
----
1
10
11

skipif mysql # not compatible
query I rowsort label-5106
SELECT - ( - cor0.col0 ) * col1 / col2 AS col2 FROM tab1 AS cor0
----
1
10
11

query I rowsort
SELECT + + ( - col0 ) FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT + col2 * - ( 79 * + col2 ) AS col0 FROM tab0
----
-531196
-79
-86031

query I rowsort
SELECT - 45 + - col2 * col0 FROM tab0 AS cor0
----
-7343
-80
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 + - col0 * - 5 * + 72 col1 FROM tab2 AS cor0
----
2709
30108
31442

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 ( col2 ) AS col0 FROM tab0
----
1
33
82

query I rowsort
SELECT + 90 * - col2 FROM tab2 AS cor0
----
-2340
-2430
-3420

query I rowsort
SELECT DISTINCT - 72 FROM tab2, tab2 AS cor0
----
-72

query I rowsort
SELECT + 75 AS col1 FROM tab1
----
75
75
75

query I rowsort
SELECT DISTINCT + + 86 * + col1 AS col2 FROM tab1 AS cor0
----
1118
2236
860

query I rowsort
SELECT ALL - + cor0.col2 FROM tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT + 62 * col1 FROM tab0 AS cor0
----
5332
5642
6014

query I rowsort
SELECT + cor0.col1 + col1 * col1 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT ALL + + col0 AS col1 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT 5 * - col2 FROM tab0 AS cor0
----
-165
-410
-5

query I rowsort
SELECT - + 71 * col1 AS col0 FROM tab1 AS cor0
----
-1846
-710
-923

query I rowsort
SELECT ALL - 19 + - col0 FROM tab2 AS cor0
----
-26
-97
-98

query I rowsort
SELECT DISTINCT + cor0.col2 * - col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query I rowsort
SELECT - col0 + tab0.col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - 65 FROM tab1, tab0 AS cor0
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5128
SELECT ALL - - ( col0 ) * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5128
SELECT ALL - - ( col0 ) * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * - col1 * ( 32 ) FROM tab1 AS cor0
----
20480
2496
33280

query I rowsort
SELECT - 94 + + col2 AS col1 FROM tab2 AS cor0
----
-56
-67
-68

query I rowsort
SELECT - 19 FROM tab2, tab2 AS cor0
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + cor0.col2 col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT - + cor0.col1 * + cor0.col1 AS col0 FROM tab2 cor0
----
-289
-3481
-961

query I rowsort
SELECT + col1 * 67 AS col1 FROM tab0 AS cor0
----
5762
6097
6499

query I rowsort
SELECT DISTINCT tab0.col2 * - col1 FROM tab0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5136
SELECT col2 DIV col0 col1 FROM tab2 AS cor0
----
0
0
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5136
SELECT col2 / col0 col1 FROM tab2 AS cor0
----
0
0
3

query I rowsort
SELECT ALL + col2 + + cor0.col0 * - col0 FROM tab1 cor0
----
-4039
-6304
45

query I rowsort
SELECT + col0 + col0 AS col2 FROM tab1
----
128
160
6

query I rowsort
SELECT ALL 86 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT cor0.col1 + + col2 * - col1 AS col1 FROM tab2 cor0
----
-1475
-629
-806

query I rowsort
SELECT DISTINCT + ( 76 ) * + col1 + + col1 AS col0 FROM tab0 AS cor0
----
6622
7007
7469

onlyif mysql # use DIV operator for integer division
query I rowsort label-5142
SELECT ALL 8 DIV + 85 + + cor0.col2 AS col1 FROM tab0 cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-5142
SELECT ALL 8 / + 85 + + cor0.col2 AS col1 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT ALL col2 + + 79 * + col0 - - col2 * 54 * - col0 FROM tab2 AS cor0
----
-103324
-155829
-9626

query I rowsort
SELECT DISTINCT + ( + col2 ) * - cor0.col2 AS col1 FROM tab1 cor0
----
-2916
-3249
-9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-5145
SELECT + 59 + - col2 DIV col0 FROM tab0 AS cor0
----
58
59
59

skipif mysql # not compatible
query I rowsort label-5145
SELECT + 59 + - col2 / col0 FROM tab0 AS cor0
----
58
59
59

query I rowsort
SELECT DISTINCT - col2 + col0 * + col1 AS col2 FROM tab1
----
24
583
944

query I rowsort
SELECT + cor1.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT DISTINCT col1 - ( - col1 ) FROM tab2
----
118
34
62

query I rowsort
SELECT ALL 58 * col2 + + col2 * - 5 + 34 FROM tab0
----
1783
4380
87

query I rowsort
SELECT ALL + col0 + - 51 FROM tab1
----
-48
13
29

query I rowsort
SELECT DISTINCT 3 FROM tab1, tab2 AS cor0
----
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-5152
SELECT DISTINCT ( + col1 * col1 ) + + CAST( col1 AS SIGNED ) DIV tab2.col0 FROM tab2
----
289
3481
965

skipif mysql # not compatible
query I rowsort label-5152
SELECT DISTINCT ( + col1 * col1 ) + + CAST ( col1 AS INTEGER ) / tab2.col0 FROM tab2
----
289
3481
965

query I rowsort
SELECT DISTINCT - 48 + col1 FROM tab2
----
-17
-31
11

query I rowsort
SELECT - tab1.col2 * col0 AS col1 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT - 78 FROM tab0, tab1 AS cor0
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

query I rowsort
SELECT - 39 * + col2 AS col0 FROM tab1
----
-2106
-2223
-3744

query I rowsort
SELECT ( - col2 + col2 ) FROM tab1
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5158
SELECT - col0 + ( - col0 + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5158
SELECT - col0 + ( - col0 + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - cor0.col1 + col2 AS col0 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT - col0 * - col1 + col2 AS col0 FROM tab2 cor0
----
1381
244
4628

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 * col2 col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL 62 - + cor0.col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 8847aec14a10cc958054eb94171cd671

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL - col1 + + 84 AS col2 FROM tab0 AS cor0
----
-13
-2
-7

query I rowsort
SELECT - + cor0.col2 FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT ALL - - col1 * 68 FROM tab0 AS cor0
----
5848
6188
6596

query I rowsort
SELECT - col1 + + ( col1 ) * - cor0.col1 FROM tab0 AS cor0
----
-7482
-8372
-9506

query I rowsort
SELECT ALL + - col2 + + 33 * + col0 AS col0 FROM tab2 AS cor0
----
204
2548
2569

onlyif mysql # use DIV operator for integer division
query I rowsort label-5169
SELECT DISTINCT + col0 DIV - ( + col1 + cor0.col2 ) AS col1 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-5169
SELECT DISTINCT + col0 / - ( + col1 + cor0.col2 ) AS col1 FROM tab2 AS cor0
----
-1
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5170
SELECT DISTINCT - col1 * - col1 - col0 DIV col1 FROM tab0 cor0
----
7396
8281
9409

skipif mysql # not compatible
query I rowsort label-5170
SELECT DISTINCT - col1 * - col1 - col0 / col1 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT + - col1 * 8 + + col1 AS col0 FROM tab2 cor0
----
-119
-217
-413

query I rowsort
SELECT ALL - col1 * 72 - + col0 * cor0.col2 FROM tab2 AS cor0
----
-2421
-4226
-6276

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * - 82 col0 FROM tab0 AS cor0
----
-1968
-2870
-7298

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 + col2 col0 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT DISTINCT - col2 * 65 AS col2 FROM tab0 cor0
----
-2145
-5330
-65

query I rowsort
SELECT - col0 * 72 FROM tab2 AS cor0
----
-504
-5616
-5688

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 47 col2 FROM tab0 AS cor0
----
-47
-47
-47

query I rowsort
SELECT + 32 AS col1 FROM tab1 AS cor0
----
32
32
32

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5179
SELECT - CAST( col2 AS SIGNED ) * col0 AS col1 FROM tab0 cor0
----
-35
-7298
-792

skipif mysql # not compatible
query I rowsort label-5179
SELECT - CAST ( col2 AS INTEGER ) * col0 AS col1 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT - - col0 - - col0 AS col2 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT DISTINCT 91 * 77 FROM tab2, tab2 cor0, tab2 AS cor1, tab0 AS cor2
----
7007

query I rowsort
SELECT 81 AS col0 FROM tab1 AS cor0
----
81
81
81

query I rowsort
SELECT ALL - cor1.col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT DISTINCT col0 * + cor0.col0 * - cor0.col0 FROM tab0 AS cor0
----
-13824
-42875
-704969

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to 7eb416b97f0ed263f6364cf59aa64c2b

query I rowsort
SELECT ALL - cor0.col0 * col0 AS col0 FROM tab1 cor0
----
-4096
-6400
-9

query I rowsort
SELECT ALL + + col0 + + col1 * + 24 FROM tab2 AS cor0
----
1494
487
751

query I rowsort
SELECT DISTINCT 87 AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
87

query I rowsort
SELECT ALL col2 + + cor0.col1 * - col0 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT DISTINCT cor0.col0 FROM tab1, tab2 AS cor0
----
7
78
79

query I rowsort
SELECT col1 + col2 + ( + 79 ) AS col2 FROM tab2 AS cor0
----
134
137
164

query I rowsort
SELECT ALL - cor0.col2 + - col1 AS col2 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT + + cor0.col1 * cor0.col2 * + col0 AS col2 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT DISTINCT - ( - col0 ) * col1 + + col1 * + col0 FROM tab1 AS cor0
----
1280
156
2080

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0, tab1 AS cor1, tab1 AS cor2
----
972 values hashing to f8fe28681e8720551e1ec173631fc529

query I rowsort
SELECT - 79 FROM tab1
----
-79
-79
-79

query I rowsort
SELECT DISTINCT + 8 + col2 FROM tab0
----
41
9
90

query I rowsort
SELECT - - col0 + + col1 * col2 + col2 FROM tab0 AS cor0
----
133
2895
7633

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col2 ) + col2 * - col0 col0 FROM tab1
----
-108
-3591
-7584

query I rowsort
SELECT 68 + - tab2.col2 + + 47 FROM tab2
----
77
88
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5201
SELECT DISTINCT + col1 + - col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5201
SELECT DISTINCT + col1 + - col2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col1 + col0 - + col1 col2 FROM tab1 AS cor0
----
-1181
-1427
-516

query I rowsort
SELECT DISTINCT - 65 + tab0.col2 + - 60 * - 56 AS col1 FROM tab0
----
3296
3328
3377

query I rowsort
SELECT ALL - col0 * col1 + + ( - col1 ) AS col0 FROM tab2
----
-1360
-248
-4661

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5205
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-5205
SELECT ALL col0 * CAST ( NULL AS INTEGER ) col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + + ( 85 ) FROM tab0
----
109
120
174

query I rowsort
SELECT ALL + tab1.col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

onlyif mysql # use DIV operator for integer division
query I rowsort label-5208
SELECT - tab0.col1 DIV 28 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

skipif mysql # not compatible
query I rowsort label-5208
SELECT - tab0.col1 / 28 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

query I rowsort
SELECT + + cor0.col0 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT ALL 87 AS col1 FROM tab0
----
87
87
87

query I rowsort
SELECT + 30 AS col1 FROM tab0
----
30
30
30

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab0 AS cor1, tab0 cor2
----
972 values hashing to 3a31dab513390ca6bd05c71a3d9c50f0

query I rowsort
SELECT ALL col0 * + col2 - col2 * - col0 AS col2 FROM tab0 cor0
----
14596
1584
70

query I rowsort
SELECT DISTINCT 86 AS col1 FROM tab1
----
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-5215
SELECT ALL - + col1 DIV + col0 FROM tab1 cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-5215
SELECT ALL - + col1 / + col0 FROM tab1 cor0
----
-8
0
0

query I rowsort
SELECT DISTINCT col2 + + col1 * col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT + 41 * col0 AS col1 FROM tab1 AS cor0
----
123
2624
3280

query I rowsort
SELECT - 0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT + + ( + col2 ) - - col1 * col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT + col2 * - col2 + 11 FROM tab2 cor0
----
-1433
-665
-718

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 15 + + col2 col2 FROM tab0 AS cor0
----
16
48
97

query I rowsort
SELECT - col1 * col1 + - col0 AS col0 FROM tab2 AS cor0
----
-3559
-368
-968

query I rowsort
SELECT + + col0 * 98 AS col0 FROM tab1 AS cor0
----
294
6272
7840

onlyif mysql # use DIV operator for integer division
query I rowsort label-5224
SELECT DISTINCT 68 - col1 DIV - col0 AS col1 FROM tab0 AS cor0
----
69
70
71

skipif mysql # not compatible
query I rowsort label-5224
SELECT DISTINCT 68 - col1 / - col0 AS col1 FROM tab0 AS cor0
----
69
70
71

query I rowsort
SELECT ALL cor0.col0 * ( + col0 ) FROM tab0 cor0
----
1225
576
7921

query I rowsort
SELECT DISTINCT - col1 * + col0 * + col1 + + ( - col2 ) * col1 FROM tab1 AS cor0
----
-14768
-3432
-6970

query I rowsort
SELECT ALL - tab0.col2 * 93 AS col1 FROM tab0
----
-3069
-7626
-93

query I rowsort
SELECT ALL - 17 * - col1 + cor0.col2 * - 67 AS col1 FROM tab0 AS cor0
----
-3947
-749
1582

query I rowsort
SELECT 85 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query I rowsort
SELECT DISTINCT - col2 + - col1 AS col2 FROM tab1
----
-109
-67
-80

query I rowsort
SELECT + 24 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080

onlyif mysql # use DIV operator for integer division
query I rowsort label-5232
SELECT DISTINCT + col0 DIV col1 AS col1 FROM tab1
----
0
6

skipif mysql # not compatible
query I rowsort label-5232
SELECT DISTINCT + col0 / col1 AS col1 FROM tab1
----
0
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( col1 ) * - col2 col1 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL + col2 * col0 AS col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT + + col0 * cor0.col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5236
SELECT ALL - + CAST( NULL AS SIGNED ) + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5236
SELECT ALL - + CAST ( NULL AS INTEGER ) + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5237
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5237
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + - col1 * + col2 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT + col0 + 16 AS col0 FROM tab1 AS cor0
----
19
80
96

query I rowsort
SELECT DISTINCT + cor0.col0 AS col2 FROM tab0, tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL ( col1 ) + 14 FROM tab1
----
24
27
40

query I rowsort
SELECT + - 49 * col1 - + col2 AS col0 FROM tab1 AS cor0
----
-1328
-547
-733

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5243
SELECT + 67 * col1 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5243
SELECT + 67 * col1 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - cor0.col1 * cor0.col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT col2 + - col2 * - 51 FROM tab0 AS cor0
----
1716
4264
52

query I rowsort
SELECT - col2 * - col0 + - col2 AS col2 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT + cor0.col1 + col2 * + col0 * col0 FROM tab2 AS cor0
----
1354
158243
237175

query I rowsort
SELECT col2 + + 85 FROM tab0 AS cor0
----
118
167
86

query I rowsort
SELECT ALL - col2 + col2 - col1 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT + cor0.col2 + col2 + - 21 FROM tab0 AS cor0
----
-19
143
45

query I rowsort
SELECT DISTINCT + col0 + + cor0.col2 AS col2 FROM tab2 AS cor0
----
104
117
34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5252
SELECT + - col0 * CAST( NULL AS SIGNED ) + + col2 * col1 * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5252
SELECT + - col0 * CAST ( NULL AS INTEGER ) + + col2 * col1 * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 * 15 + - col1 * col1 * + col2 AS col2 FROM tab1
----
-16029
-36114
-5550

query I rowsort
SELECT ALL col2 + ( - 77 * col2 + col0 ) FROM tab2
----
-1898
-2045
-2809

query I rowsort
SELECT DISTINCT - cor1.col1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
-17
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-5256
SELECT ALL col1 * 4 DIV - col0 AS col2 FROM tab2 AS cor0
----
-17
-3
0

skipif mysql # not compatible
query I rowsort label-5256
SELECT ALL col1 * 4 / - col0 AS col2 FROM tab2 AS cor0
----
-17
-3
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5257
SELECT cor0.col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5257
SELECT cor0.col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 + + col2 * col2 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT ALL - + col1 * 45 FROM tab1 AS cor0
----
-1170
-450
-585

query I rowsort
SELECT ALL + - col1 + col0 AS col2 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT col2 * 61 + + col2 AS col1 FROM tab1 AS cor0
----
3348
3534
5952

query I rowsort
SELECT DISTINCT - - col2 + - col1 * + col2 AS col1 FROM tab0 AS cor0
----
-2805
-7380
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5263
SELECT - col1 DIV - cor0.col1 - col2 col2 FROM tab1 AS cor0
----
-53
-56
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5263
SELECT - col1 / - cor0.col1 - col2 col2 FROM tab1 AS cor0
----
-53
-56
-95

query I rowsort
SELECT - col1 * - 68 * + ( - col1 ) AS col0 FROM tab1 AS cor0
----
-11492
-45968
-6800

query I rowsort
SELECT + + col0 + ( + 17 ) + col2 FROM tab0 AS cor0
----
188
53
74

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5266
SELECT DISTINCT - col0 * CAST( + 87 + + col1 AS SIGNED ) * + 68 AS col1 FROM tab1 AS cor0
----
-23052
-422144
-544000

skipif mysql # not compatible
query I rowsort label-5266
SELECT DISTINCT - col0 * CAST ( + 87 + + col1 AS INTEGER ) * + 68 AS col1 FROM tab1 AS cor0
----
-23052
-422144
-544000

query I rowsort
SELECT - cor0.col1 * - 17 + - col0 FROM tab1 AS cor0
----
106
141
439

query I rowsort
SELECT ALL - - col2 AS col0 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT + ( ( + col0 ) ) + col0 * - col1 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT DISTINCT + + cor0.col2 AS col2 FROM tab0, tab1 cor0
----
54
57
96

query I rowsort
SELECT DISTINCT - col1 * col0 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT - + 42 * 47 + col1 * col0 FROM tab2 cor0
----
-1757
-631
2628

query I rowsort
SELECT - - col2 + + col0 * col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT DISTINCT ( - col1 ) - col2 AS col0 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT DISTINCT - 66 FROM tab1 AS cor0
----
-66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5276
SELECT CAST( NULL AS SIGNED ) * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5276
SELECT CAST ( NULL AS INTEGER ) * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + cor0.col0 * col2 * ( 96 ) FROM tab2 cor0
----
18151
194766
288271

query I rowsort
SELECT ALL + + cor0.col1 - 22 AS col0 FROM tab1 AS cor0
----
-12
-9
4

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to 53ea9df66efbebef5063fb0b15c25baa

query I rowsort
SELECT + 26 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT ALL ( col1 ) * 80 * 11 FROM tab1 AS cor0
----
11440
22880
8800

query I rowsort
SELECT DISTINCT + ( + col2 ) * 74 + col1 * col2 AS col2 FROM tab1 cor0
----
4788
5400
8352

query I rowsort
SELECT - 25 AS col1 FROM tab2, tab1 cor0, tab1 AS cor1
----
27 values hashing to 2e7a33467ee3a4d9570560d60302b35a

query I rowsort
SELECT - col2 + - col0 * 34 AS col1 FROM tab0 AS cor0
----
-1191
-3108
-849

query I rowsort
SELECT ALL - - 27 AS col0 FROM tab1 AS cor0
----
27
27
27

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 col0 + col1 * + 81 FROM tab0 cor0
----
6990
7460
7892

query I rowsort
SELECT 33 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query I rowsort
SELECT ALL col0 * ( col0 ) FROM tab0
----
1225
576
7921

query I rowsort
SELECT ALL cor0.col0 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT ALL + tab1.col2 - - col2 FROM tab1
----
108
114
192

query I rowsort
SELECT ALL - col2 - tab2.col2 AS col0 FROM tab2
----
-52
-54
-76

query I rowsort
SELECT 65 * + col0 AS col0 FROM tab2
----
455
5070
5135

query I rowsort
SELECT ALL 20 * col2 FROM tab0
----
1640
20
660

query I rowsort
SELECT DISTINCT + tab2.col2 FROM tab2, tab0 AS cor0
----
26
27
38

query I rowsort
SELECT - 22 FROM tab1
----
-22
-22
-22

query I rowsort
SELECT - 25 * + col2 AS col0 FROM tab2 AS cor0
----
-650
-675
-950

query I rowsort
SELECT ALL - col2 + tab1.col1 * + ( tab1.col0 ) - col0 FROM tab1
----
21
519
864

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5299
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col0 + col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5299
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col0 + col2 FROM tab1
----
NULL

query I rowsort
SELECT ALL + + 16 * + col1 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
1409
1538
1553

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5301
SELECT + CAST( col0 AS SIGNED ) + - col0 * + ( + col0 ) FROM tab0 AS cor0
----
-1190
-552
-7832

skipif mysql # not compatible
query I rowsort label-5301
SELECT + CAST ( col0 AS INTEGER ) + - col0 * + ( + col0 ) FROM tab0 AS cor0
----
-1190
-552
-7832

onlyif mysql # use DIV operator for integer division
query I rowsort label-5302
SELECT ALL - col2 DIV col0 FROM tab2 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-5302
SELECT ALL - col2 / col0 FROM tab2 AS cor0
----
-3
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 66 col1 FROM tab0 cor0
----
66
66
66

query I rowsort
SELECT + + col1 * 68 + cor0.col2 FROM tab2 AS cor0
----
1194
2135
4038

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5305
SELECT + cor1.col1 * + CAST( NULL AS DECIMAL ) FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-5305
SELECT + cor1.col1 * + CAST ( NULL AS REAL ) FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 CROSS JOIN tab2, tab1 cor1
----
972 values hashing to 980274175fafec015a83080672486a9a

query I rowsort
SELECT DISTINCT 21 + - col2 * - col2 FROM tab0 AS cor0
----
1110
22
6745

query I rowsort
SELECT DISTINCT + col0 + - col0 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ( - col1 ) AS col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT 75 * + 44 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
3300

query I rowsort
SELECT - col1 * col0 + - col0 FROM tab1 AS cor0
----
-1120
-704
-81

query I rowsort
SELECT DISTINCT + 77 + cor0.col1 AS col1 FROM tab0, tab2, tab1 AS cor0
----
103
87
90

query I rowsort
SELECT - - col0 + col2 * 88 * col2 AS col1 FROM tab2 AS cor0
----
127151
59566
64159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col2 ) + col2 * col2 col0 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT ALL - 69 * col0 * 91 + col2 AS col0 FROM tab0 AS cor0
----
-150663
-219764
-558749

onlyif mysql # use DIV operator for integer division
query I rowsort label-5316
SELECT ALL - col1 DIV - cor0.col2 + col1 + - col2 FROM tab0 cor0
----
10
193
55

skipif mysql # not compatible
query I rowsort label-5316
SELECT ALL - col1 / - cor0.col2 + col1 + - col2 FROM tab0 cor0
----
10
193
55

query I rowsort
SELECT + col1 + cor0.col1 AS col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT ALL + col0 - 36 AS col0 FROM tab1 AS cor0
----
-33
28
44

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0, tab0 AS cor1, tab1 AS cor2
----
972 values hashing to 5621675b1bd32b061d284d0444c76601

query I rowsort
SELECT ALL - col1 + - 58 FROM tab2
----
-117
-75
-89

query I rowsort
SELECT 80 * - 17 FROM tab1, tab0 AS cor0
----
9 values hashing to d6caf3128b7333297388a387ad2980b5

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT - col2 * col1 * cor0.col2 FROM tab0 cor0
----
-611884
-93654
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5324
SELECT + col0 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5324
SELECT + col0 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5325
SELECT + 97 * col2 + col1 DIV + col2 AS col1 FROM tab0 AS cor0
----
194
3203
7955

skipif mysql # not compatible
query I rowsort label-5325
SELECT + 97 * col2 + col1 / + col2 AS col1 FROM tab0 AS cor0
----
194
3203
7955

query I rowsort
SELECT DISTINCT - 71 FROM tab2 cor0
----
-71

query I rowsort
SELECT DISTINCT + - col0 + - col0 FROM tab2 AS cor0
----
-14
-156
-158

query I rowsort
SELECT ALL - - col2 * col2 AS col0 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT ALL 17 FROM tab0 AS cor0
----
17
17
17

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5330
SELECT + - CAST( + col0 AS SIGNED ) + col1 FROM tab0 AS cor0
----
2
62
62

skipif mysql # not compatible
query I rowsort label-5330
SELECT + - CAST ( + col0 AS INTEGER ) + col1 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT ALL + + col0 * cor0.col1 * col0 FROM tab2 AS cor0
----
106097
1519
358956

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 6 col0 FROM tab2 AS cor0
----
6

query I rowsort
SELECT ALL ( - col2 ) * cor0.col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT - + 14 + 94 FROM tab2 cor0
----
80
80
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-5335
SELECT DISTINCT - 64 DIV + col2 col1 FROM tab0 AS cor0
----
-1
-64
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5335
SELECT DISTINCT - 64 / + col2 col1 FROM tab0 AS cor0
----
-1
-64
0

query I rowsort
SELECT DISTINCT - col2 * + 68 + col2 AS col0 FROM tab2 AS cor0
----
-1742
-1809
-2546

query I rowsort
SELECT + + 66 + - col0 FROM tab2 AS cor0
----
-12
-13
59

query I rowsort
SELECT ALL + col2 + - col1 * col0 AS col0 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT DISTINCT + - col2 * col2 + - col0 * col0 AS col0 FROM tab0 AS cor0
----
-1226
-14645
-1665

query I rowsort
SELECT ALL + col1 * - tab2.col0 + col1 * - tab2.col1 + col1 FROM tab2
----
-1147
-1615
-8024

query I rowsort
SELECT ALL col1 + tab0.col0 AS col1 FROM tab0
----
110
132
180

query I rowsort
SELECT ALL - col2 + - ( tab0.col0 ) FROM tab0
----
-171
-36
-57

query I rowsort
SELECT - + cor0.col2 + - 53 AS col1 FROM tab1 AS cor0
----
-107
-110
-149

query I rowsort
SELECT - 3 * col0 AS col2 FROM tab2 AS cor0
----
-21
-234
-237

query I rowsort
SELECT + + 34 * cor0.col0 AS col2 FROM tab2 AS cor0
----
238
2652
2686

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 54 * + ( col0 ) col0 FROM tab0 AS cor0
----
-1296
-1890
-4806

onlyif mysql # use DIV operator for integer division
query I rowsort label-5347
SELECT - ( col0 ) * col1 DIV - ( 30 ) AS col2 FROM tab1 AS cor0
----
2
21
34

skipif mysql # not compatible
query I rowsort label-5347
SELECT - ( col0 ) * col1 / - ( 30 ) AS col2 FROM tab1 AS cor0
----
2
21
34

query I rowsort
SELECT DISTINCT + 67 + + 56 AS col0 FROM tab2
----
123

onlyif mysql # use DIV operator for integer division
query I rowsort label-5349
SELECT DISTINCT col2 * col0 + - col1 DIV ( col1 + - col2 * - 74 ) AS col1 FROM tab0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-5349
SELECT DISTINCT col2 * col0 + - col1 / ( col1 + - col2 * - 74 ) AS col1 FROM tab0
----
35
7298
792

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( - 95 * + col2 AS REAL ) FROM tab1
----
-5130
-5415
-9120

query I rowsort
SELECT - 53 * - col0 + col0 FROM tab2 AS cor0
----
378
4212
4266

query I rowsort
SELECT - col1 * - col1 + col1 FROM tab2 AS cor0
----
306
3540
992

query I rowsort
SELECT col0 * + col0 AS col0 FROM tab2
----
49
6084
6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-5354
SELECT DISTINCT col2 DIV 18 FROM tab0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-5354
SELECT DISTINCT col2 / 18 FROM tab0
----
0
1
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5355
SELECT DISTINCT - 92 * + cor0.col2 * CAST( 81 AS SIGNED ) AS col2 FROM tab1, tab2 cor0
----
-193752
-201204
-283176

skipif mysql # not compatible
query I rowsort label-5355
SELECT DISTINCT - 92 * + cor0.col2 * CAST ( 81 AS INTEGER ) AS col2 FROM tab1, tab2 cor0
----
-193752
-201204
-283176

query I rowsort
SELECT ( col1 + + col2 ) FROM tab2
----
55
58
85

query I rowsort
SELECT DISTINCT col2 * + 6 AS col2 FROM tab1
----
324
342
576

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5358
SELECT + col0 * + CAST( NULL AS SIGNED ) * ( col0 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5358
SELECT + col0 * + CAST ( NULL AS INTEGER ) * ( col0 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5359
SELECT + col0 DIV - 37 FROM tab0 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-5359
SELECT + col0 / - 37 FROM tab0 AS cor0
----
-2
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5360
SELECT + col0 + - CAST( NULL AS SIGNED ) * - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5360
SELECT + col0 + - CAST ( NULL AS INTEGER ) * - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + cor0.col0 col0 FROM tab1 cor0
----
128
160
6

query I rowsort
SELECT - col2 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-5363
SELECT + + col0 DIV col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5363
SELECT + + col0 / col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 * + col1 AS col1 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT ALL - - col2 * ( - col2 * + cor0.col0 ) + - col0 * + col2 + - col2 FROM tab1 cor0
----
-211641
-745056
-8964

query I rowsort
SELECT DISTINCT - - col0 * cor0.col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT col1 + cor0.col0 AS col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT DISTINCT cor0.col2 + - 58 AS col0 FROM tab0 AS cor0
----
-25
-57
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-5369
SELECT + - col0 DIV - col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5369
SELECT + - col0 / - col0 FROM tab1 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * - ( cor0.col0 ) + - col0 col0 FROM tab2 AS cor0
----
-56
-6162
-6320

query I rowsort
SELECT DISTINCT - col1 * col1 AS col1 FROM tab1 AS cor0
----
-100
-169
-676

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0, tab1 cor1, tab2, tab0 AS cor2
----
3645 values hashing to fb1fb273a543ea33958edfcaa2e7ed26

query I rowsort
SELECT + - col1 + + 42 FROM tab0 cor0
----
-44
-49
-55

query I rowsort
SELECT ALL + + cor0.col2 + - col2 * col1 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT DISTINCT + - col1 * 31 AS col2 FROM tab0 AS cor0
----
-2666
-2821
-3007

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0, tab2 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to 624c4b72c6f348b0f702418bfe39bd29

query I rowsort
SELECT + col0 + - 20 + + col0 FROM tab0 AS cor0
----
158
28
50

query I rowsort
SELECT col0 * 74 + 99 * col2 FROM tab2 AS cor0
----
3191
8346
9608

query I rowsort
SELECT 18 FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to 903ac227935c1532300db45a8537c595

query I rowsort
SELECT ALL - + col0 * col2 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT col2 + col2 * + col0 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT - 68 + col1 * - col0 FROM tab0 cor0
----
-2132
-3463
-8167

query I rowsort
SELECT DISTINCT + col0 * cor0.col0 FROM tab0 AS cor0
----
1225
576
7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 col2 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT ALL - 29 AS col0 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to 56a8aa9e4c5d3c934d1853afeb22653e

query I rowsort
SELECT - col1 * + ( ( - col2 ) ) FROM tab1
----
1248
1404
570

query I rowsort
SELECT DISTINCT col2 + + 70 AS col2 FROM tab1
----
124
127
166

query I rowsort
SELECT col0 * - col2 - 13 AS col1 FROM tab0
----
-48
-7311
-805

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5389
SELECT - col2 * - CAST( col2 AS SIGNED ) - - col2 AS col0 FROM tab2
----
1482
702
756

skipif mysql # not compatible
query I rowsort label-5389
SELECT - col2 * - CAST ( col2 AS INTEGER ) - - col2 AS col0 FROM tab2
----
1482
702
756

query I rowsort
SELECT DISTINCT + 85 AS col1 FROM tab1 cor0
----
85

query I rowsort
SELECT 34 FROM tab2
----
34
34
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 54 * col1 col0 FROM tab2
----
1674
3186
918

query I rowsort
SELECT ALL - cor0.col2 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT + 45 - col0 FROM tab2 AS cor0
----
-33
-34
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-5395
SELECT col1 * - col2 - + col1 DIV - cor0.col1 FROM tab1 AS cor0
----
-1247
-1403
-569

skipif mysql # not compatible
query I rowsort label-5395
SELECT col1 * - col2 - + col1 / - cor0.col1 FROM tab1 AS cor0
----
-1247
-1403
-569

query I rowsort
SELECT ALL - - col0 * + cor0.col1 * col0 + - col0 AS col1 FROM tab2 AS cor0
----
106018
1512
358878

query I rowsort
SELECT DISTINCT - col0 * - col0 + col1 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT DISTINCT cor0.col2 + - col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT - col2 * + col0 + + ( col2 ) AS col1 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT + ( 53 ) FROM tab2
----
53

query I rowsort
SELECT 65 * - ( col2 ) * col2 + col0 FROM tab1
----
-189537
-211121
-598960

query I rowsort
SELECT ALL + cor0.col2 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT DISTINCT - ( - 55 ) * - col0 * ( - ( - col1 ) ) AS col0 FROM tab0
----
-113520
-186725
-445445

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5404
SELECT DISTINCT CAST( tab1.col1 AS SIGNED ) AS col2 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-5404
SELECT DISTINCT CAST ( tab1.col1 AS INTEGER ) AS col2 FROM tab1
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-5405
SELECT + 92 DIV - 41 AS col0 FROM tab1
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-5405
SELECT + 92 / - 41 AS col0 FROM tab1
----
-2
-2
-2

query I rowsort
SELECT + col0 * - col0 * + col2 FROM tab2
----
-1323
-158184
-237158

query I rowsort
SELECT + 85 + col1 FROM tab2
----
102
116
144

query I rowsort
SELECT DISTINCT + col1 - - col1 * tab2.col2 FROM tab2
----
1593
663
868

query I rowsort
SELECT - + col0 + col2 * - col0 + + col1 * col2 FROM tab1 AS cor0
----
-3142
-6512
1239

query I rowsort
SELECT - ( + cor0.col0 ) * + ( cor0.col0 ) FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT + + col1 - col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - 49 * + col2 + col0 * - col2 + - col0 AS col1 FROM tab2 cor0
----
-1519
-3380
-4943

query I rowsort
SELECT - 94 * col2 + + 73 + - col2 FROM tab1 AS cor0
----
-5057
-5342
-9047

query I rowsort
SELECT + - col0 + col1 * 53 FROM tab2 AS cor0
----
1636
3049
822

query I rowsort
SELECT 21 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 312c166f4dc412730c43555105b1f44b

query I rowsort
SELECT ALL + col0 - col0 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5417
SELECT ALL ( col2 ) * col2 * ( col1 * + 55 ) - + col2 DIV col2 FROM tab0
----
33653619
5150969
5334

skipif mysql # not compatible
query I rowsort label-5417
SELECT ALL ( col2 ) * col2 * ( col1 * + 55 ) - + col2 / col2 FROM tab0
----
33653619
5150969
5334

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col1 col0 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT ALL 26 - - col2 AS col1 FROM tab0 cor0
----
108
27
59

query I rowsort
SELECT DISTINCT 37 * cor0.col1 AS col0 FROM tab1 AS cor0
----
370
481
962

query I rowsort
SELECT + - 68 FROM tab0 AS cor0
----
-68
-68
-68

query I rowsort
SELECT ALL - col0 + col1 * cor0.col0 FROM tab1 cor0
----
576
75
960

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5423
SELECT - cor0.col2 * + CAST( ( col0 ) AS SIGNED ) col2 FROM tab2 AS cor0
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5423
SELECT - cor0.col2 * + CAST ( ( col0 ) AS INTEGER ) col2 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-5424
SELECT - col2 DIV cor0.col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5424
SELECT - col2 / cor0.col2 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5425
SELECT col2 DIV - col0 AS col0 FROM tab1 AS cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-5425
SELECT col2 / - col0 AS col0 FROM tab1 AS cor0
----
-1
-18
0

query I rowsort
SELECT DISTINCT col2 + ( - 0 * col2 ) FROM tab1 AS cor0
----
54
57
96

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab1 AS cor2
----
972 values hashing to a8481bfbfcb330825976c5896e54bc19

query I rowsort
SELECT - col0 + + 13 FROM tab0 AS cor0
----
-11
-22
-76

onlyif mysql # use DIV operator for integer division
query I rowsort label-5429
SELECT DISTINCT + col1 + - col1 DIV - col2 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-5429
SELECT DISTINCT + col1 + - col1 / - col2 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5430
SELECT ALL col0 + - CAST( NULL AS SIGNED ) + col1 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5430
SELECT ALL col0 + - CAST ( NULL AS INTEGER ) + col1 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + ( - col0 ) FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT DISTINCT - + col2 * + 20 + + cor0.col0 FROM tab1 AS cor0
----
-1076
-1077
-1840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5433
SELECT + col2 * CAST( 55 AS SIGNED ) + col0 - 45 * + col1 AS col1 FROM tab0 AS cor0
----
-2031
-4275
504

skipif mysql # not compatible
query I rowsort label-5433
SELECT + col2 * CAST ( 55 AS INTEGER ) + col0 - 45 * + col1 AS col1 FROM tab0 AS cor0
----
-2031
-4275
504

query I rowsort
SELECT DISTINCT + col2 * - 56 AS col1 FROM tab2 AS cor0
----
-1456
-1512
-2128

onlyif mysql # use DIV operator for integer division
query I rowsort label-5435
SELECT - + col0 DIV col1 + col0 + - col1 AS col1 FROM tab1 AS cor0
----
-23
48
61

skipif mysql # not compatible
query I rowsort label-5435
SELECT - + col0 / col1 + col0 + - col1 AS col1 FROM tab1 AS cor0
----
-23
48
61

query I rowsort
SELECT col2 * col0 + ( - col2 ) FROM tab0 AS cor0
----
34
7216
759

onlyif mysql # use DIV operator for integer division
query I rowsort label-5437
SELECT DISTINCT - cor0.col2 * CAST( col1 AS SIGNED ) + col1 + ( col2 ) DIV col0 FROM tab1 AS cor0
----
-1234
-1360
-560

skipif mysql # not compatible
query I rowsort label-5437
SELECT DISTINCT - cor0.col2 * CAST ( col1 AS INTEGER ) + col1 + ( col2 ) / col0 FROM tab1 AS cor0
----
-1234
-1360
-560

query I rowsort
SELECT DISTINCT + + col0 * - 0 + - col0 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT col2 * col1 + col1 * col1 AS col0 FROM tab2 AS cor0
----
1798
5015
935

query I rowsort
SELECT - 10 FROM tab2 cor0
----
-10
-10
-10

query I rowsort
SELECT DISTINCT col2 * 31 AS col1 FROM tab1
----
1674
1767
2976

query I rowsort
SELECT + ( + col2 ) * col2 AS col1 FROM tab1 cor0
----
2916
3249
9216

query I rowsort
SELECT ALL 23 + + col2 FROM tab0 AS cor0
----
105
24
56

query I rowsort
SELECT DISTINCT + - cor0.col0 * col2 + col1 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT DISTINCT + - col2 * 52 FROM tab1 AS cor0
----
-2808
-2964
-4992

query I rowsort
SELECT ALL - 19 * cor0.col2 AS col0 FROM tab0 AS cor0
----
-1558
-19
-627

query I rowsort
SELECT + cor0.col2 * - col1 AS col0 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL - ( - cor0.col0 ) * col0 FROM tab0 AS cor0
----
1225
576
7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 59 col1 FROM tab2 AS cor0
----
59
59
59

query I rowsort
SELECT DISTINCT + cor0.col0 * + col0 * col0 + 63 FROM tab0 cor0
----
13887
42938
705032

query I rowsort
SELECT ALL col0 * + cor0.col0 + col1 + 96 FROM tab2 AS cor0
----
176
6239
6354

query I rowsort
SELECT DISTINCT 3 - - 16 AS col2 FROM tab2 AS cor0
----
19

query I rowsort
SELECT ALL + ( col0 ) * + col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT - + 54 AS col1 FROM tab1 AS cor0
----
-54
-54
-54

query I rowsort
SELECT ALL - col1 + col0 AS col2 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT - 13 + col0 AS col2 FROM tab1 AS cor0
----
-10
51
67

query I rowsort
SELECT DISTINCT - + col1 * - col1 AS col0 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT ALL - 89 FROM tab1, tab2 AS cor0, tab0 AS cor1, tab0 cor2
----
81 values hashing to 1e1759ead845b97a0ef58dbd6a959d73

query I rowsort
SELECT ALL col0 * + col2 + + col2 + - col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT + col2 * + col0 FROM tab2 WHERE NOT NULL IN ( - col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5461
SELECT DISTINCT - tab2.col2 DIV + col0 FROM tab2
----
-3
0

skipif mysql # not compatible
query I rowsort label-5461
SELECT DISTINCT - tab2.col2 / + col0 FROM tab2
----
-3
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5462
SELECT ALL col2 + + col1 DIV col2 + - col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5462
SELECT ALL col2 + + col1 / col2 + - col2 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 + + col2 AS col1 FROM tab2
----
104
117
34

query I rowsort
SELECT + col2 * - col0 + col0 + - col1 AS col2 FROM tab1
----
-185
-3594
-7613

query I rowsort
SELECT - col1 + col0 AS col0 FROM tab0 WHERE ( NULL ) NOT IN ( col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5466
SELECT DISTINCT col0 DIV + col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5466
SELECT DISTINCT col0 / + col1 FROM tab0
----
0

query I rowsort
SELECT + col1 - col0 * col0 AS col0 FROM tab0
----
-1128
-490
-7830

query I rowsort
SELECT ALL - col0 + col0 * + col1 FROM tab0
----
2040
3360
8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-5469
SELECT + col2 * - col1 DIV + col1 FROM tab2
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-5469
SELECT + col2 * - col1 / + col1 FROM tab2
----
-26
-27
-38

query I rowsort
SELECT ALL + col0 * tab2.col1 + - col0 + tab2.col1 * - col1 AS col1 FROM tab2
----
-751
1043
975

query I rowsort
SELECT DISTINCT col0 + col2 * + tab1.col1 + - col1 AS col1 FROM tab1
----
1315
1381
624

onlyif mysql # use DIV operator for integer division
query I rowsort label-5472
SELECT ALL - col1 DIV - col0 AS col1 FROM tab0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-5472
SELECT ALL - col1 / - col0 AS col1 FROM tab0
----
1
2
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-5473
SELECT - col2 DIV tab0.col0 + + col2 col1 FROM tab0
----
1
32
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5473
SELECT - col2 / tab0.col0 + + col2 col1 FROM tab0
----
1
32
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-5474
SELECT ALL - col2 DIV col1 FROM tab2
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-5474
SELECT ALL - col2 / col1 FROM tab2
----
-2
0
0

query I rowsort
SELECT ALL - col0 + - col2 * col1 AS col1 FROM tab1
----
-1328
-1407
-634

query I rowsort
SELECT ALL col0 * - col2 AS col0 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT tab1.col0 * - col0 FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT col2 * col2 * + col2 + - col2 FROM tab2
----
17550
19656
54834

query I rowsort
SELECT DISTINCT + col2 + + col0 AS col2 FROM tab1
----
121
176
57

query I rowsort
SELECT col2 + col0 + + tab0.col1 AS col2 FROM tab0
----
133
143
262

query I rowsort
SELECT ALL + col0 * - col1 AS col0 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT tab0.col0 FROM tab0 WHERE NOT + tab0.col1 * col1 NOT IN ( + tab0.col2 * + col1 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col1 ) NOT IN ( col2 * col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT DISTINCT + tab0.col0 + + col1 * - col0 FROM tab0
----
-2040
-3360
-8010

query I rowsort
SELECT - col2 * col0 * col0 FROM tab1 WHERE NOT + col0 <= NULL
----

query I rowsort
SELECT ALL + col1 + col0 AS col1 FROM tab1
----
29
74
93

query I rowsort
SELECT tab2.col1 + + col2 * + col2 FROM tab2
----
1461
735
760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col2 col0 FROM tab0
----
1
1089
6724

query I rowsort
SELECT tab0.col2 + col2 AS col2 FROM tab0
----
164
2
66

query I rowsort
SELECT DISTINCT + col1 * - cor0.col1 + - col2 FROM tab1 AS cor0
----
-157
-265
-730

query I rowsort
SELECT ALL + - cor0.col0 * + cor0.col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT col0 FROM tab2 WHERE ( NULL ) IN ( col0 + + col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) <> NULL
----

query I rowsort
SELECT + col2 - + col0 * - col2 FROM tab1
----
216
3705
7776

query I rowsort
SELECT ALL + cor0.col1 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT + cor0.col1 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT DISTINCT + col0 * tab1.col0 + + col2 FROM tab1
----
4153
63
6496

query I rowsort
SELECT DISTINCT - tab0.col1 * + col0 * col1 + + col2 FROM tab0
----
-177471
-329314
-736927

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col2 col2 FROM tab1
----
28
47
83

query I rowsort
SELECT DISTINCT col1 * - col0 AS col0 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT - col0 AS col0 FROM tab0 AS cor0 WHERE + cor0.col0 NOT IN ( + col0 * cor0.col2 )
----
-24
-89

query I rowsort
SELECT col1 * - col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-5503
SELECT ALL col2 DIV - col0 FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5503
SELECT ALL col2 / - col0 FROM tab0 cor0
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5504
SELECT cor0.col0 * col0 DIV col1 FROM tab2 AS cor0
----
1
103
367

skipif mysql # not compatible
query I rowsort label-5504
SELECT cor0.col0 * col0 / col1 FROM tab2 AS cor0
----
1
103
367

query I rowsort
SELECT ALL col1 * + col2 * - col0 + + col0 * + cor0.col0 FROM tab1 AS cor0
----
-32384
-4203
-93440

query I rowsort
SELECT DISTINCT 61 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 AS cor2
----
61

query I rowsort
SELECT + 48 FROM tab2, tab2 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query I rowsort
SELECT + 6 FROM tab0, tab2 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query I rowsort
SELECT - - col0 * 74 AS col2 FROM tab2 AS cor0
----
518
5772
5846

query I rowsort
SELECT - 73 AS col1 FROM tab1 cor0
----
-73
-73
-73

query I rowsort
SELECT 77 + col0 * + col2 AS col2 FROM tab1 cor0
----
239
3725
7757

query I rowsort
SELECT DISTINCT 95 AS col2 FROM tab2, tab2 AS cor0
----
95

query I rowsort
SELECT + - 64 AS col1 FROM tab2 AS cor0
----
-64
-64
-64

query I rowsort
SELECT - ( col0 ) * col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT - - 7 FROM tab1 AS cor0
----
7

query I rowsort
SELECT - 67 FROM tab1, tab2 AS cor0
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5517
SELECT CAST( NULL AS SIGNED ) col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5517
SELECT CAST ( NULL AS INTEGER ) col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + - 98 FROM tab0
----
-1
-12
-7

query I rowsort
SELECT ALL cor0.col1 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT - ( col2 ) FROM tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT 80 + col0 + + col2 * 22 * + col2 AS col1 FROM tab0 AS cor0
----
137
148097
24062

query I rowsort
SELECT 58 * + col2 * 50 AS col2 FROM tab2
----
110200
75400
78300

query I rowsort
SELECT 55 + col2 + - col2 AS col2 FROM tab2 AS cor0
----
55
55
55

query I rowsort
SELECT + col1 + - col1 AS col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT col2 * + col0 + + col0 AS col2 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT - col1 + ( + 36 ) AS col0 FROM tab2 AS cor0
----
-23
19
5

query I rowsort
SELECT - col0 + ( col0 + + cor0.col2 ) * col1 FROM tab0 AS cor0
----
15472
3457
4878

query I rowsort
SELECT - cor0.col1 + - cor0.col1 * col2 AS col1 FROM tab2 AS cor0
----
-1593
-663
-868

query I rowsort
SELECT cor0.col2 + - ( - col2 ) * + col0 AS col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT ALL + 3 * + tab0.col0 * - 7 FROM tab0
----
-1869
-504
-735

query I rowsort
SELECT - cor0.col0 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

query I rowsort
SELECT DISTINCT 23 + 92 FROM tab1
----
115

query I rowsort
SELECT ALL col0 * + col1 + + col2 * col1 AS col2 FROM tab1
----
1210
1482
2288

query I rowsort
SELECT - 96 * + col0 FROM tab2 cor0
----
-672
-7488
-7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-5535
SELECT col2 DIV + col1 col2 FROM tab2
----
0
0
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5535
SELECT col2 / + col1 col2 FROM tab2
----
0
0
2

query I rowsort
SELECT + 59 + col0 + - col1 AS col1 FROM tab0
----
-3
-3
57

query I rowsort
SELECT ALL - - cor0.col1 + cor0.col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT DISTINCT ( + col0 ) FROM tab0 AS cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-5539
SELECT - + ( 53 ) + - col0 DIV + cor0.col2 FROM tab0 AS cor0
----
-53
-54
-88

skipif mysql # not compatible
query I rowsort label-5539
SELECT - + ( 53 ) + - col0 / + cor0.col2 FROM tab0 AS cor0
----
-53
-54
-88

query I rowsort
SELECT 12 * cor0.col1 FROM tab2 AS cor0
----
204
372
708

query I rowsort
SELECT - + col0 * + 54 AS col1 FROM tab0 AS cor0
----
-1296
-1890
-4806

query I rowsort
SELECT ALL - - col2 + col0 * - 86 FROM tab2 AS cor0
----
-575
-6682
-6756

query I rowsort
SELECT + 97 + col2 AS col2 FROM tab2 cor0
----
123
124
135

query I rowsort
SELECT - ( - col2 ) AS col0 FROM tab1 AS cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5545
SELECT DISTINCT + col2 DIV cor0.col1 + - ( + cor0.col1 ) * col0 * - 43 col0 FROM tab0 AS cor0
----
145985
348257
88752

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5545
SELECT DISTINCT + col2 / cor0.col1 + - ( + cor0.col1 ) * col0 * - 43 col0 FROM tab0 AS cor0
----
145985
348257
88752

query I rowsort
SELECT DISTINCT + + col1 * col1 * + 15 + + cor0.col0 AS col2 FROM tab2 AS cor0
----
14422
4414
52293

query I rowsort
SELECT ALL col1 + + col0 * + col1 AS col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT DISTINCT ( col0 ) * col0 + col2 * col2 * - ( ( col2 ) * cor0.col2 ) + - col1 AS col1 FROM tab0 AS cor0
----
-1185431
-45204346
1127

query I rowsort
SELECT ALL + col2 * col0 AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT + - col1 * - col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL + ( - cor0.col0 ) AS col2 FROM tab2 AS cor0
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col1 + ( col0 ) col2 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT ALL col0 + col2 + + col0 FROM tab1 cor0
----
185
256
60

query I rowsort
SELECT DISTINCT + - col2 * + col1 + + col1 AS col0 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT ALL - col0 - col0 AS col0 FROM tab0 AS cor0
----
-178
-48
-70

query I rowsort
SELECT + + col2 * col1 AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT + - col1 * 68 AS col1 FROM tab1 AS cor0
----
-1768
-680
-884

query I rowsort
SELECT DISTINCT + cor0.col1 * - col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT + - col1 * col2 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT 4 AS col1 FROM tab0
----
4
4
4

query I rowsort
SELECT ALL + col0 * + col0 * cor0.col0 FROM tab0 AS cor0
----
13824
42875
704969

query I rowsort
SELECT ALL - col1 * col2 AS col0 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT - 14 * - col0 + + col0 FROM tab2 AS cor0
----
105
1170
1185

query I rowsort
SELECT ALL 82 AS col0 FROM tab2 AS cor0
----
82
82
82

query I rowsort
SELECT - 97 + cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c89d957b7fb0545b334c9f1fad85857b

query I rowsort
SELECT + ( 48 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to df6d12001a34fdcf5cfb2ca3a4a22108

query I rowsort
SELECT ALL + 10 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query I rowsort
SELECT cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

skipif mysql # not compatible
query I rowsort
SELECT + col1 - - CAST ( + ( col2 ) AS REAL ) AS col0 FROM tab2
----
55
58
85

query I rowsort
SELECT + col1 * col1 * col2 AS col0 FROM tab1 AS cor0
----
16224
36504
5700

query I rowsort
SELECT ALL + col2 + col1 * + col0 AS col1 FROM tab1 cor0
----
1136
132
697

query I rowsort
SELECT col2 * + col0 * col2 FROM tab2 cor0
----
114076
5103
52728

query I rowsort
SELECT DISTINCT + + 56 AS col1 FROM tab1 AS cor0
----
56

onlyif mysql # use DIV operator for integer division
query I rowsort label-5574
SELECT DISTINCT tab2.col1 DIV col0 AS col1 FROM tab2
----
0
4

skipif mysql # not compatible
query I rowsort label-5574
SELECT DISTINCT tab2.col1 / col0 AS col1 FROM tab2
----
0
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5575
SELECT - CAST( col1 AS SIGNED ) + - col0 FROM tab1 AS cor0
----
-29
-74
-93

skipif mysql # not compatible
query I rowsort label-5575
SELECT - CAST ( col1 AS INTEGER ) + - col0 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT ALL - + ( - 15 ) * + col1 + - ( - col1 ) * + col0 AS col1 FROM tab0 cor0
----
3354
4850
9464

query I rowsort
SELECT + - 4 FROM tab2 AS cor0
----
-4
-4
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 10 col1 FROM tab1 AS cor0
----
-10
-10
-10

query I rowsort
SELECT DISTINCT + col2 + 13 + col0 FROM tab1 AS cor0
----
134
189
70

query I rowsort
SELECT DISTINCT - col2 + col0 AS col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT - ( - 28 ) FROM tab1 cor0
----
28
28
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 75 col0 FROM tab2 AS cor0
----
75
75
75

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0, tab0 AS cor0, tab0 AS cor1
----
972 values hashing to ea0f747588ddf5869ee18a5e22d9f237

query I rowsort
SELECT + col1 + - ( - 90 ) * - col0 AS col0 FROM tab2
----
-599
-6961
-7093

query I rowsort
SELECT + tab1.col2 * - ( + col2 ) + + col2 AS col1 FROM tab1
----
-2862
-3192
-9120

query I rowsort
SELECT col2 + + 24 AS col1 FROM tab1
----
120
78
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5587
SELECT - col0 * + CAST( - col0 AS SIGNED ) * tab2.col1 + - ( 90 ) FROM tab2
----
106007
1429
358866

skipif mysql # not compatible
query I rowsort label-5587
SELECT - col0 * + CAST ( - col0 AS INTEGER ) * tab2.col1 + - ( 90 ) FROM tab2
----
106007
1429
358866

query I rowsort
SELECT 61 - cor0.col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 8d8df32d431695a15137c8956ae70906

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 44 - + col0 col1 FROM tab2
----
-1195
-1222
-1751

query I rowsort
SELECT - 80 FROM tab0, tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
27 values hashing to 26dbcc98d4b4e864ffa31be685a5dfbd

query I rowsort
SELECT + 18 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 81 + + col0 col1 FROM tab1 AS cor0
----
-1
-17
-78

query I rowsort
SELECT + 12 FROM tab1 cor0
----
12
12
12

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5594
SELECT ALL - CAST( NULL AS SIGNED ) * cor0.col1 + col1 col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5594
SELECT ALL - CAST ( NULL AS INTEGER ) * cor0.col1 + col1 col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT cor0.col1 * 96 AS col2 FROM tab2 AS cor0
----
1632
2976
5664

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + + CAST ( 95 AS REAL ) FROM tab2 AS cor0
----
95

query I rowsort
SELECT ALL + cor0.col0 + - col2 AS col1 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT DISTINCT + col0 + - col2 * + col2 FROM tab2 AS cor0
----
-1365
-598
-722

query I rowsort
SELECT + 47 FROM tab0 AS cor0
----
47
47
47

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab1 cor1, tab2 AS cor2
----
3645 values hashing to 47906197307eee6829150d762058792a

query I rowsort
SELECT DISTINCT + - ( - 88 ) + - col2 * 82 * col1 AS col0 FROM tab2 AS cor0
----
-125700
-52884
-68546

onlyif mysql # use DIV operator for integer division
query I rowsort label-5602
SELECT - col2 DIV - col1 + col2 + 80 FROM tab1 AS cor0
----
136
142
183

skipif mysql # not compatible
query I rowsort label-5602
SELECT - col2 / - col1 + col2 + 80 FROM tab1 AS cor0
----
136
142
183

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5603
SELECT ALL CAST( NULL AS DECIMAL ) * - cor0.col1 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5603
SELECT ALL CAST ( NULL AS REAL ) * - cor0.col1 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - cor0.col0 + - 93 FROM tab1 cor0
----
-157
-173
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5605
SELECT + 85 DIV - col2 + 98 AS col1 FROM tab0 AS cor0
----
13
96
97

skipif mysql # not compatible
query I rowsort label-5605
SELECT + 85 / - col2 + 98 AS col1 FROM tab0 AS cor0
----
13
96
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5606
SELECT + ( col2 ) + + col1 DIV + 89 col0 FROM tab0 AS cor0
----
2
33
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5606
SELECT + ( col2 ) + + col1 / + 89 col0 FROM tab0 AS cor0
----
2
33
83

query I rowsort
SELECT 98 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2

query I rowsort
SELECT ALL + ( + col2 ) * - ( ( + col1 ) ) + + ( + col0 ) FROM tab1
----
-1168
-1401
-506

query I rowsort
SELECT col0 * + 1 * 21 FROM tab2 AS cor0
----
147
1638
1659

query I rowsort
SELECT DISTINCT col0 + + 10 * + col2 FROM tab1 cor0
----
1040
543
634

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col0 col1 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT + - col0 * + col1 + + col1 + col0 FROM tab0 AS cor0
----
-1954
-3263
-7919

query I rowsort
SELECT - col2 * + col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT + 53 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda

onlyif mysql # use DIV operator for integer division
query I rowsort label-5615
SELECT + - cor0.col2 * ( - col0 + cor0.col0 ) DIV col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5615
SELECT + - cor0.col2 * ( - col0 + cor0.col0 ) / col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - - col0 AS col1 FROM tab1 cor0
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-5617
SELECT ALL - col0 * - col2 - - col0 DIV col0 FROM tab0 AS cor0
----
36
7299
793

skipif mysql # not compatible
query I rowsort label-5617
SELECT ALL - col0 * - col2 - - col0 / col0 FROM tab0 AS cor0
----
36
7299
793

query I rowsort
SELECT DISTINCT col0 + col2 AS col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT + col0 * + col1 AS col1 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT ALL col1 + 62 FROM tab1 AS cor0
----
72
75
88

query I rowsort
SELECT ALL - col0 + - col2 * - col2 + + col1 * + col1 FROM tab1 AS cor0
----
3285
3589
9305

query I rowsort
SELECT DISTINCT - ( cor0.col1 ) * + 94 + + 95 AS col0 FROM tab0 cor0
----
-7989
-8459
-9023

query I rowsort
SELECT ALL 60 - col2 * col0 FROM tab0 AS cor0
----
-7238
-732
25

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5624
SELECT ALL col0 + cor0.col0 * CAST( 67 AS SIGNED ) FROM tab0 AS cor0
----
1632
2380
6052

skipif mysql # not compatible
query I rowsort label-5624
SELECT ALL col0 + cor0.col0 * CAST ( 67 AS INTEGER ) FROM tab0 AS cor0
----
1632
2380
6052

query I rowsort
SELECT - col2 + - col1 * col1 FROM tab1 cor0
----
-157
-265
-730

query I rowsort
SELECT DISTINCT + col2 + + cor0.col0 + cor0.col2 FROM tab0 cor0
----
253
37
90

query I rowsort
SELECT 61 AS col1 FROM tab2 cor0
----
61
61
61

query I rowsort
SELECT - col2 + 66 * col0 FROM tab2
----
435
5122
5176

query I rowsort
SELECT DISTINCT 82 * - col0 * - col1 AS col1 FROM tab2 AS cor0
----
110126
17794
377364

query I rowsort
SELECT ALL + 20 + + col1 * col1 FROM tab2 AS cor0
----
309
3501
981

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5631
SELECT ALL - col2 * col1 + CAST( NULL AS SIGNED ) * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5631
SELECT ALL - col2 * col1 + CAST ( NULL AS INTEGER ) * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 0 * col0 * + cor0.col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5633
SELECT - + 33 DIV cor0.col0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to efc7d98d54399d012d7656705d36b06b

skipif mysql # not compatible
query I rowsort label-5633
SELECT - + 33 / cor0.col0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to efc7d98d54399d012d7656705d36b06b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 36 col1 FROM tab0
----
36
36
36

query I rowsort
SELECT col2 + 91 AS col2 FROM tab1 AS cor0
----
145
148
187

query I rowsort
SELECT + 77 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query I rowsort
SELECT + 41 FROM tab2
----
41
41
41

query I rowsort
SELECT ALL + - 24 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

query I rowsort
SELECT ALL - + 91 * - col1 AS col2 FROM tab2 AS cor0
----
1547
2821
5369

query I rowsort
SELECT + col0 * - 12 FROM tab0 AS cor0
----
-1068
-288
-420

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5641
SELECT ALL ( col1 ) * col1 + - CAST( + 99 AS SIGNED ) FROM tab2 AS cor0
----
190
3382
862

skipif mysql # not compatible
query I rowsort label-5641
SELECT ALL ( col1 ) * col1 + - CAST ( + 99 AS INTEGER ) FROM tab2 AS cor0
----
190
3382
862

query I rowsort
SELECT - 26 * ( + col0 ) FROM tab1 AS cor0
----
-1664
-2080
-78

query I rowsort
SELECT + 9 FROM tab2 AS cor0
----
9
9
9

query I rowsort
SELECT ALL + ( - col0 ) * - col1 + col1 AS col0 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT - 47 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

onlyif mysql # use DIV operator for integer division
query I rowsort label-5646
SELECT DISTINCT col2 + - tab1.col0 DIV - 75 FROM tab1
----
54
57
97

skipif mysql # not compatible
query I rowsort label-5646
SELECT DISTINCT col2 + - tab1.col0 / - 75 FROM tab1
----
54
57
97

query I rowsort
SELECT - 42 + + 13 FROM tab0
----
-29
-29
-29

query I rowsort
SELECT ALL + col2 * + col0 FROM tab2
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col1 col0 FROM tab0
----
-7396
-8281
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-5650
SELECT ( 74 ) DIV - col2 + ( col0 * - tab0.col0 ) AS col1 FROM tab0
----
-1299
-578
-7921

skipif mysql # not compatible
query I rowsort label-5650
SELECT ( 74 ) / - col2 + ( col0 * - tab0.col0 ) AS col1 FROM tab0
----
-1299
-578
-7921

query I rowsort
SELECT ALL + 91 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT - col0 + + ( + col1 ) AS col0 FROM tab1 cor0
----
-54
-67
23

query I rowsort
SELECT ALL + col1 * col2 FROM tab1
----
1248
1404
570

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
972 values hashing to 4634d10e8b6b37510bb99745aade36ab

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 cor2
----
3645 values hashing to 199388980dc5177ebebcfdbc0408ba02

query I rowsort
SELECT + tab2.col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT ALL - 35 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 6d967b3bac2e01a0318865f682f9a97b

query I rowsort
SELECT DISTINCT ( + col0 * col1 ) FROM tab0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT col1 * - col0 * + col1 FROM tab0
----
-177504
-329315
-737009

query I rowsort
SELECT - + 19 + - col2 FROM tab1 cor0
----
-115
-73
-76

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0, tab0 AS cor1, tab0, tab2 cor2
----
3645 values hashing to 61a671f1b5048e339ad9838f68ebbba4

query I rowsort
SELECT - + col0 * - col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT col0 * col0 * col0 + col2 FROM tab1 AS cor0
----
262201
512096
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 col1 FROM tab1, tab2 AS cor0
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-5665
SELECT col0 DIV - col1 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5665
SELECT col0 / - col1 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 + 98 AS col1 FROM tab1
----
108
111
124

onlyif mysql # use DIV operator for integer division
query I rowsort label-5667
SELECT col2 + - col1 + - col1 DIV - col2 AS col1 FROM tab1
----
28
47
83

skipif mysql # not compatible
query I rowsort label-5667
SELECT col2 + - col1 + - col1 / - col2 AS col1 FROM tab1
----
28
47
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-5668
SELECT col1 DIV + col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5668
SELECT col1 / + col1 FROM tab1
----
1
1
1

query I rowsort
SELECT - tab0.col1 * - col0 FROM tab0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-5670
SELECT DISTINCT - - col1 DIV col2 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-5670
SELECT DISTINCT - - col1 / col2 FROM tab0 AS cor0
----
1
2
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 57 col2 FROM tab2 AS cor0
----
1767
3363
969

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5672
SELECT - CAST( NULL AS SIGNED ) * + ( + col0 ) + + 62 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5672
SELECT - CAST ( NULL AS INTEGER ) * + ( + col0 ) + + 62 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5673
SELECT - - 87 DIV - 32 + - col1 FROM tab1 AS cor0
----
-12
-15
-28

skipif mysql # not compatible
query I rowsort label-5673
SELECT - - 87 / - 32 + - col1 FROM tab1 AS cor0
----
-12
-15
-28

query I rowsort
SELECT DISTINCT - col2 + - col1 AS col0 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT ALL - + ( - col1 ) * + col1 - ( col0 * + col1 ) FROM tab1 AS cor0
----
-540
-871
598

query I rowsort
SELECT + col0 + 5 AS col0 FROM tab0 AS cor0
----
29
40
94

query I rowsort
SELECT + col0 * ( col2 ) FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT + + col1 * - 90 * col2 AS col0 FROM tab0 AS cor0
----
-255420
-671580
-8730

query I rowsort
SELECT tab1.col2 * + col1 AS col2 FROM tab1
----
1248
1404
570

query I rowsort
SELECT - col0 + + 69 FROM tab0
----
-20
34
45

query I rowsort
SELECT + col0 + ( col1 ) + col1 * + col2 AS col2 FROM tab2
----
1671
742
875

query I rowsort
SELECT ALL + col2 + + col2 AS col0 FROM tab1
----
108
114
192

query I rowsort
SELECT + col0 * + col2 AS col0 FROM tab2
----
189
2028
3002

query I rowsort
SELECT ALL - col1 + - col2 * + col1 FROM tab2
----
-1593
-663
-868

query I rowsort
SELECT - + col0 + - cor0.col2 AS col1 FROM tab1 AS cor0
----
-121
-176
-57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5686
SELECT - - CAST( + col2 AS SIGNED ) + col1 FROM tab0 AS cor0
----
119
173
98

skipif mysql # not compatible
query I rowsort label-5686
SELECT - - CAST ( + col2 AS INTEGER ) + col1 FROM tab0 AS cor0
----
119
173
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 42 col0 FROM tab1 AS cor0
----
42
42
42

query I rowsort
SELECT cor0.col0 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT ALL + ( - 84 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f

query I rowsort
SELECT ALL - + col0 + - col0 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
42
6006
6162

query I rowsort
SELECT ALL + col1 * ( col0 * + col1 ) FROM tab2 cor0
----
22831
271518
6727

query I rowsort
SELECT + cor1.col2 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT DISTINCT - 40 AS col0 FROM tab2
----
-40

query I rowsort
SELECT + col1 + col2 * + tab0.col2 AS col1 FROM tab0
----
1175
6815
98

query I rowsort
SELECT DISTINCT + col1 + + col1 AS col1 FROM tab1
----
20
26
52

query I rowsort
SELECT 69 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT + col0 * col0 + 17 + + col2 FROM tab2 AS cor0
----
6127
6296
93

query I rowsort
SELECT DISTINCT - col1 + col1 * + cor0.col0 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT DISTINCT - col0 * cor0.col2 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT + col0 + - 1 * + col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort
SELECT cor0.col1 + CAST ( + 65 AS REAL ) + - col0 AS col1 FROM tab0 AS cor0
----
127
127
67

query I rowsort
SELECT DISTINCT 48 AS col1 FROM tab0, tab0 cor0, tab2 AS cor1
----
48

query I rowsort
SELECT ALL + col1 * col1 AS col0 FROM tab2 cor0
----
289
3481
961

query I rowsort
SELECT ALL - - col1 * col0 * - col1 AS col0 FROM tab0 AS cor0
----
-177504
-329315
-737009

query I rowsort
SELECT - + col0 + + 54 + + col1 FROM tab0 AS cor0
----
116
116
56

query I rowsort
SELECT ALL - + col1 FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT - 33 + + tab0.col1 FROM tab0
----
53
58
64

query I rowsort
SELECT DISTINCT tab1.col2 + - ( + col1 ) AS col2 FROM tab1
----
28
47
83

query I rowsort
SELECT col2 + 88 FROM tab1
----
142
145
184

query I rowsort
SELECT + ( - 1 ) FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT 35 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query I rowsort
SELECT DISTINCT - 73 AS col2 FROM tab2
----
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) col0 FROM tab0
----
86
91
97

query I rowsort
SELECT + - cor0.col1 * + 2 * - cor0.col2 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 0d593a2b2408a96c0aa3669c9397f5a7

query I rowsort
SELECT + 15 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5717
SELECT CAST( + col0 AS SIGNED ) * - col2 + ( col1 * col2 ) AS col1 FROM tab1 cor0
----
-3078
-6432
1242

skipif mysql # not compatible
query I rowsort label-5717
SELECT CAST ( + col0 AS INTEGER ) * - col2 + ( col1 * col2 ) AS col1 FROM tab1 cor0
----
-3078
-6432
1242

query I rowsort
SELECT - 81 * col1 + - col1 FROM tab1 AS cor0
----
-1066
-2132
-820

onlyif mysql # use DIV operator for integer division
query I rowsort label-5719
SELECT ALL - 48 DIV cor0.col1 FROM tab1 cor0
----
-1
-3
-4

skipif mysql # not compatible
query I rowsort label-5719
SELECT ALL - 48 / cor0.col1 FROM tab1 cor0
----
-1
-3
-4

query I rowsort
SELECT ALL - col1 - col1 * col2 AS col2 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT DISTINCT + - 93 - col0 * 57 AS col1 FROM tab2 AS cor0
----
-4539
-4596
-492

query I rowsort
SELECT + col0 * cor0.col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT ALL - - col2 * col2 FROM tab2 AS cor0
----
1444
676
729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col1 + + cor0.col2 col0 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT ALL + - col2 * col0 AS col1 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL - + cor0.col1 * - col2 AS col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT - 65 AS col1 FROM tab1 AS cor0
----
-65
-65
-65

query I rowsort
SELECT col2 * col2 AS col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT - col1 * col0 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT + 40 + - cor0.col2 FROM tab0, tab1 AS cor0
----
-14
-17
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col2 ) col2 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT + col1 * col0 + col2 AS col0 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT - 10 * + col1 AS col1 FROM tab2 AS cor0
----
-170
-310
-590

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col0 col2 FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT ALL - 12 + + col0 FROM tab0 AS cor0
----
12
23
77

query I rowsort
SELECT DISTINCT + col2 * cor0.col1 + - col0 * col1 AS col1 FROM tab0 AS cor0
----
-3298
-637
774

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + col2 * col2 col1 FROM tab1 AS cor0
----
2890
3239
9203

query I rowsort
SELECT - - col0 + + col2 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT ALL cor0.col1 + col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT - 51 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 27bcc31433ce90833ed76619cbd8d6a4

query I rowsort
SELECT ALL 28 * + col0 AS col0 FROM tab0
----
2492
672
980

query I rowsort
SELECT - tab2.col2 + tab2.col2 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col2 col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT + 29 * col1 FROM tab0 AS cor0
----
2494
2639
2813

onlyif mysql # use DIV operator for integer division
query I rowsort label-5745
SELECT DISTINCT 69 DIV + col2 - col2 FROM tab0 cor0
----
-31
-82
68

skipif mysql # not compatible
query I rowsort label-5745
SELECT DISTINCT 69 / + col2 - col2 FROM tab0 cor0
----
-31
-82
68

query I rowsort
SELECT + col2 + + col2 AS col1 FROM tab1 cor0
----
108
114
192

query I rowsort
SELECT - col1 + - col2 AS col2 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT DISTINCT - 81 * col1 + + col2 AS col2 FROM tab1 AS cor0
----
-2052
-753
-957

query I rowsort
SELECT ALL - col1 * col0 - 25 AS col2 FROM tab2 AS cor0
----
-1368
-242
-4627

query I rowsort
SELECT - + cor0.col1 AS col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT + 85 * col1 FROM tab0 AS cor0
----
7310
7735
8245

query I rowsort
SELECT ALL - - col2 * col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - - cor0.col0 AS col0 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT ALL col0 * col0 + + 74 * - col1 AS col0 FROM tab1 AS cor0
----
-1915
3356
5438

query I rowsort
SELECT DISTINCT + col1 * - 61 - col1 AS col1 FROM tab2 AS cor0
----
-1054
-1922
-3658

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col0 * tab0.col1 col0 FROM tab0
----
-2097
-3396
-8181

query I rowsort
SELECT + col0 * col0 * + col2 + col1 * col1 FROM tab1
----
1162
233572
614569

query I rowsort
SELECT DISTINCT 40 AS col2 FROM tab2
----
40

query I rowsort
SELECT DISTINCT - - 81 AS col2 FROM tab1, tab2, tab0 AS cor0
----
81

query I rowsort
SELECT DISTINCT 14 AS col2 FROM tab0
----
14

query I rowsort
SELECT - 86 * cor0.col2 + + col1 + 88 * col0 * - col2 FROM tab0 cor0
----
-3069
-649185
-72448

query I rowsort
SELECT ALL + + col2 * - cor0.col2 + cor0.col2 FROM tab2 AS cor0
----
-1406
-650
-702

query I rowsort
SELECT ALL - + 8 + col2 FROM tab1 AS cor0
----
46
49
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * + 56 col0 FROM tab1 AS cor0
----
-3024
-3192
-5376

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 15 * col2 * - col1 col2 FROM tab2 AS cor0
----
-12555
-23010
-9690

query I rowsort
SELECT col0 + cor0.col2 + + col0 FROM tab2 AS cor0
----
182
196
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 32 * - 94 col1 FROM tab1 AS cor0
----
3008
3008
3008

query I rowsort
SELECT + cor0.col2 * + col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL + 92 FROM tab0 AS cor0
----
92
92
92

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5770
SELECT ALL + - CAST( NULL AS SIGNED ) + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5770
SELECT ALL + - CAST ( NULL AS INTEGER ) + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + ( + 10 ) * cor0.col2 + - 88 FROM tab2 AS cor0
----
-348
-358
-468

query I rowsort
SELECT - col1 * col2 + - col1 + col1 * col2 AS col1 FROM tab1 AS cor0
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 * - ( col1 ) col1 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5774
SELECT DISTINCT - ( - 13 ) + + col1 DIV + col2 + + col1 col1 FROM tab0 AS cor0
----
101
105
207

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5774
SELECT DISTINCT - ( - 13 ) + + col1 / + col2 + + col1 col1 FROM tab0 AS cor0
----
101
105
207

query I rowsort
SELECT DISTINCT cor0.col0 AS col0 FROM tab0, tab1, tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL col0 - 9 AS col0 FROM tab2
----
-2
69
70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5777
SELECT DISTINCT col1 - - CAST( NULL AS SIGNED ) * col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5777
SELECT DISTINCT col1 - - CAST ( NULL AS INTEGER ) * col2 FROM tab1
----
NULL

query I rowsort
SELECT ALL col2 - col0 * tab0.col1 FROM tab0
----
-2031
-3394
-8017

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5779
SELECT ALL + CAST( + 4 AS SIGNED ) * - col1 FROM tab1 AS cor0
----
-104
-40
-52

skipif mysql # not compatible
query I rowsort label-5779
SELECT ALL + CAST ( + 4 AS INTEGER ) * - col1 FROM tab1 AS cor0
----
-104
-40
-52

query I rowsort
SELECT col1 + col0 AS col2 FROM tab2
----
137
38
96

query I rowsort
SELECT ALL col2 + tab2.col2 * col0 * col2 AS col0 FROM tab2
----
114114
5130
52754

query I rowsort
SELECT + 55 FROM tab1
----
55
55
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 27 + - 30 col2 FROM tab0 cor0
----
-57
-57
-57

query I rowsort
SELECT - 81 AS col0 FROM tab0 AS cor0
----
-81
-81
-81

query I rowsort
SELECT ALL + 12 AS col0 FROM tab2 AS cor0
----
12
12
12

query I rowsort
SELECT ALL 12 + 23 FROM tab0 AS cor0
----
35
35
35

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5787
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5787
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + ( col2 ) * col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT DISTINCT + - 22 AS col0 FROM tab2 cor0
----
-22

query I rowsort
SELECT ALL - 82 + col2 FROM tab1
----
-25
-28
14

query I rowsort
SELECT ALL tab1.col1 AS col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT ALL 47 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT DISTINCT + 14 AS col2 FROM tab1, tab1 AS cor0
----
14

query I rowsort
SELECT col1 * + 19 * - col1 + col1 * col0 FROM tab0
----
-138460
-149240
-175376

query I rowsort
SELECT ALL col0 * col1 + + col0 + col1 AS col1 FROM tab0 AS cor0
----
2174
3527
8279

query I rowsort
SELECT + col0 + 82 FROM tab2 AS cor0
----
160
161
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-5797
SELECT cor0.col0 DIV col2 + col0 FROM tab1 AS cor0
----
3
65
80

skipif mysql # not compatible
query I rowsort label-5797
SELECT cor0.col0 / col2 + col0 FROM tab1 AS cor0
----
3
65
80

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0, tab1 AS cor1, tab0 AS cor2
----
972 values hashing to 95920403df268a272c4e933cd0bbe0be

query I rowsort
SELECT ALL - 67 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 95c9eba643f6489e03be4d5e83f1ef99

query I rowsort
SELECT cor0.col1 * + 12 AS col1 FROM tab1 AS cor0
----
120
156
312

query I rowsort
SELECT DISTINCT + tab0.col2 + cor0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 1b6920525e1810523fdee3171c929510

query I rowsort
SELECT DISTINCT 73 FROM tab1, tab0 AS cor0
----
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-5803
SELECT ALL + 2 DIV - 73 + col1 + - col2 DIV ( col1 * + cor0.col1 ) FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-5803
SELECT ALL + 2 / - 73 + col1 + - col2 / ( col1 * + cor0.col1 ) FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT + 49 FROM tab1 AS cor0
----
49
49
49

query I rowsort
SELECT ( - 99 ) FROM tab1 cor0
----
-99
-99
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 + col1 col0 FROM tab0 cor0
----
7482
8372
9506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5807
SELECT - CAST( NULL AS DECIMAL ) * + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5807
SELECT - CAST ( NULL AS REAL ) * + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 79 * col0 * col2 FROM tab2 AS cor0
----
14931
160212
237158

query I rowsort
SELECT - ( col0 ) + + 43 * - col0 FROM tab2 cor0
----
-308
-3432
-3476

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col0 col2 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT ALL + + col1 + col2 * 70 * - col0 AS col0 FROM tab1 AS cor0
----
-11314
-255350
-537587

query I rowsort
SELECT 5 - col2 AS col2 FROM tab0 AS cor0
----
-28
-77
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col0 col1 FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT 50 AS col1 FROM tab1 AS cor0
----
50
50
50

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5815
SELECT col1 - col0 * CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
-706
-7207
62

skipif mysql # not compatible
query I rowsort label-5815
SELECT col1 - col0 * CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT ALL + + ( - col2 ) + 79 AS col0 FROM tab0 cor0
----
-3
46
78

query I rowsort
SELECT + col1 * + col2 + ( - col1 * col1 ) FROM tab1 cor0
----
1079
470
728

query I rowsort
SELECT ALL + ( - col2 ) * cor0.col0 + - 46 FROM tab1 AS cor0
----
-208
-3694
-7726

onlyif mysql # use DIV operator for integer division
query I rowsort label-5819
SELECT ALL col2 * cor0.col1 + 11 DIV - col2 FROM tab0 AS cor0
----
2838
7462
86

skipif mysql # not compatible
query I rowsort label-5819
SELECT ALL col2 * cor0.col1 + 11 / - col2 FROM tab0 AS cor0
----
2838
7462
86

query I rowsort
SELECT ALL + + 66 + cor0.col2 FROM tab2 AS cor0
----
104
92
93

query I rowsort
SELECT - + col0 * col1 * + cor0.col1 + col2 AS col2 FROM tab1 AS cor0
----
-13424
-1974
-6343

query I rowsort
SELECT DISTINCT + - cor0.col1 + + cor0.col0 AS col1 FROM tab2, tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT + - 68 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-68

query I rowsort
SELECT col1 * ( + col2 ) AS col2 FROM tab0 cor0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col2 + - col2 + + 54 col2 FROM tab0 cor0
----
54
54
54

query I rowsort
SELECT + col2 * - col0 + + ( - col1 ) FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT + col0 - col2 * 56 FROM tab0 AS cor0
----
-1824
-21
-4503

query I rowsort
SELECT col0 * col2 * - 7 + col0 + 86 * + col2 FROM tab0 cor0
----
-124
-2682
-43945

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5829
SELECT - + col1 * - CAST( - 23 AS SIGNED ) + - col2 * col2 + col0 AS col2 FROM tab1 AS cor0
----
-3415
-3511
-9435

skipif mysql # not compatible
query I rowsort label-5829
SELECT - + col1 * - CAST ( - 23 AS INTEGER ) + - col2 * col2 + col0 AS col2 FROM tab1 AS cor0
----
-3415
-3511
-9435

query I rowsort
SELECT ALL - col0 * - ( + col0 ) AS col1 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT - tab2.col2 * - col2 + + ( tab2.col1 ) AS col0 FROM tab2
----
1461
735
760

query I rowsort
SELECT DISTINCT col0 + col1 AS col1 FROM tab1
----
29
74
93

query I rowsort
SELECT ALL - col1 * - col0 AS col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT - col2 + 14 FROM tab0 AS cor0
----
-19
-68
13

query I rowsort
SELECT DISTINCT + - col2 + - 21 AS col1 FROM tab0 AS cor0
----
-103
-22
-54

query I rowsort
SELECT + col0 + col0 * + ( cor0.col1 ) * ( - col0 ) + col1 AS col0 FROM tab2 AS cor0
----
-106001
-1481
-358819

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab0, tab1 AS cor1
----
243 values hashing to 9ed1a6a444254225f040123c46b7f70c

query I rowsort
SELECT DISTINCT - ( col2 ) - - col1 * + col2 FROM tab1 AS cor0
----
1152
1350
513

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5839
SELECT - CAST( NULL AS SIGNED ) + 42 + + col2 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5839
SELECT - CAST ( NULL AS INTEGER ) + 42 + + col2 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( tab1.col2 ) AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT - 68 AS col0 FROM tab0 AS cor0
----
-68
-68
-68

query I rowsort
SELECT + + col2 + - col0 AS col0 FROM tab1 AS cor0
----
-7
16
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5843
SELECT - CAST( - col0 AS SIGNED ) FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-5843
SELECT - CAST ( - col0 AS INTEGER ) FROM tab0
----
24
35
89

query I rowsort
SELECT 76 AS col2 FROM tab1
----
76
76
76

query I rowsort
SELECT ( col0 ) * 12 FROM tab0
----
1068
288
420

onlyif mysql # use DIV operator for integer division
query I rowsort label-5846
SELECT DISTINCT col0 DIV col1 AS col1 FROM tab1
----
0
6

skipif mysql # not compatible
query I rowsort label-5846
SELECT DISTINCT col0 / col1 AS col1 FROM tab1
----
0
6

query I rowsort
SELECT ALL col1 * tab1.col2 FROM tab1
----
1248
1404
570

query I rowsort
SELECT - col1 * col0 * 87 FROM tab0
----
-179568
-295365
-704613

query I rowsort
SELECT DISTINCT + tab1.col2 * + col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT 52 * - col0 FROM tab0
----
-1248
-1820
-4628

query I rowsort
SELECT + 76 * col1 FROM tab2 AS cor0
----
1292
2356
4484

query I rowsort
SELECT 82 * col0 AS col0 FROM tab2 AS cor0
----
574
6396
6478

query I rowsort
SELECT 30 + - col1 - + col0 FROM tab1
----
-44
-63
1

query I rowsort
SELECT + col2 * - cor0.col2 FROM tab0 AS cor0
----
-1
-1089
-6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 41 col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT - col2 * + col1 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( col0 AS REAL ) FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL - + ( + 75 ) AS col0 FROM tab2 cor0
----
-75
-75
-75

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5859
SELECT ALL - CAST( NULL AS DECIMAL ) + 71 + + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5859
SELECT ALL - CAST ( NULL AS REAL ) + 71 + + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 + - col0 AS col1 FROM tab0
----
-171
-36
-57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5861
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5861
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT tab2.col1 FROM tab2, tab1 AS cor0
----
17
31
59

query I rowsort
SELECT ALL 86 FROM tab2, tab1 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5864
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 54 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5864
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 54 FROM tab2
----
NULL

query I rowsort
SELECT ( - ( - col0 ) ) FROM tab0
----
24
35
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5866
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col0 * col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5866
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col0 * col0 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT 20 AS col0 FROM tab0, tab1 AS cor0
----
20

query I rowsort
SELECT DISTINCT - tab2.col0 AS col0 FROM tab2, tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ALL - 3 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

query I rowsort
SELECT - ( 2 ) AS col2 FROM tab0
----
-2
-2
-2

query I rowsort
SELECT ALL + + 61 AS col2 FROM tab2 AS cor0
----
61
61
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-5872
SELECT col0 DIV ( + col2 ) FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-5872
SELECT col0 / ( + col2 ) FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT DISTINCT 15 FROM tab0
----
15

query I rowsort
SELECT ALL + 46 AS col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 2f97924b57b73102233df7c9ce8ad602

query I rowsort
SELECT col2 - col2 * + ( 74 ) AS col0 FROM tab0
----
-2409
-5986
-73

query I rowsort
SELECT col2 * col0 + + 98 AS col2 FROM tab1 AS cor0
----
260
3746
7778

query I rowsort
SELECT + - cor0.col1 * cor0.col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT + cor0.col0 + - ( col1 ) AS col0 FROM tab0 AS cor0
----
-2
-62
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-5879
SELECT - col1 DIV 85 + cor0.col1 * + col2 * col1 FROM tab2 AS cor0
----
10982
25947
90506

skipif mysql # not compatible
query I rowsort label-5879
SELECT - col1 / 85 + cor0.col1 * + col2 * col1 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT ALL + - cor0.col2 * + 64 FROM tab1 AS cor0
----
-3456
-3648
-6144

query I rowsort
SELECT DISTINCT + col2 * - 77 + col1 FROM tab1 AS cor0
----
-4132
-4379
-7379

query I rowsort
SELECT - cor0.col1 + + col0 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT ALL + col1 + cor0.col2 FROM tab1 AS cor0
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-5884
SELECT + + col0 * + ( col1 ) + - cor0.col0 * - col1 DIV - col1 AS col0 FROM tab2 AS cor0
----
1264
210
4524

skipif mysql # not compatible
query I rowsort label-5884
SELECT + + col0 * + ( col1 ) + - cor0.col0 * - col1 / - col1 AS col0 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT - col1 + + ( col1 ) * + col0 FROM tab1 cor0
----
1027
52
630

query I rowsort
SELECT - - cor0.col0 * - ( + cor0.col0 ) FROM tab2 AS cor0
----
-49
-6084
-6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-5887
SELECT + - col2 DIV - col0 FROM tab2 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-5887
SELECT + - col2 / - col0 FROM tab2 AS cor0
----
0
0
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-5888
SELECT col2 + col1 DIV col2 AS col0 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-5888
SELECT col2 + col1 / col2 AS col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT cor0.col0 * + col1 + col2 AS col2 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT DISTINCT + col0 + + col0 * - col0 FROM tab2
----
-42
-6006
-6162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col0 + col2 col0 FROM tab2
----
104
117
34

query I rowsort
SELECT - col2 * + col2 AS col1 FROM tab1
----
-2916
-3249
-9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-5893
SELECT col1 DIV - col0 + col0 FROM tab1
----
-5
64
80

skipif mysql # not compatible
query I rowsort label-5893
SELECT col1 / - col0 + col0 FROM tab1
----
-5
64
80

query I rowsort
SELECT DISTINCT - col1 + col1 AS col0 FROM tab1
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5895
SELECT - col2 + col1 DIV + col1 FROM tab0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-5895
SELECT - col2 + col1 / + col1 FROM tab0
----
-32
-81
0

query I rowsort
SELECT col2 + tab1.col2 AS col2 FROM tab1
----
108
114
192

query I rowsort
SELECT ALL - - col2 + col1 FROM tab2 AS cor0
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-5898
SELECT ALL + + col0 * col0 + col1 * col0 + - col1 DIV col0 AS col1 FROM tab1 AS cor0
----
4736
7440
79

skipif mysql # not compatible
query I rowsort label-5898
SELECT ALL + + col0 * col0 + col1 * col0 + - col1 / col0 AS col1 FROM tab1 AS cor0
----
4736
7440
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-5899
SELECT col2 DIV - cor0.col1 + col2 AS col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-5899
SELECT col2 / - cor0.col1 + col2 AS col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL col1 * col0 * + col0 + + col2 + + cor0.col1 FROM tab2 cor0
----
106152
1577
359041

query I rowsort
SELECT DISTINCT - - cor0.col1 * - col2 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT col1 * col1 + + col1 * + cor0.col2 FROM tab2 AS cor0
----
1798
5015
935

query I rowsort
SELECT ALL + cor0.col0 AS col2 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT + col2 + cor0.col0 + + col2 AS col1 FROM tab1 AS cor0
----
111
178
272

query I rowsort
SELECT DISTINCT + - col0 + - cor0.col1 * col0 AS col2 FROM tab1 AS cor0
----
-1120
-704
-81

onlyif mysql # use DIV operator for integer division
query I rowsort label-5906
SELECT DISTINCT + col0 + + col2 + + col0 * col0 DIV + cor0.col2 AS col1 FROM tab1 AS cor0
----
192
242
57

skipif mysql # not compatible
query I rowsort label-5906
SELECT DISTINCT + col0 + + col2 + + col0 * col0 / + cor0.col2 AS col1 FROM tab1 AS cor0
----
192
242
57

query I rowsort
SELECT DISTINCT + col1 + col0 + + col2 AS col1 FROM tab2 AS cor0
----
134
163
65

query I rowsort
SELECT + col0 * col1 + - col0 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT DISTINCT - col0 + - col1 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT DISTINCT - col2 * - col0 + + col1 * col2 - - col2 AS col2 FROM tab0 AS cor0
----
133
14842
3663

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - - col0 col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT DISTINCT + + col1 + cor0.col0 AS col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT col2 + + col0 AS col2 FROM tab0
----
171
36
57

query I rowsort
SELECT + col1 + col2 AS col2 FROM tab1
----
109
67
80

query I rowsort
SELECT ALL - col2 + col1 AS col2 FROM tab2
----
-21
33
4

query I rowsort
SELECT ALL col1 + + col0 * + col1 * col0 AS col2 FROM tab0
----
118922
49622
720902

query I rowsort
SELECT ALL col0 + + cor0.col1 * col1 FROM tab1 AS cor0
----
164
249
679

onlyif mysql # use DIV operator for integer division
query I rowsort label-5918
SELECT col2 DIV + col1 AS col0 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-5918
SELECT col2 / + col1 AS col0 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT ALL + + ( cor0.col2 ) * + col1 - + col2 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT DISTINCT 20 + col0 FROM tab0 AS cor0
----
109
44
55

onlyif mysql # use DIV operator for integer division
query I rowsort label-5921
SELECT DISTINCT - + col0 * - col2 + + col2 DIV col1 AS col1 FROM tab2 AS cor0
----
189
2028
3004

skipif mysql # not compatible
query I rowsort label-5921
SELECT DISTINCT - + col0 * - col2 + + col2 / col1 AS col1 FROM tab2 AS cor0
----
189
2028
3004

query I rowsort
SELECT + + col1 * + col0 + col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT ALL + col0 * col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT + + col0 + - col1 AS col0 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT - col2 + + col1 AS col1 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT DISTINCT + cor0.col1 * + col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT - col2 * + col2 AS col0 FROM tab0 cor0
----
-1
-1089
-6724

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( - 77 + - col0 AS REAL ) FROM tab2
----
155
156
84

query I rowsort
SELECT ( - 26 ) AS col1 FROM tab2
----
-26
-26
-26

query I rowsort
SELECT ALL 91 * + col0 AS col2 FROM tab0 AS cor0
----
2184
3185
8099

query I rowsort
SELECT ALL - - col2 * col1 AS col1 FROM tab2 AS cor0
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col2 * + col0 * col2 col1 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT DISTINCT - 83 * - col2 FROM tab0 AS cor0
----
2739
6806
83

query I rowsort
SELECT ALL + + 62 * col0 + col1 FROM tab0 AS cor0
----
1574
2267
5609

query I rowsort
SELECT ALL - col2 * - col2 + col0 AS col1 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT col2 + col0 * + tab2.col1 - col2 FROM tab2
----
1343
217
4602

query I rowsort
SELECT DISTINCT + ( tab2.col1 ) * col1 - + col2 AS col0 FROM tab2
----
251
3455
934

onlyif mysql # use DIV operator for integer division
query I rowsort label-5938
SELECT - + col1 DIV - col1 + col1 + - col2 FROM tab0 AS cor0
----
10
54
97

skipif mysql # not compatible
query I rowsort label-5938
SELECT - + col1 / - col1 + col1 + - col2 FROM tab0 AS cor0
----
10
54
97

query I rowsort
SELECT col0 * - col0 + col1 AS col2 FROM tab1
----
-4086
-6387
17

query I rowsort
SELECT DISTINCT + ( tab1.col0 ) * + col1 + + col2 AS col2 FROM tab1
----
1136
132
697

query I rowsort
SELECT col1 + col1 + tab0.col0 AS col0 FROM tab0
----
196
229
271

query I rowsort
SELECT + 92 AS col2 FROM tab1
----
92
92
92

query I rowsort
SELECT DISTINCT tab1.col1 + col2 FROM tab1
----
109
67
80

query I rowsort
SELECT cor0.col0 * - ( 51 ) FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to d7ecd80e167908c6ba8ff8fff33f3419

query I rowsort
SELECT - col0 * + 47 FROM tab1
----
-141
-3008
-3760

query I rowsort
SELECT + 84 FROM tab2 AS cor0
----
84
84
84

query I rowsort
SELECT 82 + - col1 FROM tab2 AS cor0
----
23
51
65

query I rowsort
SELECT DISTINCT ( - tab1.col0 ) AS col2 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT - 22 AS col1 FROM tab1
----
-22
-22
-22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col2 * + col0 + col2 col1 FROM tab1
----
270
3762
7872

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5951
SELECT ALL - CAST( NULL AS SIGNED ) + - col1 * + col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5951
SELECT ALL - CAST ( NULL AS INTEGER ) + - col1 * + col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 97 * + col0 col1 FROM tab0
----
2328
3395
8633

onlyif mysql # use DIV operator for integer division
query I rowsort label-5953
SELECT DISTINCT col1 DIV - tab1.col1 AS col0 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-5953
SELECT DISTINCT col1 / - tab1.col1 AS col0 FROM tab1
----
-1

query I rowsort
SELECT DISTINCT 20 AS col2 FROM tab0
----
20

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0, tab2, tab2 AS cor1
----
972 values hashing to 163d7732097d78f1cda7f65c2cea5a08

query I rowsort
SELECT - ( tab0.col2 + + ( col2 ) * tab0.col0 ) FROM tab0
----
-36
-7380
-825

query I rowsort
SELECT tab2.col1 * - col2 AS col0 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT + 8 AS col1 FROM tab0
----
8
8
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col2 * + col2 col0 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT - - col2 * - cor0.col1 + col2 AS col0 FROM tab0 cor0
----
-2805
-7380
-96

query I rowsort
SELECT col0 * - cor0.col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT + + 21 * + col2 AS col1 FROM tab2 AS cor0
----
546
567
798

onlyif mysql # use DIV operator for integer division
query I rowsort label-5963
SELECT DISTINCT - + col1 + + col2 DIV ( + 15 * col1 + + col0 ) AS col2 FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-5963
SELECT DISTINCT - + col1 + + col2 / ( + 15 * col1 + + col0 ) AS col2 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT + ( col0 ) + 13 FROM tab0 AS cor0
----
102
37
48

query I rowsort
SELECT - 94 * col2 FROM tab1 cor0
----
-5076
-5358
-9024

query I rowsort
SELECT - col0 * + cor0.col0 * - col1 + col0 FROM tab2 AS cor0
----
106176
1526
359034

query I rowsort
SELECT DISTINCT - + ( col1 ) FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL - + 47 + col2 FROM tab0 AS cor0
----
-14
-46
35

query I rowsort
SELECT - col2 + - col2 FROM tab0 cor0
----
-164
-2
-66

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 AS cor2, tab0 AS cor3
----
3645 values hashing to 42ae2eaa7bed53d316a0590d597db470

query I rowsort
SELECT col0 + + 46 FROM tab1
----
110
126
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col1 FROM tab0
----
1
33
82

query I rowsort
SELECT - 24 FROM tab2, tab2 AS cor0
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

query I rowsort
SELECT 70 FROM tab1, tab1 AS cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

query I rowsort
SELECT ALL + + cor0.col0 + cor0.col0 FROM tab2 cor0
----
14
156
158

query I rowsort
SELECT DISTINCT + col1 * cor0.col0 + col2 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT ALL col2 * - ( + col1 ) - col2 FROM tab1 AS cor0
----
-1344
-1458
-627

query I rowsort
SELECT col2 + - ( + col2 ) AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5979
SELECT ALL + col2 DIV + 74 + cor0.col2 * col1 + - col0 FROM tab1 AS cor0
----
1169
1401
506

skipif mysql # not compatible
query I rowsort label-5979
SELECT ALL + col2 / + 74 + cor0.col2 * col1 + - col0 FROM tab1 AS cor0
----
1169
1401
506

query I rowsort
SELECT ALL col2 - - col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT 87 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT DISTINCT - col0 + + 35 FROM tab1 AS cor0
----
-29
-45
32

query I rowsort
SELECT - col0 + - ( - cor0.col1 ) AS col2 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT ALL cor0.col2 + col0 * + col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT - 65 AS col2 FROM tab2 AS cor0
----
-65
-65
-65

query I rowsort
SELECT 81 FROM tab2, tab0 cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 50d500b1082f81e0b02096b2afac91cd

onlyif mysql # use DIV operator for integer division
query I rowsort label-5987
SELECT ALL - ( col0 ) * col0 * + col0 + - 37 DIV col1 AS col1 FROM tab2 AS cor0
----
-344
-474552
-493041

skipif mysql # not compatible
query I rowsort label-5987
SELECT ALL - ( col0 ) * col0 * + col0 + - 37 / col1 AS col1 FROM tab2 AS cor0
----
-344
-474552
-493041

query I rowsort
SELECT - cor0.col2 + col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT + 90 * + col1 + col2 FROM tab2 AS cor0
----
1568
2817
5336

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 34 col2 FROM tab1
----
-34
-34
-34

query I rowsort
SELECT + 37 AS col0 FROM tab1 AS cor0
----
37
37
37

query I rowsort
SELECT + + ( ( col0 ) ) FROM tab0 AS cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-5993
SELECT + col0 DIV + ( col2 ) AS col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5993
SELECT + col0 / + ( col2 ) AS col2 FROM tab1
----
0
0
1

query I rowsort
SELECT - 49 * - col0 FROM tab2 AS cor0
----
343
3822
3871

query I rowsort
SELECT + col2 * 32 AS col1 FROM tab0 AS cor0
----
1056
2624
32

query I rowsort
SELECT - cor0.col2 + - col0 * col1 FROM tab1 AS cor0
----
-1136
-132
-697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * cor0.col1 + - col0 col1 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT ALL + ( + cor0.col0 ) + col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT - col2 * cor0.col0 + + ( + col1 ) * + col1 * + col2 AS col0 FROM tab1 AS cor0
----
2052
36342
8544

query I rowsort
SELECT 87 + + col1 * col0 AS col2 FROM tab1 AS cor0
----
1127
165
727

query I rowsort
SELECT - ( + col2 ) FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT + + 44 * - col2 + ( 58 ) AS col1 FROM tab1 AS cor0
----
-2318
-2450
-4166

query I rowsort
SELECT ALL 97 * + cor1.col1 FROM tab0, tab2 cor0, tab2 AS cor1
----
27 values hashing to 92ff6a32593741ec6f49bd9a7f49a699

query I rowsort
SELECT DISTINCT 53 AS col0 FROM tab2, tab1 AS cor0
----
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col2 + + col1 col2 FROM tab1 AS cor0
----
2942
3259
9229

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col2 col0 FROM tab1 AS cor0
----
-28
-47
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-6007
SELECT - col1 + col1 DIV + 83 AS col0 FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-6007
SELECT - col1 + col1 / + 83 AS col0 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT 89 + - 86 FROM tab2, tab1 cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query I rowsort
SELECT ( tab0.col1 ) AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

onlyif mysql # use DIV operator for integer division
query I rowsort label-6010
SELECT + + tab2.col1 DIV + tab2.col1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to da8a72a7967c0c73d91239275230aed9

skipif mysql # not compatible
query I rowsort label-6010
SELECT + + tab2.col1 / + tab2.col1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to da8a72a7967c0c73d91239275230aed9

query I rowsort
SELECT + - ( - 74 ) * - col1 FROM tab0 AS cor0
----
-6364
-6734
-7178

query I rowsort
SELECT + col0 * - 44 FROM tab0 cor0
----
-1056
-1540
-3916

query I rowsort
SELECT ALL + 12 * col0 FROM tab0 AS cor0
----
1068
288
420

query I rowsort
SELECT 19 * 96 FROM tab2 AS cor0
----
1824
1824
1824

query I rowsort
SELECT ALL col0 * - col0 AS col0 FROM tab0
----
-1225
-576
-7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6016
SELECT ALL + col1 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6016
SELECT ALL + col1 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 6 FROM tab2, tab0 AS cor0
----
6

query I rowsort
SELECT DISTINCT tab0.col0 * 7 FROM tab0
----
168
245
623

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 * - col2 col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT + + col2 * - col1 + + cor0.col0 AS col0 FROM tab2 cor0
----
-1456
-567
-830

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6021
SELECT - col2 + + CAST( col0 AS SIGNED ) * col0 FROM tab1 AS cor0
----
-45
4039
6304

skipif mysql # not compatible
query I rowsort label-6021
SELECT - col2 + + CAST ( col0 AS INTEGER ) * col0 FROM tab1 AS cor0
----
-45
4039
6304

query I rowsort
SELECT ALL + cor0.col2 + ( col0 * col1 + col2 * + col2 ) AS col1 FROM tab1 AS cor0
----
10352
3048
3946

query I rowsort
SELECT ALL col0 * - 16 - + 93 * cor0.col2 AS col2 FROM tab0 AS cor0
----
-3453
-653
-9050

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 + col0 + - col1 * + ( col0 + + col1 ) AS col1 FROM tab2 AS cor0
----
-1171
-1553
-8005

query I rowsort
SELECT ALL + col2 * + cor0.col0 + - col0 + col2 FROM tab1 AS cor0
----
213
3641
7696

query I rowsort
SELECT - - col2 + + 69 AS col0 FROM tab1 AS cor0
----
123
126
165

query I rowsort
SELECT DISTINCT - col1 - - ( col0 ) FROM tab1 AS cor0
----
-23
54
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + 32 col1 FROM tab0 AS cor0
----
1120
2848
768

onlyif mysql # use DIV operator for integer division
query I rowsort label-6030
SELECT ALL + col2 + + 84 DIV + col2 FROM tab1 AS cor0
----
55
58
96

skipif mysql # not compatible
query I rowsort label-6030
SELECT ALL + col2 + + 84 / + col2 FROM tab1 AS cor0
----
55
58
96

query I rowsort
SELECT - - col1 + ( + col2 * col1 ) AS col2 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT DISTINCT - cor0.col0 + col1 + + 45 * - col2 AS col1 FROM tab2 AS cor0
----
-1189
-1191
-1772

query I rowsort
SELECT ALL + + col0 - - col0 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT DISTINCT + col2 + cor0.col1 * + 83 AS col0 FROM tab2 AS cor0
----
1449
2600
4923

query I rowsort
SELECT DISTINCT + col0 * + ( + col2 * - cor0.col1 ) AS col1 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT - col1 + - ( + col1 ) * col2 FROM tab2 AS cor0
----
-1593
-663
-868

query I rowsort
SELECT ALL - 25 * - 81 FROM tab0 cor0
----
2025
2025
2025

query I rowsort
SELECT col2 * - 9 AS col1 FROM tab2 cor0
----
-234
-243
-342

query I rowsort
SELECT ALL - ( col1 ) FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT col1 * + cor0.col2 + - col2 * - col2 FROM tab1 cor0
----
10464
3819
4320

query I rowsort
SELECT 65 AS col1 FROM tab1 AS cor0
----
65
65
65

query I rowsort
SELECT DISTINCT col0 * col2 - - col0 AS col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT DISTINCT - 22 FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
-22

query I rowsort
SELECT col1 - - ( - tab0.col0 ) * col1 * - ( col1 ) FROM tab0
----
177590
329412
737100

query I rowsort
SELECT + + col2 + + cor0.col2 + col2 FROM tab0 cor0
----
246
3
99

query I rowsort
SELECT DISTINCT + 81 * cor0.col1 AS col0 FROM tab0 AS cor0
----
6966
7371
7857

query I rowsort
SELECT - col1 * col1 * col2 AS col0 FROM tab1 AS cor0
----
-16224
-36504
-5700

query I rowsort
SELECT ALL - 85 * + cor0.col0 FROM tab1 AS cor0
----
-255
-5440
-6800

query I rowsort
SELECT DISTINCT col0 * - col0 AS col2 FROM tab1 cor0
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT - col1 - + col2 AS col2 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT + + cor0.col1 + cor0.col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT + + ( + col0 ) * ( + 82 ) FROM tab1 AS cor0
----
246
5248
6560

query I rowsort
SELECT ALL col2 * - col1 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 65 col1 FROM tab1 cor0
----
65

query I rowsort
SELECT col2 - - col2 AS col1 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT DISTINCT + col2 + + col1 AS col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT + - col1 + col2 AS col0 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT ALL 58 * - col2 - + col1 AS col1 FROM tab0
----
-155
-2000
-4847

onlyif mysql # use DIV operator for integer division
query I rowsort label-6059
SELECT ALL col2 * col2 * - 71 - - 64 DIV col0 FROM tab1
----
-207015
-230678
-654336

skipif mysql # not compatible
query I rowsort label-6059
SELECT ALL col2 * col2 * - 71 - - 64 / col0 FROM tab1
----
-207015
-230678
-654336

onlyif mysql # use DIV operator for integer division
query I rowsort label-6060
SELECT DISTINCT col1 DIV - col1 - 83 AS col0 FROM tab1
----
-84

skipif mysql # not compatible
query I rowsort label-6060
SELECT DISTINCT col1 / - col1 - 83 AS col0 FROM tab1
----
-84

query I rowsort
SELECT 7 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607

query I rowsort
SELECT ALL + col2 + 13 * col0 FROM tab2 AS cor0
----
1040
1065
118

onlyif mysql # use DIV operator for integer division
query I rowsort label-6063
SELECT DISTINCT - 88 DIV col1 + + col0 FROM tab0
----
23
35
89

skipif mysql # not compatible
query I rowsort label-6063
SELECT DISTINCT - 88 / col1 + + col0 FROM tab0
----
23
35
89

query I rowsort
SELECT ALL + col0 + col2 FROM tab2
----
104
117
34

query I rowsort
SELECT - - cor0.col0 * 99 + + col2 FROM tab2 AS cor0
----
720
7748
7859

query I rowsort
SELECT DISTINCT col1 * col1 - + 37 FROM tab2
----
252
3444
924

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6067
SELECT - col2 * ( - ( + col0 ) ) + CAST( - col1 AS SIGNED ) * col0 FROM tab2 AS cor0
----
-2574
-28
1659

skipif mysql # not compatible
query I rowsort label-6067
SELECT - col2 * ( - ( + col0 ) ) + CAST ( - col1 AS INTEGER ) * col0 FROM tab2 AS cor0
----
-2574
-28
1659

query I rowsort
SELECT 24 * - 0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT - col2 * - col0 * 95 + - col0 + - col0 FROM tab2
----
17941
192504
285032

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col2 * + col1 * col2 col1 FROM tab1
----
119808
32490
75816

query I rowsort
SELECT + col0 + tab0.col0 FROM tab0
----
178
48
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-6072
SELECT col0 DIV + col2 AS col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6072
SELECT col0 / + col2 AS col0 FROM tab1
----
0
0
1

query I rowsort
SELECT ALL col1 * - col1 * + col1 AS col2 FROM tab0
----
-636056
-753571
-912673

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6074
SELECT DISTINCT CAST( 55 AS SIGNED ) AS col1 FROM tab1, tab2 cor0
----
55

skipif mysql # not compatible
query I rowsort label-6074
SELECT DISTINCT CAST ( 55 AS INTEGER ) AS col1 FROM tab1, tab2 cor0
----
55

query I rowsort
SELECT DISTINCT col1 * - col1 FROM tab2
----
-289
-3481
-961

onlyif mysql # use DIV operator for integer division
query I rowsort label-6076
SELECT DISTINCT + col0 DIV + 35 AS col0 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-6076
SELECT DISTINCT + col0 / + 35 AS col0 FROM tab0
----
0
1
2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6077
SELECT DISTINCT - col1 + CAST( + col2 AS SIGNED ) + col1 AS col2 FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-6077
SELECT DISTINCT - col1 + CAST ( + col2 AS INTEGER ) + col1 AS col2 FROM tab2
----
26
27
38

query I rowsort
SELECT ALL + col0 + tab0.col2 FROM tab0
----
171
36
57

query I rowsort
SELECT 42 FROM tab2, tab2 AS cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query I rowsort
SELECT + cor0.col0 * col1 AS col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT + - col1 * 15 FROM tab0 AS cor0
----
-1290
-1365
-1455

query I rowsort
SELECT + cor0.col2 + col2 * - col2 AS col2 FROM tab0 cor0
----
-1056
-6642
0

query I rowsort
SELECT DISTINCT + + col1 + col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT - - col0 * + 22 + 23 FROM tab1 AS cor0
----
1431
1783
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col2 col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT col2 + col2 AS col2 FROM tab0 cor0
----
164
2
66

query I rowsort
SELECT DISTINCT - cor0.col0 * + col1 * col1 FROM tab2 cor0
----
-22831
-271518
-6727

query I rowsort
SELECT 34 AS col0 FROM tab0
----
34
34
34

query I rowsort
SELECT DISTINCT 60 AS col2 FROM tab0
----
60

query I rowsort
SELECT + 16 AS col2 FROM tab0
----
16
16
16

query I rowsort
SELECT DISTINCT + 66 AS col1 FROM tab2, tab0, tab2 AS cor0, tab2 AS cor1
----
66

query I rowsort
SELECT ( + col2 ) FROM tab2
----
26
27
38

query I rowsort
SELECT ALL - col2 * + cor0.col0 + + col1 FROM tab2 cor0
----
-158
-1969
-2985

onlyif mysql # use DIV operator for integer division
query I rowsort label-6094
SELECT ALL - 63 DIV + 44 + + col1 DIV ( col2 ) + + cor0.col0 AS col2 FROM tab1 cor0
----
2
63
79

skipif mysql # not compatible
query I rowsort label-6094
SELECT ALL - 63 / + 44 + + col1 / ( col2 ) + + cor0.col0 AS col2 FROM tab1 cor0
----
2
63
79

query I rowsort
SELECT ALL cor0.col0 FROM tab1, tab0 AS cor0, tab1 cor1, tab2 AS cor2
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994

query I rowsort
SELECT + cor2.col0 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b

onlyif mysql # use DIV operator for integer division
query I rowsort label-6097
SELECT ALL col1 DIV ( col1 ) + 33 FROM tab2 AS cor0
----
34
34
34

skipif mysql # not compatible
query I rowsort label-6097
SELECT ALL col1 / ( col1 ) + 33 FROM tab2 AS cor0
----
34
34
34

query I rowsort
SELECT DISTINCT + col1 * col1 + col1 AS col2 FROM tab2 AS cor0
----
306
3540
992

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( 47 AS REAL ) FROM tab1
----
-47
-47
-47

query I rowsort
SELECT ALL ( col1 ) * - col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT ( - col2 ) AS col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ALL - 53 * - col2 FROM tab2 AS cor0
----
1378
1431
2014

onlyif mysql # use DIV operator for integer division
query I rowsort label-6103
SELECT ALL col0 + + cor0.col0 DIV 14 AS col2 FROM tab2 AS cor0
----
7
83
84

skipif mysql # not compatible
query I rowsort label-6103
SELECT ALL col0 + + cor0.col0 / 14 AS col2 FROM tab2 AS cor0
----
7
83
84

query I rowsort
SELECT + - 57 AS col1 FROM tab0 AS cor0
----
-57
-57
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 35 + - cor0.col0 col1 FROM tab0 AS cor0
----
-54
0
11

query I rowsort
SELECT - 13 AS col1 FROM tab2 AS cor0
----
-13
-13
-13

query I rowsort
SELECT ALL - 32 AS col2 FROM tab0 AS cor0
----
-32
-32
-32

query I rowsort
SELECT ALL col2 + col0 * - tab0.col2 FROM tab0
----
-34
-7216
-759

query I rowsort
SELECT DISTINCT - - col1 + + col1 AS col1 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT DISTINCT + col1 + col2 * col1 AS col2 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT - 64 * + cor0.col2 AS col1 FROM tab2 AS cor0
----
-1664
-1728
-2432

query I rowsort
SELECT DISTINCT ( + 92 + + tab1.col1 ) FROM tab1
----
102
105
118

query I rowsort
SELECT ALL col0 * cor0.col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-6114
SELECT col1 DIV col2 FROM tab0 cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-6114
SELECT col1 / col2 FROM tab0 cor0
----
1
2
97

query I rowsort
SELECT ALL + - cor0.col1 * - col1 * col2 AS col2 FROM tab1 AS cor0
----
16224
36504
5700

query I rowsort
SELECT + 72 * col1 + col1 FROM tab1 AS cor0
----
1898
730
949

onlyif mysql # use DIV operator for integer division
query I rowsort label-6117
SELECT - cor0.col1 + - col2 DIV CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
-17
-34
-59

skipif mysql # not compatible
query I rowsort label-6117
SELECT - cor0.col1 + - col2 / CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
-17
-34
-59

query I rowsort
SELECT - 86 + - col0 * - col1 AS col1 FROM tab0 cor0
----
1978
3309
8013

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 col0 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT - col1 * 83 FROM tab2 AS cor0
----
-1411
-2573
-4897

query I rowsort
SELECT + 86 * ( col1 ) FROM tab2
----
1462
2666
5074

query I rowsort
SELECT ALL tab1.col1 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT DISTINCT - 37 * - cor0.col1 + - cor0.col2 + cor0.col1 FROM tab2, tab2 AS cor0
----
1151
2216
608

query I rowsort
SELECT + - ( cor0.col0 ) * + col0 AS col1 FROM tab2 cor0
----
-49
-6084
-6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-6125
SELECT cor0.col1 DIV - 96 + 79 FROM tab1, tab0 AS cor0
----
9 values hashing to 13cc1c5cbd86dc57ea1ca04405b63dd8

skipif mysql # not compatible
query I rowsort label-6125
SELECT cor0.col1 / - 96 + 79 FROM tab1, tab0 AS cor0
----
9 values hashing to 13cc1c5cbd86dc57ea1ca04405b63dd8

onlyif mysql # use DIV operator for integer division
query I rowsort label-6126
SELECT cor1.col0 * 34 DIV 58 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c2f519c869d5ddad1d25f71b78db422b

skipif mysql # not compatible
query I rowsort label-6126
SELECT cor1.col0 * 34 / 58 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c2f519c869d5ddad1d25f71b78db422b

query I rowsort
SELECT - col0 * col2 AS col2 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL - 87 AS col2 FROM tab0 AS cor0
----
-87
-87
-87

query I rowsort
SELECT 80 AS col0 FROM tab1
----
80
80
80

query I rowsort
SELECT col1 + - col0 AS col2 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT - + col1 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT - 40 * - 84 FROM tab1
----
3360

query I rowsort
SELECT - 12 * + col1 FROM tab0
----
-1032
-1092
-1164

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6134
SELECT + col2 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6134
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-6135
SELECT - cor0.col1 * 93 DIV - 95 FROM tab0 AS cor0
----
84
89
94

skipif mysql # not compatible
query I rowsort label-6135
SELECT - cor0.col1 * 93 / - 95 FROM tab0 AS cor0
----
84
89
94

query I rowsort
SELECT + + col1 * - 62 AS col2 FROM tab0 AS cor0
----
-5332
-5642
-6014

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + 3 * 12 col2 FROM tab2 AS cor0
----
62
63
74

query I rowsort
SELECT - col2 * 76 FROM tab0 AS cor0
----
-2508
-6232
-76

onlyif mysql # use DIV operator for integer division
query I rowsort label-6139
SELECT DISTINCT - 44 DIV + col2 AS col2 FROM tab0
----
-1
-44
0

skipif mysql # not compatible
query I rowsort label-6139
SELECT DISTINCT - 44 / + col2 AS col2 FROM tab0
----
-1
-44
0

query I rowsort
SELECT ALL - 9 FROM tab1
----
-9
-9
-9

query I rowsort
SELECT ALL cor0.col1 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT - tab0.col0 * + col0 + tab0.col0 FROM tab0
----
-1190
-552
-7832

query I rowsort
SELECT + 10 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176

query I rowsort
SELECT ALL - tab2.col0 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

query I rowsort
SELECT DISTINCT + col0 * tab2.col0 * col0 AS col0 FROM tab2
----
343
474552
493039

query I rowsort
SELECT DISTINCT - - col1 * + col0 AS col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT cor0.col0 + + ( + cor0.col2 ) * col0 * + cor0.col2 FROM tab0 AS cor0
----
26160
598525
70

query I rowsort
SELECT ALL col1 * - col1 AS col0 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT ALL col1 * - 27 AS col0 FROM tab2
----
-1593
-459
-837

query I rowsort
SELECT ALL + col0 * col1 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT col2 * + 25 FROM tab1 AS cor0
----
1350
1425
2400

query I rowsort
SELECT ALL - col1 * + col2 + ( - col2 ) * col1 FROM tab2 AS cor0
----
-1292
-1674
-3068

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 - 46 * + col2 col1 FROM tab0 AS cor0
----
-1518
-3772
-46

query I rowsort
SELECT DISTINCT + 80 + col0 + col1 FROM tab0 AS cor0
----
190
212
260

query I rowsort
SELECT + ( + col1 ) + col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT DISTINCT 28 AS col1 FROM tab1 AS cor0
----
28

query I rowsort
SELECT + 9 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to ebef7303942834ca1e6ca8604ec18a07

query I rowsort
SELECT - 86 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 9d2e1e8eda15b3b83dd7136dfc4f19af

query I rowsort
SELECT DISTINCT tab2.col0 * tab2.col1 * col1 FROM tab2
----
22831
271518
6727

query I rowsort
SELECT ALL cor1.col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT col2 * 70 FROM tab0 AS cor0
----
2310
5740
70

query I rowsort
SELECT DISTINCT - - 74 FROM tab2, tab0, tab1 AS cor0, tab1
----
74

query I rowsort
SELECT ALL - col2 * 73 AS col2 FROM tab2
----
-1898
-1971
-2774

onlyif mysql # use DIV operator for integer division
query I rowsort label-6165
SELECT + col1 DIV tab2.col0 + - col2 FROM tab2
----
-23
-26
-38

skipif mysql # not compatible
query I rowsort label-6165
SELECT + col1 / tab2.col0 + - col2 FROM tab2
----
-23
-26
-38

query I rowsort
SELECT - cor0.col0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

query I rowsort
SELECT - - col0 + + 41 * col1 FROM tab1 cor0
----
1069
474
613

query I rowsort
SELECT DISTINCT + 92 + tab1.col2 AS col1 FROM tab1, tab2 AS cor0
----
146
149
188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor1.col2 col1 FROM tab1, tab1 AS cor0, tab2, tab1 AS cor1
----
81 values hashing to 2df272448a67587d4635afedff278dcc

onlyif mysql # use DIV operator for integer division
query I rowsort label-6170
SELECT ALL - col2 DIV - col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6170
SELECT ALL - col2 / - col2 FROM tab0
----
1
1
1

query I rowsort
SELECT - ( - col0 ) * + col0 * - 79 FROM tab2 AS cor0
----
-3871
-480636
-493039

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6172
SELECT ALL - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6172
SELECT ALL - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 37 + + col2 FROM tab0 AS cor0
----
-36
-4
45

query I rowsort
SELECT DISTINCT ( ( cor0.col2 ) ) AS col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT - 41 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
2214
2337
3936

query I rowsort
SELECT ALL 43 * + 17 * col0 AS col1 FROM tab2 AS cor0
----
5117
57018
57749

query I rowsort
SELECT - 7 FROM tab1 AS cor0
----
-7
-7
-7

onlyif mysql # use DIV operator for integer division
query I rowsort label-6178
SELECT - ( - col1 ) DIV + col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6178
SELECT - ( - col1 ) / + col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

onlyif mysql # use DIV operator for integer division
query I rowsort label-6180
SELECT + ( + col1 ) - + 14 DIV cor0.col0 FROM tab2 AS cor0
----
17
29
59

skipif mysql # not compatible
query I rowsort label-6180
SELECT + ( + col1 ) - + 14 / cor0.col0 FROM tab2 AS cor0
----
17
29
59

query I rowsort
SELECT - - col1 + col2 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT + cor0.col1 * col2 + ( ( col1 ) ) AS col2 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT + cor0.col1 * + col2 * - col1 + 21 FROM tab2 cor0
----
-10961
-25926
-90485

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6184
SELECT col1 + + col2 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6184
SELECT col1 + + col2 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col2 + - col2 * + 7 * - 61 AS col1 FROM tab0 AS cor0
----
14124
35096
428

query I rowsort
SELECT + 45 AS col1 FROM tab1 AS cor0
----
45
45
45

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 cor0, tab0 cor1
----
243 values hashing to b3323704f6873113d863f8e27386b356

query I rowsort
SELECT DISTINCT - 69 FROM tab2, tab1 AS cor0, tab0 AS cor1, tab0, tab0 AS cor2
----
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col2 col0 FROM tab2 cor0
----
1444
676
729

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0, tab0 cor1, tab2 AS cor2
----
972 values hashing to a9068b700464993db9fae6f630605fde

query I rowsort
SELECT - col1 * - col0 + col2 FROM tab1
----
1136
132
697

query I rowsort
SELECT ALL + col2 * - col1 - col2 * tab2.col2 AS col2 FROM tab2
----
-1566
-2090
-2210

query I rowsort
SELECT - col1 + - col2 * + col0 FROM tab1 AS cor0
----
-188
-3658
-7693

onlyif mysql # use DIV operator for integer division
query I rowsort label-6194
SELECT ALL - col0 * col0 + - col0 DIV + col0 AS col0 FROM tab0 AS cor0
----
-1226
-577
-7922

skipif mysql # not compatible
query I rowsort label-6194
SELECT ALL - col0 * col0 + - col0 / + col0 AS col0 FROM tab0 AS cor0
----
-1226
-577
-7922

query I rowsort
SELECT DISTINCT + col1 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
20
26
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 31 + cor0.col0 * col0 col2 FROM tab2 AS cor0
----
18
6053
6210

query I rowsort
SELECT DISTINCT ( - 61 ) + - col2 FROM tab2 AS cor0
----
-87
-88
-99

query I rowsort
SELECT - + col1 + 29 * + col1 AS col1 FROM tab1 AS cor0
----
280
364
728

query I rowsort
SELECT ALL - + ( ( col0 ) ) FROM tab0 AS cor0
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-6200
SELECT DISTINCT - col2 DIV - col0 col2 FROM tab0 AS cor0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6200
SELECT DISTINCT - col2 / - col0 col2 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT ALL + col1 * + col0 + col2 FROM tab1 AS cor0
----
1136
132
697

onlyif mysql # use DIV operator for integer division
query I rowsort label-6202
SELECT ALL - col2 DIV cor0.col1 + + ( col0 ) * - col0 AS col1 FROM tab2 AS cor0
----
-49
-6084
-6243

skipif mysql # not compatible
query I rowsort label-6202
SELECT ALL - col2 / cor0.col1 + + ( col0 ) * - col0 AS col1 FROM tab2 AS cor0
----
-49
-6084
-6243

query I rowsort
SELECT - col0 + + col2 * + col2 FROM tab0 AS cor0
----
-34
1065
6635

query I rowsort
SELECT DISTINCT col0 * + col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL - col2 * - col0 * col0 FROM tab2 cor0
----
1323
158184
237158

query I rowsort
SELECT - 8 * + col0 + col1 * + 52 AS col2 FROM tab1 cor0
----
1328
36
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 67 col0 FROM tab2 AS cor0
----
-67
-67
-67

query I rowsort
SELECT DISTINCT col0 * col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL 86 * + col1 * + col0 + 93 FROM tab2 AS cor0
----
115591
18755
395865

query I rowsort
SELECT DISTINCT cor0.col1 * col1 + cor0.col1 * col2 FROM tab2 AS cor0
----
1798
5015
935

query I rowsort
SELECT 36 - + col1 AS col0 FROM tab0 AS cor0
----
-50
-55
-61

query I rowsort
SELECT DISTINCT - - col1 * - col0 + cor0.col0 AS col1 FROM tab2 AS cor0
----
-1264
-210
-4524

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 55 col2 FROM tab1
----
55
55
55

query I rowsort
SELECT ( tab1.col2 ) + col0 FROM tab1
----
121
176
57

query I rowsort
SELECT + - col2 * + col0 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT - col1 + 98 AS col1 FROM tab2
----
39
67
81

query I rowsort
SELECT ALL + col1 * ( + 0 ) + + col1 * - col2 + col0 AS col2 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT cor0.col2 * col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT - tab0.col0 AS col1 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT - - col2 * 1 AS col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT + col2 * + col2 FROM tab1 AS cor0
----
2916
3249
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 - + 57 col1 FROM tab2 AS cor0
----
-19
-30
-31

query I rowsort
SELECT col0 * - 66 AS col2 FROM tab1 AS cor0
----
-198
-4224
-5280

query I rowsort
SELECT DISTINCT - col2 + 8 * col2 FROM tab0 AS cor0
----
231
574
7

query I rowsort
SELECT col2 - col1 AS col0 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT - 93 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

onlyif mysql # use DIV operator for integer division
query I rowsort label-6227
SELECT DISTINCT + col0 * col1 * col1 + + col0 DIV + 29 AS col0 FROM tab1 AS cor0
----
13522
2028
6402

skipif mysql # not compatible
query I rowsort label-6227
SELECT DISTINCT + col0 * col1 * col1 + + col0 / + 29 AS col0 FROM tab1 AS cor0
----
13522
2028
6402

query I rowsort
SELECT ALL 27 * 48 AS col0 FROM tab1 cor0
----
1296
1296
1296

query I rowsort
SELECT DISTINCT - col0 * + col1 + col2 AS col1 FROM tab2 AS cor0
----
-1305
-190
-4576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( cor0.col2 ) col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT + ( ( - col2 ) ) - - col2 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - col2 * col2 - 13 FROM tab1
----
-2929
-3262
-9229

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * ( col2 + col2 ) * + ( + 54 ) col0 FROM tab0
----
-3780
-788184
-85536

query I rowsort
SELECT DISTINCT 98 FROM tab1, tab0 cor0
----
98

query I rowsort
SELECT DISTINCT + + 23 * col0 FROM tab0 AS cor0
----
2047
552
805

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 cor0, tab0 AS cor1, tab2 cor2
----
972 values hashing to d41be7437523f0dba2158c7f0439f329

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + ( + col0 ) ) col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT 59 * col0 + col2 * ( + col0 ) AS col2 FROM tab0 AS cor0
----
12549
2100
2208

query I rowsort
SELECT ALL - col2 * - 25 AS col2 FROM tab0 AS cor0
----
2050
25
825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL - - 86 * cor0.col1 AS col2 FROM tab1 AS cor0
----
1118
2236
860

query I rowsort
SELECT ALL cor0.col2 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT + ( 62 ) + col1 AS col0 FROM tab2 AS cor0
----
121
79
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 74 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 5a567947d14593676e3825756f8e6130

query I rowsort
SELECT ALL 57 + 4 FROM tab0
----
61
61
61

query I rowsort
SELECT DISTINCT 6 FROM tab0, tab0 AS cor0
----
6

query I rowsort
SELECT + col1 * + col0 + col1 * ( - col2 ) AS col0 FROM tab1 AS cor0
----
-1326
-208
70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6248
SELECT + CAST( - col0 AS SIGNED ) AS col1 FROM tab2
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-6248
SELECT + CAST ( - col0 AS INTEGER ) AS col1 FROM tab2
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-6249
SELECT + ( - 52 + col2 ) DIV + col0 AS col1 FROM tab2
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-6249
SELECT + ( - 52 + col2 ) / + col0 AS col1 FROM tab2
----
-3
0
0

query I rowsort
SELECT DISTINCT + + col1 * 43 * col1 AS col1 FROM tab1 AS cor0
----
29068
4300
7267

query I rowsort
SELECT ALL - ( + col1 ) FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT + - ( + col1 ) * + col0 AS col2 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT + tab2.col2 * col2 AS col2 FROM tab2
----
1444
676
729

query I rowsort
SELECT ALL 14 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query I rowsort
SELECT ALL 98 * - col1 FROM tab1
----
-1274
-2548
-980

query I rowsort
SELECT DISTINCT col0 * + 37 FROM tab2
----
259
2886
2923

query I rowsort
SELECT ALL - 13 + col2 AS col0 FROM tab2
----
13
14
25

query I rowsort
SELECT 28 - col1 AS col2 FROM tab2
----
-3
-31
11

query I rowsort
SELECT DISTINCT 51 FROM tab0, tab2, tab2 AS cor0
----
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-6260
SELECT + col1 DIV - col1 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6260
SELECT + col1 / - col1 FROM tab0 cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - col0 * 7 AS col2 FROM tab2 cor0
----
-49
-546
-553

query I rowsort
SELECT ALL col0 + ( + ( - col1 ) + + 26 ) * 26 AS col1 FROM tab0 AS cor0
----
-1536
-1601
-1811

query I rowsort
SELECT + col1 * + 84 AS col0 FROM tab2 cor0
----
1428
2604
4956

query I rowsort
SELECT DISTINCT + col1 * - col1 + col0 FROM tab1
----
-36
-673
-89

query I rowsort
SELECT col2 + - tab0.col2 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + col0 * - col2 + col1 * + 43 + - col0 FROM tab1
----
-3282
-7201
953

query I rowsort
SELECT DISTINCT + tab1.col2 * col0 * 70 + col1 FROM tab1
----
11366
255370
537613

query I rowsort
SELECT DISTINCT - tab0.col0 * col1 + + col2 FROM tab0
----
-2031
-3394
-8017

query I rowsort
SELECT 18 + tab1.col2 AS col2 FROM tab1
----
114
72
75

query I rowsort
SELECT - col0 * - col2 - - col1 AS col2 FROM tab0
----
132
7389
878

query I rowsort
SELECT ( col0 * + col2 ) AS col2 FROM tab0
----
35
7298
792

query I rowsort
SELECT - 41 + + col1 AS col2 FROM tab0
----
45
50
56

query IIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab1 cor1
----
243 values hashing to 89e3b35a4a4f02d7b83645addb9dcdc3

query I rowsort
SELECT + col0 + 82 AS col2 FROM tab1
----
146
162
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6275
SELECT ALL - CAST( NULL AS DECIMAL ) AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6275
SELECT ALL - CAST ( NULL AS REAL ) AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL - 64 + + 93 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT DISTINCT ( 17 * cor0.col0 ) AS col1 FROM tab2, tab1 cor0
----
1088
1360
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6278
SELECT ALL + col0 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6278
SELECT ALL + col0 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6279
SELECT - col2 DIV - col1 AS col0 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6279
SELECT - col2 / - col1 AS col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL col1 + + ( - col0 * - col1 + - col1 ) FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-6281
SELECT ALL + + col1 DIV col0 FROM tab2 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-6281
SELECT ALL + + col1 / col0 FROM tab2 AS cor0
----
0
0
4

query I rowsort
SELECT col2 * 93 AS col0 FROM tab0 AS cor0
----
3069
7626
93

query I rowsort
SELECT + cor0.col0 * col1 AS col0 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT ALL col1 + 81 * cor0.col2 * - col2 FROM tab2 AS cor0
----
-116947
-54697
-59018

query I rowsort
SELECT - - cor0.col1 * 58 FROM tab0 AS cor0
----
4988
5278
5626

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab2 AS cor1, tab2 AS cor2
----
972 values hashing to a47a9db07c7de4927c7c28efb4cd13f2

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1, tab1 AS cor0, tab1 AS cor1
----
972 values hashing to a8481bfbfcb330825976c5896e54bc19

query I rowsort
SELECT 82 FROM tab2 cor0
----
82
82
82

query I rowsort
SELECT DISTINCT + - ( + col2 ) + col1 FROM tab2 AS cor0
----
-21
33
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * cor0.col2 + 14 col2 FROM tab0 AS cor0
----
1103
15
6738

query I rowsort
SELECT + col0 * - 36 FROM tab2 AS cor0
----
-252
-2808
-2844

query I rowsort
SELECT - + col1 * col1 FROM tab2 AS cor0
----
-289
-3481
-961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * + 77 - col0 col2 FROM tab2 AS cor0
----
-546
-6084
-6162

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6294
SELECT DISTINCT - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6294
SELECT DISTINCT - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 71 + 13 * - cor0.col0 FROM tab1 AS cor0
----
-761
-969
32

query I rowsort
SELECT + + col1 + col2 FROM tab1 AS cor0
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6297
SELECT - col1 + col0 DIV + col2 AS col1 FROM tab1 AS cor0
----
-13
-26
-9

skipif mysql # not compatible
query I rowsort label-6297
SELECT - col1 + col0 / + col2 AS col1 FROM tab1 AS cor0
----
-13
-26
-9

query I rowsort
SELECT ALL ( + col1 ) AS col0 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT col0 + + col1 * + col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT + 90 * col0 AS col0 FROM tab2 AS cor0
----
630
7020
7110

query I rowsort
SELECT DISTINCT + ( + col0 ) * col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL - cor0.col2 + cor0.col2 * col1 AS col0 FROM tab1 cor0
----
1152
1350
513

query I rowsort
SELECT DISTINCT + + ( + ( col1 ) ) FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT - 97 FROM tab1 AS cor0
----
-97
-97
-97

query I rowsort
SELECT ALL + col2 + col2 * + 20 FROM tab1
----
1134
1197
2016

query I rowsort
SELECT DISTINCT tab2.col1 + ( col0 ) * - col1 AS col0 FROM tab2
----
-1326
-186
-4543

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 59 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT - col0 + + col1 AS col1 FROM tab0
----
2
62
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6309
SELECT CAST( NULL AS SIGNED ) + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6309
SELECT CAST ( NULL AS INTEGER ) + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 95 FROM tab1 AS cor0
----
-95
-95
-95

query I rowsort
SELECT - ( + tab0.col1 + col1 ) FROM tab0
----
-172
-182
-194

query I rowsort
SELECT col0 * col0 + ( + 37 ) FROM tab0 cor0
----
1262
613
7958

query I rowsort
SELECT ALL - + 14 AS col1 FROM tab2 AS cor0
----
-14
-14
-14

query I rowsort
SELECT - col1 * - col2 + cor0.col0 FROM tab2 AS cor0
----
1612
725
844

onlyif mysql # use DIV operator for integer division
query I rowsort label-6315
SELECT DISTINCT + cor0.col0 + + col1 * col2 DIV 41 AS col0 FROM tab0 AS cor0
----
271
37
93

skipif mysql # not compatible
query I rowsort label-6315
SELECT DISTINCT + cor0.col0 + + col1 * col2 / 41 AS col0 FROM tab0 AS cor0
----
271
37
93

query I rowsort
SELECT DISTINCT col0 * - col1 + 13 AS col2 FROM tab1 AS cor0
----
-1027
-627
-65

query I rowsort
SELECT - + 84 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
1428
2604
4956

query I rowsort
SELECT DISTINCT + 83 * + col1 AS col2 FROM tab1 cor0
----
1079
2158
830

query I rowsort
SELECT + 98 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
60
71
72

onlyif mysql # use DIV operator for integer division
query I rowsort label-6320
SELECT + col2 DIV col1 AS col1 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-6320
SELECT + col2 / col1 AS col1 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT ALL 70 FROM tab1, tab2 cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

query I rowsort
SELECT ALL + 87 FROM tab2
----
87
87
87

query I rowsort
SELECT ( col0 * col0 ) FROM tab1
----
4096
6400
9

query I rowsort
SELECT ALL - - 65 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 1c9d0bf96cd3361942fadad668138b9c

query I rowsort
SELECT ( - col1 ) AS col0 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT + 30 FROM tab1, tab0 AS cor0
----
30

query I rowsort
SELECT DISTINCT + tab2.col2 AS col2 FROM tab2, tab2 cor0, tab2 AS cor1
----
26
27
38

query I rowsort
SELECT - ( + col2 ) * + cor0.col2 AS col1 FROM tab0 cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL 4 + 68 FROM tab1, tab0 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query I rowsort
SELECT + col0 * col1 + - col1 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT col2 + + 14 * + 26 FROM tab1 AS cor0
----
418
421
460

query I rowsort
SELECT DISTINCT + 69 * col0 + + col1 AS col1 FROM tab0
----
1742
2512
6232

query I rowsort
SELECT - ( - col1 ) + - col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT DISTINCT - cor0.col0 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
-24
-35
-89

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab0 cor1, tab0 AS cor2
----
972 values hashing to 04d825fa29899c3ee2704c26a542267d

query I rowsort
SELECT + 51 * ( col0 ) * + cor0.col0 + ( col0 ) * - col1 FROM tab0 AS cor0
----
27312
395872
59080

query I rowsort
SELECT - - col0 * + col2 + - col0 + + col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL + col1 * col2 + + col2 * col2 * col2 AS col1 FROM tab1 AS cor0
----
158868
185763
885984

onlyif mysql # use DIV operator for integer division
query I rowsort label-6339
SELECT + 78 * col1 - ( - tab0.col0 ) DIV col0 AS col0 FROM tab0
----
6709
7099
7567

skipif mysql # not compatible
query I rowsort label-6339
SELECT + 78 * col1 - ( - tab0.col0 ) / col0 AS col0 FROM tab0
----
6709
7099
7567

query I rowsort
SELECT - + col0 * cor0.col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT - + col2 + cor0.col1 FROM tab1 cor0
----
-28
-47
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-6342
SELECT DISTINCT + - col0 DIV cor0.col2 FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-6342
SELECT DISTINCT + - col0 / cor0.col2 FROM tab0 AS cor0
----
-1
-35
0

query I rowsort
SELECT DISTINCT col2 * + 17 AS col0 FROM tab2 AS cor0
----
442
459
646

query I rowsort
SELECT DISTINCT + col2 * - tab0.col2 * + col0 FROM tab0
----
-26136
-35
-598436

query I rowsort
SELECT DISTINCT - 79 FROM tab0
----
-79

query I rowsort
SELECT ALL + + 92 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6347
SELECT - col1 * col1 + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6347
SELECT - col1 * col1 + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 89 - + col1 FROM tab2
----
30
58
72

query I rowsort
SELECT - col1 + col2 * 50 FROM tab0
----
-47
1564
4009

query I rowsort
SELECT + col1 - + col0 * + col2 FROM tab2
----
-158
-1969
-2985

query I rowsort
SELECT DISTINCT col2 + 19 AS col2 FROM tab1
----
115
73
76

query I rowsort
SELECT col1 + - col2 FROM tab2
----
-21
33
4

query I rowsort
SELECT DISTINCT col0 + - col1 + + col2 * - col2 FROM tab1
----
-2939
-3195
-9149

query I rowsort
SELECT tab2.col2 + + 63 + - col2 AS col0 FROM tab2
----
63
63
63

query I rowsort
SELECT + col2 * - col1 + col1 + + col0 FROM tab2
----
-1397
-550
-799

query I rowsort
SELECT + - col1 + ( - col1 ) * col2 AS col0 FROM tab0 AS cor0
----
-194
-2924
-7553

query I rowsort
SELECT col2 * cor0.col0 AS col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT - col1 + ( + ( col0 ) ) * - col1 AS col2 FROM tab2 AS cor0
----
-1360
-248
-4661

query I rowsort
SELECT DISTINCT col2 * + col2 * col1 FROM tab1 AS cor0
----
119808
32490
75816

query I rowsort
SELECT DISTINCT col2 * ( col0 * col2 ) FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT DISTINCT col1 + + col1 * - col0 * col2 FROM tab1 cor0
----
-36470
-4186
-99827

query I rowsort
SELECT col2 + + 19 * col1 FROM tab1 cor0
----
247
343
548

query I rowsort
SELECT ALL + + col2 - col1 AS col1 FROM tab2 AS cor0
----
-33
-4
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-6364
SELECT DISTINCT - cor0.col0 * - col1 DIV + col1 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-6364
SELECT DISTINCT - cor0.col0 * - col1 / + col1 FROM tab2 AS cor0
----
7
78
79

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 cor0 CROSS JOIN tab1, tab0 AS cor1, tab2 AS cor2
----
3645 values hashing to b9fc7433316cc7891b52d2a23a135419

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 cor0, tab2, tab0 AS cor1
----
972 values hashing to deaaa983f771be544ffdc26f04a18657

query I rowsort
SELECT ALL + cor1.col1 * - 63 + 2 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 2a554682cb9d261d1555d341a439fb11

query I rowsort
SELECT ( - tab0.col1 + col2 ) FROM tab0
----
-53
-9
-96

query I rowsort
SELECT + - ( col1 ) + col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col1 * - col1 + - col1 FROM tab2 AS cor0
----
-306
-3540
-992

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * 88 + col2 col1 FROM tab2
----
-589
-6838
-6914

query I rowsort
SELECT ALL 6 AS col1 FROM tab1, tab1 AS cor0, tab2, tab2 AS cor1
----
81 values hashing to 44f233d1b3804e00d9436c0a41d1e2c8

query I rowsort
SELECT col2 + cor0.col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT col1 * + cor0.col1 + + col0 AS col0 FROM tab0 cor0
----
7420
8370
9444

onlyif mysql # use DIV operator for integer division
query I rowsort label-6375
SELECT DISTINCT + col2 * - cor0.col2 + col1 DIV 8 + - cor0.col1 * + cor0.col1 * col1 col0 FROM tab1 AS cor0
----
-11412
-20489
-4248

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6375
SELECT DISTINCT + col2 * - cor0.col2 + col1 / 8 + - cor0.col1 * + cor0.col1 * col1 col0 FROM tab1 AS cor0
----
-11412
-20489
-4248

query I rowsort
SELECT ALL ( tab1.col0 ) AS col1 FROM tab1
----
3
64
80

query I rowsort
SELECT DISTINCT + col0 * tab2.col2 AS col2 FROM tab2
----
189
2028
3002

query I rowsort
SELECT 15 + - col1 * + col2 FROM tab2
----
-1519
-631
-822

query I rowsort
SELECT DISTINCT + 95 AS col2 FROM tab2, tab1 AS cor0, tab0 cor1
----
95

query I rowsort
SELECT + cor0.col0 * col2 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT + 64 + col2 FROM tab1 AS cor0
----
118
121
160

onlyif mysql # use DIV operator for integer division
query I rowsort label-6382
SELECT + col2 DIV - col0 AS col0 FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6382
SELECT + col2 / - col0 AS col0 FROM tab0 cor0
----
-1
0
0

query I rowsort
SELECT + ( col1 ) * + 44 FROM tab0 AS cor0
----
3784
4004
4268

query I rowsort
SELECT ALL + - col0 * col2 + + col2 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT DISTINCT ( col2 * col0 ) FROM tab1
----
162
3648
7680

query I rowsort
SELECT - + col1 + col0 AS col1 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT + + 86 + - col0 AS col2 FROM tab1 cor0
----
22
6
83

query I rowsort
SELECT ALL cor0.col0 + col1 AS col2 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT - 42 + + col1 FROM tab0 AS cor0
----
44
49
55

query I rowsort
SELECT DISTINCT + ( col2 ) + - col2 + col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL 95 + col1 * + cor0.col0 + cor0.col1 AS col0 FROM tab0 cor0
----
2245
3587
8285

query I rowsort
SELECT ALL + + col2 * col2 AS col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT + col0 - - cor0.col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL + + col2 + - col1 + col2 AS col2 FROM tab0 AS cor0
----
-20
-95
73

query I rowsort
SELECT - - 21 * + col1 AS col1 FROM tab2 AS cor0
----
1239
357
651

query I rowsort
SELECT DISTINCT - 18 FROM tab1 cor0
----
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 * - col1 col1 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-6398
SELECT ALL + col1 DIV col0 + col2 * + col0 * col0 + cor0.col0 AS col1 FROM tab2 AS cor0
----
1334
158262
237237

skipif mysql # not compatible
query I rowsort label-6398
SELECT ALL + col1 / col0 + col2 * + col0 * col0 + cor0.col0 AS col1 FROM tab2 AS cor0
----
1334
158262
237237

query I rowsort
SELECT DISTINCT 84 FROM tab0 AS cor0
----
84

query I rowsort
SELECT ALL - cor0.col0 * + col1 + + col0 AS col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + + col2 col1 FROM tab0 cor0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-6402
SELECT ALL col0 DIV - col0 + col0 * col2 FROM tab0 AS cor0
----
34
7297
791

skipif mysql # not compatible
query I rowsort label-6402
SELECT ALL col0 / - col0 + col0 * col2 FROM tab0 AS cor0
----
34
7297
791

query I rowsort
SELECT DISTINCT - cor0.col0 * + cor0.col0 FROM tab2 AS cor0
----
-49
-6084
-6241

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6404
SELECT ALL + CAST( + col2 AS SIGNED ) * + col2 FROM tab2 AS cor0
----
1444
676
729

skipif mysql # not compatible
query I rowsort label-6404
SELECT ALL + CAST ( + col2 AS INTEGER ) * + col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT 10 * - 47 AS col0 FROM tab1 AS cor0
----
-470
-470
-470

query I rowsort
SELECT + col1 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-6407
SELECT DISTINCT col1 DIV col0 FROM tab0 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-6407
SELECT DISTINCT col1 / col0 FROM tab0 AS cor0
----
1
2
3

query I rowsort
SELECT ALL - ( ( cor0.col1 ) ) FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT - 69 AS col2 FROM tab1
----
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + col2 + + cor0.col2 + + col2 col1 FROM tab2 AS cor0
----
-1368
-624
-675

query I rowsort
SELECT + + 28 * 67 AS col1 FROM tab1 AS cor0
----
1876
1876
1876

query I rowsort
SELECT DISTINCT - col0 - + col2 FROM tab2
----
-104
-117
-34

query I rowsort
SELECT + col2 + col0 * cor0.col1 FROM tab1 cor0
----
1136
132
697

query I rowsort
SELECT ALL + - 31 * + 1 + + col0 FROM tab0 AS cor0
----
-7
4
58

query I rowsort
SELECT ( - 22 ) FROM tab2
----
-22
-22
-22

query I rowsort
SELECT + ( cor0.col1 ) FROM tab0, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 95 + + col2 col0 FROM tab2
----
121
122
133

query I rowsort
SELECT ( col0 * col0 ) + col1 + col2 FROM tab1
----
4163
6509
89

query I rowsort
SELECT - 23 + + col0 FROM tab2 cor0
----
-16
55
56

query I rowsort
SELECT - col1 + + col0 * + col1 * col0 AS col0 FROM tab0 AS cor0
----
118728
49450
720720

query I rowsort
SELECT col0 * 18 FROM tab2
----
126
1404
1422

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col1 * - 86 + + col2 col1 FROM tab1
----
1214
2290
917

query I rowsort
SELECT - ( - 5 * - col2 ) AS col1 FROM tab0
----
-165
-410
-5

query I rowsort
SELECT ALL + 88 + + col0 FROM tab0
----
112
123
177

query I rowsort
SELECT DISTINCT col0 * col0 + - col1 * + col0 AS col2 FROM tab1
----
-69
3456
5360

query I rowsort
SELECT DISTINCT + 15 + col0 FROM tab0
----
104
39
50

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 cor0, tab2 AS cor1, tab0, tab2 cor2
----
3645 values hashing to 59ca7c96f3955e014bebd08b5442edff

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6428
SELECT + CAST( - col1 AS SIGNED ) * - col1 * col1 FROM tab2 AS cor0
----
205379
29791
4913

skipif mysql # not compatible
query I rowsort label-6428
SELECT + CAST ( - col1 AS INTEGER ) * - col1 * col1 FROM tab2 AS cor0
----
205379
29791
4913

query I rowsort
SELECT - + 78 * col1 * col0 FROM tab1 AS cor0
----
-49920
-6084
-81120

query I rowsort
SELECT ALL - 51 FROM tab1, tab2 AS cor0
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6431
SELECT DISTINCT - CAST( col1 AS SIGNED ) AS col2 FROM tab0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-6431
SELECT DISTINCT - CAST ( col1 AS INTEGER ) AS col2 FROM tab0
----
-86
-91
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6432
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6432
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + tab1.col2 - - 35 FROM tab1
----
131
89
92

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1, tab0 cor0, tab2
----
972 values hashing to a9068b700464993db9fae6f630605fde

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * tab0.col2 col1 FROM tab0
----
35
7298
792

query I rowsort
SELECT ALL - tab1.col1 + ( + 59 ) FROM tab1, tab0 cor0, tab2 AS cor1
----
27 values hashing to bd857fd1e3c760db1ef7fe9c3562bf71

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6437
SELECT + CAST( + col0 * col2 AS SIGNED ) FROM tab1
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-6437
SELECT + CAST ( + col0 * col2 AS INTEGER ) FROM tab1
----
162
3648
7680

query I rowsort
SELECT DISTINCT col2 * col2 * - col1 FROM tab0
----
-611884
-93654
-97

query I rowsort
SELECT 31 AS col2 FROM tab0 AS cor0
----
31
31
31

query I rowsort
SELECT 51 + + col1 FROM tab1 AS cor0
----
61
64
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-6441
SELECT ( + col1 ) DIV - col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6441
SELECT ( + col1 ) / - col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT 45 FROM tab2 AS cor0
----
45
45
45

query I rowsort
SELECT DISTINCT - tab2.col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
-7
-78
-79

query I rowsort
SELECT DISTINCT ( tab2.col0 + + ( - ( - col2 ) ) * 70 ) AS col0 FROM tab2
----
1897
1898
2739

query I rowsort
SELECT ( - col2 + - col1 ) AS col2 FROM tab0
----
-119
-173
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-6446
SELECT - 46 DIV - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6446
SELECT - 46 / - col2 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * 37 col0 FROM tab1, tab2 cor0
----
9 values hashing to 73ee812132330de098318363c918c2c8

query I rowsort
SELECT + + col1 + + col1 * - 87 FROM tab1 AS cor0
----
-1118
-2236
-860

onlyif mysql # use DIV operator for integer division
query I rowsort label-6449
SELECT col2 DIV - col2 + - col0 FROM tab0 AS cor0
----
-25
-36
-90

skipif mysql # not compatible
query I rowsort label-6449
SELECT col2 / - col2 + - col0 FROM tab0 AS cor0
----
-25
-36
-90

query I rowsort
SELECT ALL + 53 FROM tab0
----
53
53
53

query I rowsort
SELECT DISTINCT - 75 * col1 FROM tab1 AS cor0
----
-1950
-750
-975

query I rowsort
SELECT - + col1 * ( - 29 ) + cor0.col2 FROM tab1 AS cor0
----
347
473
808

query I rowsort
SELECT col0 * + col0 + col2 AS col1 FROM tab0 AS cor0
----
1226
609
8003

onlyif mysql # use DIV operator for integer division
query I rowsort label-6454
SELECT col2 DIV 79 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6454
SELECT col2 / 79 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - tab0.col2 col0 FROM tab0
----
-9
34
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 31 + + col2 col2 FROM tab2
----
57
58
69

query I rowsort
SELECT ALL ( + col1 ) + - col2 * 63 FROM tab1
----
-3376
-3581
-6035

query I rowsort
SELECT DISTINCT - cor0.col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
-17
-31
-59

query I rowsort
SELECT - + col2 + + 88 * + col0 FROM tab0 AS cor0
----
2079
3079
7750

query I rowsort
SELECT - cor0.col0 * col2 * - col0 AS col2 FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT DISTINCT + col0 * col2 + 33 FROM tab0
----
68
7331
825

query I rowsort
SELECT ALL - col1 + tab1.col0 * tab1.col2 FROM tab1
----
136
3638
7667

query I rowsort
SELECT + 92 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

onlyif mysql # use DIV operator for integer division
query I rowsort label-6464
SELECT DISTINCT - col2 DIV col1 + col0 FROM tab2 AS cor0
----
7
77
78

skipif mysql # not compatible
query I rowsort label-6464
SELECT DISTINCT - col2 / col1 + col0 FROM tab2 AS cor0
----
7
77
78

query I rowsort
SELECT DISTINCT col0 + 18 FROM tab2 AS cor0
----
25
96
97

query I rowsort
SELECT DISTINCT - col0 * col0 - cor0.col0 AS col0 FROM tab0 cor0
----
-1260
-600
-8010

query I rowsort
SELECT DISTINCT + 12 * col0 FROM tab0 AS cor0
----
1068
288
420

query I rowsort
SELECT ALL + - 63 * + 59 + - cor0.col2 FROM tab1 AS cor0
----
-3771
-3774
-3813

query I rowsort
SELECT ALL + - col0 + + col1 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT DISTINCT + + col2 * + col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL 31 + - cor0.col2 FROM tab2 AS cor0
----
-7
4
5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6472
SELECT - + CAST( col2 AS SIGNED ) * - col0 FROM tab0 AS cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-6472
SELECT - + CAST ( col2 AS INTEGER ) * - col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT + - col1 + cor0.col0 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT ALL + + col0 + + col0 * cor0.col0 FROM tab0 cor0
----
1260
600
8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 54 col0 FROM tab1 AS cor0
----
54
54
54

query I rowsort
SELECT DISTINCT + - col2 - - col1 AS col0 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT DISTINCT - + col2 * 7 FROM tab2 AS cor0
----
-182
-189
-266

query I rowsort
SELECT DISTINCT + + col2 + col2 * col1 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT - 74 + - 33 * - col2 FROM tab0 AS cor0
----
-41
1015
2632

onlyif mysql # use DIV operator for integer division
query I rowsort label-6480
SELECT ALL + col0 + col0 DIV col1 FROM tab2 AS cor0
----
7
79
83

skipif mysql # not compatible
query I rowsort label-6480
SELECT ALL + col0 + col0 / col1 FROM tab2 AS cor0
----
7
79
83

query I rowsort
SELECT + col2 * col1 + cor0.col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT DISTINCT - - cor0.col1 + - col1 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - 9 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

query I rowsort
SELECT ALL col2 * + ( col0 ) FROM tab0
----
35
7298
792

query I rowsort
SELECT - col0 + col2 * + cor0.col1 FROM tab1 AS cor0
----
1168
1401
506

onlyif mysql # use DIV operator for integer division
query I rowsort label-6486
SELECT + col0 DIV col2 AS col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6486
SELECT + col0 / col2 AS col0 FROM tab1 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col1 col0 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT + 61 * cor0.col2 FROM tab1 AS cor0
----
3294
3477
5856

query I rowsort
SELECT DISTINCT 2 FROM tab1 AS cor0
----
2

query I rowsort
SELECT ALL col0 + col2 * ( col1 + col2 ) AS col1 FROM tab0 AS cor0
----
133
14275
3951

query I rowsort
SELECT ALL - col0 - - col0 * + col1 * col1 FROM tab1 cor0
----
13440
2025
6336

query I rowsort
SELECT ALL + col1 * - col2 FROM tab0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6493
SELECT DISTINCT cor0.col2 DIV - ( - 80 ) + col2 AS col1 FROM tab0 cor0
----
1
33
83

skipif mysql # not compatible
query I rowsort label-6493
SELECT DISTINCT cor0.col2 / - ( - 80 ) + col2 AS col1 FROM tab0 cor0
----
1
33
83

query I rowsort
SELECT - col2 + - col0 AS col2 FROM tab2 cor0
----
-104
-117
-34

query I rowsort
SELECT DISTINCT - tab2.col2 AS col1 FROM tab2, tab0 cor0
----
-26
-27
-38

query I rowsort
SELECT ALL + + col1 + col1 * - col0 AS col1 FROM tab2 AS cor0
----
-1326
-186
-4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-6497
SELECT ALL - + 32 DIV + col1 AS col0 FROM tab1 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-6497
SELECT ALL - + 32 / + col1 AS col0 FROM tab1 AS cor0
----
-1
-2
-3

query I rowsort
SELECT ALL 71 * cor0.col2 * col2 FROM tab1 cor0
----
207036
230679
654336

onlyif mysql # use DIV operator for integer division
query I rowsort label-6499
SELECT 75 DIV - col1 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-6499
SELECT 75 / - col1 FROM tab1 AS cor0
----
-2
-5
-7

query I rowsort
SELECT ALL + + 68 + col1 AS col1 FROM tab1 AS cor0
----
78
81
94

query I rowsort
SELECT DISTINCT - col0 * col1 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT + 24 AS col0 FROM tab1 AS cor0
----
24
24
24

query I rowsort
SELECT DISTINCT - col0 * col2 * col2 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT - - ( 81 ) + cor0.col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to a29ced289b11890e4c847606b90de0e9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - cor0.col1 * + 99 col0 FROM tab2 AS cor0
----
28611
344619
95139

query I rowsort
SELECT ALL - col2 * + cor0.col2 + col0 * col0 AS col1 FROM tab2 AS cor0
----
-680
4797
5408

query I rowsort
SELECT ALL - - 78 * col1 FROM tab1 AS cor0
----
1014
2028
780

query I rowsort
SELECT + - col1 * cor0.col1 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT + cor0.col0 + col1 * - col1 * - col1 AS col2 FROM tab2 AS cor0
----
205457
29798
4992

query I rowsort
SELECT DISTINCT - 81 FROM tab2 AS cor0
----
-81

query I rowsort
SELECT + - col0 * + col2 * + 9 FROM tab1 AS cor0
----
-1458
-32832
-69120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col2 col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT + tab1.col2 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT DISTINCT - col1 * col0 + - col0 + col2 FROM tab0 cor0
----
-2055
-3429
-8106

query I rowsort
SELECT + 22 * + cor1.col1 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 AS cor2, tab2 AS cor3
----
243 values hashing to d4180da8fb74ee3e05041832077dcd0a

onlyif mysql # use DIV operator for integer division
query I rowsort label-6516
SELECT DISTINCT + 46 DIV 27 FROM tab2, tab0 cor0, tab1, tab1 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-6516
SELECT DISTINCT + 46 / 27 FROM tab2, tab0 cor0, tab1, tab1 AS cor1
----
1

query I rowsort
SELECT ALL - 26 AS col1 FROM tab0 AS cor0
----
-26
-26
-26

query I rowsort
SELECT + col2 + col1 AS col0 FROM tab1
----
109
67
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6519
SELECT DISTINCT + col0 - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6519
SELECT DISTINCT + col0 - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT ALL 58 FROM tab2, tab2 cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6521
SELECT DISTINCT CAST( NULL AS DECIMAL ) / + ( - col1 ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6521
SELECT DISTINCT CAST ( NULL AS REAL ) / + ( - col1 ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT ( col0 ) + col1 AS col2 FROM tab0
----
110
132
180

query I rowsort
SELECT + col0 * - col2 + col1 * col0 AS col0 FROM tab0
----
1272
3360
801

query I rowsort
SELECT 28 AS col0 FROM tab0, tab2 cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT DISTINCT + ( col2 ) + col1 * col1 + + col0 FROM tab2
----
3585
406
995

query I rowsort
SELECT DISTINCT cor0.col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
3
64
80

query I rowsort
SELECT DISTINCT - + 51 FROM tab1 AS cor0
----
-51

query I rowsort
SELECT DISTINCT + cor1.col1 AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
10
13
26

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0, tab0 AS cor1, tab2 cor2
----
972 values hashing to d41be7437523f0dba2158c7f0439f329

query I rowsort
SELECT ALL - + col0 * + ( col2 ) FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT - 24 FROM tab0, tab1 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to ad9e2feda1bc3d52e1a836279e031a8b

query I rowsort
SELECT cor0.col1 * col0 + - cor0.col2 * cor0.col0 FROM tab2 cor0
----
-1659
2574
28

query I rowsort
SELECT DISTINCT + - col2 * - 82 FROM tab0 AS cor0
----
2706
6724
82

query I rowsort
SELECT cor0.col2 + 12 AS col2 FROM tab1 AS cor0
----
108
66
69

onlyif mysql # use DIV operator for integer division
query I rowsort label-6535
SELECT + - cor0.col1 + - col0 * + col2 DIV + col2 AS col0 FROM tab1 AS cor0
----
-29
-74
-93

skipif mysql # not compatible
query I rowsort label-6535
SELECT + - cor0.col1 + - col0 * + col2 / + col2 AS col0 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT - 41 FROM tab2, tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
81 values hashing to 007857b49fbf51962923f3da53f42f2b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 23 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query I rowsort
SELECT ALL - 56 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

query I rowsort
SELECT DISTINCT 68 * col2 AS col1 FROM tab0 AS cor0
----
2244
5576
68

query I rowsort
SELECT ALL + 8 + - 32 FROM tab0 AS cor0
----
-24
-24
-24

query I rowsort
SELECT ALL - 18 AS col1 FROM tab2 AS cor0
----
-18
-18
-18

query I rowsort
SELECT - - ( col2 ) * - col0 + ( col1 + + col0 * 87 ) FROM tab0 AS cor0
----
1382
3107
536

query I rowsort
SELECT ALL - col0 * col1 + col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT ( 35 ) + col1 FROM tab2 cor0
----
52
66
94

query I rowsort
SELECT ALL cor0.col0 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT DISTINCT + 54 + + cor0.col0 * - col0 AS col2 FROM tab2 AS cor0
----
-6030
-6187
5

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 col2 * + col0 + - 20 col1 FROM tab0 AS cor0
----
15
7278
772

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab2 cor1, tab1 AS cor2
----
972 values hashing to 263f0eb7d5dfd4076c74918bc141bd9b

query I rowsort
SELECT 3 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf

onlyif mysql # use DIV operator for integer division
query I rowsort label-6551
SELECT ALL + col2 DIV col2 AS col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6551
SELECT ALL + col2 / col2 AS col1 FROM tab1
----
1
1
1

query I rowsort
SELECT - + col2 + + col0 AS col1 FROM tab0 cor0
----
-9
34
7

query I rowsort
SELECT 23 * + col2 AS col0 FROM tab0 cor0
----
1886
23
759

query I rowsort
SELECT 73 * col0 + 5 FROM tab2 AS cor0
----
516
5699
5772

query I rowsort
SELECT ALL 65 AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1c9d0bf96cd3361942fadad668138b9c

query I rowsort
SELECT + 77 * col2 + + col2 * col2 AS col2 FROM tab0 AS cor0
----
13038
3630
78

query I rowsort
SELECT ALL 91 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT DISTINCT col0 + 87 * col0 AS col0 FROM tab0
----
2112
3080
7832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - tab0.col0 col1 FROM tab0
----
-178
-48
-70

query I rowsort
SELECT DISTINCT col2 * col2 + col2 FROM tab0
----
1122
2
6806

query I rowsort
SELECT tab2.col0 + + ( col2 ) + + col0 AS col0 FROM tab2
----
182
196
41

query I rowsort
SELECT ALL - col0 * col0 FROM tab1 cor0
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT + + col1 * col1 * col0 AS col1 FROM tab1 AS cor0
----
13520
2028
6400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * + col0 col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6565
SELECT ALL + cor0.col0 + - CAST( NULL AS SIGNED ) * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6565
SELECT ALL + cor0.col0 + - CAST ( NULL AS INTEGER ) * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + ( - col0 ) AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - - col2 + + 11 FROM tab2 AS cor0
----
37
38
49

query I rowsort
SELECT ALL + col2 + - 13 AS col1 FROM tab2 AS cor0
----
13
14
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 70 * col1 col0 FROM tab2 AS cor0
----
1190
2170
4130

query I rowsort
SELECT - col2 + - col1 * - col1 AS col2 FROM tab1 AS cor0
----
43
622
73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6571
SELECT DISTINCT col1 + ( col0 ) * CAST( - col1 AS SIGNED ) - col0 FROM tab0 cor0
----
-2002
-3333
-8097

skipif mysql # not compatible
query I rowsort label-6571
SELECT DISTINCT col1 + ( col0 ) * CAST ( - col1 AS INTEGER ) - col0 FROM tab0 cor0
----
-2002
-3333
-8097

query I rowsort
SELECT + col1 + - col1 AS col0 FROM tab1 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6573
SELECT - col1 DIV - ( col1 ) - - 45 DIV col0 FROM tab0 AS cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-6573
SELECT - col1 / - ( col1 ) - - 45 / col0 FROM tab0 AS cor0
----
1
2
2

query I rowsort
SELECT - ( - ( - col1 ) ) * + 85 + + 29 * col1 FROM tab1 AS cor0
----
-1456
-560
-728

query I rowsort
SELECT ALL col1 + col0 * - col0 FROM tab0 AS cor0
----
-1128
-490
-7830

query I rowsort
SELECT DISTINCT col2 + cor0.col1 AS col0 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL col0 * + 61 + col1 + + col0 AS col1 FROM tab2 AS cor0
----
465
4895
4915

query I rowsort
SELECT ALL - - col1 * - cor0.col2 + col0 AS col2 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT + - 32 FROM tab2 cor0
----
-32
-32
-32

query I rowsort
SELECT DISTINCT - - ( col2 ) * col0 - + col0 AS col1 FROM tab0 cor0
----
0
7209
768

query I rowsort
SELECT cor0.col1 + col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT + col2 + col1 * 45 * - col2 + + col2 FROM tab0
----
-127644
-335626
-4363

query I rowsort
SELECT + col0 + 83 * + col0 FROM tab2
----
588
6552
6636

onlyif mysql # use DIV operator for integer division
query I rowsort label-6584
SELECT ALL col2 DIV col1 + + col1 * + col1 FROM tab1
----
105
176
678

skipif mysql # not compatible
query I rowsort label-6584
SELECT ALL col2 / col1 + + col1 * + col1 FROM tab1
----
105
176
678

query I rowsort
SELECT ALL col1 + col0 AS col1 FROM tab2
----
137
38
96

query I rowsort
SELECT ALL + col2 + 51 * + col1 AS col0 FROM tab2
----
1608
3035
905

query I rowsort
SELECT ALL col1 + - ( col0 + + col2 ) FROM tab2
----
-100
-3
-45

onlyif mysql # use DIV operator for integer division
query I rowsort label-6588
SELECT - col2 DIV col0 AS col1 FROM tab1 AS cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-6588
SELECT - col2 / col0 AS col1 FROM tab1 AS cor0
----
-1
-18
0

query I rowsort
SELECT DISTINCT col1 - - 45 AS col2 FROM tab2
----
104
62
76

query I rowsort
SELECT DISTINCT - col1 - - 50 * + col0 * col1 FROM tab2
----
10819
230041
67133

query I rowsort
SELECT ALL + col0 - + 61 AS col0 FROM tab0
----
-26
-37
28

query I rowsort
SELECT + cor0.col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT col2 + col1 * + col0 + col1 FROM tab1 AS cor0
----
1149
158
707

onlyif mysql # use DIV operator for integer division
query I rowsort label-6594
SELECT col1 + + col0 DIV col1 + + col1 AS col2 FROM tab1 cor0
----
26
32
52

skipif mysql # not compatible
query I rowsort label-6594
SELECT col1 + + col0 / col1 + + col1 AS col2 FROM tab1 cor0
----
26
32
52

query I rowsort
SELECT - col0 * + col1 + col2 + col0 * + col1 AS col0 FROM tab1 AS cor0
----
54
57
96

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN col1 AND col0
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6597
SELECT + col0 DIV + col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6597
SELECT + col0 / + col2 FROM tab1
----
0
0
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <= ( col0 )
----

query I rowsort
SELECT - col2 * col0 - + col0 AS col1 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT DISTINCT col2 - - tab2.col2 FROM tab2
----
52
54
76

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT col2 <= NULL
----

query I rowsort
SELECT + col1 * col2 - + col2 FROM tab0
----
2805
7380
96

query I rowsort
SELECT ALL + col2 * - col0 + tab2.col1 FROM tab2
----
-158
-1969
-2985

query I rowsort
SELECT DISTINCT + col0 - col1 FROM tab1 WHERE NOT NULL <> col0
----

query I rowsort
SELECT DISTINCT - col0 * col0 + + col2 AS col1 FROM tab2
----
-22
-6058
-6203

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col2 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col2 col0 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT - + col0 - cor0.col2 AS col2 FROM tab1 AS cor0
----
-121
-176
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + col0 col0 FROM tab0 AS cor0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-6610
SELECT ALL - col0 DIV - col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6610
SELECT ALL - col0 / - col0 FROM tab1
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6611
SELECT DISTINCT col1 * col2 DIV - col1 AS col1 FROM tab2
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-6611
SELECT DISTINCT col1 * col2 / - col1 AS col1 FROM tab2
----
-26
-27
-38

query I rowsort
SELECT DISTINCT - col2 * col2 * - col0 AS col1 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT + cor0.col2 * col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT + col2 + col1 * tab2.col2 FROM tab2 WHERE NOT + col2 + + col1 * + col1 = NULL AND col0 + col2 <= NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6615
SELECT DISTINCT - + col2 + col0 DIV + col0 AS col2 FROM tab0 AS cor0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-6615
SELECT DISTINCT - + col2 + col0 / + col0 AS col2 FROM tab0 AS cor0
----
-32
-81
0

query I rowsort
SELECT col0 + col0 * - col0 * - col2 FROM tab0 AS cor0
----
1260
19032
649611

onlyif mysql # use DIV operator for integer division
query I rowsort label-6617
SELECT col0 DIV col1 - cor0.col0 AS col0 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-6617
SELECT col0 / col1 - cor0.col0 AS col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT col2 * - col2 + col2 * col2 + col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT - - cor0.col2 * + col0 + col2 AS col0 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT + col0 * cor0.col1 * - col2 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT + 42 FROM tab2 AS cor0
----
42
42
42

query I rowsort
SELECT - col2 + col1 AS col0 FROM tab0
----
53
9
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6623
SELECT - col1 - - CAST( - col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-119
-173
-98

skipif mysql # not compatible
query I rowsort label-6623
SELECT - col1 - - CAST ( - col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT + col1 * ( - col0 ) * col0 + - col1 FROM tab0 AS cor0
----
-118922
-49622
-720902

query I rowsort
SELECT + cor0.col0 * col2 + - col0 AS col1 FROM tab1 cor0
----
159
3584
7600

query I rowsort
SELECT + col1 + + ( col1 + - col0 * col1 ) FROM tab0 AS cor0
----
-1892
-3201
-7917

query I rowsort
SELECT + 10 FROM tab0, tab0 AS cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6628
SELECT - - cor0.col0 * + CAST( - col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-6628
SELECT - - cor0.col0 * + CAST ( - col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT col2 - col0 AS col0 FROM tab1 cor0
----
-7
16
51

query I rowsort
SELECT DISTINCT + col2 * col0 AS col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT + + cor0.col1 * + col1 AS col1 FROM tab2 AS cor0
----
289
3481
961

onlyif mysql # use DIV operator for integer division
query I rowsort label-6632
SELECT ALL - col1 * 99 + col0 DIV col1 AS col1 FROM tab0 AS cor0
----
-8514
-9009
-9603

skipif mysql # not compatible
query I rowsort label-6632
SELECT ALL - col1 * 99 + col0 / col1 AS col1 FROM tab0 AS cor0
----
-8514
-9009
-9603

query I rowsort
SELECT DISTINCT - col0 * tab0.col0 FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT ALL + 67 AS col0 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to eea8a0738728ea55e4e7ba1506c9905a

query I rowsort
SELECT + col0 - - col1 AS col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT DISTINCT - cor0.col1 + - 73 FROM tab2 AS cor0
----
-104
-132
-90

query I rowsort
SELECT + + col0 + - col0 + + col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT + cor0.col0 + ( - col2 ) - - col0 * col0 FROM tab2 AS cor0
----
29
6136
6282

onlyif mysql # use DIV operator for integer division
query I rowsort label-6639
SELECT DISTINCT - - col2 + - CAST( - col2 AS SIGNED ) DIV + cor0.col1 AS col0 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-6639
SELECT DISTINCT - - col2 + - CAST ( - col2 AS INTEGER ) / + cor0.col1 AS col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT cor0.col1 + + col0 + + col0 FROM tab0 AS cor0
----
134
167
269

query I rowsort
SELECT + + col2 + + col1 * cor0.col2 - col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL tab1.col2 + + col2 AS col2 FROM tab1
----
108
114
192

query I rowsort
SELECT col2 + - col1 + col2 * + tab0.col0 AS col1 FROM tab0
----
-61
7289
739

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col1 * + col2 col2 FROM tab1
----
1261
1430
580

query I rowsort
SELECT + col1 * + tab0.col2 + col1 + - col1 AS col0 FROM tab0
----
2838
7462
97

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 IN ( col0 )
----

query I rowsort
SELECT - col1 - + col2 AS col0 FROM tab1
----
-109
-67
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6648
SELECT + col1 DIV col2 col1 FROM tab0
----
1
2
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6648
SELECT + col1 / col2 col1 FROM tab0
----
1
2
97

query I rowsort
SELECT col1 * + col2 FROM tab0 WHERE + col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT col2 FROM tab1 WHERE NOT NULL > NULL
----

query I rowsort
SELECT - col2 + - tab0.col2 AS col1 FROM tab0
----
-164
-2
-66

query I rowsort
SELECT + col2 + tab0.col2 FROM tab0
----
164
2
66

query I rowsort
SELECT col2 * + tab2.col0 FROM tab2
----
189
2028
3002

query I rowsort
SELECT ALL - tab1.col2 * col1 + col0 AS col0 FROM tab1
----
-1168
-1401
-506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col2 + col0 col0 FROM tab2
----
130
155
61

query I rowsort
SELECT tab2.col0 * - col0 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT ALL + col0 * - col0 + - col0 FROM tab2
----
-56
-6162
-6320

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT - col1 IN ( col2 )
----
10
13
26

query I rowsort
SELECT DISTINCT cor0.col2 + col2 * + col2 + - cor0.col0 FROM tab2 AS cor0
----
1403
624
749

query I rowsort
SELECT - col0 + - col1 AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN col0 AND col1 / col2 + col0
----

query I rowsort
SELECT DISTINCT - tab0.col2 + + col1 AS col1 FROM tab0
----
53
9
96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 IN ( - tab0.col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) <> + col1 + col2 * col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query I rowsort
SELECT + col0 * ( + 86 ) + col0 AS col1 FROM tab2
----
609
6786
6873

query I rowsort
SELECT - col2 * + 31 AS col0 FROM tab1
----
-1674
-1767
-2976

query I rowsort
SELECT ALL - col0 * col0 * + ( col2 ) FROM tab1 AS cor0
----
-233472
-486
-614400

query I rowsort
SELECT DISTINCT + + col0 + + col2 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT - col2 + - ( cor0.col0 * - cor0.col1 ) FROM tab2 cor0
----
1305
190
4576

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0, tab2 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to 1b06ddc48fd89ff2b1df6d82072316da

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col0 * col0 col0 FROM tab0 AS cor0
----
1226
609
8003

onlyif mysql # use DIV operator for integer division
query I rowsort label-6672
SELECT col2 DIV col1 + - col1 AS col2 FROM tab1 AS cor0
----
-24
-5
-6

skipif mysql # not compatible
query I rowsort label-6672
SELECT col2 / col1 + - col1 AS col2 FROM tab1 AS cor0
----
-24
-5
-6

query I rowsort
SELECT ALL - - col0 + - 77 * 83 FROM tab0 AS cor0
----
-6302
-6356
-6367

query I rowsort
SELECT + col2 + + 58 AS col0 FROM tab2 AS cor0
----
84
85
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 col0 FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT + + 65 + 44 FROM tab1 AS cor0
----
109
109
109

query I rowsort
SELECT 64 + - col2 * col2 FROM tab1 AS cor0
----
-2852
-3185
-9152

query I rowsort
SELECT DISTINCT 49 AS col0 FROM tab2 AS cor0
----
49

query I rowsort
SELECT ALL col0 + + col2 * col1 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT DISTINCT 84 AS col2 FROM tab1 AS cor0
----
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-6681
SELECT col1 DIV - col1 + - col2 AS col0 FROM tab0 AS cor0
----
-2
-34
-83

skipif mysql # not compatible
query I rowsort label-6681
SELECT col1 / - col1 + - col2 AS col0 FROM tab0 AS cor0
----
-2
-34
-83

query I rowsort
SELECT DISTINCT - col0 + col0 * col1 FROM tab2 AS cor0
----
1264
210
4524

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - col2 * col1 col0 FROM tab0 cor0
----
-2814
-62
-7373

query I rowsort
SELECT 6 + ( - col0 ) * col1 FROM tab1 AS cor0
----
-1034
-634
-72

query I rowsort
SELECT ALL + col2 * - ( col0 ) AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT + + ( + col1 ) FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT col1 * col2 * + col0 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT ALL - ( col2 ) + + col0 * col2 AS col0 FROM tab1 AS cor0
----
108
3591
7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-6689
SELECT ALL - col1 + col2 DIV + col2 col1 FROM tab1 AS cor0
----
-12
-25
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6689
SELECT ALL - col1 + col2 / + col2 col1 FROM tab1 AS cor0
----
-12
-25
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-6690
SELECT col1 DIV - 37 + col2 col2 FROM tab1
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6690
SELECT col1 / - 37 + col2 col2 FROM tab1
----
54
57
96

query I rowsort
SELECT ALL + col1 + + 24 FROM tab1
----
34
37
50

query I rowsort
SELECT DISTINCT + 10 AS col1 FROM tab1 AS cor0
----
10

query I rowsort
SELECT - + ( + col1 ) AS col1 FROM tab1 AS cor0
----
-10
-13
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-6694
SELECT col2 DIV cor0.col2 + col2 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-6694
SELECT col2 / cor0.col2 + col2 FROM tab1 AS cor0
----
55
58
97

query I rowsort
SELECT col1 * cor0.col1 * - col1 FROM tab1 AS cor0
----
-1000
-17576
-2197

query I rowsort
SELECT + + col2 * col0 + col2 * ( + col0 ) FROM tab1 AS cor0
----
15360
324
7296

query I rowsort
SELECT 24 * - cor0.col1 - - col0 AS col0 FROM tab1 AS cor0
----
-176
-232
-621

onlyif mysql # use DIV operator for integer division
query I rowsort label-6698
SELECT ALL col2 DIV col1 + ( 23 + + col0 ) FROM tab0 AS cor0
----
112
47
58

skipif mysql # not compatible
query I rowsort label-6698
SELECT ALL col2 / col1 + ( 23 + + col0 ) FROM tab0 AS cor0
----
112
47
58

query I rowsort
SELECT col0 + col2 * ( col1 ) * + col1 FROM tab0 AS cor0
----
244092
679131
9444

query I rowsort
SELECT - - cor0.col0 * col1 * col0 FROM tab0 AS cor0
----
118825
49536
720811

query I rowsort
SELECT DISTINCT ( + cor0.col0 ) * col1 - 69 FROM tab2 cor0
----
1274
148
4533

query I rowsort
SELECT ALL - 1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT ( cor0.col2 ) * col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT + 98 + + col0 AS col0 FROM tab1
----
101
162
178

query I rowsort
SELECT ALL + + cor0.col0 * cor0.col0 + cor0.col2 * - 20 FROM tab0 AS cor0
----
-84
1205
6281

query I rowsort
SELECT + cor0.col1 * col0 + cor0.col2 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT DISTINCT 8 * + col2 FROM tab0 AS cor0
----
264
656
8

query I rowsort
SELECT ALL - col1 + cor0.col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col1 + col0 * col2 AS col0 FROM tab0 cor0
----
-62
706
7207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 83 col0 FROM tab2 AS cor0
----
-83
-83
-83

query I rowsort
SELECT - + 48 FROM tab1 AS cor0
----
-48
-48
-48

onlyif mysql # use DIV operator for integer division
query I rowsort label-6712
SELECT DISTINCT + col1 DIV + cor0.col1 + 65 FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-6712
SELECT DISTINCT + col1 / + cor0.col1 + 65 FROM tab0 AS cor0
----
66

query I rowsort
SELECT DISTINCT col2 * col1 + 16 FROM tab1 AS cor0
----
1264
1420
586

query I rowsort
SELECT + + cor0.col2 * cor0.col0 AS col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - 54 FROM tab0
----
-54
-54
-54

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6716
SELECT + col0 * col2 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6716
SELECT + col0 * col2 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6717
SELECT + + col0 - - col0 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6717
SELECT + + col0 - - col0 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col1 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT 72 + col2 AS col2 FROM tab0 AS cor0
----
105
154
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-6720
SELECT DISTINCT + col2 DIV - col0 AS col1 FROM tab2 AS cor0
----
-3
0

skipif mysql # not compatible
query I rowsort label-6720
SELECT DISTINCT + col2 / - col0 AS col1 FROM tab2 AS cor0
----
-3
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6721
SELECT + col2 * col1 DIV - 13 + 27 - - col0 FROM tab0
----
-167
-458
55

skipif mysql # not compatible
query I rowsort label-6721
SELECT + col2 * col1 / - 13 + 27 - - col0 FROM tab0
----
-167
-458
55

onlyif mysql # use DIV operator for integer division
query I rowsort label-6722
SELECT - + col1 DIV col2 + + col1 col2 FROM tab1 AS cor0
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6722
SELECT - + col1 / col2 + + col1 col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL + + col1 + - ( 67 ) AS col0 FROM tab2 AS cor0
----
-36
-50
-8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6724
SELECT col0 * + CAST( - col2 AS SIGNED ) + - col0 * 59 AS col0 FROM tab0 AS cor0
----
-12549
-2100
-2208

skipif mysql # not compatible
query I rowsort label-6724
SELECT col0 * + CAST ( - col2 AS INTEGER ) + - col0 * 59 AS col0 FROM tab0 AS cor0
----
-12549
-2100
-2208

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + 12 - col1 col1 FROM tab0 AS cor0
----
1001
1067
946

query I rowsort
SELECT ALL cor0.col2 + + col2 AS col0 FROM tab0 AS cor0
----
164
2
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-6727
SELECT col0 DIV - col0 AS col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6727
SELECT col0 / - col0 AS col1 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT DISTINCT col2 * - tab2.col1 + ( 98 ) AS col1 FROM tab2
----
-1436
-548
-739

query I rowsort
SELECT DISTINCT + col1 * col0 - ( 90 ) AS col2 FROM tab1
----
-12
550
950

query I rowsort
SELECT + col0 * ( - 12 + col0 ) FROM tab2 AS cor0
----
-35
5148
5293

query I rowsort
SELECT + + col2 * + cor0.col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT + col0 * - ( + ( + col2 ) ) + - cor0.col0 AS col2 FROM tab0 AS cor0
----
-70
-7387
-816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * + cor0.col2 + + col2 + + col2 col1 FROM tab2 AS cor0
----
-135
-1976
-2926

query I rowsort
SELECT - col1 + - 90 * - cor0.col1 FROM tab2 AS cor0
----
1513
2759
5251

query I rowsort
SELECT + + col2 + + ( 57 + + col1 ) AS col0 FROM tab0 AS cor0
----
155
176
230

query I rowsort
SELECT + col1 * + ( col1 ) FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT ALL + col2 + col1 AS col2 FROM tab2
----
55
58
85

query I rowsort
SELECT col0 + - col0 + 48 * col0 * - col2 FROM tab2
----
-144096
-9072
-97344

query I rowsort
SELECT ALL col1 + tab0.col0 AS col0 FROM tab0
----
110
132
180

query I rowsort
SELECT ALL 16 + col2 AS col0 FROM tab2
----
42
43
54

query I rowsort
SELECT - col2 * 24 - col2 FROM tab0 cor0
----
-2050
-25
-825

onlyif mysql # use DIV operator for integer division
query I rowsort label-6742
SELECT + + col2 DIV col0 + col1 col1 FROM tab1 AS cor0
----
10
14
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6742
SELECT + + col2 / col0 + col1 col1 FROM tab1 AS cor0
----
10
14
44

query I rowsort
SELECT - + col1 + - col2 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT 63 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT DISTINCT - col0 + + col1 AS col0 FROM tab2
----
-19
-62
24

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 AS cor2, tab2 cor3
----
3645 values hashing to 149298fc0224e93f3bc2df24a3ebeeb8

query I rowsort
SELECT DISTINCT cor0.col2 * - col0 - 36 * col2 AS col0 FROM tab2 AS cor0
----
-1161
-2964
-4370

query I rowsort
SELECT - col2 - + 76 AS col1 FROM tab0 AS cor0
----
-109
-158
-77

query I rowsort
SELECT ALL + - col0 * cor0.col2 + - col1 * col1 * col2 FROM tab2 AS cor0
----
-13984
-26136
-92534

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6750
SELECT - col0 / CAST( NULL AS SIGNED ) - - 16 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6750
SELECT - col0 / CAST ( NULL AS INTEGER ) - - 16 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col2 + col2 AS col1 FROM tab2 cor0
----
52
54
76

query I rowsort
SELECT ALL - col1 * 69 AS col1 FROM tab2
----
-1173
-2139
-4071

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 13 col1 FROM tab1
----
13
13
13

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6754
SELECT + CAST( 64 AS SIGNED ) * col0 AS col2 FROM tab2 AS cor0
----
448
4992
5056

skipif mysql # not compatible
query I rowsort label-6754
SELECT + CAST ( 64 AS INTEGER ) * col0 AS col2 FROM tab2 AS cor0
----
448
4992
5056

query I rowsort
SELECT ALL - 40 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6756
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6756
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6757
SELECT + cor0.col1 + + col1 / CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6757
SELECT + cor0.col1 + + col1 / CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + tab1.col1 * - col0 FROM tab1
----
-1040
-640
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col1 col0 FROM tab0
----
2838
7462
97

query I rowsort
SELECT + col2 * + col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT DISTINCT + cor0.col0 AS col0 FROM tab1, tab0 AS cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-6762
SELECT DISTINCT + + col2 * - cor0.col2 + col2 DIV - col1 + - col1 col1 FROM tab1 AS cor0
----
-2944
-3264
-9236

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6762
SELECT DISTINCT + + col2 * - cor0.col2 + col2 / - col1 + - col1 col1 FROM tab1 AS cor0
----
-2944
-3264
-9236

query I rowsort
SELECT 48 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 0ef571a8722ab7270aa7272c1174b88e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6764
SELECT ALL ( cor0.col0 ) + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6764
SELECT ALL ( cor0.col0 ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6765
SELECT col1 + col1 / + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6765
SELECT col1 + col1 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - ( col0 ) AS col1 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT + 26 + cor0.col2 * col0 FROM tab0 AS cor0
----
61
7324
818

query I rowsort
SELECT ALL - tab0.col1 AS col0 FROM tab0, tab0 cor0, tab1, tab1 AS cor1
----
81 values hashing to 786a240f80bef6f9c6a190e92cd4f9e8

query I rowsort
SELECT ALL + ( + 31 ) FROM tab0
----
31
31
31

query I rowsort
SELECT - - 80 FROM tab1 AS cor0
----
80
80
80

query I rowsort
SELECT + - ( - 93 ) * + col1 AS col1 FROM tab0 AS cor0
----
7998
8463
9021

query I rowsort
SELECT DISTINCT + col1 * + col1 + col2 AS col1 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT - + 52 + - col0 * 37 FROM tab2 AS cor0
----
-2938
-2975
-311

onlyif mysql # use DIV operator for integer division
query I rowsort label-6774
SELECT 56 DIV col2 + col2 AS col1 FROM tab1 AS cor0
----
55
57
96

skipif mysql # not compatible
query I rowsort label-6774
SELECT 56 / col2 + col2 AS col1 FROM tab1 AS cor0
----
55
57
96

query I rowsort
SELECT ALL - 96 FROM tab0 cor0
----
-96
-96
-96

query I rowsort
SELECT DISTINCT + - col1 * col1 + col1 FROM tab2 cor0
----
-272
-3422
-930

query I rowsort
SELECT DISTINCT col2 + cor0.col2 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT 0 + cor0.col0 AS col0 FROM tab2 AS cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-6779
SELECT ALL + col2 * col0 DIV - tab1.col1 AS col2 FROM tab1
----
-364
-590
-6

skipif mysql # not compatible
query I rowsort label-6779
SELECT ALL + col2 * col0 / - tab1.col1 AS col2 FROM tab1
----
-364
-590
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col1 + - ( - 81 ) col2 FROM tab1 cor0
----
-19
-595
-88

query I rowsort
SELECT ALL col2 * cor0.col0 + - col2 * + 28 - + cor0.col0 * - col2 AS col1 FROM tab2 AS cor0
----
-378
3328
4940

query I rowsort
SELECT cor0.col0 * - col1 + - 65 * ( col1 ) AS col0 FROM tab1 AS cor0
----
-1290
-1768
-1885

query I rowsort
SELECT DISTINCT 3 * + 79 FROM tab2
----
237

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 WHERE ( NULL ) <= NULL
----

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6785
SELECT col0 * CAST( 68 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1632
2380
6052

skipif mysql # not compatible
query I rowsort label-6785
SELECT col0 * CAST ( 68 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1632
2380
6052

query I rowsort
SELECT ALL - 7 FROM tab2, tab2 AS cor0
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0, tab1 AS cor1, tab1 AS cor2
----
972 values hashing to d222ba302bd1ddd1c8b2ddf1a4d0b07a

query I rowsort
SELECT - tab0.col2 * 68 * - 30 FROM tab0, tab1 AS cor0
----
9 values hashing to b2b3747d06a5d2e68070e66b5c94edfa

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2, tab1 AS cor0, tab2 AS cor1
----
972 values hashing to 2507aa9f48c3db94de9fec065edf3731

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6790
SELECT ALL col1 * - CAST( ( + col2 ) AS SIGNED ) FROM tab1
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-6790
SELECT ALL col1 * - CAST ( ( + col2 ) AS INTEGER ) FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT ALL + cor0.col0 + col2 + col2 * col2 AS col0 FROM tab1 AS cor0
----
2973
3370
9392

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 col0 FROM tab0 AS cor0
----
31
31
31

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6793
SELECT ALL CAST( + col0 AS SIGNED ) * + col2 AS col2 FROM tab0 cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-6793
SELECT ALL CAST ( + col0 AS INTEGER ) * + col2 AS col2 FROM tab0 cor0
----
35
7298
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6794
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6794
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6795
SELECT - - CAST( 74 AS SIGNED ) FROM tab2 AS cor0
----
74
74
74

skipif mysql # not compatible
query I rowsort label-6795
SELECT - - CAST ( 74 AS INTEGER ) FROM tab2 AS cor0
----
74
74
74

query I rowsort
SELECT DISTINCT - cor1.col0 AS col1 FROM tab1, tab0 cor0, tab1 AS cor1
----
-3
-64
-80

query I rowsort
SELECT ALL - - col1 * + 83 AS col0 FROM tab2 cor0
----
1411
2573
4897

query I rowsort
SELECT ALL + - 66 FROM tab1 AS cor0
----
-66
-66
-66

query I rowsort
SELECT DISTINCT + ( + ( - col2 ) ) + + col2 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + col0 * 58 AS col1 FROM tab1
----
174
3712
4640

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 * + tab2.col1 col2 FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to 66d12b13327233058113a26801f3f4bd

query I rowsort
SELECT DISTINCT ( col2 * - col2 + - col2 ) AS col2 FROM tab2
----
-1482
-702
-756

query I rowsort
SELECT + 92 - col0 * col1 AS col1 FROM tab0
----
-1972
-3303
-8007

query I rowsort
SELECT 29 * 29 + tab2.col1 FROM tab2
----
858
872
900

query I rowsort
SELECT DISTINCT col1 * col2 * - col1 AS col0 FROM tab1
----
-16224
-36504
-5700

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6806
SELECT DISTINCT CAST( 21 AS SIGNED ) FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-6806
SELECT DISTINCT CAST ( 21 AS INTEGER ) FROM tab1
----
21

query I rowsort
SELECT 29 - - col1 FROM tab0
----
115
120
126

query I rowsort
SELECT DISTINCT 25 * + 72 * col1 FROM tab2
----
106200
30600
55800

query IIIIIIIII rowsort
SELECT * FROM tab0, tab1, tab1 AS cor0 WHERE NOT NULL NOT IN ( tab0.col1 )
----

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6810
SELECT - ( - col0 ) * col1 + CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
1422
224
4680

skipif mysql # not compatible
query I rowsort label-6810
SELECT - ( - col0 ) * col1 + CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT + cor1.col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6812
SELECT ALL - CAST( NULL AS DECIMAL ) - + ( col1 ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6812
SELECT ALL - CAST ( NULL AS REAL ) - + ( col1 ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0, tab1 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to b62c1ebc681aca72d13feadb888b3be7

query I rowsort
SELECT ( - 18 ) + tab0.col0 AS col2 FROM tab0
----
17
6
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col2 col2 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT + col0 + + 64 * + col1 AS col2 FROM tab2 AS cor0
----
1167
1991
3854

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + tab0.col2 + - 43 + 30 FROM tab0, tab0 AS cor0
----
9 values hashing to 7725776d6b4a599a15387967f8e330ee

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 94 * col2 col1 FROM tab2
----
2444
2538
3572

query I rowsort
SELECT ALL 35 + col2 AS col1 FROM tab2
----
61
62
73

query I rowsort
SELECT ALL col2 + - col0 AS col2 FROM tab0
----
-34
-7
9

query I rowsort
SELECT DISTINCT + col2 * col2 + + 38 AS col1 FROM tab2
----
1482
714
767

query I rowsort
SELECT + cor0.col0 + - cor0.col0 * - col0 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT - cor1.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT col1 * - 46 + col0 FROM tab2 AS cor0
----
-1419
-2636
-703

query I rowsort
SELECT + - col2 + 67 AS col2 FROM tab1 AS cor0
----
-29
10
13

query I rowsort
SELECT ALL + col2 * 31 * col0 FROM tab0 AS cor0
----
1085
226238
24552

onlyif mysql # use DIV operator for integer division
query I rowsort label-6828
SELECT ALL col2 * col1 DIV + col2 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-6828
SELECT ALL col2 * col1 / + col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT col1 * - ( - col1 ) + + col0 * col0 FROM tab1 AS cor0
----
4196
6569
685

query I rowsort
SELECT DISTINCT + col0 * + ( 53 ) FROM tab2 cor0
----
371
4134
4187

query I rowsort
SELECT ALL - col0 + 42 AS col1 FROM tab0 AS cor0
----
-47
18
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-6832
SELECT + - col1 DIV - 18 AS col2 FROM tab2 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-6832
SELECT + - col1 / - 18 AS col2 FROM tab2 AS cor0
----
0
1
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6833
SELECT ALL + col1 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6833
SELECT ALL + col1 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6834
SELECT DISTINCT - col0 DIV col0 AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6834
SELECT DISTINCT - col0 / col0 AS col2 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT ALL + - col2 * ( col1 + col2 * 96 ) AS col0 FROM tab2 AS cor0
----
-139270
-66430
-70821

query I rowsort
SELECT ALL + 58 + + 78 FROM tab1
----
136
136
136

query I rowsort
SELECT + cor0.col1 - cor0.col2 AS col1 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT + cor0.col1 AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT + col0 + 10 * - col2 + 7 AS col1 FROM tab1
----
-499
-530
-873

query I rowsort
SELECT DISTINCT 40 * + col2 AS col2 FROM tab1 AS cor0
----
2160
2280
3840

query I rowsort
SELECT 34 * cor0.col0 AS col1 FROM tab1 cor0
----
102
2176
2720

onlyif mysql # use DIV operator for integer division
query I rowsort label-6842
SELECT DISTINCT + col1 * + col2 + - col0 DIV cor0.col2 AS col0 FROM tab0 AS cor0
----
2838
62
7461

skipif mysql # not compatible
query I rowsort label-6842
SELECT DISTINCT + col1 * + col2 + - col0 / cor0.col2 AS col0 FROM tab0 AS cor0
----
2838
62
7461

query I rowsort
SELECT DISTINCT col2 * - col2 * col1 FROM tab0 cor0
----
-611884
-93654
-97

query I rowsort
SELECT ALL col1 + 86 FROM tab1
----
112
96
99

query I rowsort
SELECT - cor1.col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT + col0 * col1 + col0 + 65 * - col1 AS col0 FROM tab1 AS cor0
----
-1609
275
54

query I rowsort
SELECT DISTINCT + - col2 * cor0.col2 + - 71 * + cor0.col0 + col2 FROM tab0 AS cor0
----
-12961
-2485
-2760

query I rowsort
SELECT DISTINCT - - col1 * - col1 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT - cor0.col2 + - col1 AS col1 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT - cor0.col2 * col2 + + col1 FROM tab1 AS cor0
----
-2890
-3239
-9203

query I rowsort
SELECT + 1 * col2 + col2 AS col1 FROM tab0 AS cor0
----
164
2
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col1 ) + 30 col1 FROM tab1 AS cor0
----
17
20
4

query I rowsort
SELECT ALL - 49 AS col2 FROM tab2 AS cor0
----
-49
-49
-49

query I rowsort
SELECT DISTINCT ( - col2 ) * - col1 AS col0 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6855
SELECT ALL - col2 * + col2 + CAST( col2 AS SIGNED ) * + col1 AS col1 FROM tab0 cor0
----
1749
738
96

skipif mysql # not compatible
query I rowsort label-6855
SELECT ALL - col2 * + col2 + CAST ( col2 AS INTEGER ) * + col1 AS col1 FROM tab0 cor0
----
1749
738
96

query I rowsort
SELECT - - ( col0 ) * col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL col1 AS col0 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT DISTINCT 0 + cor0.col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL + 31 FROM tab0 AS cor0
----
31
31
31

query I rowsort
SELECT + + col1 * col2 + cor0.col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT col1 + - cor0.col2 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT ALL col0 * - col2 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab1.col2 col0 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT ALL + col0 * ( cor0.col0 ) + + col2 FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT ALL - - col0 + col2 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT - col1 * - ( 63 ) AS col0 FROM tab1 AS cor0
----
1638
630
819

query I rowsort
SELECT DISTINCT + + cor0.col0 * 41 FROM tab0 AS cor0
----
1435
3649
984

query I rowsort
SELECT ALL - - col1 + col1 FROM tab0 AS cor0
----
172
182
194

onlyif mysql # use DIV operator for integer division
query I rowsort label-6869
SELECT DISTINCT + col2 * 0 + - col1 DIV - col0 AS col2 FROM tab1 AS cor0
----
0
8

skipif mysql # not compatible
query I rowsort label-6869
SELECT DISTINCT + col2 * 0 + - col1 / - col0 AS col2 FROM tab1 AS cor0
----
0
8

query I rowsort
SELECT - col0 * cor0.col1 * col1 FROM tab1 AS cor0
----
-13520
-2028
-6400

query I rowsort
SELECT ALL + col0 * 74 - + col1 AS col0 FROM tab0 AS cor0
----
1690
2493
6495

query I rowsort
SELECT ALL + col2 + cor0.col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT DISTINCT + col2 + - col0 AS col1 FROM tab0 cor0
----
-34
-7
9

query I rowsort
SELECT ALL + col2 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
1534
646
837

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab0 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to d6394df0309139ffe20e7d96c77e26ee

query I rowsort
SELECT + + ( 35 ) FROM tab0 AS cor0
----
35
35
35

query I rowsort
SELECT 96 * + 12 FROM tab2 AS cor0
----
1152
1152
1152

query I rowsort
SELECT DISTINCT + - col1 + + 58 * col0 FROM tab2 AS cor0
----
375
4465
4565

query I rowsort
SELECT DISTINCT - - col2 * 85 + cor0.col0 FROM tab0 cor0
----
120
2829
7059

query I rowsort
SELECT DISTINCT + + col2 * cor0.col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6881
SELECT ALL - + CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-6881
SELECT ALL - + CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT col2 + col1 * - cor0.col0 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT ALL col1 + + 20 AS col1 FROM tab1 AS cor0
----
30
33
46

onlyif mysql # use DIV operator for integer division
query I rowsort label-6884
SELECT - col2 DIV 2 col0 FROM tab0 AS cor0
----
-16
-41
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6884
SELECT - col2 / 2 col0 FROM tab0 AS cor0
----
-16
-41
0

query I rowsort
SELECT DISTINCT + - col1 AS col2 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT + + ( col2 ) + col2 - - col1 AS col2 FROM tab2 AS cor0
----
111
85
93

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( ( - col2 ) AS REAL ) + cor0.col2 AS col2 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT DISTINCT - cor0.col1 + - cor0.col1 * col0 AS col1 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT cor0.col1 * - col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 71 col2 FROM tab2 AS cor0
----
71
71
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 56 * + col0 * col1 col1 FROM tab2 cor0
----
12152
257712
75208

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col1 col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT - ( ( tab0.col0 ) ) FROM tab0
----
-24
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col1 ) col1 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT DISTINCT + cor0.col0 - ( col0 ) FROM tab0 cor0
----
0

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 + ( 51 ) AS col1 FROM tab1 AS cor0
----
51
51
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-6898
SELECT DISTINCT + + 21 DIV cor0.col0 FROM tab0, tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6898
SELECT DISTINCT + + 21 / cor0.col0 FROM tab0, tab0 AS cor0
----
0

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 DISTINCT + ( col2 ) FROM tab1
----
54
57
96

query I rowsort
SELECT - - col1 + + 63 AS col1 FROM tab2 AS cor0
----
122
80
94

query I rowsort
SELECT + col2 * - 62 FROM tab2 AS cor0
----
-1612
-1674
-2356

query I rowsort
SELECT col0 + - 90 FROM tab1 AS cor0
----
-10
-26
-87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6904
SELECT CAST( NULL AS DECIMAL ) * - 70 FROM tab1, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6904
SELECT CAST ( NULL AS REAL ) * - 70 FROM tab1, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # use DIV operator for integer division
query I rowsort label-6905
SELECT col1 * - col1 DIV col1 + + col1 col1 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6905
SELECT col1 * - col1 / col1 + + col1 col1 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col0 + - col2 col1 FROM tab0
----
2031
3394
8017

query I rowsort
SELECT DISTINCT + + cor0.col2 + 75 AS col2 FROM tab1 AS cor0
----
129
132
171

query I rowsort
SELECT ALL + col0 - - col2 * - col2 FROM tab2 AS cor0
----
-1365
-598
-722

query I rowsort
SELECT ALL - col0 * cor0.col2 + 19 FROM tab1 AS cor0
----
-143
-3629
-7661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + 4 col1 FROM tab1 AS cor0
----
104
40
52

query I rowsort
SELECT + - 87 * 21 AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c505c1f52e2b364290e3196c3d5c586f

query I rowsort
SELECT 85 FROM tab2
----
85
85
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-6913
SELECT col2 + col1 * col1 DIV + col1 FROM tab1 cor0
----
109
67
80

skipif mysql # not compatible
query I rowsort label-6913
SELECT col2 + col1 * col1 / + col1 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT col2 + - cor0.col0 AS col1 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT - col2 * col1 * + col0 + col1 + ( col2 * + col2 ) FROM tab2
----
-118917
-49573
-5099

query I rowsort
SELECT cor1.col2 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT DISTINCT - cor0.col2 * 64 AS col0 FROM tab0 AS cor0
----
-2112
-5248
-64

onlyif mysql # use DIV operator for integer division
query I rowsort label-6918
SELECT + - col1 DIV + col0 FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-6918
SELECT + - col1 / + col0 FROM tab0 AS cor0
----
-1
-2
-3

query I rowsort
SELECT + col2 * + col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL + col0 * + 11 + + cor0.col1 * + col1 + cor0.col1 AS col2 FROM tab1 AS cor0
----
1062
735
814

query I rowsort
SELECT DISTINCT ( col1 + col2 ) FROM tab0
----
119
173
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col1 ) col0 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT - + 5 * 91 FROM tab2 cor0
----
-455
-455
-455

query I rowsort
SELECT - - 8 + - 15 AS col0 FROM tab0 AS cor0
----
-7
-7
-7

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab0 AS cor1, tab2 cor2
----
972 values hashing to 591a9a93560839231c038a1e10bd240a

query I rowsort
SELECT + 96 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query I rowsort
SELECT - col0 + - col1 * + col0 FROM tab0 AS cor0
----
-2088
-3430
-8188

query I rowsort
SELECT ALL 41 FROM tab2, tab1 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT - + 54 + col1 AS col2 FROM tab1 AS cor0
----
-28
-41
-44

query I rowsort
SELECT - col2 + cor0.col0 * + 66 AS col0 FROM tab1 AS cor0
----
144
4167
5184

query I rowsort
SELECT DISTINCT 15 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort
SELECT CAST ( + col0 AS REAL ) * col0 / + ( + ( + tab2.col0 ) ) + col2 AS col1 FROM tab2
----
104
117
34

query I rowsort
SELECT DISTINCT col2 * + col0 AS col2 FROM tab2
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 col0 FROM tab0, tab1 AS cor0
----
10
13
26

query I rowsort
SELECT 96 FROM tab2 AS cor0
----
96
96
96

query I rowsort
SELECT ALL - 73 * - col1 AS col1 FROM tab0 cor0
----
6278
6643
7081

query I rowsort
SELECT ALL + + 28 AS col1 FROM tab2 AS cor0
----
28
28
28

query I rowsort
SELECT 97 + col0 FROM tab2 AS cor0
----
104
175
176

query I rowsort
SELECT - col0 + + col2 AS col2 FROM tab2 AS cor0
----
-41
-52
20

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0, tab1 cor1, tab1 AS cor2
----
972 values hashing to f8fe28681e8720551e1ec173631fc529

query I rowsort
SELECT ALL + 91 FROM tab0 AS cor0
----
91
91
91

query I rowsort
SELECT DISTINCT + ( - col0 ) + + col0 * - col0 FROM tab2 cor0
----
-56
-6162
-6320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 59 col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
59

query I rowsort
SELECT + + col0 + - cor0.col2 + - ( cor0.col1 ) FROM tab1 AS cor0
----
-29
-3
-77

query I rowsort
SELECT - + col0 * - 82 FROM tab2 AS cor0
----
574
6396
6478

query I rowsort
SELECT ALL + - col0 + col0 FROM tab0 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6947
SELECT DISTINCT + cor0.col0 + 94 * + col0 DIV col0 AS col1 FROM tab1 AS cor0
----
158
174
97

skipif mysql # not compatible
query I rowsort label-6947
SELECT DISTINCT + cor0.col0 + 94 * + col0 / col0 AS col1 FROM tab1 AS cor0
----
158
174
97

query I rowsort
SELECT ALL - - col1 * 69 FROM tab2 AS cor0
----
1173
2139
4071

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - ( col2 ) col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT - col2 * - col1 - cor0.col1 * cor0.col0 * 47 FROM tab0 AS cor0
----
-159468
-373191
-94170

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col1 col0 FROM tab1
----
109
67
80

query I rowsort
SELECT ALL - - tab1.col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT - tab2.col0 - col1 FROM tab2
----
-137
-38
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6954
SELECT ( + tab1.col2 ) + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6954
SELECT ( + tab1.col2 ) + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + tab2.col1 * + col0 + - tab2.col1 * col1 FROM tab2
----
-744
1054
1121

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6956
SELECT DISTINCT - col2 / tab0.col2 + - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6956
SELECT DISTINCT - col2 / tab0.col2 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT col1 + - col2 + col0 FROM tab2 AS cor0
----
11
111
58

query I rowsort
SELECT ALL + 19 + col1 * cor0.col2 FROM tab1 AS cor0
----
1267
1423
589

onlyif mysql # use DIV operator for integer division
query I rowsort label-6959
SELECT col1 DIV - CAST( 19 AS SIGNED ) AS col0 FROM tab2
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-6959
SELECT col1 / - CAST ( 19 AS INTEGER ) AS col0 FROM tab2
----
-1
-3
0

query I rowsort
SELECT - 29 + - col1 * cor0.col2 AS col1 FROM tab1 AS cor0
----
-1277
-1433
-599

query I rowsort
SELECT ALL + 45 AS col2 FROM tab2 AS cor0
----
45
45
45

query I rowsort
SELECT + ( cor0.col1 ) + - col1 + 73 FROM tab1 AS cor0
----
73
73
73

query I rowsort
SELECT ALL + col2 * 27 FROM tab2 AS cor0
----
1026
702
729

query I rowsort
SELECT ALL tab0.col2 * - 99 AS col0 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to e03465d5bc08d2d487db5d6223bee209

query I rowsort
SELECT DISTINCT - tab1.col2 * + 51 AS col2 FROM tab1
----
-2754
-2907
-4896

query I rowsort
SELECT col1 * - col0 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT - 77 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
-77

onlyif mysql # use DIV operator for integer division
query I rowsort label-6968
SELECT - col2 DIV 36 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6968
SELECT - col2 / 36 FROM tab2
----
-1
0
0

query I rowsort
SELECT col1 * ( + 88 + + col1 ) FROM tab1
----
1313
2964
980

onlyif mysql # use DIV operator for integer division
query I rowsort label-6970
SELECT + col0 DIV 40 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6970
SELECT + col0 / 40 FROM tab2
----
0
1
1

query I rowsort
SELECT col2 * col0 - col0 AS col0 FROM tab2
----
182
1950
2923

query I rowsort
SELECT ALL + 14 + cor0.col1 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to 458913e78daf966faeb942dbd3acb4ba

query I rowsort
SELECT - 9 AS col2 FROM tab1
----
-9
-9
-9

query I rowsort
SELECT DISTINCT + col0 * tab0.col1 AS col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT 71 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT - ( - 10 ) AS col0 FROM tab2 cor0
----
10
10
10

query I rowsort
SELECT 48 - col1 FROM tab1 AS cor0
----
22
35
38

query I rowsort
SELECT 84 + cor0.col2 FROM tab0 AS cor0
----
117
166
85

query I rowsort
SELECT - cor1.col0 AS col1 FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT ALL + ( - col2 ) + col0 AS col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT + ( col2 ) AS col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT col1 + col0 * col2 FROM tab0 AS cor0
----
132
7389
878

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6983
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - cor0.col0 AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6983
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - cor0.col0 AS col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT - 64 + col2 AS col0 FROM tab1 AS cor0
----
-10
-7
32

query I rowsort
SELECT ALL tab0.col2 + col0 * col0 FROM tab0
----
1226
609
8003

query I rowsort
SELECT ALL + col2 + tab0.col1 FROM tab0
----
119
173
98

query I rowsort
SELECT + + col2 * + cor0.col0 + 35 AS col0 FROM tab0 AS cor0
----
70
7333
827

query I rowsort
SELECT ALL + - 77 FROM tab0 AS cor0
----
-77
-77
-77

query I rowsort
SELECT - 62 * + cor0.col1 FROM tab0 AS cor0
----
-5332
-5642
-6014

query I rowsort
SELECT ALL + col0 - col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT ( + 24 ) * col1 FROM tab1
----
240
312
624

query I rowsort
SELECT ALL 76 * col2 + ( + tab1.col0 ) * col0 FROM tab1
----
13696
4113
8428

query I rowsort
SELECT ALL + tab1.col0 + + 26 FROM tab1, tab0 cor0
----
9 values hashing to 78d1f1a669989c2efce0556b049e9268

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + 45 col0 FROM tab0 AS cor0
----
1080
1575
4005

query I rowsort
SELECT col1 * cor0.col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT - ( + col0 ) * col2 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT + tab1.col1 + + col1 + tab1.col0 AS col0 FROM tab1
----
106
55
84

query I rowsort
SELECT 0 + col0 AS col0 FROM tab2
----
7
78
79

query I rowsort
SELECT tab1.col1 * col2 + col0 FROM tab1
----
1328
1407
634

query I rowsort
SELECT DISTINCT col0 * + tab2.col0 FROM tab2
----
49
6084
6241

query I rowsort
SELECT DISTINCT col2 * col2 AS col2 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT 19 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

onlyif mysql # use DIV operator for integer division
query I rowsort label-7003
SELECT col2 DIV + 1 FROM tab0 cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-7003
SELECT col2 / + 1 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT ALL - col0 * + 46 FROM tab2 AS cor0
----
-322
-3588
-3634

query I rowsort
SELECT col2 * col0 + col0 * tab2.col0 AS col0 FROM tab2
----
238
8112
9243

query I rowsort
SELECT DISTINCT col0 * + ( + col0 ) * + col2 FROM tab0 cor0
----
1225
19008
649522

query I rowsort
SELECT ALL - - col2 + col1 * col2 FROM tab0 AS cor0
----
2871
7544
98

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col2 * 0 + - cor0.col0 * col0 + + CAST ( 88 AS REAL ) FROM tab2 AS cor0
----
-5996
-6153
39

query I rowsort
SELECT ALL col0 * + col0 - col1 FROM tab2 cor0
----
18
6025
6224

query I rowsort
SELECT + col2 * + 70 AS col0 FROM tab0 AS cor0
----
2310
5740
70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7011
SELECT DISTINCT - + col1 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7011
SELECT DISTINCT - + col1 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + - cor0.col2 * - 83 FROM tab2 AS cor0
----
2158
2241
3154

query I rowsort
SELECT ALL - - col2 * ( - col1 ) AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7014
SELECT DISTINCT + cor0.col1 * CAST( NULL AS SIGNED ) / col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7014
SELECT DISTINCT + cor0.col1 * CAST ( NULL AS INTEGER ) / col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col2 * - col2 AS col0 FROM tab2 cor0
----
1444
676
729

onlyif mysql # use DIV operator for integer division
query I rowsort label-7016
SELECT - col0 DIV 37 FROM tab0 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-7016
SELECT - col0 / 37 FROM tab0 AS cor0
----
-2
0
0

query I rowsort
SELECT ALL + cor0.col0 + - 6 * + cor0.col2 FROM tab0 AS cor0
----
-174
-403
29

query I rowsort
SELECT col2 * ( - col0 ) AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT tab0.col0 + col2 AS col2 FROM tab0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-7020
SELECT ALL + cor0.col2 DIV + tab1.col2 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-7020
SELECT ALL + cor0.col2 / + tab1.col2 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT DISTINCT - col2 * col2 + 39 AS col0 FROM tab2 AS cor0
----
-1405
-637
-690

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col0 col2 FROM tab2 AS cor0
----
14
156
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 * col2 col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT - - cor0.col1 FROM tab1, tab0, tab2 AS cor0
----
17
31
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7025
SELECT ALL CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7025
SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL + tab2.col1 AS col1 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT - - ( col1 ) + - col2 AS col0 FROM tab1 cor0
----
-28
-47
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-7028
SELECT 73 + - 12 DIV + col1 AS col2 FROM tab0 AS cor0
----
73
73
73

skipif mysql # not compatible
query I rowsort label-7028
SELECT 73 + - 12 / + col1 AS col2 FROM tab0 AS cor0
----
73
73
73

query I rowsort
SELECT + - col0 * + 14 FROM tab0 cor0
----
-1246
-336
-490

query I rowsort
SELECT + 10 FROM tab2 AS cor0
----
10
10
10

query I rowsort
SELECT + - ( + col1 ) AS col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT + col1 * - col0 AS col1 FROM tab1 cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-7033
SELECT + - col1 DIV col0 col1 FROM tab2 AS cor0
----
-4
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7033
SELECT + - col1 / col0 col1 FROM tab2 AS cor0
----
-4
0
0

query I rowsort
SELECT + ( col0 ) * cor0.col0 AS col2 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT 7 * + cor0.col2 FROM tab2 AS cor0
----
182
189
266

query I rowsort
SELECT DISTINCT + 77 * col1 FROM tab0 AS cor0
----
6622
7007
7469

query I rowsort
SELECT DISTINCT - col2 + - col1 * col2 AS col0 FROM tab1 AS cor0
----
-1344
-1458
-627

query I rowsort
SELECT ALL col2 * col2 AS col1 FROM tab1 cor0
----
2916
3249
9216

query I rowsort
SELECT ALL + - cor0.col1 AS col2 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT + - col1 - col0 AS col1 FROM tab1 AS cor0
----
-29
-74
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-7041
SELECT + - col1 DIV - col1 + cor0.col0 - 92 FROM tab1 cor0
----
-11
-27
-88

skipif mysql # not compatible
query I rowsort label-7041
SELECT + - col1 / - col1 + cor0.col0 - 92 FROM tab1 cor0
----
-11
-27
-88

onlyif mysql # use DIV operator for integer division
query I rowsort label-7042
SELECT DISTINCT + 26 + col1 - 41 DIV - ( - col1 ) AS col2 FROM tab0 AS cor0
----
112
117
123

skipif mysql # not compatible
query I rowsort label-7042
SELECT DISTINCT + 26 + col1 - 41 / - ( - col1 ) AS col2 FROM tab0 AS cor0
----
112
117
123

query I rowsort
SELECT ALL ( - col0 ) FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT + cor0.col2 + - col0 * ( + col0 ) * col2 FROM tab1 AS cor0
----
-233415
-432
-614304

onlyif mysql # use DIV operator for integer division
query I rowsort label-7045
SELECT col0 DIV - col2 + cor0.col0 col2 FROM tab1 AS cor0
----
3
63
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7045
SELECT col0 / - col2 + cor0.col0 col2 FROM tab1 AS cor0
----
3
63
80

query I rowsort
SELECT DISTINCT - ( cor0.col2 ) * - cor0.col1 + ( - col1 ) * 89 * col1 FROM tab2 AS cor0
----
-25075
-308275
-84692

query I rowsort
SELECT ALL col1 - col0 AS col2 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT - 73 * - cor0.col0 + col2 FROM tab1 AS cor0
----
273
4729
5936

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col1 + col0 col2 FROM tab1 AS cor0
----
-36
-673
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col0 col2 FROM tab2 AS cor0
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-7051
SELECT - + col0 DIV + ( - col2 ) AS col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7051
SELECT - + col0 / + ( - col2 ) AS col2 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT + ( + col0 ) FROM tab1
----
3
64
80

query I rowsort
SELECT + col0 + + 13 * - col2 * cor0.col2 AS col1 FROM tab1 AS cor0
----
-119728
-37905
-42173

query I rowsort
SELECT ALL - col1 * - cor0.col2 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT ALL - - col2 + + col1 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT - col2 * + col0 + col0 FROM tab2 AS cor0
----
-182
-1950
-2923

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 BETWEEN - col2 * cor0.col1 AND NULL OR NULL NOT IN ( col0 + col2 )
----

query I rowsort
SELECT ALL col1 * tab0.col2 * col0 AS col1 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT + tab1.col0 AS col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col1 col1 FROM tab2
----
1534
646
837

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col0 ) NOT BETWEEN + col0 + col1 * + col2 AND NULL AND ( NULL ) < NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 = - col2 * - col0 + - col2 * - col0
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT - - col2 + col2 + col0 * col0 AS col2 FROM tab0 AS cor0
----
1227
642
8085

onlyif mysql # use DIV operator for integer division
query I rowsort label-7064
SELECT ALL + col0 DIV + col0 col0 FROM tab1 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7064
SELECT ALL + col0 / + col0 col0 FROM tab1 AS cor0
----
1
1
1

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0, tab0, tab1 AS cor1
----
972 values hashing to 7942394eb7766dfb9ea95b7805ff595d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col1 col0 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL col1 + col1 AS col1 FROM tab0
----
172
182
194

query I rowsort
SELECT ALL + col1 + - tab2.col1 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - col1 + + col1 * col0 * + col0 AS col1 FROM tab1
----
208
40950
83187

query I rowsort
SELECT cor0.col2 + cor0.col1 + cor0.col1 AS col0 FROM tab0 AS cor0
----
195
205
264

query I rowsort
SELECT cor0.col0 * + col0 + + col0 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT ALL - col1 + - col1 * + col2 + + col1 * col0 FROM tab0
----
-860
3201
546

query I rowsort
SELECT - tab1.col0 + col0 + + col2 AS col0 FROM tab1
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 * + col0 + col0 + + col2 col2 FROM tab0
----
118861
49593
720982

query I rowsort
SELECT DISTINCT tab1.col0 * - col1 AS col1 FROM tab1
----
-1040
-640
-78

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <= ( + col2 )
----

query I rowsort
SELECT DISTINCT col0 * + tab1.col0 FROM tab1
----
4096
6400
9

query I rowsort
SELECT DISTINCT col1 * col0 FROM tab2
----
1343
217
4602

query I rowsort
SELECT - col2 * col2 + col2 * + col2 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - tab0.col1 + - col1 * col0 * - tab0.col2 + - col0 AS col2 FROM tab0
----
3263
663938
68002

query III rowsort
SELECT * FROM tab2 WHERE NULL >= ( NULL )
----

query I rowsort
SELECT - tab1.col1 * + col0 AS col2 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT ALL + col1 * col0 FROM tab2
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-7084
SELECT col0 DIV - col1 + tab2.col0 FROM tab2
----
7
75
77

skipif mysql # not compatible
query I rowsort label-7084
SELECT col0 / - col1 + tab2.col0 FROM tab2
----
7
75
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-7085
SELECT ALL tab1.col0 DIV tab1.col1 + col0 + col2 * tab1.col0 AS col1 FROM tab1
----
165
3718
7766

skipif mysql # not compatible
query I rowsort label-7085
SELECT ALL tab1.col0 / tab1.col1 + col0 + col2 * tab1.col0 AS col1 FROM tab1
----
165
3718
7766

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( - tab1.col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> ( NULL )
----

query I rowsort
SELECT ALL - col1 * - tab2.col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT + col0 * + col2 + col1 FROM tab0
----
132
7389
878

query I rowsort
SELECT DISTINCT + col2 * - tab2.col1 AS col0 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT + col2 + col1 AS col1 FROM tab1
----
109
67
80

query I rowsort
SELECT cor0.col0 * col0 + + col2 * col1 * col1 FROM tab2 AS cor0
----
17223
25996
96590

query I rowsort
SELECT ALL - ( col2 ) FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT - 8 * - col1 FROM tab2 AS cor0
----
136
248
472

query I rowsort
SELECT 83 * + col2 AS col2 FROM tab0 AS cor0
----
2739
6806
83

query I rowsort
SELECT ALL + - col1 + - col1 + + ( + col2 ) FROM tab0 AS cor0
----
-100
-139
-193

query I rowsort
SELECT - col2 + col1 AS col0 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT DISTINCT - + cor0.col2 FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT 9 AS col1 FROM tab1, tab0 cor0, tab2 AS cor1
----
27 values hashing to ebef7303942834ca1e6ca8604ec18a07

query I rowsort
SELECT ALL - col1 + + cor0.col1 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col2 col1 FROM tab1 AS cor0
----
108
114
192

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT col2 + col2 + col0 AS col2 FROM tab1
----
111
178
272

query I rowsort
SELECT DISTINCT 55 + + col2 AS col2 FROM tab1 AS cor0
----
109
112
151

query I rowsort
SELECT ALL - col2 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col1 * + col1 + 4 + - col2 col2 FROM tab2 AS cor0
----
-323
-3503
-984

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * + col2 * col0 col0 FROM tab0 AS cor0 WHERE col0 / col2 NOT BETWEEN + col1 AND NULL
----
1225
19008
649522

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 * + col2 > ( - col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

onlyif mysql # use DIV operator for integer division
query I rowsort label-7109
SELECT col2 DIV - col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7109
SELECT col2 / - col0 FROM tab0
----
-1
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( tab2.col2 + - col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN ( col1 / - cor0.col2 + col1 * cor0.col1 + - col2 ) AND + col2
----

query I rowsort
SELECT DISTINCT col1 + - col1 * col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col1 AND ( col0 )
----

query I rowsort
SELECT DISTINCT cor0.col2 * col1 AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT + cor0.col0 * col1 * - cor0.col1 FROM tab2 AS cor0
----
-22831
-271518
-6727

query I rowsort
SELECT ALL col2 * + col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col1 + col1 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab2 WHERE NOT ( col2 ) < ( + col2 + col0 * + col1 )
----

query I rowsort
SELECT ALL - col2 * + col0 * - col2 + col0 AS col0 FROM tab2
----
114155
5110
52806

query I rowsort
SELECT col2 AS col2 FROM tab0 WHERE NOT + col0 <> NULL
----

query I rowsort
SELECT - col1 - + col0 * col0 AS col2 FROM tab1
----
-35
-4106
-6413

query I rowsort
SELECT DISTINCT col0 + - col1 AS col1 FROM tab0
----
-2
-62

query I rowsort
SELECT + tab1.col2 AS col2 FROM tab1
----
54
57
96

query I rowsort
SELECT ALL col0 + - tab0.col1 * col1 FROM tab0
----
-7372
-8192
-9374

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 IN ( col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT ALL - col0 * - col2 + col1 FROM tab0 WHERE NULL BETWEEN - col0 AND NULL
----

query I rowsort
SELECT ALL - col1 + + col1 AS col1 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7128
SELECT - col0 DIV - col1 AS col2 FROM tab2
----
0
1
4

skipif mysql # not compatible
query I rowsort label-7128
SELECT - col0 / - col1 AS col2 FROM tab2
----
0
1
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-7129
SELECT + col1 DIV col2 col1 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7129
SELECT + col1 / col2 col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + col2 + col2 * - col0 FROM tab2
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT col1 + tab0.col2 FROM tab0
----
119
173
98

query I rowsort
SELECT ALL col0 * + col0 FROM tab1 WHERE NOT ( col2 ) > + col0 + col1
----
4096

query I rowsort
SELECT ALL + col1 * - tab2.col2 + col2 * + tab2.col1 FROM tab2
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7134
SELECT - col1 DIV col2 + + col0 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-7134
SELECT - col1 / col2 + + col0 FROM tab1
----
3
64
80

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab1 WHERE ( NULL ) >= NULL
----

query I rowsort
SELECT col1 + tab0.col0 - col2 AS col0 FROM tab0
----
131
77
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col1 * - col2 + col2 col1 FROM tab2
----
1619
701
895

query I rowsort
SELECT DISTINCT + 73 + + col0 AS col1 FROM tab1 AS cor0
----
137
153
76

query I rowsort
SELECT DISTINCT + 76 + cor0.col2 AS col0 FROM tab0 AS cor0
----
109
158
77

query I rowsort
SELECT ALL + ( + col0 ) * - col0 - - 31 AS col0 FROM tab0 AS cor0
----
-1194
-545
-7890

onlyif mysql # use DIV operator for integer division
query I rowsort label-7141
SELECT ALL + 78 + - col1 DIV col0 AS col1 FROM tab1 AS cor0
----
70
78
78

skipif mysql # not compatible
query I rowsort label-7141
SELECT ALL + 78 + - col1 / col0 AS col1 FROM tab1 AS cor0
----
70
78
78

query I rowsort
SELECT - 77 + col0 FROM tab2
----
-70
1
2

query I rowsort
SELECT ALL 94 AS col0 FROM tab0
----
94
94
94

query I rowsort
SELECT DISTINCT - col0 * col0 + + col1 AS col0 FROM tab1 AS cor0
----
-4086
-6387
17

query I rowsort
SELECT ALL - - col0 + - col0 * col1 * - col1 AS col1 FROM tab0 AS cor0
----
177528
329350
737098

query I rowsort
SELECT - ( + col1 ) FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT 85 + col1 AS col1 FROM tab0 AS cor0
----
171
176
182

query I rowsort
SELECT ALL - 74 AS col2 FROM tab2, tab1 cor0
----
9 values hashing to 5a567947d14593676e3825756f8e6130

query I rowsort
SELECT DISTINCT + cor0.col2 * col2 - + cor0.col0 * + ( - col1 ) AS col0 FROM tab1 AS cor0
----
10256
2994
3889

query I rowsort
SELECT DISTINCT - ( - col0 ) + 71 * cor0.col2 FROM tab0 AS cor0
----
106
2367
5911

query I rowsort
SELECT - col2 + 70 AS col0 FROM tab1 AS cor0
----
-26
13
16

onlyif mysql # use DIV operator for integer division
query I rowsort label-7152
SELECT col0 DIV col2 + + 67 * + col1 col1 FROM tab1
----
1742
671
871

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7152
SELECT col0 / col2 + + 67 * + col1 col1 FROM tab1
----
1742
671
871

onlyif mysql # use DIV operator for integer division
query I rowsort label-7153
SELECT col0 DIV + CAST( col1 + - col0 AS SIGNED ) FROM tab1 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7153
SELECT col0 / + CAST ( col1 + - col0 AS INTEGER ) FROM tab1 cor0
----
-1
-1
0

query I rowsort
SELECT DISTINCT - col2 + - 87 AS col0 FROM tab1 AS cor0
----
-141
-144
-183

query I rowsort
SELECT + + col2 + + col1 FROM tab0 AS cor0
----
119
173
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 71 col0 FROM tab2, tab1, tab2 AS cor0
----
71

query I rowsort
SELECT DISTINCT 39 AS col0 FROM tab0
----
39

query I rowsort
SELECT + col2 + col0 AS col2 FROM tab1
----
121
176
57

query I rowsort
SELECT ALL - + 14 * col2 AS col0 FROM tab0 AS cor0
----
-1148
-14
-462

query I rowsort
SELECT DISTINCT col1 * 39 * col2 FROM tab2 AS cor0
----
25194
32643
59826

query I rowsort
SELECT - 65 FROM tab0 AS cor0
----
-65
-65
-65

query I rowsort
SELECT ( 21 ) + col0 * ( + col1 ) FROM tab0 AS cor0
----
2085
3416
8120

query I rowsort
SELECT DISTINCT - 47 + col1 AS col1 FROM tab2 cor0
----
-16
-30
12

query I rowsort
SELECT DISTINCT + - 24 * 19 FROM tab0 AS cor0
----
-456

onlyif mysql # use DIV operator for integer division
query I rowsort label-7165
SELECT ALL - - ( + col1 ) DIV cor0.col2 AS col1 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-7165
SELECT ALL - - ( + col1 ) / cor0.col2 AS col1 FROM tab0 AS cor0
----
1
2
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7166
SELECT DISTINCT CAST( NULL AS SIGNED ) * col1 / cor0.col2 - + col0 / col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7166
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col1 / cor0.col2 - + col0 / col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL col0 * - col2 AS col0 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT ( col2 ) + + col1 FROM tab2 AS cor0
----
55
58
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7169
SELECT + + ( - col1 ) * col1 + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7169
SELECT + + ( - col1 ) * col1 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 87 + 40 + - cor0.col2 FROM tab2 cor0
----
100
101
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 48 * col1 + col0 - 80 col2 FROM tab2 AS cor0
----
1415
2830
815

query I rowsort
SELECT ALL 62 FROM tab1 AS cor0
----
62
62
62

query I rowsort
SELECT + ( cor0.col1 ) * col1 + + 37 FROM tab0 cor0
----
7433
8318
9446

query I rowsort
SELECT 75 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to e61b59795204c348103a58c0a8e4ce16

query I rowsort
SELECT + tab1.col2 + 15 * - col2 + col2 AS col0 FROM tab1
----
-1248
-702
-741

query I rowsort
SELECT DISTINCT 12 AS col0 FROM tab2 cor0
----
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col1 - col2 col0 FROM tab2
----
-327
-3507
-988

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7178
SELECT - col2 * CAST( NULL AS DECIMAL ) - 82 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7178
SELECT - col2 * CAST ( NULL AS REAL ) - 82 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7179
SELECT DISTINCT col2 - CAST( NULL AS SIGNED ) col1 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7179
SELECT DISTINCT col2 - CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 cor0 CROSS JOIN tab2, tab1 AS cor1
----
972 values hashing to dd771e0c15d524f62127686e9bd43f9a

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7181
SELECT ALL + - ( col1 ) + + col0 + CAST( + col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-17
141
97

skipif mysql # not compatible
query I rowsort label-7181
SELECT ALL + - ( col1 ) + + col0 + CAST ( + col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-17
141
97

skipif mysql # not compatible
query I rowsort
SELECT CAST ( - col0 AS REAL ) FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL - col1 + col1 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - ( - 91 ) FROM tab0 AS cor0
----
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-7185
SELECT ALL + - col0 DIV - col0 + cor0.col0 + - col1 AS col0 FROM tab0 AS cor0
----
-1
-61
-61

skipif mysql # not compatible
query I rowsort label-7185
SELECT ALL + - col0 / - col0 + cor0.col0 + - col1 AS col0 FROM tab0 AS cor0
----
-1
-61
-61

query I rowsort
SELECT ALL col0 + + 81 * + col2 + - col0 FROM tab0
----
2673
6642
81

query I rowsort
SELECT - - col2 + - col1 + col2 AS col2 FROM tab2 AS cor0
----
-7
23
59

query I rowsort
SELECT + 15 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query I rowsort
SELECT col1 * + col2 AS col0 FROM tab0
----
2838
7462
97

query I rowsort
SELECT + 9 FROM tab2, tab1 cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query I rowsort
SELECT + 78 * + col0 AS col2 FROM tab2 AS cor0
----
546
6084
6162

query I rowsort
SELECT - + 33 FROM tab2 AS cor0
----
-33
-33
-33

query I rowsort
SELECT + 60 AS col0 FROM tab1 cor0
----
60
60
60

query I rowsort
SELECT ALL 98 * - col0 FROM tab0 AS cor0
----
-2352
-3430
-8722

query I rowsort
SELECT ALL - 64 * - col0 + col1 AS col2 FROM tab1 AS cor0
----
218
4106
5133

onlyif mysql # use DIV operator for integer division
query I rowsort label-7196
SELECT - - col2 + col1 DIV 80 AS col2 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-7196
SELECT - - col2 + col1 / 80 AS col2 FROM tab0 AS cor0
----
2
34
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-7197
SELECT - col1 DIV + 77 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7197
SELECT - col1 / + 77 AS col1 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7198
SELECT - col2 DIV 88 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7198
SELECT - col2 / 88 AS col0 FROM tab0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7199
SELECT CAST( NULL AS DECIMAL ) AS col1 FROM tab1, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7199
SELECT CAST ( NULL AS REAL ) AS col1 FROM tab1, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL - col0 + - col1 * - col1 FROM tab1 AS cor0
----
36
673
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-7201
SELECT DISTINCT + col2 DIV 30 FROM tab1 AS cor0
----
1
3

skipif mysql # not compatible
query I rowsort label-7201
SELECT DISTINCT + col2 / 30 FROM tab1 AS cor0
----
1
3

query I rowsort
SELECT ALL + col2 + 71 AS col2 FROM tab2 AS cor0
----
109
97
98

query I rowsort
SELECT DISTINCT + cor0.col1 * - ( - col2 ) FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT + + col0 * - col1 * 70 AS col2 FROM tab0 AS cor0
----
-144480
-237650
-566930

query I rowsort
SELECT ALL + + col0 + col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT - - cor0.col0 * col1 AS col0 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-7207
SELECT ALL - - col0 DIV - ( - col1 ) AS col1 FROM tab1 AS cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-7207
SELECT ALL - - col0 / - ( - col1 ) AS col1 FROM tab1 AS cor0
----
0
6
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-7208
SELECT - col0 DIV - 94 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7208
SELECT - col0 / - 94 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + - col0 + col2 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT ALL col0 * col0 AS col0 FROM tab2 cor0
----
49
6084
6241

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7211
SELECT - - CAST( - col0 AS SIGNED ) + + col0 + ( - cor0.col0 * col2 ) AS col0 FROM tab1 cor0
----
-162
-3648
-7680

skipif mysql # not compatible
query I rowsort label-7211
SELECT - - CAST ( - col0 AS INTEGER ) + + col0 + ( - cor0.col0 * col2 ) AS col0 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT + 18 * + col1 FROM tab0 AS cor0
----
1548
1638
1746

query I rowsort
SELECT ALL + 13 AS col2 FROM tab1 AS cor0
----
13
13
13

query I rowsort
SELECT + - col1 * - 59 AS col2 FROM tab1 AS cor0
----
1534
590
767

query I rowsort
SELECT + col1 * + col1 AS col0 FROM tab2
----
289
3481
961

query I rowsort
SELECT DISTINCT + cor0.col2 + + cor0.col0 AS col2 FROM tab2, tab0 cor0
----
171
36
57

query I rowsort
SELECT ALL 63 * col2 FROM tab1 AS cor0
----
3402
3591
6048

query I rowsort
SELECT - + ( 13 ) + - col1 AS col0 FROM tab2 AS cor0
----
-30
-44
-72

query I rowsort
SELECT - ( col1 ) * col1 + + col1 * col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col0 * col1 + col0 AS col2 FROM tab0 cor0
----
2088
3430
8188

query I rowsort
SELECT ALL - 63 FROM tab0, tab0 AS cor0
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

query I rowsort
SELECT - - cor0.col0 * col1 + + col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT - col0 + + 62 * + col1 FROM tab0 AS cor0
----
5308
5553
5979

query I rowsort
SELECT DISTINCT + col0 + 97 FROM tab2 AS cor0
----
104
175
176

query I rowsort
SELECT tab0.col0 + 13 FROM tab0, tab0 AS cor0
----
9 values hashing to d9410beff3b456cbe492d6b2a0c0d43e

query I rowsort
SELECT - col1 * col1 + - cor0.col2 FROM tab2 AS cor0
----
-327
-3507
-988

query I rowsort
SELECT col1 * col1 + - col1 FROM tab0 AS cor0
----
7310
8190
9312

query I rowsort
SELECT ALL + - col1 * ( - col2 ) AS col1 FROM tab2 cor0
----
1534
646
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7229
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * + 14 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7229
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * + 14 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + col1 + 49 + col1 * 99 * col1 FROM tab1 AS cor0
----
16793
66999
9959

query I rowsort
SELECT cor2.col1 FROM tab1, tab1 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c

query I rowsort
SELECT ALL ( col2 ) + col1 FROM tab1 AS cor0
----
109
67
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col2 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT DISTINCT + col2 + col2 * - col2 + + 84 AS col2 FROM tab2 AS cor0
----
-1322
-566
-618

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7235
SELECT - - CAST( NULL AS SIGNED ) + col0 * + col1 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7235
SELECT - - CAST ( NULL AS INTEGER ) + col0 * + col1 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col1 * col2 + - col1 * + col1 AS col1 FROM tab1 AS cor0
----
-1417
-2080
-670

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7237
SELECT DISTINCT - col0 * + CAST( NULL AS SIGNED ) + + 30 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7237
SELECT DISTINCT - col0 * + CAST ( NULL AS INTEGER ) + + 30 AS col2 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + tab2.col2 ) col2 FROM tab2
----
26
27
38

query I rowsort
SELECT ALL + 19 FROM tab1
----
19
19
19

query I rowsort
SELECT DISTINCT - 42 * - col1 * tab1.col0 FROM tab1
----
26880
3276
43680

query I rowsort
SELECT DISTINCT col0 * col2 AS col1 FROM tab2
----
189
2028
3002

query I rowsort
SELECT + 20 FROM tab0
----
20
20
20

query I rowsort
SELECT DISTINCT + 24 FROM tab1
----
24

query I rowsort
SELECT + - 66 + + cor0.col2 AS col0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 45effeaf3bfc3a390bfccb74c499d55c

query I rowsort
SELECT - 29 * - col2 FROM tab2
----
1102
754
783

query I rowsort
SELECT tab1.col2 * 83 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 7cfac30b9a8f0efdf067d08fb36c850d

onlyif mysql # use DIV operator for integer division
query I rowsort label-7247
SELECT + col2 DIV - col0 AS col2 FROM tab1
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-7247
SELECT + col2 / - col0 AS col2 FROM tab1
----
-1
-18
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7248
SELECT DISTINCT + tab2.col2 DIV - 56 col1 FROM tab2, tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7248
SELECT DISTINCT + tab2.col2 / - 56 col1 FROM tab2, tab1 AS cor0
----
0

query I rowsort
SELECT ALL col2 + col1 - 2 AS col1 FROM tab0
----
117
171
96

query I rowsort
SELECT + col1 + + col0 + col0 FROM tab0
----
134
167
269

query I rowsort
SELECT col0 * 16 + 17 FROM tab1 AS cor0
----
1041
1297
65

query I rowsort
SELECT DISTINCT - col1 * + 51 AS col1 FROM tab2 AS cor0
----
-1581
-3009
-867

query I rowsort
SELECT - col0 + tab2.col0 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT col2 + col1 * + 35 AS col1 FROM tab2 AS cor0
----
1112
2091
633

query I rowsort
SELECT 38 + - col0 FROM tab2
----
-40
-41
31

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7256
SELECT col0 * - CAST( - 51 AS SIGNED ) * - col2 AS col1 FROM tab1
----
-186048
-391680
-8262

skipif mysql # not compatible
query I rowsort label-7256
SELECT col0 * - CAST ( - 51 AS INTEGER ) * - col2 AS col1 FROM tab1
----
-186048
-391680
-8262

query I rowsort
SELECT - col2 * ( + col2 ) AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ALL col0 + 73 AS col1 FROM tab2
----
151
152
80

query I rowsort
SELECT ALL + tab0.col0 + + col1 FROM tab0
----
110
132
180

query I rowsort
SELECT DISTINCT - col0 * + 78 FROM tab2 AS cor0
----
-546
-6084
-6162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * - 65 col2 FROM tab2 AS cor0
----
1690
1755
2470

query I rowsort
SELECT + 60 FROM tab1, tab0 cor0, tab1 AS cor1
----
27 values hashing to 1d2ab302ae60f95b15e68cf89083b162

query I rowsort
SELECT ALL + + col2 * - col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL col2 * col2 * col1 FROM tab0 AS cor0
----
611884
93654
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-7265
SELECT ALL + col0 DIV - CAST( - 82 AS SIGNED ) FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7265
SELECT ALL + col0 / - CAST ( - 82 AS INTEGER ) FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT - + col2 * - col0 * cor0.col2 + col2 AS col1 FROM tab2 AS cor0
----
114114
5130
52754

query I rowsort
SELECT col1 * 66 FROM tab0 AS cor0
----
5676
6006
6402

query I rowsort
SELECT ALL ( - col2 ) AS col2 FROM tab2
----
-26
-27
-38

query I rowsort
SELECT DISTINCT + 51 AS col1 FROM tab0
----
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7271
SELECT - CAST( NULL AS SIGNED ) + + col0 * + col1 col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7271
SELECT - CAST ( NULL AS INTEGER ) + + col0 * + col1 col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 18 + 62 FROM tab1
----
44
44
44

query I rowsort
SELECT 21 AS col0 FROM tab1
----
21
21
21

query I rowsort
SELECT - 79 * - cor0.col2 + - cor0.col1 + 51 AS col1 FROM tab0 AS cor0
----
2572
33
6438

query I rowsort
SELECT DISTINCT + 63 + col1 * col2 AS col1 FROM tab2 AS cor0
----
1597
709
900

onlyif mysql # use DIV operator for integer division
query I rowsort label-7276
SELECT - - cor0.col1 DIV + col2 + cor0.col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-7276
SELECT - - cor0.col1 / + col2 + cor0.col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT - col0 + + col2 * - col1 * - ( - 60 + - col0 ) AS col1 FROM tab1 AS cor0
----
-174800
-70744
-88455

query I rowsort
SELECT DISTINCT col0 * - col1 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT col2 * col2 AS col2 FROM tab2 cor0
----
1444
676
729

query I rowsort
SELECT + - 57 + col2 AS col1 FROM tab1 AS cor0
----
-3
0
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col1 col2 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT + col0 * - col1 AS col0 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT 93 + col1 FROM tab2 AS cor0
----
110
124
152

query I rowsort
SELECT DISTINCT 76 AS col0 FROM tab2 cor0
----
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col2 + + cor0.col0 col1 FROM tab2 AS cor0
----
100
3
45

query I rowsort
SELECT + col0 * col1 AS col0 FROM tab1 cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-7287
SELECT ALL tab1.col0 DIV col0 AS col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7287
SELECT ALL tab1.col0 / col0 AS col2 FROM tab1
----
1
1
1

query I rowsort
SELECT ALL + 65 * + col0 AS col0 FROM tab2
----
455
5070
5135

query I rowsort
SELECT DISTINCT col0 * - cor0.col1 + + ( col0 ) + - col2 * + col1 AS col0 FROM tab1 AS cor0
----
-1146
-1479
-2208

query I rowsort
SELECT ALL + 86 FROM tab1 AS cor0
----
86
86
86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7291
SELECT DISTINCT 41 * + col0 * - CAST( NULL AS SIGNED ) + - 38 / cor0.col0 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7291
SELECT DISTINCT 41 * + col0 * - CAST ( NULL AS INTEGER ) + - 38 / cor0.col0 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - + 80 * cor0.col1 + cor0.col1 AS col2 FROM tab2 AS cor0
----
-1343
-2449
-4661

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0, tab2 cor1
----
243 values hashing to 60bd71ee2159222231bb3b5819bc5dca

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7294
SELECT CAST( + 94 AS SIGNED ) FROM tab1, tab1 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

skipif mysql # not compatible
query I rowsort label-7294
SELECT CAST ( + 94 AS INTEGER ) FROM tab1, tab1 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

onlyif mysql # use DIV operator for integer division
query I rowsort label-7295
SELECT DISTINCT + + cor0.col2 * col0 * + col1 + - col0 DIV col1 + cor0.col2 AS col0 FROM tab1 AS cor0
----
36531
4266
99930

skipif mysql # not compatible
query I rowsort label-7295
SELECT DISTINCT + + cor0.col2 * col0 * + col1 + - col0 / col1 + cor0.col2 AS col0 FROM tab1 AS cor0
----
36531
4266
99930

query I rowsort
SELECT ALL + col2 * + 51 AS col2 FROM tab0 AS cor0
----
1683
4182
51

query I rowsort
SELECT + col1 + col2 * + 81 AS col0 FROM tab2 AS cor0
----
2165
2218
3095

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7298
SELECT DISTINCT - cor0.col2 / CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7298
SELECT DISTINCT - cor0.col2 / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL col0 * col2 FROM tab2 cor0
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 col2 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT + 25 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query I rowsort
SELECT 33 + col0 * - col0 FROM tab1 AS cor0
----
-4063
-6367
24

query I rowsort
SELECT DISTINCT - - col0 * - col0 AS col0 FROM tab1 cor0
----
-4096
-6400
-9

query I rowsort
SELECT - 42 + - col0 * - col1 AS col2 FROM tab0 AS cor0
----
2022
3353
8057

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7305
SELECT DISTINCT - + cor2.col1 * CAST( + 77 AS SIGNED ) AS col0 FROM tab1, tab0 cor0, tab0 AS cor1, tab0, tab2 AS cor2
----
-1309
-2387
-4543

skipif mysql # not compatible
query I rowsort label-7305
SELECT DISTINCT - + cor2.col1 * CAST ( + 77 AS INTEGER ) AS col0 FROM tab1, tab0 cor0, tab0 AS cor1, tab0, tab2 AS cor2
----
-1309
-2387
-4543

query I rowsort
SELECT DISTINCT - + col1 + - 65 * - col0 AS col2 FROM tab0 cor0
----
1474
2178
5694

query I rowsort
SELECT - 92 * - cor0.col1 FROM tab1 AS cor0
----
1196
2392
920

query I rowsort
SELECT + 91 FROM tab1, tab1 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

onlyif mysql # use DIV operator for integer division
query I rowsort label-7309
SELECT 96 DIV 16 AS col0 FROM tab2 cor0
----
6
6
6

skipif mysql # not compatible
query I rowsort label-7309
SELECT 96 / 16 AS col0 FROM tab2 cor0
----
6
6
6

query I rowsort
SELECT + + col2 * - 85 * col1 FROM tab1 AS cor0
----
-106080
-119340
-48450

query I rowsort
SELECT + - col0 * col1 * col1 FROM tab0 AS cor0
----
-177504
-329315
-737009

query I rowsort
SELECT DISTINCT + 59 AS col2 FROM tab2, tab0 AS cor0
----
59

query I rowsort
SELECT ALL - - 14 * cor0.col1 FROM tab2 AS cor0
----
238
434
826

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col0 + 93 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to a4e08e5121cd8dc57a6dfe331d50c533

onlyif mysql # use DIV operator for integer division
query I rowsort label-7315
SELECT ALL + ( col0 ) DIV + 30 + - col0 AS col0 FROM tab2 AS cor0
----
-7
-76
-77

skipif mysql # not compatible
query I rowsort label-7315
SELECT ALL + ( col0 ) / + 30 + - col0 AS col0 FROM tab2 AS cor0
----
-7
-76
-77

query I rowsort
SELECT + 67 AS col0 FROM tab1 AS cor0
----
67
67
67

query I rowsort
SELECT DISTINCT - 85 AS col0 FROM tab2 AS cor0
----
-85

query I rowsort
SELECT ALL + 85 * col2 FROM tab0 AS cor0
----
2805
6970
85

query I rowsort
SELECT DISTINCT - 36 * - col0 FROM tab2 AS cor0
----
252
2808
2844

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7320
SELECT DISTINCT - col2 + + col0 * + CAST( NULL AS SIGNED ) col0 FROM tab1 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7320
SELECT DISTINCT - col2 + + col0 * + CAST ( NULL AS INTEGER ) col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT cor0.col0 * - col1 * - col2 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT + col2 * - col0 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL - cor0.col0 * + col0 AS col1 FROM tab0 cor0
----
-1225
-576
-7921

query I rowsort
SELECT ALL + - 6 AS col1 FROM tab0, tab0 cor0, tab0 AS cor1, tab2, tab1 AS cor2
----
243 values hashing to 8536e0a5afd23e5b21a76aa74de79430

query I rowsort
SELECT 92 AS col0 FROM tab1 AS cor0
----
92
92
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-7326
SELECT ALL + 87 * col2 - 90 DIV + col0 AS col0 FROM tab2 AS cor0
----
2261
2337
3305

skipif mysql # not compatible
query I rowsort label-7326
SELECT ALL + 87 * col2 - 90 / + col0 AS col0 FROM tab2 AS cor0
----
2261
2337
3305

query I rowsort
SELECT cor0.col1 + - col2 FROM tab2 AS cor0
----
-21
33
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-7328
SELECT cor0.col0 DIV col0 + - 44 + - col0 FROM tab0 AS cor0
----
-132
-67
-78

skipif mysql # not compatible
query I rowsort label-7328
SELECT cor0.col0 / col0 + - 44 + - col0 FROM tab0 AS cor0
----
-132
-67
-78

query I rowsort
SELECT - cor0.col1 * - col1 + - col0 * col2 - col0 AS col1 FROM tab2 AS cor0
----
-2792
1375
765

query I rowsort
SELECT - - col0 * col1 AS col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT - col2 + col0 + 54 AS col2 FROM tab0 AS cor0
----
45
61
88

query I rowsort
SELECT ALL + - col2 * + col1 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-7333
SELECT - col1 DIV + ( + 35 ) AS col0 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7333
SELECT - col1 / + ( + 35 ) AS col0 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT + tab1.col1 - 8 FROM tab1, tab0 AS cor0
----
18
2
5

query I rowsort
SELECT DISTINCT - 90 + col1 AS col1 FROM tab1
----
-64
-77
-80

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab0 AS cor1, tab1 AS cor2
----
972 values hashing to 0a9194f200a4220e419d35c461f9fcfe

onlyif mysql # use DIV operator for integer division
query I rowsort label-7337
SELECT - col2 DIV - ( col2 ) col1 FROM tab1
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7337
SELECT - col2 / - ( col2 ) col1 FROM tab1
----
1
1
1

query I rowsort
SELECT + col2 + - col1 * 43 AS col1 FROM tab2 AS cor0
----
-1306
-2511
-693

query I rowsort
SELECT - col1 + col2 * col0 * - col0 FROM tab1 AS cor0
----
-233482
-512
-614413

query I rowsort
SELECT + - col0 + ( col0 ) * - col1 FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT DISTINCT + - col0 * - cor0.col1 FROM tab2 AS cor0
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 54 + col1 col1 FROM tab1 AS cor0
----
64
67
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col1 col0 FROM tab2 AS cor0
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-7344
SELECT - col2 * ( col2 ) DIV + col1 AS col0 FROM tab2
----
-11
-23
-84

skipif mysql # not compatible
query I rowsort label-7344
SELECT - col2 * ( col2 ) / + col1 AS col0 FROM tab2
----
-11
-23
-84

onlyif mysql # use DIV operator for integer division
query I rowsort label-7345
SELECT tab2.col0 DIV 51 AS col0 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7345
SELECT tab2.col0 / 51 AS col0 FROM tab2
----
0
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7346
SELECT + col1 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7346
SELECT + col1 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT 61 AS col2 FROM tab1 AS cor0
----
61
61
61

query I rowsort
SELECT - 63 + col0 * - 90 FROM tab1 AS cor0
----
-333
-5823
-7263

query I rowsort
SELECT - 22 * + col1 AS col2 FROM tab2 AS cor0
----
-1298
-374
-682

query I rowsort
SELECT DISTINCT + ( tab0.col1 ) AS col2 FROM tab0
----
86
91
97

query I rowsort
SELECT + ( 5 ) AS col2 FROM tab2
----
5
5
5

query I rowsort
SELECT DISTINCT 11 AS col0 FROM tab0, tab1 AS cor0
----
11

query I rowsort
SELECT + col1 + - col2 * col2 FROM tab1
----
-2890
-3239
-9203

query I rowsort
SELECT DISTINCT + col1 * tab2.col1 AS col1 FROM tab2
----
289
3481
961

query I rowsort
SELECT col2 + + tab0.col0 AS col1 FROM tab0
----
171
36
57

query I rowsort
SELECT - col0 + - col0 FROM tab0
----
-178
-48
-70

query I rowsort
SELECT col1 + 85 * - col0 FROM tab1
----
-229
-5430
-6787

query I rowsort
SELECT ALL + ( + tab1.col1 ) * + ( + col1 ) AS col2 FROM tab1
----
100
169
676

query I rowsort
SELECT - 99 + + col1 * col0 FROM tab2
----
118
1244
4503

query I rowsort
SELECT ALL cor1.col2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT ALL + 53 + + col2 AS col2 FROM tab1 AS cor0
----
107
110
149

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + tab1.col2 col1 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT ALL + cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT ALL + - col0 AS col2 FROM tab0 AS cor0
----
-24
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col2 * col0 + col1 col0 FROM tab0
----
132
7389
878

query I rowsort
SELECT tab2.col1 * col0 + + col0 * + col1 + col0 AS col1 FROM tab2
----
2765
441
9282

query I rowsort
SELECT + 54 FROM tab1, tab0 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

onlyif mysql # use DIV operator for integer division
query I rowsort label-7369
SELECT + col0 DIV 99 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7369
SELECT + col0 / 99 FROM tab0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7370
SELECT DISTINCT - CAST( - col1 + + tab1.col2 AS SIGNED ) AS col2 FROM tab1
----
-28
-47
-83

skipif mysql # not compatible
query I rowsort label-7370
SELECT DISTINCT - CAST ( - col1 + + tab1.col2 AS INTEGER ) AS col2 FROM tab1
----
-28
-47
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-7371
SELECT + ( - col2 ) DIV col2 AS col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7371
SELECT + ( - col2 ) / col2 AS col1 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT ALL - cor0.col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 7 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

query I rowsort
SELECT ALL 60 + cor0.col1 FROM tab1, tab2 cor0
----
9 values hashing to 0c4e629da9ab538f0a0ed876800eb49e

query I rowsort
SELECT - col0 * col0 * - col0 FROM tab0 AS cor0
----
13824
42875
704969

query I rowsort
SELECT col0 + cor0.col2 * + col1 FROM tab2 AS cor0
----
1612
725
844

onlyif mysql # use DIV operator for integer division
query I rowsort label-7377
SELECT DISTINCT - 72 DIV tab1.col1 FROM tab1
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-7377
SELECT DISTINCT - 72 / tab1.col1 FROM tab1
----
-2
-5
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col0 - - tab1.col2 col2 FROM tab1
----
-7
16
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 * + 98 * + col1 + 77 * col0 col2 FROM tab2
----
34405
347144
94717

query I rowsort
SELECT 27 * col2 FROM tab0 AS cor0
----
2214
27
891

query I rowsort
SELECT + col1 + + col1 + + col0 FROM tab0 AS cor0
----
196
229
271

onlyif mysql # use DIV operator for integer division
query I rowsort label-7382
SELECT - col1 * - col0 + + col2 DIV - col1 + col1 FROM tab1 AS cor0
----
102
1046
645

skipif mysql # not compatible
query I rowsort label-7382
SELECT - col1 * - col0 + + col2 / - col1 + col1 FROM tab1 AS cor0
----
102
1046
645

query I rowsort
SELECT DISTINCT - + col2 + - col1 * + col0 AS col0 FROM tab0 AS cor0
----
-2097
-3396
-8181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col2 col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL - 76 * col1 + 26 FROM tab0
----
-6510
-6890
-7346

query I rowsort
SELECT DISTINCT + tab0.col2 AS col2 FROM tab0, tab1 AS cor0
----
1
33
82

query I rowsort
SELECT + 10 + + col0 FROM tab0 AS cor0
----
34
45
99

query I rowsort
SELECT + + col1 + col0 + col2 AS col2 FROM tab1 AS cor0
----
131
189
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col0 - ( + col0 ) col0 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT DISTINCT - 86 AS col0 FROM tab0 AS cor0
----
-86

query I rowsort
SELECT ALL + 14 + - col2 FROM tab1 AS cor0
----
-40
-43
-82

query I rowsort
SELECT + ( col0 + col1 * tab2.col1 ) FROM tab2
----
3559
368
968

query I rowsort
SELECT ALL tab0.col0 * ( + col1 ) AS col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT ALL + 3 FROM tab1 AS cor0
----
3
3
3

query I rowsort
SELECT DISTINCT col1 + + col1 * ( col1 ) AS col0 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT ALL - col2 * cor0.col0 * cor0.col1 FROM tab0 AS cor0
----
-3395
-664118
-68112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col2 * + ( ( cor0.col1 ) ) col1 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT cor0.col0 * + 11 AS col1 FROM tab1 AS cor0
----
33
704
880

query I rowsort
SELECT - 42 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 9fa3c02ecae23525dd0e284c4751c1df

query I rowsort
SELECT - - col0 + 70 AS col2 FROM tab1 AS cor0
----
134
150
73

query I rowsort
SELECT DISTINCT col2 - ( col2 ) AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col0 + - col2 AS col2 FROM tab1 AS cor0
----
-121
-176
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - 98 + + 21 * + col2 + + cor0.col2 col1 FROM tab1 AS cor0
----
-1360
274
838

query I rowsort
SELECT cor0.col0 + 21 FROM tab0 AS cor0
----
110
45
56

onlyif mysql # use DIV operator for integer division
query I rowsort label-7405
SELECT + - col0 DIV + cor0.col1 + + col0 + + col0 FROM tab2 cor0
----
14
154
155

skipif mysql # not compatible
query I rowsort label-7405
SELECT + - col0 / + cor0.col1 + + col0 + + col0 FROM tab2 cor0
----
14
154
155

query I rowsort
SELECT + col2 + 12 FROM tab2 AS cor0
----
38
39
50

query I rowsort
SELECT ALL + col0 * 46 * + col2 AS col0 FROM tab2 AS cor0
----
138092
8694
93288

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab2 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to db428ec66bce13149e3129b417b0fe94

query I rowsort
SELECT DISTINCT - 73 FROM tab2 AS cor0
----
-73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7410
SELECT CAST( NULL AS SIGNED ) * + 14 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7410
SELECT CAST ( NULL AS INTEGER ) * + 14 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * - col2 + - col0 col0 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT 48 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query I rowsort
SELECT ALL + 36 * + 44 AS col0 FROM tab1 AS cor0
----
1584
1584
1584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * cor0.col2 * col2 + - col1 * - col1 col2 FROM tab0 AS cor0
----
43333
559649
9410

query I rowsort
SELECT DISTINCT ( 88 ) + - col2 AS col0 FROM tab1 cor0
----
-8
31
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + col1 * col0 * 54 col0 FROM tab2 AS cor0
----
11691
248482
72484

query I rowsort
SELECT ALL + 97 * - col2 - + col0 FROM tab2 AS cor0
----
-2600
-2626
-3765

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7418
SELECT - - CAST( NULL AS DECIMAL ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7418
SELECT - - CAST ( NULL AS REAL ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 + - col1 * + col1 AS col0 FROM tab1 cor0
----
-36
-673
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT - col1 * col1 + + col0 AS col1 FROM tab2 AS cor0
----
-210
-3403
-954

query I rowsort
SELECT DISTINCT ( + 50 ) * - cor0.col1 FROM tab2 AS cor0
----
-1550
-2950
-850

query I rowsort
SELECT ALL + ( col1 ) + + col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT DISTINCT + col1 * col1 + col2 FROM tab2 cor0
----
327
3507
988

query I rowsort
SELECT ALL + ( + col0 ) AS col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL - 33 + - col1 FROM tab0 AS cor0
----
-119
-124
-130

query I rowsort
SELECT - ( + 88 ) * - col1 FROM tab1 AS cor0
----
1144
2288
880

query I rowsort
SELECT ALL - col1 - col2 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT DISTINCT + ( col1 ) * col1 * 18 AS col0 FROM tab0 AS cor0
----
133128
149058
169362

query I rowsort
SELECT DISTINCT + 42 * + col2 + col2 FROM tab2 AS cor0
----
1118
1161
1634

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + + col1 col1 FROM tab1 AS cor0
----
109
67
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7432
SELECT CAST( col2 AS SIGNED ) * + col2 FROM tab2 cor0
----
1444
676
729

skipif mysql # not compatible
query I rowsort label-7432
SELECT CAST ( col2 AS INTEGER ) * + col2 FROM tab2 cor0
----
1444
676
729

onlyif mysql # use DIV operator for integer division
query I rowsort label-7433
SELECT DISTINCT - col0 - - ( col2 ) DIV cor0.col2 FROM tab1 AS cor0
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-7433
SELECT DISTINCT - col0 - - ( col2 ) / cor0.col2 FROM tab1 AS cor0
----
-2
-63
-79

query I rowsort
SELECT DISTINCT - - col0 * - col2 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7435
SELECT ALL - CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-7435
SELECT ALL - CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT - - col2 * + cor0.col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL - cor0.col2 + 71 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d8f0fb9c3219e784601d93f75b6d8e2b

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0 CROSS JOIN tab1 cor1
----
243 values hashing to 26173f1193178352de9a2e4ca7f09d53

query I rowsort
SELECT ALL 52 AS col0 FROM tab1
----
52
52
52

query I rowsort
SELECT tab2.col0 * + col2 + - col2 * tab2.col1 * + 77 FROM tab2
----
-116090
-46740
-64260

query I rowsort
SELECT DISTINCT + cor0.col2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
26
27
38

query I rowsort
SELECT DISTINCT 19 FROM tab2
----
19

query I rowsort
SELECT + 63 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT cor0.col1 * col0 + + col0 * col0 AS col0 FROM tab1 AS cor0
----
4736
7440
87

query I rowsort
SELECT + + col1 * 12 + + col2 AS col2 FROM tab0 AS cor0
----
1065
1165
1174

query I rowsort
SELECT DISTINCT + cor0.col0 - 47 * - 99 FROM tab1 cor0
----
4656
4717
4733

query I rowsort
SELECT DISTINCT col0 - col1 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT DISTINCT + col2 + - col2 - cor0.col1 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT ALL - + cor0.col2 + - col2 FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT DISTINCT - col1 + col2 FROM tab0
----
-53
-9
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-7451
SELECT + col2 + col1 DIV tab0.col0 AS col0 FROM tab0
----
3
36
83

skipif mysql # not compatible
query I rowsort label-7451
SELECT + col2 + col1 / tab0.col0 AS col0 FROM tab0
----
3
36
83

query I rowsort
SELECT DISTINCT - col0 + - col0 AS col0 FROM tab2
----
-14
-156
-158

query I rowsort
SELECT 39 - col1 FROM tab1
----
13
26
29

query I rowsort
SELECT 4 * + 6 FROM tab0, tab1 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT ALL - 45 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 63e2b488a204f83ec8c063dafdfd4371

query I rowsort
SELECT DISTINCT col0 * tab0.col1 + + 28 * col1 AS col2 FROM tab0
----
10647
4472
6111

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 93 col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7

query I rowsort
SELECT DISTINCT - col1 * ( col0 ) FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT + col1 * - cor0.col2 + 36 * + col2 FROM tab1 cor0
----
1482
2208
540

query I rowsort
SELECT col1 + - 80 FROM tab1
----
-54
-67
-70

query I rowsort
SELECT + 17 * 33 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 81712bc4616f8cf716194be55cb6b70e

query I rowsort
SELECT - col2 + + ( col2 ) + col1 * col2 FROM tab2 cor0
----
1534
646
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7463
SELECT + col0 * col0 + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7463
SELECT + col0 * col0 + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 23 * 30 + cor0.col0 + cor0.col0 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 1fe89b758be2fb1adeb176548bb1c2f9

query I rowsort
SELECT col0 * col0 + + cor0.col1 FROM tab2 AS cor0
----
6143
6258
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-7466
SELECT ( - col1 ) * col2 + 17 + 92 DIV col2 AS col1 FROM tab1
----
-1231
-1386
-552

skipif mysql # not compatible
query I rowsort label-7466
SELECT ( - col1 ) * col2 + 17 + 92 / col2 AS col1 FROM tab1
----
-1231
-1386
-552

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7467
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 17 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7467
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 17 AS col1 FROM tab1
----
NULL

query I rowsort
SELECT + + cor0.col1 * 14 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3708218e9da7ae107d1f22ecf8dda0bc

query I rowsort
SELECT ( col0 ) * 9 AS col1 FROM tab1
----
27
576
720

query I rowsort
SELECT DISTINCT 20 * col1 FROM tab2
----
1180
340
620

query I rowsort
SELECT - col0 + col1 + 49 * - tab0.col2 FROM tab0
----
-1555
-4016
13

query I rowsort
SELECT DISTINCT - 61 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
-61

query I rowsort
SELECT DISTINCT + ( - tab2.col1 ) AS col1 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT - 36 AS col0 FROM tab0
----
-36
-36
-36

onlyif mysql # use DIV operator for integer division
query I rowsort label-7475
SELECT DISTINCT + + col2 DIV - col0 FROM tab1 AS cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-7475
SELECT DISTINCT + + col2 / - col0 FROM tab1 AS cor0
----
-1
-18
0

query I rowsort
SELECT DISTINCT - - cor0.col0 FROM tab2, tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL - cor0.col2 + - col1 + + col2 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT ALL + col1 * col2 + + col2 * - col0 FROM tab0 cor0
----
164
2046
62

query I rowsort
SELECT ( col2 + ( - tab0.col2 ) ) AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT tab0.col0 * + col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT ALL - 49 * + col0 AS col2 FROM tab0 AS cor0
----
-1176
-1715
-4361

query I rowsort
SELECT + tab1.col1 + 26 FROM tab1
----
36
39
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-7483
SELECT + tab0.col1 DIV tab0.col1 + col2 * col0 AS col2 FROM tab0
----
36
7299
793

skipif mysql # not compatible
query I rowsort label-7483
SELECT + tab0.col1 / tab0.col1 + col2 * col0 AS col2 FROM tab0
----
36
7299
793

query I rowsort
SELECT tab2.col1 + - col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + tab0.col0 * - col0 FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT ALL - 4 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

query I rowsort
SELECT - col2 * col0 * col2 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT DISTINCT + cor0.col2 * col2 FROM tab2 cor0
----
1444
676
729

query I rowsort
SELECT - - col2 * + 85 AS col2 FROM tab0 AS cor0
----
2805
6970
85

query I rowsort
SELECT DISTINCT + 22 AS col0 FROM tab0 AS cor0
----
22

query I rowsort
SELECT - 60 * - col0 FROM tab2 AS cor0
----
420
4680
4740

query I rowsort
SELECT DISTINCT - col2 * 6 AS col1 FROM tab0 AS cor0
----
-198
-492
-6

query I rowsort
SELECT ALL + - col0 * - col2 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-7494
SELECT col1 DIV - col1 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7494
SELECT col1 / - col1 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7495
SELECT ALL + CAST( NULL AS DECIMAL ) * col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7495
SELECT ALL + CAST ( NULL AS REAL ) * col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - 96 FROM tab0 AS cor0
----
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7497
SELECT + + CAST( + 29 AS SIGNED ) * + cor0.col2 AS col1 FROM tab1 AS cor0
----
1566
1653
2784

skipif mysql # not compatible
query I rowsort label-7497
SELECT + + CAST ( + 29 AS INTEGER ) * + cor0.col2 AS col1 FROM tab1 AS cor0
----
1566
1653
2784

onlyif mysql # use DIV operator for integer division
query I rowsort label-7498
SELECT ALL + col2 DIV cor0.col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7498
SELECT ALL + col2 / cor0.col0 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT - + col1 AS col2 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT - + col2 * + ( - col2 ) + - cor0.col1 + + col0 AS col1 FROM tab0 cor0
----
-61
1027
6722

query I rowsort
SELECT + + 72 * col2 AS col0 FROM tab1 AS cor0
----
3888
4104
6912

query I rowsort
SELECT col0 * 65 AS col1 FROM tab1 AS cor0
----
195
4160
5200

query I rowsort
SELECT - + col0 * - cor0.col1 * col0 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT + - col1 + - col1 * col2 AS col1 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT DISTINCT col1 * + 37 * - 99 FROM tab0
----
-315018
-333333
-355311

query I rowsort
SELECT DISTINCT col1 * - 58 FROM tab2
----
-1798
-3422
-986

onlyif mysql # use DIV operator for integer division
query I rowsort label-7507
SELECT col1 DIV cor0.col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7507
SELECT col1 / cor0.col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT 57 FROM tab2 AS cor0
----
57

query I rowsort
SELECT col2 * col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL + ( - col0 ) + + cor0.col0 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT 77 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7512
SELECT - CAST( + 61 * col1 AS SIGNED ) AS col0 FROM tab1
----
-1586
-610
-793

skipif mysql # not compatible
query I rowsort label-7512
SELECT - CAST ( + 61 * col1 AS INTEGER ) AS col0 FROM tab1
----
-1586
-610
-793

query I rowsort
SELECT ALL - ( - cor0.col1 ) + cor0.col0 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT ALL - 54 * - col0 * + tab2.col0 AS col2 FROM tab2
----
2646
328536
337014

query I rowsort
SELECT 15 AS col1 FROM tab2
----
15
15
15

query I rowsort
SELECT + 27 * - col2 + + cor0.col2 FROM tab2 AS cor0
----
-676
-702
-988

onlyif mysql # use DIV operator for integer division
query I rowsort label-7517
SELECT + ( - 13 ) * - cor0.col1 DIV + col1 FROM tab1 AS cor0
----
13
13
13

skipif mysql # not compatible
query I rowsort label-7517
SELECT + ( - 13 ) * - cor0.col1 / + col1 FROM tab1 AS cor0
----
13
13
13

query I rowsort
SELECT - col1 + - col1 + - cor0.col2 FROM tab2 AS cor0
----
-144
-72
-89

query I rowsort
SELECT - col1 * - col2 + col0 * + col0 * col0 AS col0 FROM tab0 AS cor0
----
16662
42972
712431

query I rowsort
SELECT + - col2 * col0 AS col0 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT - col1 + col0 + + cor0.col1 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT - col1 * col0 - + col0 FROM tab0 cor0
----
-2088
-3430
-8188

onlyif mysql # use DIV operator for integer division
query I rowsort label-7523
SELECT - 44 * + col1 DIV - col1 + + col2 FROM tab2 AS cor0
----
70
71
82

skipif mysql # not compatible
query I rowsort label-7523
SELECT - 44 * + col1 / - col1 + + col2 FROM tab2 AS cor0
----
70
71
82

query I rowsort
SELECT + - 37 - - col1 AS col0 FROM tab0 AS cor0
----
49
54
60

query I rowsort
SELECT 87 + - col1 AS col1 FROM tab2
----
28
56
70

query I rowsort
SELECT - - col1 * + col0 AS col2 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT ALL col1 * col1 + + col1 - col0 * + col2 AS col1 FROM tab0 AS cor0
----
1074
6690
9471

query I rowsort
SELECT cor0.col1 + 91 AS col1 FROM tab2 AS cor0
----
108
122
150

query I rowsort
SELECT ALL + col0 * ( col1 ) FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT - col0 + col1 + cor0.col2 * - col1 FROM tab0 AS cor0
----
-2776
-35
-7460

query I rowsort
SELECT DISTINCT - + cor0.col2 + cor0.col2 * - col0 AS col0 FROM tab1 cor0
----
-216
-3705
-7776

query I rowsort
SELECT col2 * col2 * - col1 + col0 FROM tab2 AS cor0
----
-22592
-24469
-39806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * 25 + 53 col2 FROM tab1 AS cor0
----
-197
-272
-597

query I rowsort
SELECT DISTINCT + col0 + + col1 AS col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT - - cor0.col0 + col2 + - col0 AS col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT + 13 + 41 FROM tab1, tab0 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query I rowsort
SELECT - + col0 AS col0 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT ALL + col0 * + 67 - - ( - col1 ) * col1 FROM tab2 cor0
----
-492
1745
5004

query I rowsort
SELECT DISTINCT col0 * + col0 + + cor0.col2 AS col1 FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT DISTINCT col1 * col2 AS col2 FROM tab1
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 27 col1 FROM tab0
----
27
27
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col0 col1 FROM tab0
----
171
36
57

query I rowsort
SELECT col0 - - col2 * + col1 * + col2 AS col1 FROM tab0
----
132
611973
93678

query I rowsort
SELECT - tab1.col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT + col1 * - ( + 91 ) FROM tab0 AS cor0
----
-7826
-8281
-8827

query I rowsort
SELECT 3 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 cor2
----
81 values hashing to c7bd37716aa9c76e684a54f53d1ee343

query I rowsort
SELECT + cor0.col2 * + 7 AS col1 FROM tab0 AS cor0
----
231
574
7

query I rowsort
SELECT ALL + cor0.col0 + - col0 + + 6 AS col1 FROM tab0 AS cor0
----
6
6
6

query I rowsort
SELECT DISTINCT - col1 + - 17 AS col0 FROM tab1 AS cor0
----
-27
-30
-43

query I rowsort
SELECT DISTINCT + col2 * 39 - - col1 FROM tab2 cor0
----
1073
1084
1499

query I rowsort
SELECT ALL + - col0 + + cor0.col2 AS col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT ALL + + col1 * + col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT + cor0.col2 * 47 AS col1 FROM tab1 AS cor0
----
2538
2679
4512

query I rowsort
SELECT - col0 * - col1 AS col1 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7555
SELECT ALL CAST( NULL AS SIGNED ) * + 27 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7555
SELECT ALL CAST ( NULL AS INTEGER ) * + 27 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7556
SELECT + - CAST( NULL AS SIGNED ) / - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7556
SELECT + - CAST ( NULL AS INTEGER ) / - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7557
SELECT - CAST( NULL AS SIGNED ) + + 37 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7557
SELECT - CAST ( NULL AS INTEGER ) + + 37 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * - col2 FROM tab2 AS cor0
----
-1534
-646
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + cor0.col0 col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + - 25 * - col1 + + col1 AS col0 FROM tab0 cor0
----
2236
2366
2522

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 cor0, tab0 AS cor1, tab1 cor2
----
972 values hashing to 2d99dda76af061a3fac120e0e49e6c53

onlyif mysql # use DIV operator for integer division
query I rowsort label-7562
SELECT ALL 43 + cor0.col2 DIV col0 + col0 * cor0.col0 AS col1 FROM tab2 AS cor0
----
6127
6284
95

skipif mysql # not compatible
query I rowsort label-7562
SELECT ALL 43 + cor0.col2 / col0 + col0 * cor0.col0 AS col1 FROM tab2 AS cor0
----
6127
6284
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-7563
SELECT col1 DIV cor0.col0 + + ( + col1 ) FROM tab2 AS cor0
----
17
35
59

skipif mysql # not compatible
query I rowsort label-7563
SELECT col1 / cor0.col0 + + ( + col1 ) FROM tab2 AS cor0
----
17
35
59

query I rowsort
SELECT ALL - 37 * col0 * + ( + col2 * col2 ) AS col2 FROM tab2 AS cor0
----
-188811
-1950936
-4220812

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7565
SELECT 21 * tab0.col1 * CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7565
SELECT 21 * tab0.col1 * CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 81 - col0 AS col1 FROM tab2 AS cor0
----
2
3
74

query I rowsort
SELECT DISTINCT - col1 * col1 + cor0.col1 * + col2 * col0 FROM tab0 AS cor0
----
-6014
60716
655837

query I rowsort
SELECT ALL - - col0 * + col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - ( - col0 ) + - cor0.col0 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 87 AS col1 FROM tab1 AS cor0
----
87
87
87

query I rowsort
SELECT DISTINCT - - 8 + + col1 AS col2 FROM tab1 AS cor0
----
18
21
34

query I rowsort
SELECT DISTINCT - + col0 + - cor0.col2 * + 68 * + 70 AS col2 FROM tab1 AS cor0
----
-257043
-271384
-457040

query I rowsort
SELECT + - col0 + col1 AS col0 FROM tab2 AS cor0
----
-19
-62
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 36 col2 FROM tab1 cor0
----
36
36
36

query I rowsort
SELECT col2 * - col0 * + col2 + + col1 AS col2 FROM tab2 AS cor0
----
-114059
-5072
-52669

query I rowsort
SELECT ALL - 0 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7577
SELECT col2 DIV col0 + - col2 FROM tab1 AS cor0
----
-36
-57
-95

skipif mysql # not compatible
query I rowsort label-7577
SELECT col2 / col0 + - col2 FROM tab1 AS cor0
----
-36
-57
-95

query I rowsort
SELECT + cor0.col0 * col1 + col0 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT DISTINCT - col0 * col0 + col0 + - col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT + 78 + cor0.col2 FROM tab1 AS cor0
----
132
135
174

query I rowsort
SELECT ALL - col0 + - cor0.col2 FROM tab1 cor0
----
-121
-176
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col2 col2 FROM tab2 AS cor0
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-7583
SELECT DISTINCT + col2 + - col2 DIV + col0 FROM tab0 AS cor0
----
1
32
82

skipif mysql # not compatible
query I rowsort label-7583
SELECT DISTINCT + col2 + - col2 / + col0 FROM tab0 AS cor0
----
1
32
82

query I rowsort
SELECT + col2 + col1 * col0 AS col0 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT cor1.col1 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col1 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT DISTINCT - col1 + - col0 AS col1 FROM tab0
----
-110
-132
-180

query I rowsort
SELECT - 39 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

query I rowsort
SELECT DISTINCT - 62 + - col0 * col1 AS col1 FROM tab0
----
-2126
-3457
-8161

query I rowsort
SELECT ALL - 35 + + col1 FROM tab1 AS cor0
----
-22
-25
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 68 ) + + col1 col1 FROM tab2 AS cor0
----
-37
-51
-9

query I rowsort
SELECT ALL + + col2 + col2 AS col0 FROM tab0 AS cor0
----
164
2
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7593
SELECT DISTINCT ( ( col2 ) ) - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7593
SELECT DISTINCT ( ( col2 ) ) - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7594
SELECT ALL + CAST( NULL AS SIGNED ) + col1 / + cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7594
SELECT ALL + CAST ( NULL AS INTEGER ) + col1 / + cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * col0 + col1 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT - 83 * + ( cor0.col0 ) AS col0 FROM tab0 cor0
----
-1992
-2905
-7387

query I rowsort
SELECT DISTINCT - - ( - 4 ) AS col0 FROM tab0 AS cor0
----
-4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7598
SELECT + + CAST( - col1 AS SIGNED ) - col0 FROM tab1 AS cor0
----
-29
-74
-93

skipif mysql # not compatible
query I rowsort label-7598
SELECT + + CAST ( - col1 AS INTEGER ) - col0 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT DISTINCT + - col1 * col0 * - col0 AS col1 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT - col0 + + col0 * col1 AS col0 FROM tab0 cor0
----
2040
3360
8010

query I rowsort
SELECT 3 FROM tab0, tab2 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query I rowsort
SELECT ALL + col0 + tab0.col0 * col2 FROM tab0
----
70
7387
816

query I rowsort
SELECT ALL - ( + col1 ) + - col0 FROM tab1
----
-29
-74
-93

query I rowsort
SELECT ALL 99 + 4 * tab1.col2 FROM tab1
----
315
327
483

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 30 - - col0 * - col2 col1 FROM tab2
----
-2058
-219
-3032

query I rowsort
SELECT + 88 AS col0 FROM tab0 cor0
----
88
88
88

query I rowsort
SELECT - cor0.col1 + cor0.col0 AS col0 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT - 47 FROM tab1
----
-47

query I rowsort
SELECT ALL - col0 + - col2 AS col0 FROM tab1
----
-121
-176
-57

query I rowsort
SELECT cor0.col1 AS col2 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7611
SELECT ALL - CAST( - col1 AS SIGNED ) + - col1 * col1 FROM tab0
----
-7310
-8190
-9312

skipif mysql # not compatible
query I rowsort label-7611
SELECT ALL - CAST ( - col1 AS INTEGER ) + - col1 * col1 FROM tab0
----
-7310
-8190
-9312

query I rowsort
SELECT DISTINCT + cor0.col1 * col0 + col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT DISTINCT + 42 * + col1 AS col2 FROM tab2 AS cor0
----
1302
2478
714

query I rowsort
SELECT DISTINCT + + col1 + col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT ALL - col1 + + 2 FROM tab0 AS cor0
----
-84
-89
-95

query I rowsort
SELECT 29 + + col0 * - col0 AS col2 FROM tab2 AS cor0
----
-20
-6055
-6212

query I rowsort
SELECT ALL + + col2 * col0 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT ALL - - col2 * cor0.col0 AS col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT + cor0.col0 + - col2 AS col1 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT 80 FROM tab1 cor0
----
80
80
80

query I rowsort
SELECT - 49 * col2 FROM tab1 cor0
----
-2646
-2793
-4704

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7622
SELECT - CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-7622
SELECT - CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT + 50 FROM tab1 AS cor0
----
50
50
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + cor0.col1 ) col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT 19 AS col1 FROM tab2
----
19
19
19

query I rowsort
SELECT 60 * cor0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to be74c8cf5c50f55d94992dcb0b557ba3

query I rowsort
SELECT - 72 * + 74 FROM tab1, tab0 AS cor0
----
9 values hashing to f56cca28a0ddf2bbd706c90fad8e08a1

query I rowsort
SELECT DISTINCT + cor0.col1 + + col0 + - col1 * col0 AS col2 FROM tab2 AS cor0
----
-1247
-179
-4465

query I rowsort
SELECT - col1 + tab0.col0 FROM tab0
----
-2
-62
-62

query I rowsort
SELECT col0 + col1 * 2 AS col2 FROM tab1
----
106
55
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-7631
SELECT DISTINCT col1 + + col0 DIV 53 AS col0 FROM tab0
----
86
92
97

skipif mysql # not compatible
query I rowsort label-7631
SELECT DISTINCT col1 + + col0 / 53 AS col0 FROM tab0
----
86
92
97

query I rowsort
SELECT DISTINCT + 28 * + cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
1652
476
868

query I rowsort
SELECT cor0.col1 AS col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT - 26 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 47d0574274146de273829785364ada39

query I rowsort
SELECT - 30 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

query I rowsort
SELECT - col0 + 20 FROM tab2
----
-58
-59
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 5 col0 FROM tab2, tab1 AS cor0
----
5

query I rowsort
SELECT + col1 + + col2 AS col0 FROM tab2
----
55
58
85

query I rowsort
SELECT DISTINCT cor0.col1 * - 25 - - col2 FROM tab2 AS cor0
----
-1449
-387
-748

query I rowsort
SELECT col0 * - 90 + cor0.col1 AS col0 FROM tab2 AS cor0
----
-599
-6961
-7093

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0, tab1 AS cor1, tab1, tab0 cor2
----
3645 values hashing to 3b4587ab6c08d2179c6df094d2f76ad7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7642
SELECT + CAST( - col2 AS SIGNED ) FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-7642
SELECT + CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT - + col2 - + 95 * - col1 FROM tab1 AS cor0
----
1139
2416
893

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 12 + 40 col1 FROM tab2 AS cor0
----
52
52
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7645
SELECT + CAST( + col2 * - col2 AS SIGNED ) AS col0 FROM tab2
----
-1444
-676
-729

skipif mysql # not compatible
query I rowsort label-7645
SELECT + CAST ( + col2 * - col2 AS INTEGER ) AS col0 FROM tab2
----
-1444
-676
-729

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7646
SELECT - CAST( tab0.col1 AS SIGNED ) + col0 FROM tab0
----
-2
-62
-62

skipif mysql # not compatible
query I rowsort label-7646
SELECT - CAST ( tab0.col1 AS INTEGER ) + col0 FROM tab0
----
-2
-62
-62

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab0 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to 42d854e4c33cb5afd5528228bff9250d

query I rowsort
SELECT DISTINCT - ( - col2 + - col1 ) FROM tab0
----
119
173
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT - col0 * + 62 AS col0 FROM tab1 AS cor0
----
-186
-3968
-4960

query I rowsort
SELECT 55 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT 21 * + cor0.col1 FROM tab0 AS cor0
----
1806
1911
2037

query I rowsort
SELECT + + ( - col2 ) * - cor0.col1 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-7654
SELECT col2 DIV tab1.col2 AS col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7654
SELECT col2 / tab1.col2 AS col2 FROM tab1
----
1
1
1

query I rowsort
SELECT + 58 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a

onlyif mysql # use DIV operator for integer division
query I rowsort label-7656
SELECT ALL + col2 * col0 DIV - col0 col0 FROM tab0
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7656
SELECT ALL + col2 * col0 / - col0 col0 FROM tab0
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 93 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query I rowsort
SELECT ALL ( 23 ) AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query I rowsort
SELECT DISTINCT - 66 FROM tab2 AS cor0
----
-66

query I rowsort
SELECT ALL - cor0.col0 + + cor0.col1 AS col1 FROM tab0 cor0
----
2
62
62

query I rowsort
SELECT + cor0.col0 * + 93 + ( col1 ) FROM tab0 AS cor0
----
2318
3352
8368

onlyif mysql # use DIV operator for integer division
query I rowsort label-7662
SELECT + col1 + - cor0.col1 DIV col0 FROM tab2 cor0
----
17
27
59

skipif mysql # not compatible
query I rowsort label-7662
SELECT + col1 + - cor0.col1 / col0 FROM tab2 cor0
----
17
27
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col2 col0 FROM tab1 AS cor0
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 34 + + col2 col2 FROM tab2 cor0
----
-211
-2626
-2648

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7665
SELECT - + col0 / CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7665
SELECT - + col0 / CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + - col0 + + col2 FROM tab2 AS cor0
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-7667
SELECT ALL + col2 + - col0 DIV + 27 FROM tab0 cor0
----
0
33
79

skipif mysql # not compatible
query I rowsort label-7667
SELECT ALL + col2 + - col0 / + 27 FROM tab0 cor0
----
0
33
79

query I rowsort
SELECT ALL col0 * - col0 + + col1 FROM tab0 AS cor0
----
-1128
-490
-7830

query I rowsort
SELECT col2 + col2 * cor0.col1 * col2 FROM tab2 AS cor0
----
22626
24586
39910

onlyif mysql # use DIV operator for integer division
query I rowsort label-7670
SELECT DISTINCT - 36 DIV + col1 FROM tab1
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-7670
SELECT DISTINCT - 36 / + col1 FROM tab1
----
-1
-2
-3

query I rowsort
SELECT - - 36 + col0 + 75 FROM tab2 cor0
----
118
189
190

onlyif mysql # use DIV operator for integer division
query I rowsort label-7672
SELECT + ( col0 ) * ( - col0 ) DIV + col1 AS col1 FROM tab0 AS cor0
----
-12
-6
-87

skipif mysql # not compatible
query I rowsort label-7672
SELECT + ( col0 ) * ( - col0 ) / + col1 AS col1 FROM tab0 AS cor0
----
-12
-6
-87

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0, tab1 cor1, tab2, tab1 AS cor2
----
3645 values hashing to 2563d2f4127fd757b80c46400c5511cb

query I rowsort
SELECT - col1 + - col0 AS col1 FROM tab2 cor0
----
-137
-38
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col1 - col1 col0 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT col2 + col0 AS col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL 48 * + tab0.col2 FROM tab0
----
1584
3936
48

query I rowsort
SELECT cor1.col2 AS col2 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT ALL - 4 AS col2 FROM tab0
----
-4
-4
-4

query I rowsort
SELECT DISTINCT + col2 * + 98 AS col1 FROM tab2 AS cor0
----
2548
2646
3724

onlyif mysql # use DIV operator for integer division
query I rowsort label-7681
SELECT ALL col0 DIV 45 FROM tab0 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7681
SELECT ALL col0 / 45 FROM tab0 cor0
----
0
0
1

query I rowsort
SELECT DISTINCT - col2 * + 39 FROM tab0 AS cor0
----
-1287
-3198
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + - ( col0 ) * - col2 col1 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT + cor0.col0 * - col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT + 83 AS col1 FROM tab1
----
83

query I rowsort
SELECT - col1 * + col2 * + col2 + 1 * col0 FROM tab2
----
-22592
-24469
-39806

query I rowsort
SELECT - 24 AS col1 FROM tab2
----
-24
-24
-24

query I rowsort
SELECT - 15 * col1 + ( col0 ) * col0 FROM tab0
----
-230
-714
6556

query I rowsort
SELECT + tab0.col2 + + col1 * 94 AS col1 FROM tab0
----
8117
8636
9119

query I rowsort
SELECT + 86 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4

query I rowsort
SELECT ALL - ( - col2 ) * + col2 - + ( - 28 + cor0.col0 ) FROM tab0 AS cor0
----
-6
1093
6663

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( + col2 AS REAL ) + col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7693
SELECT ALL cor0.col1 + + cor0.col0 * col0 / CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7693
SELECT ALL cor0.col1 + + cor0.col0 * col0 / CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

onlyif mysql # use DIV operator for integer division
query I rowsort label-7695
SELECT tab1.col1 DIV - CAST( + ( col2 ) AS SIGNED ) AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7695
SELECT tab1.col1 / - CAST ( + ( col2 ) AS INTEGER ) AS col2 FROM tab1
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7696
SELECT DISTINCT - + col2 * 19 + col0 / CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7696
SELECT DISTINCT - + col2 * 19 + col0 / CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - 38 * col0 + col2 FROM tab0 AS cor0
----
-1329
-3300
-879

onlyif mysql # use DIV operator for integer division
query I rowsort label-7698
SELECT DISTINCT 95 DIV + 67 + col1 FROM tab1 AS cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-7698
SELECT DISTINCT 95 / + 67 + col1 FROM tab1 AS cor0
----
11
14
27

query I rowsort
SELECT DISTINCT - col1 * - col0 AS col0 FROM tab1 cor0
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7700
SELECT + - CAST( NULL AS SIGNED ) * - cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7700
SELECT + - CAST ( NULL AS INTEGER ) * - cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL cor0.col2 * + ( - col1 ) FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT + + col2 * + 81 + col1 AS col2 FROM tab2 AS cor0
----
2165
2218
3095

query I rowsort
SELECT ALL + cor0.col1 + 57 FROM tab2 AS cor0
----
116
74
88

query I rowsort
SELECT - 81 FROM tab0, tab2 AS cor0
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - + 20 * col2 col2 FROM tab0
----
-1558
-19
-627

query I rowsort
SELECT DISTINCT - col1 - + 56 FROM tab0
----
-142
-147
-153

query I rowsort
SELECT col1 * - 87 AS col0 FROM tab1
----
-1131
-2262
-870

query I rowsort
SELECT ALL - col0 + + col2 - + col2 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT + col0 * 97 FROM tab2
----
679
7566
7663

query I rowsort
SELECT + cor0.col2 * - 78 AS col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to e92153b9a2c42a1918c464975d72e144

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7711
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 41 + + col2 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7711
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 41 + + col2 AS col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL + 76 + tab0.col1 FROM tab0
----
162
167
173

onlyif mysql # use DIV operator for integer division
query I rowsort label-7713
SELECT ( col2 ) * col2 + ( 85 ) DIV col0 FROM tab0 AS cor0
----
1092
3
6724

skipif mysql # not compatible
query I rowsort label-7713
SELECT ( col2 ) * col2 + ( 85 ) / col0 FROM tab0 AS cor0
----
1092
3
6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 82 * - col1 col0 FROM tab2 AS cor0
----
-1394
-2542
-4838

onlyif mysql # use DIV operator for integer division
query I rowsort label-7715
SELECT - - ( + col0 ) DIV - col0 + + col0 AS col0 FROM tab2 AS cor0
----
6
77
78

skipif mysql # not compatible
query I rowsort label-7715
SELECT - - ( + col0 ) / - col0 + + col0 AS col0 FROM tab2 AS cor0
----
6
77
78

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( cor0.col2 AS REAL ) + + col1 + col0 AS col0 FROM tab1 cor0
----
131
189
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7717
SELECT DISTINCT - CAST( - ( + col0 ) AS SIGNED ) * - CAST( + 84 AS SIGNED ) + col0 AS col0 FROM tab0
----
-1992
-2905
-7387

skipif mysql # not compatible
query I rowsort label-7717
SELECT DISTINCT - CAST ( - ( + col0 ) AS INTEGER ) * - CAST ( + 84 AS INTEGER ) + col0 AS col0 FROM tab0
----
-1992
-2905
-7387

query I rowsort
SELECT - + col1 + ( + col2 + 2 ) * col1 AS col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT cor0.col2 + + col0 * - col2 AS col1 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT ALL col0 + col1 * col0 FROM tab0
----
2088
3430
8188

onlyif mysql # use DIV operator for integer division
query I rowsort label-7721
SELECT DISTINCT + 2 DIV + col0 + tab2.col0 AS col1 FROM tab2
----
7
78
79

skipif mysql # not compatible
query I rowsort label-7721
SELECT DISTINCT + 2 / + col0 + tab2.col0 AS col1 FROM tab2
----
7
78
79

query I rowsort
SELECT DISTINCT - col1 + col0 AS col2 FROM tab0
----
-2
-62

query I rowsort
SELECT - + col0 * + col0 - + col2 FROM tab1 AS cor0
----
-4153
-63
-6496

query I rowsort
SELECT DISTINCT col1 + + col1 AS col0 FROM tab0
----
172
182
194

query I rowsort
SELECT ALL + 5 + col2 FROM tab1
----
101
59
62

query I rowsort
SELECT - 2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 20c9213316527d507e26425041e08387

skipif mysql # not compatible
query I rowsort
SELECT ALL - tab0.col0 + col2 * tab0.col1 + + col2 * ( tab0.col0 * - CAST ( col0 AS REAL ) ) FROM tab0
----
-1163
-16194
-642149

query I rowsort
SELECT + 90 * 1 * col2 + col2 AS col2 FROM tab1
----
4914
5187
8736

query I rowsort
SELECT + col0 * + tab0.col0 + + col1 FROM tab0
----
1322
662
8012

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 1 * - 14 + + col1 col0 FROM tab1
----
-1
-4
12

query I rowsort
SELECT ALL + ( - col1 ) + ( col2 * col2 ) - ( - cor0.col2 * + col0 ) FROM tab1 AS cor0
----
16883
3052
6887

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 11 * col2 + ( + 30 ) col0 FROM tab1 cor0
----
1086
624
657

query I rowsort
SELECT DISTINCT - - cor0.col0 + col2 FROM tab0 cor0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 - col0 * col0 col0 FROM tab2 AS cor0
----
-6143
-6258
-80

query I rowsort
SELECT + cor0.col0 * col0 + 98 AS col0 FROM tab1 AS cor0
----
107
4194
6498

query I rowsort
SELECT - 80 * + col0 FROM tab2
----
-560
-6240
-6320

query I rowsort
SELECT 58 * + col2 + - ( - 18 ) + + col1 FROM tab1 AS cor0
----
3176
3334
5599

query I rowsort
SELECT ALL col0 * col2 FROM tab0 cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-7739
SELECT - col1 - + col0 DIV + col1 AS col2 FROM tab1 cor0
----
-16
-19
-26

skipif mysql # not compatible
query I rowsort label-7739
SELECT - col1 - + col0 / + col1 AS col2 FROM tab1 cor0
----
-16
-19
-26

query I rowsort
SELECT - 1 * col0 * ( - col1 ) + col1 + + 11 * - col0 AS col1 FROM tab2 AS cor0
----
171
3803
491

query I rowsort
SELECT ALL + - cor0.col0 * col2 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-7742
SELECT DISTINCT + + col1 DIV + col0 AS col0 FROM tab1 AS cor0
----
0
8

skipif mysql # not compatible
query I rowsort label-7742
SELECT DISTINCT + + col1 / + col0 AS col0 FROM tab1 AS cor0
----
0
8

query I rowsort
SELECT DISTINCT + - col0 AS col2 FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT - col2 + col2 + 41 * 86 * col1 AS col0 FROM tab1 AS cor0
----
35260
45838
91676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7745
SELECT ALL + - cor0.col2 + - col2 * - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7745
SELECT ALL + - cor0.col2 + - col2 * - CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * + col0 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT - 94 AS col2 FROM tab1 cor0
----
-94
-94
-94

query I rowsort
SELECT DISTINCT + + col2 + col1 FROM tab2 AS cor0
----
55
58
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + col2 col0 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT cor0.col2 * col0 + - 66 FROM tab0 AS cor0
----
-31
7232
726

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7751
SELECT ALL - col1 / - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7751
SELECT ALL - col1 / - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 94 col2 FROM tab2, tab0 AS cor0
----
-94

onlyif mysql # use DIV operator for integer division
query I rowsort label-7753
SELECT + col2 DIV 44 FROM tab1 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-7753
SELECT + col2 / 44 FROM tab1 AS cor0
----
1
1
2

query I rowsort
SELECT DISTINCT + cor1.col1 AS col2 FROM tab2 cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 cor2
----
86
91
97

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to df00d19f178a708f636b036dcb6c6f87

query I rowsort
SELECT ALL col1 * - 38 FROM tab0
----
-3268
-3458
-3686

query I rowsort
SELECT ALL cor0.col0 * 17 FROM tab0 AS cor0
----
1513
408
595

query I rowsort
SELECT + col0 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT col0 + 46 * + col0 AS col2 FROM tab0 AS cor0
----
1128
1645
4183

query I rowsort
SELECT DISTINCT - - col2 + col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT - col1 * + cor0.col0 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL + col2 * 78 + - col2 - + col2 FROM tab2 AS cor0
----
1976
2052
2888

onlyif mysql # use DIV operator for integer division
query I rowsort label-7763
SELECT - + cor0.col1 + - cor0.col1 DIV + col1 FROM tab0 AS cor0
----
-87
-92
-98

skipif mysql # not compatible
query I rowsort label-7763
SELECT - + cor0.col1 + - cor0.col1 / + col1 FROM tab0 AS cor0
----
-87
-92
-98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7764
SELECT DISTINCT col2 * CAST( NULL AS SIGNED ) + col2 * col1 * col2 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7764
SELECT DISTINCT col2 * CAST ( NULL AS INTEGER ) + col2 * col1 * col2 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col2 + 8 + + col2 * cor0.col2 AS col2 FROM tab0 AS cor0
----
10
1130
6814

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7766
SELECT ALL + + col1 * CAST( NULL AS SIGNED ) * + col0 + col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7766
SELECT ALL + + col1 * CAST ( NULL AS INTEGER ) * + col0 + col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - cor0.col1 * - cor0.col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT - col0 + cor0.col2 AS col2 FROM tab2 AS cor0
----
-41
-52
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-7769
SELECT col2 DIV + col1 + + col0 + + 71 FROM tab0 AS cor0
----
106
160
95

skipif mysql # not compatible
query I rowsort label-7769
SELECT col2 / + col1 + + col0 + + 71 FROM tab0 AS cor0
----
106
160
95

query I rowsort
SELECT + + col1 + - col2 + - col2 FROM tab2 AS cor0
----
-23
-59
7

query I rowsort
SELECT DISTINCT - ( col0 ) * - cor0.col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT DISTINCT + 72 * cor0.col1 AS col0 FROM tab1 AS cor0
----
1872
720
936

query I rowsort
SELECT col0 * cor0.col0 AS col1 FROM tab0 AS cor0
----
1225
576
7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 38 * - col2 col1 FROM tab0 AS cor0
----
-1254
-3116
-38

query I rowsort
SELECT ALL - col1 * 14 AS col2 FROM tab1 cor0
----
-140
-182
-364

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col0 * - 89 + cor0.col2 + + tab2.col2 * 77 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 9cefa5d4edf130954ef968c50339813c

query I rowsort
SELECT ALL - 76 + 66 FROM tab0 AS cor0
----
-10
-10
-10

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7778
SELECT 18 / 44 + + col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7778
SELECT 18 / 44 + + col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7779
SELECT ALL CAST( + col0 AS SIGNED ) * - col0 * col2 AS col2 FROM tab1 AS cor0
----
-233472
-486
-614400

skipif mysql # not compatible
query I rowsort label-7779
SELECT ALL CAST ( + col0 AS INTEGER ) * - col0 * col2 AS col2 FROM tab1 AS cor0
----
-233472
-486
-614400

query I rowsort
SELECT ALL - + 26 AS col1 FROM tab1 AS cor0
----
-26
-26
-26

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1, tab2 AS cor1, tab0 cor2, tab1 AS cor3
----
3645 values hashing to 77ce60d8d42550cc1b5a38c7d1dc5d13

onlyif mysql # use DIV operator for integer division
query I rowsort label-7782
SELECT DISTINCT + 88 DIV col0 FROM tab2
----
1
12

skipif mysql # not compatible
query I rowsort label-7782
SELECT DISTINCT + 88 / col0 FROM tab2
----
1
12

query I rowsort
SELECT + + col0 * col0 + ( col1 ) AS col0 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT DISTINCT + + 5 + + col1 AS col0 FROM tab2 AS cor0
----
22
36
64

query I rowsort
SELECT ALL - + ( - col2 ) * - 17 + 60 AS col0 FROM tab2 AS cor0
----
-382
-399
-586

query I rowsort
SELECT DISTINCT - cor0.col0 + - col0 FROM tab0 AS cor0
----
-178
-48
-70

query I rowsort
SELECT + col0 + col2 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT ALL cor0.col1 - - col2 AS col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT DISTINCT col1 + - cor0.col0 * cor0.col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT + + col0 * + col2 + - col1 + ( col1 + ( col0 ) ) FROM tab2 AS cor0
----
196
2106
3081

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7791
SELECT - col1 * col2 * - CAST( col1 * - col0 AS SIGNED ) + ( + col0 + col2 ) col0 FROM tab2 AS cor0
----
-181595
-7059364
-867461

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7791
SELECT - col1 * col2 * - CAST ( col1 * - col0 AS INTEGER ) + ( + col0 + col2 ) col0 FROM tab2 AS cor0
----
-181595
-7059364
-867461

query I rowsort
SELECT DISTINCT - - 46 + col0 AS col1 FROM tab0 cor0
----
135
70
81

query I rowsort
SELECT ALL - + 14 AS col0 FROM tab0 AS cor0
----
-14
-14
-14

query I rowsort
SELECT ALL cor0.col1 * col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT + col1 + col2 + col0 * 81 * cor0.col1 FROM tab0 cor0
----
167303
275093
656192

query I rowsort
SELECT cor0.col1 * col1 AS col1 FROM tab2 cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT + cor0.col1 AS col1 FROM tab0 cor0
----
86
91
97

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 cor0, tab0 cor1, tab0 AS cor2
----
972 values hashing to 3406497351e4789c89a295ee9b64b201

query I rowsort
SELECT DISTINCT 38 AS col0 FROM tab2, tab2 AS cor0
----
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-7800
SELECT + col0 DIV cor0.col1 FROM tab2 cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-7800
SELECT + col0 / cor0.col1 FROM tab2 cor0
----
0
1
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-7801
SELECT col1 DIV + col2 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-7801
SELECT col1 / + col2 FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT ALL + col2 + col1 * + 21 AS col2 FROM tab1 AS cor0
----
267
369
600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT ALL - 37 + - col1 AS col1 FROM tab1 cor0
----
-47
-50
-63

query I rowsort
SELECT + cor1.col1 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT col2 + + 86 AS col2 FROM tab2 AS cor0
----
112
113
124

onlyif mysql # use DIV operator for integer division
query I rowsort label-7807
SELECT ALL + col1 + - col0 * + col2 + cor0.col2 DIV 94 AS col1 FROM tab1 cor0
----
-136
-3638
-7666

skipif mysql # not compatible
query I rowsort label-7807
SELECT ALL + col1 + - col0 * + col2 + cor0.col2 / 94 AS col1 FROM tab1 cor0
----
-136
-3638
-7666

query I rowsort
SELECT DISTINCT + col0 * 65 AS col2 FROM tab1
----
195
4160
5200

query I rowsort
SELECT DISTINCT + col1 + 75 AS col1 FROM tab0 AS cor0
----
161
166
172

query I rowsort
SELECT DISTINCT + col2 * - col1 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT cor0.col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT DISTINCT - cor0.col0 AS col0 FROM tab0, tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT + - col2 + 16 FROM tab2 AS cor0
----
-10
-11
-22

query I rowsort
SELECT col2 * col0 + col2 + col1 * col2 FROM tab1
----
1620
4275
9024

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7815
SELECT + + CAST( col2 AS SIGNED ) + + cor0.col1 col2 FROM tab2 AS cor0
----
55
58
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7815
SELECT + + CAST ( col2 AS INTEGER ) + + cor0.col1 col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT - col0 + + 34 * col1 * col0 FROM tab1 AS cor0
----
21696
2649
35280

query I rowsort
SELECT ALL + col2 + - col0 AS col2 FROM tab2
----
-41
-52
20

query I rowsort
SELECT 13 FROM tab2, tab2 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT - col2 * 59 FROM tab1
----
-3186
-3363
-5664

query I rowsort
SELECT - - col0 + col2 AS col1 FROM tab0 AS cor0
----
171
36
57

skipif mysql # not compatible
query I rowsort
SELECT CAST ( - 56 AS REAL ) * col0 AS col0 FROM tab2
----
-392
-4368
-4424

query I rowsort
SELECT col1 + - col0 * + col0 AS col1 FROM tab2
----
-18
-6025
-6224

query I rowsort
SELECT + ( + col1 ) * - col0 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT ( 99 ) AS col1 FROM tab0
----
99
99
99

query I rowsort
SELECT col0 + - 12 AS col1 FROM tab1
----
-9
52
68

query I rowsort
SELECT DISTINCT - 61 AS col2 FROM tab1
----
-61

query I rowsort
SELECT ALL + 72 FROM tab2
----
72
72
72

query I rowsort
SELECT ALL cor1.col2 AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT - + col2 + - cor0.col2 FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT + col1 * + col0 * 88 + ( + col1 * col1 + + col0 ) FROM tab1 AS cor0
----
56484
7543
91769

query I rowsort
SELECT DISTINCT + 8 AS col0 FROM tab1, tab2 AS cor0
----
8

query I rowsort
SELECT col1 + cor0.col0 * + 13 FROM tab0 AS cor0
----
1248
398
552

query I rowsort
SELECT ( - cor1.col2 ) FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT DISTINCT - 45 * tab1.col2 AS col0 FROM tab1
----
-2430
-2565
-4320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col1 ) col1 FROM tab1
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor1.col1 col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
-17
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-7837
SELECT ALL - col0 * tab2.col0 DIV col1 + col0 AS col1 FROM tab2
----
-25
-288
6

skipif mysql # not compatible
query I rowsort label-7837
SELECT ALL - col0 * tab2.col0 / col1 + col0 AS col1 FROM tab2
----
-25
-288
6

query I rowsort
SELECT DISTINCT 25 FROM tab2, tab1 cor0, tab1 cor1
----
25

onlyif mysql # use DIV operator for integer division
query I rowsort label-7839
SELECT - + col0 DIV + col0 + 55 AS col0 FROM tab0 AS cor0
----
54
54
54

skipif mysql # not compatible
query I rowsort label-7839
SELECT - + col0 / + col0 + 55 AS col0 FROM tab0 AS cor0
----
54
54
54

query I rowsort
SELECT - - 53 * cor0.col2 + col0 FROM tab1 AS cor0
----
2865
3085
5168

query I rowsort
SELECT ALL tab1.col1 + + col2 FROM tab1
----
109
67
80

query I rowsort
SELECT ALL tab1.col2 AS col2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT ALL col2 + ( + col1 ) * col1 AS col1 FROM tab2
----
327
3507
988

query I rowsort
SELECT col0 * + col1 - - col0 * + 99 FROM tab1 AS cor0
----
375
6976
8960

query I rowsort
SELECT ALL ( 99 ) AS col1 FROM tab2, tab2 cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7846
SELECT ALL - CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7846
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL + cor0.col1 - tab0.col1 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to f47321fdc704b303f53ecfb742fc419d

query I rowsort
SELECT DISTINCT 1 FROM tab1, tab1 AS cor0
----
1

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0 CROSS JOIN tab1, tab0, tab1 AS cor1
----
3645 values hashing to f9101173abc9e524c6310e6c0eeefb0c

query I rowsort
SELECT - + 76 - 96 AS col0 FROM tab1 AS cor0
----
-172
-172
-172

query I rowsort
SELECT - - col2 + 88 * col2 FROM tab1 AS cor0
----
4806
5073
8544

query I rowsort
SELECT - cor0.col0 + col2 AS col2 FROM tab0 AS cor0
----
-34
-7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-7853
SELECT + ( 49 ) DIV cor0.col2 AS col0 FROM tab0 AS cor0
----
0
1
49

skipif mysql # not compatible
query I rowsort label-7853
SELECT + ( 49 ) / cor0.col2 AS col0 FROM tab0 AS cor0
----
0
1
49

query I rowsort
SELECT + 96 * + col2 + - col0 * - 54 AS col0 FROM tab0 AS cor0
----
12678
1986
4464

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7855
SELECT - - CAST( + col0 AS SIGNED ) * - col0 FROM tab2 AS cor0
----
-49
-6084
-6241

skipif mysql # not compatible
query I rowsort label-7855
SELECT - - CAST ( + col0 AS INTEGER ) * - col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT col2 - cor0.col1 * cor0.col2 FROM tab1 AS cor0
----
-1152
-1350
-513

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7857
SELECT + + CAST( NULL AS SIGNED ) * + col0 + cor0.col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7857
SELECT + + CAST ( NULL AS INTEGER ) * + col0 + cor0.col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( - cor0.col1 ) * col0 + - 38 * + 5 FROM tab0 AS cor0
----
-2254
-3585
-8289

query I rowsort
SELECT ALL col1 + col1 * 62 AS col1 FROM tab2
----
1071
1953
3717

onlyif mysql # use DIV operator for integer division
query I rowsort label-7860
SELECT ALL tab0.col1 DIV + tab0.col1 + + col0 * col1 + - col0 * - col1 AS col0 FROM tab0
----
16199
4129
6791

skipif mysql # not compatible
query I rowsort label-7860
SELECT ALL tab0.col1 / + tab0.col1 + + col0 * col1 + - col0 * - col1 AS col0 FROM tab0
----
16199
4129
6791

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0, tab0 cor1, tab0, tab2 cor2
----
3645 values hashing to 71180f9f3efadf0ee3a7fec9678208ad

query I rowsort
SELECT ALL - cor0.col1 + cor0.col2 FROM tab2 AS cor0
----
-33
-4
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-7863
SELECT - - col2 DIV ( + col0 ) + col0 FROM tab0 AS cor0
----
25
35
89

skipif mysql # not compatible
query I rowsort label-7863
SELECT - - col2 / ( + col0 ) + col0 FROM tab0 AS cor0
----
25
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-7864
SELECT col0 DIV - 7 + - col0 FROM tab0 AS cor0
----
-101
-27
-40

skipif mysql # not compatible
query I rowsort label-7864
SELECT col0 / - 7 + - col0 FROM tab0 AS cor0
----
-101
-27
-40

query I rowsort
SELECT + + col1 + + ( col1 ) FROM tab2 cor0
----
118
34
62

query I rowsort
SELECT - col1 * 79 + - col0 * + cor0.col2 FROM tab0 AS cor0
----
-14487
-7586
-7698

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( cor0.col0 ) col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT + - 19 + + col2 * col2 FROM tab2 AS cor0
----
1425
657
710

query I rowsort
SELECT ALL - - col1 + 18 AS col0 FROM tab0 cor0
----
104
109
115

query I rowsort
SELECT ( cor0.col0 ) * col1 * col0 FROM tab1 AS cor0
----
234
40960
83200

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7871
SELECT DISTINCT - - CAST( - 93 AS SIGNED ) FROM tab0 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-7871
SELECT DISTINCT - - CAST ( - 93 AS INTEGER ) FROM tab0 AS cor0
----
-93

query I rowsort
SELECT DISTINCT 18 AS col1 FROM tab1 AS cor0
----
18

query I rowsort
SELECT - - col0 * - col1 + + col1 * + ( col2 ) AS col1 FROM tab0 AS cor0
----
-3298
-637
774

onlyif mysql # use DIV operator for integer division
query I rowsort label-7874
SELECT DISTINCT + ( - col1 ) + col0 DIV ( + 81 ) FROM tab0 AS cor0
----
-86
-90
-97

skipif mysql # not compatible
query I rowsort label-7874
SELECT DISTINCT + ( - col1 ) + col0 / ( + 81 ) FROM tab0 AS cor0
----
-86
-90
-97

query I rowsort
SELECT + + col2 * 67 AS col1 FROM tab0 AS cor0
----
2211
5494
67

query I rowsort
SELECT ALL - - ( + col1 ) AS col0 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT - col0 * - ( col0 + col0 * - col0 ) AS col0 FROM tab1
----
-18
-258048
-505600

query I rowsort
SELECT - col1 + col2 + + tab1.col0 FROM tab1
----
111
163
31

query I rowsort
SELECT DISTINCT 42 FROM tab2, tab2 AS cor0
----
42

query I rowsort
SELECT DISTINCT col1 + col0 AS col0 FROM tab2
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-7881
SELECT ALL - ( + 91 ) * + col0 DIV + cor0.col0 FROM tab0 cor0
----
-91
-91
-91

skipif mysql # not compatible
query I rowsort label-7881
SELECT ALL - ( + 91 ) * + col0 / + cor0.col0 FROM tab0 cor0
----
-91
-91
-91

query I rowsort
SELECT DISTINCT + ( 58 ) FROM tab0 AS cor0
----
58

query I rowsort
SELECT ALL - + col0 + 44 FROM tab0 AS cor0
----
-45
20
9

query I rowsort
SELECT - 32 * col0 + col1 AS col1 FROM tab2 AS cor0
----
-193
-2437
-2511

query I rowsort
SELECT col0 * + ( + col0 + col0 ) FROM tab1
----
12800
18
8192

query I rowsort
SELECT DISTINCT + col0 * + col0 AS col1 FROM tab2
----
49
6084
6241

query I rowsort
SELECT ALL 61 + + col1 FROM tab2 AS cor0
----
120
78
92

query I rowsort
SELECT - - 13 FROM tab1 AS cor0
----
13
13
13

query I rowsort
SELECT DISTINCT - 31 + col0 FROM tab2 AS cor0
----
-24
47
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 71 col0 FROM tab2
----
-71
-71
-71

onlyif mysql # use DIV operator for integer division
query I rowsort label-7891
SELECT DISTINCT col1 + + col1 + col1 DIV col0 FROM tab2 AS cor0
----
118
34
66

skipif mysql # not compatible
query I rowsort label-7891
SELECT DISTINCT col1 + + col1 + col1 / col0 FROM tab2 AS cor0
----
118
34
66

query I rowsort
SELECT ALL 41 * col2 FROM tab1 AS cor0
----
2214
2337
3936

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 + - col2 + cor0.col2 col0 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT - + 83 + + cor0.col2 * 93 FROM tab0 AS cor0
----
10
2986
7543

query I rowsort
SELECT ALL col0 - - col1 AS col0 FROM tab2 AS cor0
----
137
38
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 23 col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query I rowsort
SELECT ALL + - cor0.col0 + col2 * col1 + col2 AS col1 FROM tab1 AS cor0
----
1264
1455
563

onlyif mysql # use DIV operator for integer division
query I rowsort label-7898
SELECT DISTINCT - tab0.col1 DIV + col0 AS col1 FROM tab0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-7898
SELECT DISTINCT - tab0.col1 / + col0 AS col1 FROM tab0
----
-1
-2
-3

query I rowsort
SELECT - 12 AS col2 FROM tab2 cor0
----
-12
-12
-12

query I rowsort
SELECT DISTINCT + - col0 * - cor0.col0 - 40 FROM tab0 AS cor0
----
1185
536
7881

query I rowsort
SELECT ALL + col1 + col2 AS col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL - col1 * tab1.col1 FROM tab1
----
-100
-169
-676

query I rowsort
SELECT col1 - + col2 * col2 AS col2 FROM tab0
----
-1003
-6633
96

query I rowsort
SELECT DISTINCT + col1 + + ( + 35 ) FROM tab1 cor0
----
45
48
61

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7905
SELECT - col0 + - CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7905
SELECT - col0 + - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7906
SELECT ALL col1 DIV cor0.col0 FROM tab0 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-7906
SELECT ALL col1 / cor0.col0 FROM tab0 AS cor0
----
1
2
3

query I rowsort
SELECT DISTINCT col0 * ( col0 ) * col2 + col1 FROM tab1 cor0
----
233482
512
614413

query I rowsort
SELECT ALL - col1 - 84 AS col2 FROM tab1 AS cor0
----
-110
-94
-97

query I rowsort
SELECT - + col2 * 35 FROM tab0 AS cor0
----
-1155
-2870
-35

query I rowsort
SELECT DISTINCT - col1 * - col2 AS col0 FROM tab1
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-7911
SELECT + col1 DIV - col1 + col2 FROM tab2
----
25
26
37

skipif mysql # not compatible
query I rowsort label-7911
SELECT + col1 / - col1 + col2 FROM tab2
----
25
26
37

query I rowsort
SELECT DISTINCT cor1.col0 * 59 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
413
4602
4661

query I rowsort
SELECT 21 AS col1 FROM tab2
----
21
21
21

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0, tab0 AS cor0, tab2 cor1
----
972 values hashing to d41be7437523f0dba2158c7f0439f329

query I rowsort
SELECT ALL + 88 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to c46e7cf9bf516fdfde88534336a28177

query I rowsort
SELECT DISTINCT - - tab1.col0 AS col0 FROM tab1, tab2, tab0 cor0
----
3
64
80

query I rowsort
SELECT col1 + + tab1.col1 AS col1 FROM tab1
----
20
26
52

query I rowsort
SELECT ( + col1 * - col1 ) AS col2 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT col2 + + tab0.col1 FROM tab0
----
119
173
98

query I rowsort
SELECT DISTINCT + 22 * - cor2.col2 FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 AS cor2
----
-572
-594
-836

query I rowsort
SELECT - + cor0.col0 * - col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT ALL cor0.col1 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT DISTINCT - + col0 * col1 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + cor0.col2 col0 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT col1 * - col1 + - col2 AS col2 FROM tab2
----
-327
-3507
-988

query I rowsort
SELECT ALL + - col2 * col1 * - 59 AS col0 FROM tab2 AS cor0
----
38114
49383
90506

query I rowsort
SELECT ALL col1 * - 55 FROM tab0 cor0
----
-4730
-5005
-5335

query I rowsort
SELECT DISTINCT 27 * col0 * col1 FROM tab1
----
17280
2106
28080

query I rowsort
SELECT cor1.col0 * + 73 - - 64 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3a3e61bc24e815a517a0c34ce07b4472

query I rowsort
SELECT ALL ( col0 ) * col1 FROM tab2
----
1343
217
4602

query I rowsort
SELECT + - 98 * - col1 + cor0.col0 FROM tab1 cor0
----
1044
1354
2551

query I rowsort
SELECT + + col2 * + 23 FROM tab1 AS cor0
----
1242
1311
2208

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 52 - + 86 col2 FROM tab0
----
-34
-34
-34

query I rowsort
SELECT ALL ( + col0 ) * col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT 51 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query I rowsort
SELECT col1 * col1 AS col2 FROM tab2 AS cor0
----
289
3481
961

onlyif mysql # use DIV operator for integer division
query I rowsort label-7937
SELECT ALL col1 DIV + col2 AS col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7937
SELECT ALL col1 / + col2 AS col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 0 + - col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL - 11 FROM tab0 AS cor0
----
-11
-11
-11

query I rowsort
SELECT - col2 * - col0 + 61 FROM tab2
----
2089
250
3063

query I rowsort
SELECT DISTINCT 61 * col2 AS col2 FROM tab0
----
2013
5002
61

query I rowsort
SELECT - + 0 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - cor0.col1 * + col0 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0, tab0 AS cor1, tab2 cor2
----
972 values hashing to 1e9d01970ae508486ddabec967bb176c

query I rowsort
SELECT ALL + cor0.col1 * - col2 + 7 FROM tab0 AS cor0
----
-2831
-7455
-90

query I rowsort
SELECT DISTINCT 81 AS col0 FROM tab2 AS cor0
----
81

query I rowsort
SELECT col0 + + col0 * - ( + 89 ) * + col0 FROM tab1 cor0
----
-364480
-569520
-798

query I rowsort
SELECT 0 + col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT 66 + + col0 * - col0 AS col0 FROM tab0 AS cor0
----
-1159
-510
-7855

query I rowsort
SELECT DISTINCT col0 * - col1 + - 23 FROM tab2 AS cor0
----
-1366
-240
-4625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col1 * + col1 col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0, tab2 cor1, tab2 cor2
----
972 values hashing to 163d7732097d78f1cda7f65c2cea5a08

query I rowsort
SELECT + 36 * 75 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to ee2c7dd9dc2fb0bca99b57eeb94d7e8c

query I rowsort
SELECT col1 * col0 AS col0 FROM tab1
----
1040
640
78

query I rowsort
SELECT 11 + 11 FROM tab2 AS cor0
----
22
22
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col2 col0 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT ( + col1 ) * + col2 + - 6 AS col0 FROM tab1 AS cor0
----
1242
1398
564

query I rowsort
SELECT ALL - col1 * ( + col0 ) * - tab2.col1 FROM tab2
----
22831
271518
6727

query I rowsort
SELECT DISTINCT - col2 * - col2 AS col0 FROM tab0
----
1
1089
6724

query I rowsort
SELECT DISTINCT + col1 * - 58 FROM tab1
----
-1508
-580
-754

query I rowsort
SELECT DISTINCT 7 * cor0.col1 AS col2 FROM tab2, tab1 AS cor0
----
182
70
91

query I rowsort
SELECT + col1 * - ( 7 ) FROM tab1
----
-182
-70
-91

query I rowsort
SELECT ALL - cor0.col2 AS col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

query I rowsort
SELECT ALL + tab0.col1 AS col0 FROM tab0
----
86
91
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7965
SELECT ALL CAST( NULL AS SIGNED ) col2 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-7965
SELECT ALL CAST ( NULL AS INTEGER ) col2 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT col2 * + col1 * col1 FROM tab0
----
244068
679042
9409

query I rowsort
SELECT ALL ( - col1 ) AS col0 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT - 27 + ( - col2 ) * + cor0.col0 AS col2 FROM tab2 AS cor0
----
-2055
-216
-3029

query I rowsort
SELECT 3 * + 83 AS col1 FROM tab0 cor0
----
249
249
249

query I rowsort
SELECT + ( + cor0.col1 ) FROM tab2 AS cor0
----
17
31
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7971
SELECT DISTINCT + CAST( + col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-7971
SELECT DISTINCT + CAST ( + col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL + cor0.col2 * col0 + col0 * + col1 AS col0 FROM tab2 AS cor0
----
406
4345
6630

onlyif mysql # use DIV operator for integer division
query I rowsort label-7973
SELECT - cor0.col2 + ( col1 + cor0.col1 ) DIV col0 AS col1 FROM tab2 AS cor0
----
-19
-25
-38

skipif mysql # not compatible
query I rowsort label-7973
SELECT - cor0.col2 + ( col1 + cor0.col1 ) / col0 AS col1 FROM tab2 AS cor0
----
-19
-25
-38

query I rowsort
SELECT - - 65 + - 58 AS col0 FROM tab0 cor0
----
7
7
7

query I rowsort
SELECT DISTINCT col1 * col0 + - col2 FROM tab0
----
2031
3394
8017

query I rowsort
SELECT ALL col0 * + col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - col1 * col0 AS col2 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT + 90 FROM tab2 AS cor0
----
90

query I rowsort
SELECT ALL + col1 * col0 + cor0.col2 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT ALL ( col0 ) * ( col0 ) + + cor0.col0 AS col0 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT ALL + cor0.col1 * col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL 51 AS col0 FROM tab1 AS cor0
----
51
51
51

query I rowsort
SELECT DISTINCT col0 + col0 + cor0.col2 FROM tab2 AS cor0
----
182
196
41

query I rowsort
SELECT tab2.col0 * col0 AS col1 FROM tab2
----
49
6084
6241

query I rowsort
SELECT DISTINCT + cor0.col0 + + 72 AS col0 FROM tab0 AS cor0
----
107
161
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-7986
SELECT - col1 * col1 + + col0 DIV + cor0.col1 col0 FROM tab2 AS cor0
----
-285
-3480
-961

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7986
SELECT - col1 * col1 + + col0 / + cor0.col1 col0 FROM tab2 AS cor0
----
-285
-3480
-961

query I rowsort
SELECT - + col2 - + ( ( + col0 ) ) FROM tab1 AS cor0
----
-121
-176
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col2 * ( - col1 ) + col0 * - col2 col1 FROM tab2 AS cor0
----
-13984
-26136
-92534

query I rowsort
SELECT 68 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * + 76 + - 8 + col1 * col0 col0 FROM tab1 AS cor0
----
4174
4964
8328

query I rowsort
SELECT cor0.col1 + + col1 AS col2 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT + col2 + ( 35 ) + col2 FROM tab1 cor0
----
143
149
227

query I rowsort
SELECT + cor0.col1 * col1 - 31 FROM tab0 AS cor0
----
7365
8250
9378

query I rowsort
SELECT + col1 * - col2 + - col2 FROM tab1 AS cor0
----
-1344
-1458
-627

query I rowsort
SELECT col2 + + col0 + cor0.col0 * col1 FROM tab0 AS cor0
----
2121
3431
8270

onlyif mysql # use DIV operator for integer division
query I rowsort label-7996
SELECT ALL + - 83 DIV col1 AS col1 FROM tab2 cor0
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-7996
SELECT ALL + - 83 / col1 AS col1 FROM tab2 cor0
----
-1
-2
-4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7997
SELECT + CAST( NULL AS SIGNED ) + + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7997
SELECT + CAST ( NULL AS INTEGER ) + + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 81 + + col0 FROM tab1 AS cor0
----
145
161
84

query I rowsort
SELECT 53 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda

query I rowsort
SELECT ALL + ( + col2 ) AS col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL + 23 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 546d49aa433406dd83ea19885588e658

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8002
SELECT - + col2 * col2 * CAST( - ( cor0.col1 ) AS SIGNED ) col2 FROM tab0 AS cor0
----
611884
93654
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8002
SELECT - + col2 * col2 * CAST ( - ( cor0.col1 ) AS INTEGER ) col2 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT - + 91 * cor0.col2 * - col2 AS col2 FROM tab2 AS cor0
----
131404
61516
66339

query I rowsort
SELECT DISTINCT + cor1.col0 * + 53 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
159
3392
4240

query I rowsort
SELECT - 42 FROM tab0, tab1 AS cor0
----
9 values hashing to 9894093f29c0defae91347934f060329

query I rowsort
SELECT ALL ( col2 ) FROM tab0
----
1
33
82

query I rowsort
SELECT - ( col0 ) FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT ALL + cor0.col0 - - ( + col0 ) FROM tab1 cor0
----
128
160
6

query I rowsort
SELECT - - cor0.col0 + 20 * + ( + col0 ) AS col2 FROM tab0 AS cor0
----
1869
504
735

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8010
SELECT col0 * CAST( NULL AS SIGNED ) * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8010
SELECT col0 * CAST ( NULL AS INTEGER ) * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - cor0.col1 + col2 AS col1 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT + 61 FROM tab1
----
61
61
61

query I rowsort
SELECT DISTINCT 72 AS col0 FROM tab2
----
72

query I rowsort
SELECT DISTINCT cor0.col1 FROM tab2, tab0 AS cor0 CROSS JOIN tab1
----
86
91
97

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0, tab2 cor1, tab0, tab1 AS cor2
----
3645 values hashing to b8435223668db186a5012e4112253f28

query I rowsort
SELECT + col2 + - col0 * col1 AS col0 FROM tab1 cor0
----
-24
-583
-944

onlyif mysql # use DIV operator for integer division
query I rowsort label-8017
SELECT DISTINCT - col1 DIV col0 + CAST( + col0 AS SIGNED ) * col0 FROM tab2 AS cor0
----
45
6084
6241

skipif mysql # not compatible
query I rowsort label-8017
SELECT DISTINCT - col1 / col0 + CAST ( + col0 AS INTEGER ) * col0 FROM tab2 AS cor0
----
45
6084
6241

query I rowsort
SELECT - 80 * + 85 + col1 AS col1 FROM tab2
----
-6741
-6769
-6783

query I rowsort
SELECT 13 * 40 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7180b9ae39a7b1cd793bf0b85f36316b

query I rowsort
SELECT 3 AS col1 FROM tab1
----
3
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + col2 * ( cor0.col0 * col2 ) col1 FROM tab0 AS cor0
----
26160
598525
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col0 + - col1 col1 FROM tab2
----
-6143
-6258
-80

query I rowsort
SELECT ALL - 96 * col1 + 27 FROM tab2
----
-1605
-2949
-5637

query I rowsort
SELECT ALL - 33 + col1 * col2 * col1 FROM tab0
----
244035
679009
9376

query I rowsort
SELECT DISTINCT + col0 + + col1 AS col2 FROM tab1
----
29
74
93

query I rowsort
SELECT col1 + cor0.col0 AS col0 FROM tab2 AS cor0
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-8027
SELECT DISTINCT + + col0 DIV col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8027
SELECT DISTINCT + + col0 / col0 FROM tab0 AS cor0
----
1

query I rowsort
SELECT - 76 + - col1 AS col0 FROM tab0 AS cor0
----
-162
-167
-173

query I rowsort
SELECT DISTINCT - ( col1 ) AS col2 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT + 8 * col2 + col0 AS col2 FROM tab2 AS cor0
----
223
286
383

onlyif mysql # use DIV operator for integer division
query I rowsort label-8031
SELECT ALL cor0.col0 DIV col0 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8031
SELECT ALL cor0.col0 / col0 FROM tab2 cor0
----
1
1
1

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 cor0, tab2 cor1, tab1 AS cor2
----
972 values hashing to 92235dbc382d83baa93d6546ed489b0c

query I rowsort
SELECT ALL - - 96 + col2 FROM tab1 AS cor0
----
150
153
192

query I rowsort
SELECT - col0 * col1 + + col1 * 10 * col0 AS col1 FROM tab0 AS cor0
----
18576
30555
72891

query I rowsort
SELECT tab0.col0 + - col0 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + cor0.col0 FROM tab0, tab1 cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT col0 * ( 22 ) * col2 - tab0.col2 AS col1 FROM tab0
----
160474
17391
769

onlyif mysql # use DIV operator for integer division
query I rowsort label-8038
SELECT - col2 DIV + col1 AS col1 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-8038
SELECT - col2 / + col1 AS col1 FROM tab1 AS cor0
----
-2
-5
-7

query I rowsort
SELECT DISTINCT + col0 + 51 AS col0 FROM tab0 AS cor0
----
140
75
86

query I rowsort
SELECT ALL cor0.col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT ALL - + 46 AS col1 FROM tab2 AS cor0
----
-46
-46
-46

query I rowsort
SELECT DISTINCT + 57 * 26 AS col0 FROM tab0 cor0
----
1482

query I rowsort
SELECT ALL + col0 * + cor0.col1 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8044
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col1 + + col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8044
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col1 + + col2 FROM tab2 cor0
----
NULL

query I rowsort
SELECT DISTINCT + 62 + col2 * - col2 AS col1 FROM tab2 AS cor0
----
-1382
-614
-667

query I rowsort
SELECT 76 * col1 AS col1 FROM tab1 cor0
----
1976
760
988

query I rowsort
SELECT - + col2 * + 68 FROM tab1 AS cor0
----
-3672
-3876
-6528

onlyif mysql # use DIV operator for integer division
query I rowsort label-8048
SELECT cor0.col2 DIV + cor0.col0 FROM tab1 AS cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-8048
SELECT cor0.col2 / + cor0.col0 FROM tab1 AS cor0
----
0
1
18

query I rowsort
SELECT DISTINCT + col1 * + col2 * col2 + 42 FROM tab1 AS cor0
----
119850
32532
75858

query I rowsort
SELECT ALL + 54 - + cor0.col1 FROM tab1 AS cor0
----
28
41
44

query I rowsort
SELECT - col2 * + col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8052
SELECT ALL col1 / - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8052
SELECT ALL col1 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 * - col2 AS col0 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT ALL - - col1 * - 91 FROM tab1 AS cor0
----
-1183
-2366
-910

query I rowsort
SELECT + col1 * - col1 * cor0.col0 FROM tab2 AS cor0
----
-22831
-271518
-6727

query I rowsort
SELECT + col2 * 15 AS col2 FROM tab1 cor0
----
1440
810
855

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( col2 ) col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT + col0 * + 12 FROM tab2 AS cor0
----
84
936
948

query I rowsort
SELECT 2 FROM tab1 cor0
----
2
2
2

query I rowsort
SELECT DISTINCT - ( + 58 ) + col2 * 72 AS col0 FROM tab1 AS cor0
----
3830
4046
6854

query I rowsort
SELECT 56 * - 49 FROM tab2 AS cor0
----
-2744
-2744
-2744

query I rowsort
SELECT ALL + + 58 AS col1 FROM tab1 AS cor0
----
58
58
58

query I rowsort
SELECT ALL - - 74 + - col2 FROM tab1 AS cor0
----
-22
17
20

query I rowsort
SELECT + 58 * - col0 FROM tab0 AS cor0
----
-1392
-2030
-5162

query I rowsort
SELECT DISTINCT - ( - col2 ) AS col2 FROM tab1 AS cor0
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 24 * col1 * + col1 col1 FROM tab0 AS cor0
----
-177504
-198744
-225816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 40 * col2 col0 FROM tab0 cor0
----
1320
3280
40

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 ALL - col2 + cor0.col0 + col2 * col0 FROM tab1 AS cor0
----
111
3655
7664

query I rowsort
SELECT DISTINCT - - col0 + - col2 * - col0 AS col1 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT ALL 38 AS col1 FROM tab0 AS cor0
----
38
38
38

query I rowsort
SELECT cor0.col2 + - col2 * - col1 FROM tab2 AS cor0
----
1560
684
864

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 - 79 + col1 * + col0 col1 FROM tab1 cor0
----
-1
561
961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col2 col0 FROM tab0
----
-9
34
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-8076
SELECT col0 + + tab1.col2 DIV + col0 FROM tab1
----
21
64
81

skipif mysql # not compatible
query I rowsort label-8076
SELECT col0 + + tab1.col2 / + col0 FROM tab1
----
21
64
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8077
SELECT CAST( NULL AS SIGNED ) - + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8077
SELECT CAST ( NULL AS INTEGER ) - + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + + col0 * + col1 FROM tab1
----
1136
132
697

query I rowsort
SELECT col0 * ( + tab0.col2 ) + - ( col2 + col0 ) FROM tab0
----
-1
7127
735

onlyif mysql # use DIV operator for integer division
query I rowsort label-8080
SELECT DISTINCT 59 DIV col2 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-8080
SELECT DISTINCT 59 / col2 FROM tab1
----
0
1

query I rowsort
SELECT DISTINCT col2 * 35 AS col0 FROM tab2
----
1330
910
945

query I rowsort
SELECT DISTINCT col1 * + col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT ALL + cor0.col2 + - 46 + col0 AS col0 FROM tab0 AS cor0
----
-10
11
125

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 col2 FROM tab2 AS cor0
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - cor0.col2 col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT + col2 * ( col1 ) + col0 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT ALL - col1 + ( cor0.col1 ) * + cor0.col1 AS col2 FROM tab0 AS cor0
----
7310
8190
9312

query I rowsort
SELECT ALL - col2 + ( - 68 ) AS col0 FROM tab0 AS cor0
----
-101
-150
-69

query I rowsort
SELECT DISTINCT - cor0.col2 * - cor0.col2 - + col0 * col0 AS col1 FROM tab0 AS cor0
----
-1197
-1224
513

query I rowsort
SELECT ALL col0 + + col1 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT col0 * - col2 + + 41 AS col2 FROM tab1 cor0
----
-121
-3607
-7639

query I rowsort
SELECT DISTINCT cor0.col0 + col0 AS col1 FROM tab0 cor0
----
178
48
70

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col0 * + CAST ( col1 AS REAL ) FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT - + col1 + col0 AS col2 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT + 26 + col0 FROM tab1
----
106
29
90

query I rowsort
SELECT + 74 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82

query I rowsort
SELECT + col2 + tab1.col2 FROM tab1
----
108
114
192

query I rowsort
SELECT + cor0.col0 * col1 AS col2 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-8099
SELECT - - col0 + col1 DIV col1 AS col0 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-8099
SELECT - - col0 + col1 / col1 AS col0 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT DISTINCT col2 + tab0.col1 FROM tab0
----
119
173
98

query I rowsort
SELECT DISTINCT col1 * - tab0.col1 * + 1 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT col2 + - col2 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL 24 FROM tab1, tab0 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT ALL + col1 + ( - col1 ) + col0 * - col0 AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT - col1 + cor0.col0 AS col2 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT ALL - col0 * + 32 AS col2 FROM tab0 AS cor0
----
-1120
-2848
-768

query I rowsort
SELECT DISTINCT - col2 + - 47 AS col0 FROM tab2 cor0
----
-73
-74
-85

query I rowsort
SELECT col2 * ( col2 ) AS col2 FROM tab0 cor0
----
1
1089
6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-8109
SELECT ALL - col0 DIV + 34 - - col1 AS col2 FROM tab2 AS cor0
----
15
31
57

skipif mysql # not compatible
query I rowsort label-8109
SELECT ALL - col0 / + 34 - - col1 AS col2 FROM tab2 AS cor0
----
15
31
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 18 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 AS cor2
----
972 values hashing to e4c748f267e8d2a0e6d563281e1fb975

query I rowsort
SELECT - + col0 - col1 * cor0.col2 FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT ALL + col2 * + 18 - - col1 AS col2 FROM tab2 AS cor0
----
517
527
701

query I rowsort
SELECT + + col1 * 51 + col2 * + col1 FROM tab0 AS cor0
----
12103
5044
7224

query I rowsort
SELECT ALL - tab1.col0 + + col1 * - col0 AS col0 FROM tab1
----
-1120
-704
-81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8116
SELECT ALL + 92 * col2 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8116
SELECT ALL + 92 * col2 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 - col0 * + col0 AS col2 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT - col0 + col0 AS col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 * col2 + col2 AS col2 FROM tab2
----
1560
684
864

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( ( cor0.col0 ) + + 34 AS REAL ) AS col2 FROM tab2, tab2 AS cor0
----
112
113
41

query I rowsort
SELECT col0 * 66 + ( col1 * tab0.col2 ) AS col2 FROM tab0
----
13336
2407
4422

query IIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1, tab1 cor1
----
243 values hashing to 7e12d99d8ab63d9fd10e95cef9d78998

onlyif mysql # use DIV operator for integer division
query I rowsort label-8123
SELECT DISTINCT + col2 DIV col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8123
SELECT DISTINCT + col2 / col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - col0 * - 91 FROM tab2 AS cor0
----
637
7098
7189

query I rowsort
SELECT DISTINCT + col2 * - col1 + + 4 - col1 FROM tab1 AS cor0
----
-1257
-1426
-576

query I rowsort
SELECT - ( - 78 ) FROM tab0, tab2 AS cor0, tab2, tab2 AS cor1
----
81 values hashing to f0487ba81d377516702723e098c02ba1

query I rowsort
SELECT col2 + + col0 + tab1.col0 FROM tab1
----
185
256
60

query I rowsort
SELECT tab0.col1 + + tab0.col0 * col1 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT DISTINCT - col0 * - col0 AS col0 FROM tab2 WHERE NOT - col2 IN ( + col0 )
----
49
6084
6241

query I rowsort
SELECT - 62 FROM tab2 cor0
----
-62
-62
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col1 + - col1 + - col0 col0 FROM tab0
----
-196
-229
-271

query I rowsort
SELECT DISTINCT + col1 * col0 * - col2 + - col1 * tab0.col0 AS col0 FROM tab0
----
-672217
-6790
-70176

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 * col2 < NULL
----

query I rowsort
SELECT DISTINCT + col0 + tab1.col1 AS col1 FROM tab1
----
29
74
93

query I rowsort
SELECT col0 + col2 * tab2.col0 AS col1 FROM tab2
----
196
2106
3081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 55 col1 FROM tab0
----
55
55
55

query I rowsort
SELECT ALL + col2 + col1 AS col1 FROM tab1
----
109
67
80

query I rowsort
SELECT ALL + col2 * tab2.col1 + - 12 AS col2 FROM tab2
----
1522
634
825

query I rowsort
SELECT ALL + 84 FROM tab2 cor0
----
84
84
84

query I rowsort
SELECT + 26 * - col2 AS col1 FROM tab2 AS cor0
----
-676
-702
-988

query I rowsort
SELECT + ( col2 ) * - col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT ALL 75 FROM tab1 cor0
----
75
75
75

query I rowsort
SELECT ALL 9 FROM tab2 cor0
----
9
9
9

query I rowsort
SELECT ALL + col1 + col1 * + col1 AS col1 FROM tab1 AS cor0
----
110
182
702

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab0 cor1, tab0 AS cor2
----
972 values hashing to 3406497351e4789c89a295ee9b64b201

query I rowsort
SELECT DISTINCT + col2 * + col2 * + col1 AS col2 FROM tab2
----
22599
24548
39884

query I rowsort
SELECT DISTINCT - 34 AS col2 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
-34

query I rowsort
SELECT + 51 + - col2 * - 74 FROM tab0 AS cor0
----
125
2493
6119

query I rowsort
SELECT - - col0 * cor0.col2 AS col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT + - 60 AS col0 FROM tab2 AS cor0
----
-60
-60
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * 11 col2 FROM tab1 AS cor0
----
1056
594
627

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * cor0.col1 col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT tab1.col2 - + col0 AS col1 FROM tab1
----
-7
16
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - + col1 col1 FROM tab2
----
-55
-58
-85

query I rowsort
SELECT col0 + tab2.col0 * - 68 * col1 FROM tab2
----
-14749
-312858
-91245

query I rowsort
SELECT DISTINCT col1 - 85 * col0 AS col2 FROM tab0
----
-1954
-2878
-7474

query I rowsort
SELECT - col0 + ( ( - col2 ) ) FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT + 90 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to 5d25a546acf3ae171e731e50adc0112e

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 cor0, tab0 AS cor1, tab2 cor2
----
972 values hashing to 6dfb18fb846f922ba9ea60ce42b86fb0

query I rowsort
SELECT 80 FROM tab0, tab2 AS cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query I rowsort
SELECT DISTINCT 37 * cor0.col0 FROM tab2, tab2 cor0
----
259
2886
2923

query I rowsort
SELECT - col2 + + 81 FROM tab0 AS cor0
----
-1
48
80

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab2 AS cor1, tab2 cor2
----
972 values hashing to 617c9545df26d6d983e3967864e8e9e4

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0, tab2 AS cor1, tab0 AS cor2
----
972 values hashing to 63ccb67e72ebac679a0221202c067b9e

onlyif mysql # use DIV operator for integer division
query I rowsort label-8165
SELECT + - col1 DIV + col1 + col1 DIV - 42 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8165
SELECT + - col1 / + col1 + col1 / - 42 FROM tab1 cor0
----
-1
-1
-1

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 cor0, tab1 AS cor1, tab0 AS cor2
----
972 values hashing to 9b91cf9fcc064ee1c13074a678b72ac7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 col0 FROM tab1 cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 86 * + col2 * cor0.col1 col2 FROM tab0 AS cor0
----
244068
641732
8342

onlyif mysql # use DIV operator for integer division
query I rowsort label-8169
SELECT ( + cor0.col2 ) + col1 DIV 15 AS col2 FROM tab1 AS cor0
----
55
57
96

skipif mysql # not compatible
query I rowsort label-8169
SELECT ( + cor0.col2 ) + col1 / 15 AS col2 FROM tab1 AS cor0
----
55
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) * + col2 col1 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT + 63 AS col2 FROM tab1 AS cor0
----
63
63
63

query I rowsort
SELECT - col1 * + tab0.col2 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT ( + col1 ) AS col0 FROM tab2
----
17
31
59

query I rowsort
SELECT + col2 * 41 AS col2 FROM tab1
----
2214
2337
3936

query I rowsort
SELECT - ( - 60 ) FROM tab0
----
60
60
60

query I rowsort
SELECT DISTINCT ( tab1.col2 ) AS col1 FROM tab1
----
54
57
96

query I rowsort
SELECT DISTINCT - 50 FROM tab0, tab1, tab1 cor0
----
-50

query I rowsort
SELECT ALL col0 * + col2 * + col2 AS col2 FROM tab2
----
114076
5103
52728

query I rowsort
SELECT 79 * + col2 FROM tab0
----
2607
6478
79

query I rowsort
SELECT ALL + + col1 * cor0.col1 + col0 AS col0 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT DISTINCT - cor0.col1 * + col0 AS col0 FROM tab0 cor0
----
-2064
-3395
-8099

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

query I rowsort
SELECT + col2 * col0 AS col2 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT - col1 * tab1.col0 - - col1 AS col2 FROM tab1
----
-1027
-52
-630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col1 col2 FROM tab0
----
172
182
194

query I rowsort
SELECT DISTINCT tab1.col0 * + col1 FROM tab1
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col1 - + col1 col2 FROM tab2
----
-1360
-248
-4661

query I rowsort
SELECT DISTINCT col1 * - col2 * col2 AS col1 FROM tab0
----
-611884
-93654
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col0 - col0 col2 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8190
SELECT ALL + col2 DIV - col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8190
SELECT ALL + col2 / - col1 FROM tab0
----
0
0
0

query I rowsort
SELECT - tab0.col1 - col1 FROM tab0
----
-172
-182
-194

query I rowsort
SELECT - - cor0.col1 * + col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT + col0 + + col0 AS col0 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT + col0 * - col1 + col0 FROM tab0
----
-2040
-3360
-8010

query I rowsort
SELECT cor0.col2 + col2 AS col1 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT DISTINCT - ( + col2 ) AS col0 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT - 13 AS col1 FROM tab1
----
-13
-13
-13

query I rowsort
SELECT + 9 FROM tab0, tab0 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query I rowsort
SELECT + col0 * ( tab2.col1 ) AS col2 FROM tab2
----
1343
217
4602

query I rowsort
SELECT + cor0.col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT + tab1.col2 * - col2 * tab1.col1 AS col1 FROM tab1
----
-119808
-32490
-75816

query I rowsort
SELECT DISTINCT - 74 AS col1 FROM tab2
----
-74

query I rowsort
SELECT + + col2 * 33 + col0 AS col0 FROM tab0 AS cor0
----
1113
2795
68

query I rowsort
SELECT ALL + ( - col2 ) + + col0 AS col1 FROM tab1
----
-16
-51
7

query I rowsort
SELECT + 6 AS col1 FROM tab2 AS cor0
----
6
6
6

query I rowsort
SELECT - 88 * - col1 + + cor0.col1 * + col2 FROM tab2 AS cor0
----
2142
3565
6726

query I rowsort
SELECT ALL 2 AS col0 FROM tab1 AS cor0
----
2
2
2

query I rowsort
SELECT DISTINCT + - cor0.col2 * col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ALL + col2 * col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT - 75 * + cor0.col2 AS col1 FROM tab1 cor0
----
-4050
-4275
-7200

query I rowsort
SELECT ALL - - col2 * + col1 + col1 FROM tab0 AS cor0
----
194
2924
7553

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 60 * col1 + + cor0.col0 col2 FROM tab2 AS cor0
----
-1853
-3462
-941

query I rowsort
SELECT col0 + col0 * col1 FROM tab1 cor0
----
1120
704
81

query I rowsort
SELECT DISTINCT + ( col0 ) * col2 AS col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT cor0.col0 + + col0 FROM tab1 AS cor0
----
128
160
6

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) NOT IN ( - col1 )
----

query I rowsort
SELECT ALL + col0 + + col1 AS col0 FROM tab0
----
110
132
180

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) IN ( + col1 / - col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 BETWEEN NULL AND col0
----

query I rowsort
SELECT ALL col1 + tab2.col1 * + col1 * col0 AS col0 FROM tab2
----
22848
271577
6758

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 * col1 = NULL
----

query I rowsort
SELECT DISTINCT - col2 * col2 AS col2 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT ALL + tab2.col2 * - col0 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT ALL col0 / + col0 AS col0 FROM tab0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT DISTINCT col1 + - tab2.col2 AS col1 FROM tab2
----
-21
33
4

query I rowsort
SELECT ALL col2 * + col2 AS col2 FROM tab1 WHERE NOT NULL IN ( col1 )
----

query I rowsort
SELECT ALL col2 + col0 AS col0 FROM tab0 AS cor0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * cor0.col0 col2 FROM tab2, tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL + col2 + - cor0.col1 AS col2 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT DISTINCT cor0.col0 + - col2 AS col1 FROM tab0 AS cor0
----
-9
34
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-8231
SELECT + col2 DIV col2 AS col1 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8231
SELECT + col2 / col2 AS col1 FROM tab1 cor0
----
1
1
1

query I rowsort
SELECT + col1 + cor0.col1 FROM tab1 AS cor0
----
20
26
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-8233
SELECT DISTINCT cor0.col1 DIV col2 FROM tab0 cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-8233
SELECT DISTINCT cor0.col1 / col2 FROM tab0 cor0
----
1
2
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col1 + + col0 col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE - col2 * - col0 < col2 + - col1
----

query I rowsort
SELECT ALL col0 + + col2 AS col1 FROM tab1
----
121
176
57

query I rowsort
SELECT tab1.col0 FROM tab1 WHERE col2 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL col1 + + col2 AS col1 FROM tab2 WHERE ( col1 ) NOT IN ( col1 )
----

query I rowsort
SELECT - col0 + + col1 AS col0 FROM tab0
----
2
62
62

query I rowsort
SELECT col1 - - col0 AS col0 FROM tab2
----
137
38
96

query I rowsort
SELECT ALL + col1 + col0 - col0 FROM tab2 WHERE ( col0 ) > col2
----
17
59

query I rowsort
SELECT col1 + + tab2.col2 + col2 AS col0 FROM tab2
----
111
85
93

query I rowsort
SELECT DISTINCT + col1 + col0 FROM tab0
----
110
132
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + tab0.col2 col0 FROM tab0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-8245
SELECT DISTINCT - col2 * col2 + - col2 DIV - col0 AS col1 FROM tab2
----
-1444
-676
-726

skipif mysql # not compatible
query I rowsort label-8245
SELECT DISTINCT - col2 * col2 + - col2 / - col0 AS col1 FROM tab2
----
-1444
-676
-726

onlyif mysql # use DIV operator for integer division
query I rowsort label-8246
SELECT col2 DIV col2 col1 FROM tab1
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8246
SELECT col2 / col2 col1 FROM tab1
----
1
1
1

query I rowsort
SELECT ALL + tab2.col1 * - col2 * col1 FROM tab2
----
-10982
-25947
-90506

query I rowsort
SELECT DISTINCT col0 + - tab1.col1 FROM tab1
----
-23
54
67

query I rowsort
SELECT + tab1.col2 * col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT col2 + - col2 + col0 FROM tab0
----
24
35
89

query I rowsort
SELECT - - col1 + - cor0.col2 * + col0 - - col1 AS col0 FROM tab0 AS cor0
----
-620
-7116
159

query I rowsort
SELECT DISTINCT - col1 + + col1 AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8253
SELECT + col0 DIV - col0 + - col1 AS col2 FROM tab1 AS cor0
----
-11
-14
-27

skipif mysql # not compatible
query I rowsort label-8253
SELECT + col0 / - col0 + - col1 AS col2 FROM tab1 AS cor0
----
-11
-14
-27

query I rowsort
SELECT col1 * col1 - col0 FROM tab0 AS cor0
----
7372
8192
9374

query I rowsort
SELECT DISTINCT + col0 * cor0.col0 AS col1 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT - - col1 + col0 + + cor0.col2 * col2 FROM tab2 AS cor0
----
1540
767
813

query I rowsort
SELECT ALL + + cor0.col0 + + col1 AS col2 FROM tab1 AS cor0
----
29
74
93

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= col2
----

query I rowsort
SELECT tab0.col0 + + col2 AS col1 FROM tab0
----
171
36
57

query I rowsort
SELECT ALL + - col2 + col1 * col2 AS col2 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT DISTINCT - col2 + col0 * col0 + col0 AS col1 FROM tab0 AS cor0
----
1259
567
7928

query I rowsort
SELECT cor0.col0 + + col1 * col0 - - col2 FROM tab1 AS cor0
----
1216
135
761

query I rowsort
SELECT ALL - col1 * cor0.col2 * col1 FROM tab0 cor0
----
-244068
-679042
-9409

query I rowsort
SELECT ALL - - col1 * + col1 + col1 AS col2 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT ALL - - col2 + col1 + cor0.col0 AS col1 FROM tab0 AS cor0
----
133
143
262

query I rowsort
SELECT ALL - col0 * cor0.col2 + + col1 FROM tab2 cor0
----
-158
-1969
-2985

query I rowsort
SELECT - col0 * col0 * + col2 AS col2 FROM tab0
----
-1225
-19008
-649522

query I rowsort
SELECT - col0 * col1 + col0 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT ALL col1 * + col1 + - col2 FROM tab2 AS cor0
----
251
3455
934

query I rowsort
SELECT ALL col0 + col2 + col0 FROM tab0 AS cor0 WHERE NOT col2 IN ( - col0 / + cor0.col2 ) OR NULL NOT BETWEEN NULL AND ( + col2 * + col0 )
----
260
71
81

query I rowsort
SELECT DISTINCT + + col0 * col0 AS col1 FROM tab0 AS cor0
----
1225
576
7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-8272
SELECT cor0.col0 DIV col0 AS col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8272
SELECT cor0.col0 / col0 AS col0 FROM tab1 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col0 - col1 col0 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT ALL - col0 * + tab1.col1 + + col2 * - col0 + - col1 * col2 AS col0 FROM tab1
----
-1644
-4858
-9968

onlyif mysql # use DIV operator for integer division
query I rowsort label-8275
SELECT - col1 DIV cor0.col0 + col0 FROM tab1 cor0
----
-5
64
80

skipif mysql # not compatible
query I rowsort label-8275
SELECT - col1 / cor0.col0 + col0 FROM tab1 cor0
----
-5
64
80

query I rowsort
SELECT + col1 * + col1 * cor0.col2 + - col0 + col0 AS col1 FROM tab0 AS cor0
----
244068
679042
9409

query I rowsort
SELECT ALL col2 + - col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 * + col1 + col0 FROM tab2
----
-1264
-210
-4524

query I rowsort
SELECT + col1 + - col0 FROM tab2
----
-19
-62
24

query I rowsort
SELECT DISTINCT + col2 * col0 * - col2 + col0 FROM tab1
----
-207872
-737200
-8745

query I rowsort
SELECT col0 + col2 * col2 FROM tab1
----
2919
3313
9296

query I rowsort
SELECT - 51 * + 45 AS col0 FROM tab2 AS cor0
----
-2295
-2295
-2295

query I rowsort
SELECT ALL 50 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8284
SELECT ALL CAST( - col2 AS SIGNED ) * col2 * - ( tab1.col0 ) FROM tab1
----
207936
737280
8748

skipif mysql # not compatible
query I rowsort label-8284
SELECT ALL CAST ( - col2 AS INTEGER ) * col2 * - ( tab1.col0 ) FROM tab1
----
207936
737280
8748

query IIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-8286
SELECT col2 DIV col1 AS col0 FROM tab2 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-8286
SELECT col2 / col1 AS col0 FROM tab2 AS cor0
----
0
0
2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8287
SELECT + CAST( col2 AS SIGNED ) * + cor0.col0 FROM tab2 AS cor0
----
189
2028
3002

skipif mysql # not compatible
query I rowsort label-8287
SELECT + CAST ( col2 AS INTEGER ) * + cor0.col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - 30 * col1 * ( - ( col0 ) ) AS col1 FROM tab2 AS cor0
----
138060
40290
6510

query I rowsort
SELECT - - ( col1 ) + 42 AS col2 FROM tab2 AS cor0
----
101
59
73

query I rowsort
SELECT ( - col2 ) + + 22 FROM tab0 AS cor0
----
-11
-60
21

query I rowsort
SELECT 59 * cor0.col0 FROM tab2 cor0
----
413
4602
4661

query I rowsort
SELECT + - ( col2 ) * + 71 AS col2 FROM tab0 AS cor0
----
-2343
-5822
-71

query I rowsort
SELECT + - col2 * col1 + cor0.col2 AS col0 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT 65 FROM tab0, tab0 cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT 98 FROM tab2, tab1 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query I rowsort
SELECT ALL col2 * 62 FROM tab1
----
3348
3534
5952

onlyif mysql # use DIV operator for integer division
query I rowsort label-8297
SELECT DISTINCT - col1 DIV + col0 FROM tab0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-8297
SELECT DISTINCT - col1 / + col0 FROM tab0
----
-1
-2
-3

query I rowsort
SELECT ALL + col0 * - ( col2 ) FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT + + 5 * - col2 AS col1 FROM tab0 AS cor0
----
-165
-410
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 + col1 col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT DISTINCT + + col0 * - col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT + col2 - - cor0.col2 * + 41 AS col1 FROM tab2 AS cor0
----
1092
1134
1596

query I rowsort
SELECT DISTINCT + cor0.col1 * - col0 * 99 FROM tab0 AS cor0
----
-204336
-336105
-801801

query I rowsort
SELECT ALL + col1 + ( 27 ) AS col1 FROM tab1 cor0
----
37
40
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col2 * col1 col1 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT ALL - col2 + + 87 + + col0 FROM tab1 AS cor0
----
36
71
94

query I rowsort
SELECT - col2 * - 63 + - cor0.col2 * - col0 AS col0 FROM tab0 AS cor0
----
12464
2871
98

query I rowsort
SELECT col1 * 94 AS col0 FROM tab0 AS cor0
----
8084
8554
9118

query I rowsort
SELECT DISTINCT - col1 * - ( 70 ) FROM tab1 AS cor0
----
1820
700
910

query I rowsort
SELECT DISTINCT - col2 * - 82 FROM tab1 AS cor0
----
4428
4674
7872

query I rowsort
SELECT ALL + tab2.col2 * tab2.col1 + - col2 * + col2 * col2 FROM tab2
----
-16042
-18846
-54226

query I rowsort
SELECT - + col0 * + col2 + - col1 AS col0 FROM tab0 cor0
----
-132
-7389
-878

onlyif mysql # use DIV operator for integer division
query I rowsort label-8313
SELECT + + col2 + + col0 * - col0 DIV col0 FROM tab1 AS cor0
----
-7
16
51

skipif mysql # not compatible
query I rowsort label-8313
SELECT + + col2 + + col0 * - col0 / col0 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT col1 * ( 10 ) + + col1 AS col2 FROM tab0 cor0
----
1001
1067
946

query I rowsort
SELECT ALL + col2 * + tab1.col1 AS col0 FROM tab1
----
1248
1404
570

query I rowsort
SELECT DISTINCT + ( + cor0.col1 ) AS col2 FROM tab1, tab2 AS cor0
----
17
31
59

query I rowsort
SELECT 36 + - col2 AS col1 FROM tab2 AS cor0
----
-2
10
9

query I rowsort
SELECT ALL 67 FROM tab0 AS cor0
----
67
67
67

query I rowsort
SELECT 72 AS col1 FROM tab0 cor0
----
72
72
72

query I rowsort
SELECT DISTINCT + - col2 * - col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL - col2 * + cor0.col0 + + col0 AS col1 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT - - col2 * col0 AS col1 FROM tab2 cor0
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 93 + - cor0.col1 * cor0.col0 col1 FROM tab0 AS cor0
----
-2157
-3488
-8192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 94 col2 FROM tab1 AS cor0
----
94
94
94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8325
SELECT DISTINCT - + CAST( + col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-8325
SELECT DISTINCT - + CAST ( + col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT - col0 + cor0.col1 * col1 FROM tab0 AS cor0
----
7372
8192
9374

query I rowsort
SELECT ( col2 ) FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT DISTINCT 99 AS col2 FROM tab0, tab0 AS cor0
----
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-8329
SELECT - ( col0 ) + col2 DIV - col2 AS col1 FROM tab1
----
-4
-65
-81

skipif mysql # not compatible
query I rowsort label-8329
SELECT - ( col0 ) + col2 / - col2 AS col1 FROM tab1
----
-4
-65
-81

query I rowsort
SELECT - - ( - ( col2 ) ) FROM tab1 AS cor0
----
-54
-57
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8331
SELECT + - CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-8331
SELECT + - CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col1 + 64 col0 FROM tab1
----
74
77
90

query I rowsort
SELECT ALL ( tab2.col0 ) AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT ALL + cor0.col2 + - ( 96 ) FROM tab2 AS cor0
----
-58
-69
-70

query I rowsort
SELECT - col2 + + col2 + + col1 * col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT - col0 * + col0 FROM tab0 cor0
----
-1225
-576
-7921

query I rowsort
SELECT ALL col1 * 24 * + col2 + col1 FROM tab0
----
179179
2425
68198

query I rowsort
SELECT ALL - tab0.col2 + + ( + 39 ) FROM tab0
----
-43
38
6

query I rowsort
SELECT ALL tab1.col2 + - col1 AS col1 FROM tab1
----
28
47
83

query I rowsort
SELECT ALL - 92 FROM tab1, tab1 AS cor0
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8341
SELECT - + col0 + - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8341
SELECT - + col0 + - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 cor0, tab0 AS cor1, tab0 cor2
----
972 values hashing to 8420206d6932c454f05a38de634b3cb5

query I rowsort
SELECT - col2 + ( - 93 ) FROM tab1 AS cor0
----
-147
-150
-189

query I rowsort
SELECT ALL ( cor0.col1 ) * + ( - col1 ) FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT 5 * col2 FROM tab2 cor0
----
130
135
190

query I rowsort
SELECT + 19 * col2 + + ( cor0.col1 ) FROM tab2 AS cor0
----
544
553
739

onlyif mysql # use DIV operator for integer division
query I rowsort label-8347
SELECT ALL col2 + col2 DIV ( col2 ) AS col1 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-8347
SELECT ALL col2 + col2 / ( col2 ) AS col1 FROM tab1 AS cor0
----
55
58
97

query I rowsort
SELECT DISTINCT 35 + + col2 AS col1 FROM tab2 AS cor0
----
61
62
73

query I rowsort
SELECT DISTINCT 60 AS col1 FROM tab1
----
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-8350
SELECT ALL - cor0.col0 * cor0.col1 DIV col0 + col2 * col2 AS col2 FROM tab1 AS cor0
----
2890
3239
9203

skipif mysql # not compatible
query I rowsort label-8350
SELECT ALL - cor0.col0 * cor0.col1 / col0 + col2 * col2 AS col2 FROM tab1 AS cor0
----
2890
3239
9203

query I rowsort
SELECT ALL + 46 * + cor0.col2 + 84 FROM tab2 AS cor0
----
1280
1326
1832

query I rowsort
SELECT DISTINCT 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 + + col1 + col2 col0 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT - col0 + + col1 FROM tab2 cor0
----
-19
-62
24

query I rowsort
SELECT DISTINCT + col2 + - col0 FROM tab1 cor0
----
-7
16
51

query I rowsort
SELECT + - 71 * + col2 + col0 * col2 FROM tab1 AS cor0
----
-3672
-399
864

query I rowsort
SELECT DISTINCT 46 FROM tab2 AS cor0
----
46

onlyif mysql # use DIV operator for integer division
query I rowsort label-8358
SELECT - 31 DIV + col1 FROM tab1 cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-8358
SELECT - 31 / + col1 FROM tab1 cor0
----
-1
-2
-3

query I rowsort
SELECT ALL col2 + col1 * 21 FROM tab2 AS cor0
----
1265
395
678

query I rowsort
SELECT DISTINCT cor0.col1 AS col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT - 56 * col1 + cor0.col2 FROM tab1 AS cor0
----
-1402
-503
-632

onlyif mysql # use DIV operator for integer division
query I rowsort label-8362
SELECT DISTINCT - col0 DIV + cor0.col1 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8362
SELECT DISTINCT - col0 / + cor0.col1 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - 4 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 39ed23475412c3cbba02ecdd2d7018e6

query I rowsort
SELECT DISTINCT + col2 * 24 FROM tab2 AS cor0
----
624
648
912

query I rowsort
SELECT DISTINCT - col1 + 84 AS col2 FROM tab2 AS cor0
----
25
53
67

query I rowsort
SELECT ALL - - col0 * + ( - col2 ) AS col2 FROM tab0 cor0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * cor0.col1 col1 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT 68 + col0 FROM tab0
----
103
157
92

query I rowsort
SELECT + 97 + - col2 FROM tab1 AS cor0
----
1
40
43

onlyif mysql # use DIV operator for integer division
query I rowsort label-8370
SELECT DISTINCT + + col0 * col2 + + cor0.col1 DIV - col1 FROM tab1 AS cor0
----
161
3647
7679

skipif mysql # not compatible
query I rowsort label-8370
SELECT DISTINCT + + col0 * col2 + + cor0.col1 / - col1 FROM tab1 AS cor0
----
161
3647
7679

query I rowsort
SELECT ALL - col1 * col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676

onlyif mysql # use DIV operator for integer division
query I rowsort label-8372
SELECT ALL 91 * + col1 * cor0.col1 + + col0 DIV - col0 AS col2 FROM tab1 cor0
----
15378
61515
9099

skipif mysql # not compatible
query I rowsort label-8372
SELECT ALL 91 * + col1 * cor0.col1 + + col0 / - col0 AS col2 FROM tab1 cor0
----
15378
61515
9099

query I rowsort
SELECT - + col2 + col2 AS col1 FROM tab0 cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8374
SELECT + + CAST( NULL AS SIGNED ) * col2 + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8374
SELECT + + CAST ( NULL AS INTEGER ) * col2 + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 65 col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-8376
SELECT col1 - ( col1 + col1 ) DIV cor0.col2 FROM tab0 AS cor0
----
-97
81
89

skipif mysql # not compatible
query I rowsort label-8376
SELECT col1 - ( col1 + col1 ) / cor0.col2 FROM tab0 AS cor0
----
-97
81
89

query I rowsort
SELECT + 28 + 40 * + col2 FROM tab1 AS cor0
----
2188
2308
3868

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 0 + ( - col2 ) * 20 col1 FROM tab2 AS cor0
----
-520
-540
-760

query I rowsort
SELECT - tab2.col2 * col0 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT - 42 + + col2 FROM tab1
----
12
15
54

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8381
SELECT DISTINCT CAST( - col1 AS SIGNED ) * - col2 + 66 AS col0 FROM tab0
----
163
2904
7528

skipif mysql # not compatible
query I rowsort label-8381
SELECT DISTINCT CAST ( - col1 AS INTEGER ) * - col2 + 66 AS col0 FROM tab0
----
163
2904
7528

query I rowsort
SELECT DISTINCT 87 * col0 FROM tab0 AS cor0
----
2088
3045
7743

query I rowsort
SELECT DISTINCT - + col2 + + cor0.col1 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT + 7 - - 38 * + col0 FROM tab2
----
273
2971
3009

query I rowsort
SELECT ALL - col1 + + tab1.col2 * col0 AS col0 FROM tab1
----
136
3638
7667

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8386
SELECT CAST( NULL AS SIGNED ) * - 18 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-8386
SELECT CAST ( NULL AS INTEGER ) * - 18 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT cor0.col0 + + cor0.col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 1c6e84d7f635ba3a028c9a60b14e4bac

query I rowsort
SELECT + - cor0.col2 * col1 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL ( col2 * col1 ) + ( col0 ) FROM tab0
----
132
2862
7551

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 33 + - col0 * ( 48 ) col0 FROM tab2
----
-334
-3770
-3776

query I rowsort
SELECT - + 71 * col0 + col1 * col0 AS col0 FROM tab2 AS cor0
----
-280
-4266
-936

query I rowsort
SELECT + col2 + + col0 * col0 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT DISTINCT + 72 * + col0 + - col0 FROM tab0
----
1704
2485
6319

query I rowsort
SELECT ALL col1 + col1 * col1 AS col0 FROM tab1
----
110
182
702

query I rowsort
SELECT 90 FROM tab1, tab1 cor0 CROSS JOIN tab0
----
27 values hashing to 5d25a546acf3ae171e731e50adc0112e

query I rowsort
SELECT DISTINCT - ( col0 ) * - col2 + col2 FROM tab1
----
216
3705
7776

query I rowsort
SELECT - 11 FROM tab1
----
-11
-11
-11

query I rowsort
SELECT + 11 AS col1 FROM tab0
----
11
11
11

query I rowsort
SELECT DISTINCT + 38 FROM tab1
----
38

query I rowsort
SELECT DISTINCT + 86 * col2 AS col2 FROM tab1
----
4644
4902
8256

query I rowsort
SELECT DISTINCT + col2 + + col0 AS col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT - col0 * col2 + ( col0 * - cor0.col1 ) AS col1 FROM tab1 AS cor0
----
-240
-4288
-8720

onlyif mysql # use DIV operator for integer division
query I rowsort label-8403
SELECT - col0 DIV + col1 + col0 col2 FROM tab0 cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8403
SELECT - col0 / + col1 + col0 col2 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT ALL + col0 + + col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT - 61 * - tab1.col1 FROM tab1
----
1586
610
793

query I rowsort
SELECT col1 * cor0.col0 + 91 * 81 * col1 FROM tab0 cor0
----
635970
678860
718382

query I rowsort
SELECT ALL + col0 * col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT - col1 + - col1 AS col2 FROM tab2 cor0
----
-118
-34
-62

query I rowsort
SELECT - tab2.col1 + 46 AS col1 FROM tab2
----
-13
15
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 0 col1 FROM tab0, tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col2 * - 7 FROM tab1
----
378
399
672

query I rowsort
SELECT DISTINCT col2 * + 34 * + col0 FROM tab2 AS cor0
----
102068
6426
68952

query I rowsort
SELECT 54 FROM tab0 AS cor0
----
54
54
54

query I rowsort
SELECT ALL + + ( col0 ) + col2 * + cor0.col0 AS col2 FROM tab2 cor0
----
196
2106
3081

query I rowsort
SELECT + col0 + 85 * - col2 AS col2 FROM tab0 cor0
----
-2781
-50
-6881

query I rowsort
SELECT ALL - 62 + + col1 FROM tab0 AS cor0
----
24
29
35

query I rowsort
SELECT DISTINCT + + 78 * 87 - - col0 * ( cor0.col0 ) AS col1 FROM tab0 AS cor0
----
14707
7362
8011

query I rowsort
SELECT ALL cor0.col1 + col1 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT + col1 * 74 - - col1 FROM tab0 AS cor0
----
6450
6825
7275

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + col2 * cor0.col0 col2 FROM tab2 cor0
----
2087
220
3019

query I rowsort
SELECT ALL + 93 FROM tab2, tab2 cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query I rowsort
SELECT ( 36 ) AS col2 FROM tab0
----
36
36
36

query I rowsort
SELECT DISTINCT + - col1 * col2 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT - cor0.col1 + col0 * + col0 * col1 FROM tab0 AS cor0
----
118728
49450
720720

query I rowsort
SELECT ALL - 84 AS col0 FROM tab2 AS cor0
----
-84
-84
-84

query I rowsort
SELECT - - cor0.col2 * cor0.col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT ALL + 73 + + col2 * cor0.col2 * - 46 AS col0 FROM tab1 AS cor0
----
-134063
-149381
-423863

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8428
SELECT ALL ( col2 ) * cor0.col1 + CAST( col1 + - col0 AS SIGNED ) * 97 AS col0 FROM tab0 AS cor0
----
6111
7656
8852

skipif mysql # not compatible
query I rowsort label-8428
SELECT ALL ( col2 ) * cor0.col1 + CAST ( col1 + - col0 AS INTEGER ) * 97 AS col0 FROM tab0 AS cor0
----
6111
7656
8852

onlyif mysql # use DIV operator for integer division
query I rowsort label-8429
SELECT ALL - cor0.col1 DIV + col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8429
SELECT ALL - cor0.col1 / + col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 + - col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + + col0 * col2 - cor0.col1 AS col0 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT ALL ( 60 ) + + col0 FROM tab0 AS cor0
----
149
84
95

query I rowsort
SELECT - col1 + + col1 FROM tab0
----
0
0
0

query I rowsort
SELECT + - 59 + tab2.col2 AS col0 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to a7effad3ceefd0b6a2485fdfcb368b4d

query I rowsort
SELECT ALL 35 FROM tab0 AS cor0
----
35
35
35

query I rowsort
SELECT ALL + 75 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to e61b59795204c348103a58c0a8e4ce16

query I rowsort
SELECT ALL 41 * - col0 FROM tab2
----
-287
-3198
-3239

query I rowsort
SELECT - - col1 * col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT + 53 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * ( - col2 + col2 ) col2 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * - cor0.col2 col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - - col2 * 11 FROM tab0 AS cor0
----
11
363
902

query I rowsort
SELECT ALL 45 * 96 AS col1 FROM tab2 cor0
----
4320
4320
4320

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 cor0 CROSS JOIN tab0, tab1 AS cor1
----
972 values hashing to 9af67d6f98010464af5d560bf949d487

query I rowsort
SELECT DISTINCT + 29 + col0 * + col0 FROM tab0 cor0
----
1254
605
7950

query I rowsort
SELECT ALL - + 55 * - col1 AS col0 FROM tab1 AS cor0
----
1430
550
715

query I rowsort
SELECT DISTINCT - ( 10 ) FROM tab1 AS cor0
----
-10

query I rowsort
SELECT DISTINCT 94 FROM tab0
----
94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8449
SELECT + col1 * 43 + + col2 * CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8449
SELECT + col1 * 43 + + col2 * CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 33 FROM tab1 AS cor0
----
33
33
33

query I rowsort
SELECT + + col0 + + col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT - 69 * col2 + - col1 FROM tab1 cor0
----
-3752
-3943
-6637

query I rowsort
SELECT + - 61 FROM tab1 AS cor0
----
-61
-61
-61

query I rowsort
SELECT + cor0.col0 * - col1 AS col0 FROM tab0 cor0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( cor0.col1 ) * col1 col2 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT ALL col1 * 99 * - col0 FROM tab1 AS cor0
----
-102960
-63360
-7722

query I rowsort
SELECT + ( + 46 ) + col2 AS col0 FROM tab1 cor0
----
100
103
142

query I rowsort
SELECT DISTINCT + - cor0.col1 - + 73 FROM tab2, tab1 cor0
----
-83
-86
-99

query I rowsort
SELECT + 42 * + col1 + - col0 FROM tab2 AS cor0
----
1295
2400
635

query I rowsort
SELECT + col2 * + col1 + + cor0.col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT - - col1 + cor0.col0 AS col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL + cor0.col2 FROM tab2, tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

onlyif mysql # use DIV operator for integer division
query I rowsort label-8463
SELECT - 57 DIV + col0 col0 FROM tab0 AS cor0
----
-1
-2
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8463
SELECT - 57 / + col0 col0 FROM tab0 AS cor0
----
-1
-2
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8464
SELECT 16 + + col0 * col1 DIV + ( + col1 ) FROM tab1 cor0
----
19
80
96

skipif mysql # not compatible
query I rowsort label-8464
SELECT 16 + + col0 * col1 / + ( + col1 ) FROM tab1 cor0
----
19
80
96

query I rowsort
SELECT - + cor0.col2 * col0 + - col2 + cor0.col1 * + col1 AS col2 FROM tab2 AS cor0
----
-2751
1427
745

query I rowsort
SELECT col0 - col0 * - col0 * + tab0.col0 FROM tab0
----
13848
42910
705058

query I rowsort
SELECT - cor0.col2 + + col2 * + 74 AS col2 FROM tab2 AS cor0
----
1898
1971
2774

onlyif mysql # use DIV operator for integer division
query I rowsort label-8468
SELECT ALL + col2 DIV + col0 FROM tab2 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-8468
SELECT ALL + col2 / + col0 FROM tab2 AS cor0
----
0
0
3

query I rowsort
SELECT ALL - + cor0.col0 + col1 * 21 AS col0 FROM tab1 cor0
----
146
193
543

onlyif mysql # use DIV operator for integer division
query I rowsort label-8470
SELECT DISTINCT + 35 + cor0.col1 DIV + col1 AS col0 FROM tab0 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-8470
SELECT DISTINCT + 35 + cor0.col1 / + col1 AS col0 FROM tab0 AS cor0
----
36

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8471
SELECT CAST( + 56 AS SIGNED ) * col2 col1 FROM tab0
----
1848
4592
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8471
SELECT CAST ( + 56 AS INTEGER ) * col2 col1 FROM tab0
----
1848
4592
56

onlyif mysql # use DIV operator for integer division
query I rowsort label-8472
SELECT ( + col2 ) * col0 DIV + ( + 8 * + col0 ) AS col1 FROM tab2
----
3
3
4

skipif mysql # not compatible
query I rowsort label-8472
SELECT ( + col2 ) * col0 / + ( + 8 * + col0 ) AS col1 FROM tab2
----
3
3
4

query I rowsort
SELECT DISTINCT + col0 + - col1 AS col0 FROM tab0 AS cor0
----
-2
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col1 * ( col1 ) * col1 col2 FROM tab0 AS cor0
----
635970
753480
912576

query I rowsort
SELECT - - col0 + col1 * ( - col0 * + col2 ) FROM tab2 AS cor0
----
-119574
-50955
-5852

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col0 * - col2 col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT + + col0 + col0 * - col1 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT tab0.col0 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8479
SELECT DISTINCT - col1 * - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8479
SELECT DISTINCT - col1 * - CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 52 col0 FROM tab1 AS cor0
----
116
132
55

query I rowsort
SELECT DISTINCT col0 * - 51 FROM tab0 AS cor0
----
-1224
-1785
-4539

query I rowsort
SELECT DISTINCT 84 + + col1 FROM tab2
----
101
115
143

onlyif mysql # use DIV operator for integer division
query I rowsort label-8483
SELECT ( col0 ) DIV ( col0 ) + col0 AS col0 FROM tab1
----
4
65
81

skipif mysql # not compatible
query I rowsort label-8483
SELECT ( col0 ) / ( col0 ) + col0 AS col0 FROM tab1
----
4
65
81

query I rowsort
SELECT ALL + 89 + 82 FROM tab2 AS cor0
----
171
171
171

query I rowsort
SELECT DISTINCT col1 * + ( col0 * + col0 ) AS col2 FROM tab0
----
118825
49536
720811

query I rowsort
SELECT - col0 * - 21 FROM tab1
----
1344
1680
63

query I rowsort
SELECT + col0 * col0 + - col2 FROM tab0
----
1224
543
7839

query I rowsort
SELECT ALL tab1.col2 * - 91 FROM tab1
----
-4914
-5187
-8736

query I rowsort
SELECT DISTINCT 19 * - col1 FROM tab2
----
-1121
-323
-589

onlyif mysql # use DIV operator for integer division
query I rowsort label-8490
SELECT + 93 DIV - col2 FROM tab0
----
-1
-2
-93

skipif mysql # not compatible
query I rowsort label-8490
SELECT + 93 / - col2 FROM tab0
----
-1
-2
-93

query I rowsort
SELECT tab2.col1 * - 51 AS col2 FROM tab2
----
-1581
-3009
-867

query I rowsort
SELECT ALL - cor0.col0 * + cor0.col1 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 9b23e5e74ef3405a4dbf05cceb18c8a8

query I rowsort
SELECT + ( col0 ) + col0 FROM tab0 cor0
----
178
48
70

query I rowsort
SELECT col2 - col2 * col0 * ( - col0 ) AS col0 FROM tab1
----
233529
540
614496

query I rowsort
SELECT - col0 + col2 AS col0 FROM tab0
----
-34
-7
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8496
SELECT - ( - 82 ) + col2 * col1 * + 32 + - col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8496
SELECT - ( - 82 ) + col2 * col1 * + 32 + - col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * 95 FROM tab0
----
3135
7790
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * + col0 col0 FROM tab1 AS cor0
----
4096
6400
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-8499
SELECT - ( col1 ) * col1 + - cor0.col1 DIV col0 AS col2 FROM tab0 cor0
----
-7399
-8282
-9411

skipif mysql # not compatible
query I rowsort label-8499
SELECT - ( col1 ) * col1 + - cor0.col1 / col0 AS col2 FROM tab0 cor0
----
-7399
-8282
-9411

query I rowsort
SELECT + 36 FROM tab1, tab2 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

onlyif mysql # use DIV operator for integer division
query I rowsort label-8501
SELECT ALL col0 + ( - col1 ) DIV + tab0.col0 AS col2 FROM tab0
----
21
33
88

skipif mysql # not compatible
query I rowsort label-8501
SELECT ALL col0 + ( - col1 ) / + tab0.col0 AS col2 FROM tab0
----
21
33
88

query I rowsort
SELECT DISTINCT - col2 * col0 + + 59 AS col0 FROM tab1
----
-103
-3589
-7621

query I rowsort
SELECT - 7 * + 79 * + tab0.col1 FROM tab0, tab1 cor0
----
9 values hashing to 22d16d6f972dfc74939a94b6e0480ed6

query I rowsort
SELECT ALL tab2.col0 + - tab2.col2 FROM tab2
----
-20
41
52

query I rowsort
SELECT + col0 + + col2 + + col1 AS col2 FROM tab1 AS cor0
----
131
189
83

query I rowsort
SELECT + + col0 - + col1 FROM tab2 cor0
----
-24
19
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8507
SELECT DISTINCT col2 * CAST( col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
1444
676
729

skipif mysql # not compatible
query I rowsort label-8507
SELECT DISTINCT col2 * CAST ( col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT DISTINCT + + col1 * - cor0.col2 + - col0 FROM tab2 AS cor0
----
-1612
-725
-844

query IIIIIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab2, tab0 AS cor1
----
243 values hashing to 5c33e96b85afe1ea51bb6d4e9fa6f993

query I rowsort
SELECT - col2 * + 51 FROM tab2 AS cor0
----
-1326
-1377
-1938

query I rowsort
SELECT ALL - col2 * + col0 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT + col2 + - 38 * col0 FROM tab0 cor0
----
-1329
-3300
-879

query I rowsort
SELECT DISTINCT + + col0 + col2 - - col0 FROM tab0 AS cor0
----
260
71
81

query I rowsort
SELECT + col1 + - col1 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - - ( 75 ) - col1 FROM tab2 AS cor0
----
16
44
58

query I rowsort
SELECT + col1 + 21 AS col0 FROM tab0 cor0
----
107
112
118

query I rowsort
SELECT DISTINCT - col1 * col1 + + col0 * + col0 FROM tab1 AS cor0
----
-667
3996
6231

query I rowsort
SELECT DISTINCT - ( - col1 ) * - cor0.col2 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT + col1 + + col2 + - cor0.col0 FROM tab0 AS cor0
----
63
84
95

query I rowsort
SELECT ALL col2 * 32 FROM tab0 AS cor0
----
1056
2624
32

query I rowsort
SELECT DISTINCT - ( cor0.col0 * 39 ) FROM tab1, tab0 AS cor0
----
-1365
-3471
-936

query I rowsort
SELECT ALL + cor0.col1 * + col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT cor0.col0 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT + + cor0.col2 + col1 + col1 AS col0 FROM tab2 AS cor0
----
144
72
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-8525
SELECT + 39 DIV - col0 AS col2 FROM tab1 AS cor0
----
-13
0
0

skipif mysql # not compatible
query I rowsort label-8525
SELECT + 39 / - col0 AS col2 FROM tab1 AS cor0
----
-13
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col1 col2 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT DISTINCT - 36 FROM tab0 AS cor0
----
-36

query I rowsort
SELECT 40 * col2 AS col2 FROM tab0 cor0
----
1320
3280
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col2 * + ( col1 ) * + col0 col0 FROM tab1 cor0
----
36544
4215
99920

query I rowsort
SELECT DISTINCT col2 * + col1 + col2 FROM tab1 AS cor0
----
1344
1458
627

onlyif mysql # use DIV operator for integer division
query I rowsort label-8531
SELECT - 2 * cor0.col1 DIV ( + col2 ) AS col2 FROM tab0 AS cor0
----
-194
-2
-5

skipif mysql # not compatible
query I rowsort label-8531
SELECT - 2 * cor0.col1 / ( + col2 ) AS col2 FROM tab0 AS cor0
----
-194
-2
-5

query I rowsort
SELECT ALL - - cor0.col1 * + col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL - + col0 + col2 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT + col0 + col0 + col2 AS col2 FROM tab0 cor0
----
260
71
81

query I rowsort
SELECT ALL + col2 * 15 AS col2 FROM tab2 cor0
----
390
405
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-8536
SELECT - col0 + + col0 * + 5 + + col1 DIV col1 FROM tab2 cor0
----
29
313
317

skipif mysql # not compatible
query I rowsort label-8536
SELECT - col0 + + col0 * + 5 + + col1 / col1 FROM tab2 cor0
----
29
313
317

query I rowsort
SELECT DISTINCT - cor0.col1 * 59 AS col1 FROM tab1 AS cor0
----
-1534
-590
-767

query I rowsort
SELECT DISTINCT - col2 + col2 * 38 * + cor0.col0 FROM tab1 AS cor0
----
138567
291744
6102

query I rowsort
SELECT ALL - - col0 + 11 FROM tab2 AS cor0
----
18
89
90

query I rowsort
SELECT ALL + + col0 * ( cor0.col1 ) FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT + - col2 * + ( 30 ) AS col2 FROM tab2 cor0
----
-1140
-780
-810

onlyif mysql # use DIV operator for integer division
query I rowsort label-8542
SELECT + 80 + + col0 DIV + ( tab2.col0 ) + col1 FROM tab2
----
112
140
98

skipif mysql # not compatible
query I rowsort label-8542
SELECT + 80 + + col0 / + ( tab2.col0 ) + col1 FROM tab2
----
112
140
98

query I rowsort
SELECT DISTINCT col1 + + col1 - - col1 AS col2 FROM tab2
----
177
51
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-8544
SELECT - ( - col1 ) DIV + 64 AS col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8544
SELECT - ( - col1 ) / + 64 AS col0 FROM tab0
----
1
1
1

query I rowsort
SELECT + cor0.col1 * + 14 FROM tab2 AS cor0
----
238
434
826

query I rowsort
SELECT DISTINCT col1 - col0 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT DISTINCT col2 + col2 + - col0 AS col1 FROM tab1 AS cor0
----
105
112
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * ( - col0 * - col1 ) col1 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT - - col0 * - ( + ( - col0 ) ) FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT + - 37 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-37

query I rowsort
SELECT DISTINCT + col2 + 27 FROM tab0
----
109
28
60

query I rowsort
SELECT col2 * + 73 * col2 FROM tab1
----
212868
237177
672768

query I rowsort
SELECT 21 + col1 AS col1 FROM tab1 AS cor0
----
31
34
47

onlyif mysql # use DIV operator for integer division
query I rowsort label-8554
SELECT + + col2 DIV - 74 - col1 FROM tab1 AS cor0
----
-10
-14
-26

skipif mysql # not compatible
query I rowsort label-8554
SELECT + + col2 / - 74 - col1 FROM tab1 AS cor0
----
-10
-14
-26

query I rowsort
SELECT col0 * + 26 FROM tab0
----
2314
624
910

query I rowsort
SELECT col1 * 5 AS col0 FROM tab1
----
130
50
65

query I rowsort
SELECT 36 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 4d1892e880125dc90345721151acb22c

query I rowsort
SELECT - cor0.col1 * col1 - col1 * + col0 * ( cor0.col1 * col2 ) AS col0 FROM tab0 cor0
----
-338724
-5865028
-60443019

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8559
SELECT ALL col1 + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8559
SELECT ALL col1 + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 + + 54 * col1 * - tab1.col2 AS col1 FROM tab1
----
-30723
-67296
-75762

query I rowsort
SELECT col2 - col1 FROM tab1
----
28
47
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-8562
SELECT ALL - - col0 DIV + col2 AS col2 FROM tab1 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8562
SELECT ALL - - col0 / + col2 AS col2 FROM tab1 cor0
----
0
0
1

query I rowsort
SELECT - + 17 AS col1 FROM tab1 AS cor0
----
-17
-17
-17

query I rowsort
SELECT tab1.col1 + tab1.col1 AS col1 FROM tab1
----
20
26
52

query I rowsort
SELECT ALL col2 * col1 AS col0 FROM tab0
----
2838
7462
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8566
SELECT CAST( NULL AS SIGNED ) * - col1 * col1 + + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8566
SELECT CAST ( NULL AS INTEGER ) * - col1 * col1 + + col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 34 AS col2 FROM tab2
----
-34

query I rowsort
SELECT - 61 + - tab2.col1 AS col2 FROM tab2
----
-120
-78
-92

query I rowsort
SELECT DISTINCT 97 AS col1 FROM tab0
----
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col1 + cor1.col2 col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c2f36d52ae4f05bff875d8467d8b2161

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8571
SELECT ALL - 5 + col1 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8571
SELECT ALL - 5 + col1 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8572
SELECT ALL + 4 DIV + col2 AS col0 FROM tab0 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-8572
SELECT ALL + 4 / + col2 AS col0 FROM tab0 AS cor0
----
0
0
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col0 col2 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT ALL - - col0 + - cor0.col2 AS col0 FROM tab1 cor0
----
-16
-51
7

query I rowsort
SELECT - - cor0.col0 * col0 FROM tab0 AS cor0
----
1225
576
7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-8576
SELECT DISTINCT + col2 DIV col1 - + col2 FROM tab2 AS cor0
----
-26
-27
-36

skipif mysql # not compatible
query I rowsort label-8576
SELECT DISTINCT + col2 / col1 - + col2 FROM tab2 AS cor0
----
-26
-27
-36

query I rowsort
SELECT - 47 FROM tab2 AS cor0
----
-47
-47
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 10 * - col2 col0 FROM tab0 AS cor0
----
10
330
820

query I rowsort
SELECT ALL cor0.col2 + + col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT + + col2 + - col1 * + col2 * col2 AS col2 FROM tab0 AS cor0
----
-611802
-93621
-96

query I rowsort
SELECT ALL - + col2 * col0 + - 72 AS col0 FROM tab0 AS cor0
----
-107
-7370
-864

query I rowsort
SELECT DISTINCT + ( + col1 ) + cor0.col0 AS col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL + col1 + - col2 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT DISTINCT + col1 * + col2 - 67 AS col0 FROM tab2 cor0
----
1467
579
770

query I rowsort
SELECT col2 * col2 + - ( col2 ) FROM tab2 AS cor0
----
1406
650
702

query I rowsort
SELECT + 80 * + col0 + ( 24 ) AS col0 FROM tab0 AS cor0
----
1944
2824
7144

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - + col2 col0 FROM tab0
----
-9
34
7

query I rowsort
SELECT ( col1 ) + col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT - 64 * + cor0.col2 * col0 + + ( cor0.col0 * + col1 ) FROM tab0 AS cor0
----
-458973
-48624
1155

query I rowsort
SELECT col1 * - col2 + col0 FROM tab0
----
-2814
-62
-7373

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * tab2.col0 + col0 col2 FROM tab2
----
196
2106
3081

query I rowsort
SELECT - 24 FROM tab1
----
-24
-24
-24

query I rowsort
SELECT ALL col2 + col2 * col2 * + 35 AS col1 FROM tab1
----
102114
113772
322656

query I rowsort
SELECT + col0 + cor0.col0 AS col2 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT DISTINCT - ( 37 ) AS col2 FROM tab0, tab1 AS cor0
----
-37

query I rowsort
SELECT 56 FROM tab2
----
56
56
56

query I rowsort
SELECT DISTINCT + col1 + + col1 * - col2 * - col0 FROM tab1
----
36490
4238
99853

query I rowsort
SELECT + col2 FROM tab1 WHERE NULL <= ( col1 * col1 + - col0 / tab1.col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-8600
SELECT ALL col2 * col0 * - col2 + - col2 DIV col0 FROM tab2
----
-114076
-5106
-52728

skipif mysql # not compatible
query I rowsort label-8600
SELECT ALL col2 * col0 * - col2 + - col2 / col0 FROM tab2
----
-114076
-5106
-52728

query I rowsort
SELECT DISTINCT col2 * tab0.col2 AS col2 FROM tab0
----
1
1089
6724

query I rowsort
SELECT ALL col2 * col0 AS col0 FROM tab2
----
189
2028
3002

query I rowsort
SELECT ALL + col2 + + tab1.col1 + col1 FROM tab1
----
106
122
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-8604
SELECT - col1 DIV col1 + tab0.col2 AS col0 FROM tab0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-8604
SELECT - col1 / col1 + tab0.col2 AS col0 FROM tab0
----
0
32
81

query I rowsort
SELECT DISTINCT + col0 * tab1.col1 AS col2 FROM tab1 WHERE NULL NOT IN ( tab1.col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-8606
SELECT DISTINCT col2 DIV col1 + - tab0.col1 + col2 FROM tab0
----
-53
-9
-96

skipif mysql # not compatible
query I rowsort label-8606
SELECT DISTINCT col2 / col1 + - tab0.col1 + col2 FROM tab0
----
-53
-9
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - tab2.col1 + + col2 * tab2.col0 col0 FROM tab2
----
127
1910
2968

query I rowsort
SELECT DISTINCT col0 * - tab2.col1 + col0 * col0 AS col0 FROM tab2
----
-168
1482
4898

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT col0 * col0 <> ( NULL )
----

query I rowsort
SELECT ALL col0 * tab0.col1 + - col2 FROM tab0
----
2031
3394
8017

query I rowsort
SELECT DISTINCT tab2.col2 * - col2 + col0 * + tab2.col0 FROM tab2
----
-680
4797
5408

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - tab0.col0 col0 FROM tab0 WHERE NOT col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col1 + col1 * - col0 AS col1 FROM tab1
----
-1027
-52
-630

onlyif mysql # use DIV operator for integer division
query I rowsort label-8614
SELECT - col1 DIV - col0 - + col2 FROM tab0
----
-30
-81
1

skipif mysql # not compatible
query I rowsort label-8614
SELECT - col1 / - col0 - + col2 FROM tab0
----
-30
-81
1

query I rowsort
SELECT col0 * + col1 + col0 AS col2 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT ALL - col2 + + col1 * tab1.col1 FROM tab1
----
43
622
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 * col1 col2 FROM tab2
----
22831
271518
6727

query I rowsort
SELECT ALL + col1 AS col2 FROM tab2 WHERE NOT NULL NOT IN ( col1 + + col2 * - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 - col0 / col0 < NULL
----

query I rowsort
SELECT + col1 * col2 + col1 FROM tab2
----
1593
663
868

onlyif mysql # use DIV operator for integer division
query I rowsort label-8621
SELECT ALL - col2 DIV + col0 AS col1 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8621
SELECT ALL - col2 / + col0 AS col1 FROM tab0
----
-1
0
0

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE NOT NULL BETWEEN col1 * col1 AND ( + col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND - col1
----

query I rowsort
SELECT tab1.col0 * - col2 + col2 * col1 FROM tab1
----
-3078
-6432
1242

query I rowsort
SELECT + col1 - col0 FROM tab2
----
-19
-62
24

query III rowsort
SELECT * FROM tab0 WHERE col2 - + col0 NOT IN ( col0 - col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT col1 * + tab0.col2 FROM tab0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-8628
SELECT col0 DIV + col1 + - col1 + + col0 AS col0 FROM tab2
----
-24
20
66

skipif mysql # not compatible
query I rowsort label-8628
SELECT col0 / + col1 + - col1 + + col0 AS col0 FROM tab2
----
-24
20
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-8629
SELECT col2 * - tab1.col1 DIV - col1 + + col2 FROM tab1
----
108
114
192

skipif mysql # not compatible
query I rowsort label-8629
SELECT col2 * - tab1.col1 / - col1 + + col2 FROM tab1
----
108
114
192

query I rowsort
SELECT DISTINCT col0 * - tab2.col1 AS col0 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT + col1 * - col2 * - col0 AS col0 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT DISTINCT col2 * + tab1.col0 * - col0 FROM tab1
----
-233472
-486
-614400

query I rowsort
SELECT ALL tab0.col0 * col0 FROM tab0
----
1225
576
7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-8634
SELECT DISTINCT + col1 DIV - col0 AS col2 FROM tab2
----
-4
0

skipif mysql # not compatible
query I rowsort label-8634
SELECT DISTINCT + col1 / - col0 AS col2 FROM tab2
----
-4
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8635
SELECT DISTINCT col2 + col2 + col0 DIV - col1 AS col2 FROM tab1
----
108
186

skipif mysql # not compatible
query I rowsort label-8635
SELECT DISTINCT col2 + col2 + col0 / - col1 AS col2 FROM tab1
----
108
186

onlyif mysql # use DIV operator for integer division
query I rowsort label-8636
SELECT ALL + col1 DIV tab0.col0 FROM tab0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-8636
SELECT ALL + col1 / tab0.col0 FROM tab0
----
1
2
3

query I rowsort
SELECT + col1 + col2 * col2 + + col1 AS col1 FROM tab0
----
1261
195
6906

query I rowsort
SELECT DISTINCT - col0 + - col2 * - tab0.col1 + col1 FROM tab0
----
159
2900
7464

query I rowsort
SELECT DISTINCT tab2.col2 FROM tab2 WHERE ( + col1 - col0 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - col2 - ( col0 + + 16 * - ( - col0 ) ) FROM tab2
----
-1352
-1381
-146

query I rowsort
SELECT - 44 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

skipif mysql # not compatible
query I rowsort
SELECT CAST ( - 49 AS REAL ) + - col1 + ( + col0 + col1 ) * col2 FROM tab2
----
3454
3582
946

query I rowsort
SELECT DISTINCT col1 - tab2.col2 FROM tab2
----
-21
33
4

query I rowsort
SELECT + ( col1 ) * + col2 + - col2 - col0 AS col1 FROM tab0
----
2781
61
7291

onlyif mysql # use DIV operator for integer division
query I rowsort label-8645
SELECT - col2 DIV + tab0.col1 + + col2 AS col1 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-8645
SELECT - col2 / + tab0.col1 + + col2 AS col1 FROM tab0
----
1
33
82

query I rowsort
SELECT DISTINCT + 66 FROM tab1, tab2, tab0 AS cor0
----
66

query I rowsort
SELECT ALL col1 + col1 - + col1 FROM tab0
----
86
91
97

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab0 cor1, tab0 AS cor2
----
972 values hashing to b2fa3f9d060540fe1eb4ad1c0754e163

onlyif mysql # use DIV operator for integer division
query I rowsort label-8649
SELECT + - col0 * - ( col0 ) DIV cor0.col0 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-8649
SELECT + - col0 * - ( col0 ) / cor0.col0 FROM tab2 AS cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-8650
SELECT + 76 DIV col1 FROM tab1
----
2
5
7

skipif mysql # not compatible
query I rowsort label-8650
SELECT + 76 / col1 FROM tab1
----
2
5
7

query I rowsort
SELECT + 32 * col1 + + col0 - 77 FROM tab1
----
307
419
758

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT + col1 * + col1 + + col2 AS col0 FROM tab2 cor0
----
327
3507
988

query I rowsort
SELECT ALL + col2 * + col2 + + 15 FROM tab1 AS cor0
----
2931
3264
9231

query I rowsort
SELECT cor0.col1 + - col0 AS col1 FROM tab0 cor0
----
2
62
62

query I rowsort
SELECT + ( cor0.col1 ) * ( - col2 + cor0.col0 ) FROM tab1 AS cor0
----
-1326
-208
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-8657
SELECT + + col2 - + col2 DIV + col0 AS col2 FROM tab1 cor0
----
36
57
95

skipif mysql # not compatible
query I rowsort label-8657
SELECT + + col2 - + col2 / + col0 AS col2 FROM tab1 cor0
----
36
57
95

query I rowsort
SELECT ALL 11 * - col1 FROM tab0 AS cor0
----
-1001
-1067
-946

query I rowsort
SELECT tab1.col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT ALL + 81 * - cor0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to cb28e2383c65db06809ca512a14e2dae

query I rowsort
SELECT ALL col2 + col2 AS col1 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT ALL col2 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT col2 * + col2 * col0 + col1 FROM tab2 AS cor0
----
114093
5134
52787

query I rowsort
SELECT DISTINCT - - col2 - col1 AS col2 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT ALL - 63 + - col2 * col0 AS col0 FROM tab1 AS cor0
----
-225
-3711
-7743

onlyif mysql # use DIV operator for integer division
query I rowsort label-8666
SELECT DISTINCT + col1 DIV col2 - CAST( - col2 AS SIGNED ) FROM tab1 cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-8666
SELECT DISTINCT + col1 / col2 - CAST ( - col2 AS INTEGER ) FROM tab1 cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-8667
SELECT col1 DIV ( col1 ) AS col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8667
SELECT col1 / ( col1 ) AS col2 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT tab0.col2 AS col1 FROM tab0, tab2 cor0, tab2 AS cor1
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col0 FROM tab2
----
26
27
38

query IIIIIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0, tab0 AS cor1
----
243 values hashing to 3e8bd9634a3f5947d8becd5f5799bb7f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col1 col1 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-8672
SELECT - cor0.col1 * 34 DIV + col0 AS col0 FROM tab1 AS cor0
----
-294
-5
-5

skipif mysql # not compatible
query I rowsort label-8672
SELECT - cor0.col1 * 34 / + col0 AS col0 FROM tab1 AS cor0
----
-294
-5
-5

onlyif mysql # use DIV operator for integer division
query I rowsort label-8673
SELECT ALL - col1 * + col2 + - cor0.col1 DIV col1 + - CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
-2872
-7545
-99

skipif mysql # not compatible
query I rowsort label-8673
SELECT ALL - col1 * + col2 + - cor0.col1 / col1 + - CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
-2872
-7545
-99

query I rowsort
SELECT DISTINCT + col0 * 37 FROM tab2 AS cor0
----
259
2886
2923

query I rowsort
SELECT ALL - col1 + + col1 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - + cor0.col1 * - ( + col1 ) * cor0.col0 FROM tab2 AS cor0
----
22831
271518
6727

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8677
SELECT col2 * - CAST( col0 AS SIGNED ) FROM tab2 cor0
----
-189
-2028
-3002

skipif mysql # not compatible
query I rowsort label-8677
SELECT col2 * - CAST ( col0 AS INTEGER ) FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT + 76 FROM tab0, tab0 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0, tab1 cor1, tab1 AS cor2
----
972 values hashing to a8481bfbfcb330825976c5896e54bc19

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab1 cor1, tab1 AS cor2
----
972 values hashing to 0be13143d898cc667fe1a2dd93b34703

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( + ( cor0.col0 ) ) col2 FROM tab2 AS cor0
----
-7
-78
-79

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0, tab1, tab1 cor1
----
972 values hashing to fe55095fff3a5ecc2f113d14a8c6f823

query I rowsort
SELECT 83 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8684
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 94 AS col0 FROM tab0, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8684
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 94 AS col0 FROM tab0, tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - cor0.col1 * - col2 + - col1 FROM tab0 cor0
----
0
2752
7371

query I rowsort
SELECT DISTINCT + + col1 - col2 AS col0 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT ALL + ( - cor0.col2 ) FROM tab1 AS cor0
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-8688
SELECT - col0 - - col2 * col1 DIV col0 AS col2 FROM tab2 AS cor0
----
-59
-71
112

skipif mysql # not compatible
query I rowsort label-8688
SELECT - col0 - - col2 * col1 / col0 AS col2 FROM tab2 AS cor0
----
-59
-71
112

onlyif mysql # use DIV operator for integer division
query I rowsort label-8689
SELECT DISTINCT col2 DIV - col1 + + col2 * col1 AS col1 FROM tab1 AS cor0
----
1241
1402
565

skipif mysql # not compatible
query I rowsort label-8689
SELECT DISTINCT col2 / - col1 + + col2 * col1 AS col1 FROM tab1 AS cor0
----
1241
1402
565

query I rowsort
SELECT DISTINCT + - col1 + col2 + col1 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT ALL + col2 + cor0.col1 - - col1 FROM tab2 AS cor0
----
144
72
89

query I rowsort
SELECT - 11 + col2 FROM tab1 AS cor0
----
43
46
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 45 col1 FROM tab2
----
45
45
45

query I rowsort
SELECT - 17 + - tab2.col1 * + col0 FROM tab2
----
-1360
-234
-4619

query I rowsort
SELECT DISTINCT 37 - + tab2.col1 FROM tab2, tab0 AS cor0
----
-22
20
6

query I rowsort
SELECT 44 + col1 * col0 AS col1 FROM tab0
----
2108
3439
8143

query I rowsort
SELECT ALL 2 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT DISTINCT ( - 28 ) FROM tab0
----
-28

query I rowsort
SELECT DISTINCT tab0.col1 + tab0.col1 AS col0 FROM tab0
----
172
182
194

query I rowsort
SELECT ALL + ( + col1 ) * + col1 + - col2 AS col2 FROM tab2
----
251
3455
934

query I rowsort
SELECT + + ( col2 ) FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT DISTINCT cor0.col1 * + col2 * col0 AS col1 FROM tab1 cor0
----
36480
4212
99840

query I rowsort
SELECT ALL - 97 + - col1 FROM tab1 AS cor0
----
-107
-110
-123

onlyif mysql # use DIV operator for integer division
query I rowsort label-8704
SELECT ALL - col1 DIV + col2 + - col0 FROM tab0 AS cor0
----
-132
-26
-90

skipif mysql # not compatible
query I rowsort label-8704
SELECT ALL - col1 / + col2 + - col0 FROM tab0 AS cor0
----
-132
-26
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-8705
SELECT ALL + + ( col2 ) * + col2 + - cor0.col1 DIV col1 FROM tab2 AS cor0
----
1443
675
728

skipif mysql # not compatible
query I rowsort label-8705
SELECT ALL + + ( col2 ) * + col2 + - cor0.col1 / col1 FROM tab2 AS cor0
----
1443
675
728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 30 col0 FROM tab2 AS cor0
----
30

query I rowsort
SELECT DISTINCT + col0 - + col1 * - col1 AS col2 FROM tab1 cor0
----
164
249
679

query I rowsort
SELECT - 30 - col1 AS col1 FROM tab0 AS cor0
----
-116
-121
-127

query I rowsort
SELECT - 32 * - col2 + - col0 FROM tab2 AS cor0
----
1137
754
857

query I rowsort
SELECT DISTINCT + 93 * - col1 FROM tab2 AS cor0
----
-1581
-2883
-5487

query I rowsort
SELECT ALL - + col1 * col2 + col1 AS col1 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT ALL + col0 + - col0 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - - 43 + col2 * cor0.col2 FROM tab1 AS cor0
----
2959
3292
9259

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab1, tab0 AS cor1
----
243 values hashing to 3a953203ced079e372111d61dbd9e35f

query I rowsort
SELECT ALL col2 * cor0.col1 AS col2 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT tab1.col1 + - col0 AS col1 FROM tab1
----
-54
-67
23

query I rowsort
SELECT DISTINCT + cor0.col2 * - 50 * - 50 FROM tab0 AS cor0
----
205000
2500
82500

onlyif mysql # use DIV operator for integer division
query I rowsort label-8718
SELECT col0 * 73 DIV col2 + - col0 * col1 FROM tab1
----
-559
-74
-980

skipif mysql # not compatible
query I rowsort label-8718
SELECT col0 * 73 / col2 + - col0 * col1 FROM tab1
----
-559
-74
-980

query I rowsort
SELECT ALL - + 25 AS col2 FROM tab1 AS cor0
----
-25
-25
-25

query I rowsort
SELECT DISTINCT - col1 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - - 78 - + col2 FROM tab0 AS cor0
----
-4
45
77

query I rowsort
SELECT - 15 + + col2 * col2 AS col2 FROM tab1
----
2901
3234
9201

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8723
SELECT DISTINCT - CAST( - 49 AS SIGNED ) * col2 FROM tab2
----
1274
1323
1862

skipif mysql # not compatible
query I rowsort label-8723
SELECT DISTINCT - CAST ( - 49 AS INTEGER ) * col2 FROM tab2
----
1274
1323
1862

query I rowsort
SELECT ALL 81 * - ( - col1 ) AS col1 FROM tab1
----
1053
2106
810

query I rowsort
SELECT + ( - 10 ) FROM tab1
----
-10
-10
-10

query I rowsort
SELECT ALL - col1 * col2 * col1 + - col0 AS col0 FROM tab1 cor0
----
-16304
-36507
-5764

query I rowsort
SELECT + cor1.col1 AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - cor0.col2 col1 FROM tab0 AS cor0
----
1
1089
6724

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1
----
54 values hashing to 341cdc053c309cf3abe57fa060ecf96e

query I rowsort
SELECT ALL col1 * - col0 AS col1 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT ALL - cor0.col1 FROM tab1, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT + col2 * + col1 AS col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT - col1 * + col2 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT col1 + col1 * - col1 * - col0 AS col1 FROM tab2 AS cor0
----
22848
271577
6758

onlyif mysql # use DIV operator for integer division
query I rowsort label-8735
SELECT ALL - col2 * - col2 DIV cor0.col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-8735
SELECT ALL - col2 * - col2 / cor0.col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT + - col1 + + col0 * col0 FROM tab1 AS cor0
----
-17
4086
6387

query I rowsort
SELECT - col2 FROM tab0 WHERE NOT col1 + + col1 <> ( NULL )
----

query I rowsort
SELECT ALL + col2 * - col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL - col2 * - col0 AS col0 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT - - col1 * - col2 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT - col0 * - col0 * col0 AS col2 FROM tab0 AS cor0
----
13824
42875
704969

query I rowsort
SELECT + - col2 + col2 * + col0 * col2 FROM tab2 AS cor0
----
114038
5076
52702

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 >= NULL
----

query I rowsort
SELECT DISTINCT col0 * - col1 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT + col1 + + col1 + cor0.col0 FROM tab0 AS cor0 WHERE cor0.col2 * col0 IN ( - col1 + cor0.col0 * + cor0.col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= col1
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 NOT BETWEEN NULL AND + col1 * col1
----

query I rowsort
SELECT col1 FROM tab1 cor0 WHERE col0 + col0 * - col0 >= col2
----

query I rowsort
SELECT + cor0.col2 * cor0.col0 + - col0 FROM tab1 cor0
----
159
3584
7600

query I rowsort
SELECT + col0 * col1 + col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT DISTINCT col2 * cor0.col0 + + col0 * - cor0.col0 FROM tab0 AS cor0
----
-1190
-623
216

query I rowsort
SELECT col1 - col1 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col0 * - col0 + col2 * + col2 AS col2 FROM tab2 cor0
----
-4797
-5408
680

onlyif mysql # use DIV operator for integer division
query I rowsort label-8754
SELECT + col0 DIV + col1 + + col0 AS col1 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-8754
SELECT + col0 / + col1 + + col0 AS col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT col2 * - cor0.col1 + col0 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT ALL col1 + + tab2.col1 + + tab2.col0 FROM tab2
----
113
196
69

query I rowsort
SELECT cor0.col1 + cor0.col1 * col2 * - col1 AS col0 FROM tab0 AS cor0
----
-243982
-678951
-9312

query I rowsort
SELECT - cor0.col0 + - col1 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT DISTINCT + col1 * + col2 * col2 AS col2 FROM tab1
----
119808
32490
75816

query I rowsort
SELECT + tab2.col0 * - tab2.col0 AS col1 FROM tab2
----
-49
-6084
-6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-8761
SELECT DISTINCT + col2 DIV tab0.col0 AS col1 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-8761
SELECT DISTINCT + col2 / tab0.col0 AS col1 FROM tab0
----
0
1

query I rowsort
SELECT ALL col0 * - col2 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT + col0 + col0 * col2 * - col1 AS col0 FROM tab1
----
-36416
-4209
-99760

query I rowsort
SELECT col0 + tab2.col1 * + col1 FROM tab2
----
3559
368
968

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8765
SELECT - col1 + CAST( NULL AS SIGNED ) * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8765
SELECT - col1 + CAST ( NULL AS INTEGER ) * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * + ( 99 ) AS col2 FROM tab2
----
2574
2673
3762

query I rowsort
SELECT + + col1 * - 43 AS col0 FROM tab1 AS cor0
----
-1118
-430
-559

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 cor0, tab0, tab0 AS cor1
----
972 values hashing to 8b4fcda7f1ca76bad7c7d728f54a51e0

query I rowsort
SELECT DISTINCT + + 56 FROM tab2, tab2 AS cor0
----
56

query I rowsort
SELECT DISTINCT col2 + col1 AS col0 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT col2 * + col1 + - col2 FROM tab1 AS cor0
----
1152
1350
513

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8772
SELECT DISTINCT col2 * + CAST( col1 AS SIGNED ) * tab2.col2 col1 FROM tab2
----
22599
24548
39884

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8772
SELECT DISTINCT col2 * + CAST ( col1 AS INTEGER ) * tab2.col2 col1 FROM tab2
----
22599
24548
39884

query I rowsort
SELECT + + col2 + ( col2 ) AS col2 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT + 36 * cor0.col0 * col1 + + col1 FROM tab0 AS cor0
----
122317
291655
74390

query I rowsort
SELECT ALL + ( ( + col1 ) ) AS col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL - col2 * col1 * + col0 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT + cor0.col1 * + col0 AS col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL ( 48 ) FROM tab2
----
48
48
48

query I rowsort
SELECT - cor0.col2 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT DISTINCT - 56 AS col0 FROM tab1
----
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 0 col2 FROM tab2
----
0

query I rowsort
SELECT ALL + 78 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to d8e5ef4db3419fc251e82c50ba04e048

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8783
SELECT DISTINCT CAST( col0 + + col1 * + col0 AS SIGNED ) FROM tab1
----
1120
704
81

skipif mysql # not compatible
query I rowsort label-8783
SELECT DISTINCT CAST ( col0 + + col1 * + col0 AS INTEGER ) FROM tab1
----
1120
704
81

query I rowsort
SELECT ALL - 86 AS col0 FROM tab2 AS cor0
----
-86
-86
-86

query I rowsort
SELECT ALL 24 + col0 AS col2 FROM tab2 AS cor0
----
102
103
31

query I rowsort
SELECT 76 FROM tab1 AS cor0
----
76
76
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab0.col0 col1 FROM tab0
----
24
35
89

query I rowsort
SELECT ALL - - 67 FROM tab0, tab2, tab0 cor0
----
27 values hashing to eea8a0738728ea55e4e7ba1506c9905a

query I rowsort
SELECT - 49 FROM tab0
----
-49
-49
-49

query I rowsort
SELECT DISTINCT - - col1 + + ( ( col1 ) ) FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT ALL - - col2 * - ( - 11 ) FROM tab2 AS cor0
----
286
297
418

query I rowsort
SELECT - col1 + + col0 * + col0 FROM tab1 AS cor0
----
-17
4086
6387

query I rowsort
SELECT DISTINCT + - cor0.col1 * + ( col2 ) AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL + cor0.col1 AS col1 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT col0 + + col0 * col2 * col0 FROM tab2
----
1330
158262
237237

query I rowsort
SELECT - 3 + - col2 AS col1 FROM tab0
----
-36
-4
-85

query I rowsort
SELECT DISTINCT ( - col2 ) FROM tab1
----
-54
-57
-96

query I rowsort
SELECT ( tab2.col2 + col0 ) FROM tab2
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 65 col1 FROM tab1
----
-65

onlyif mysql # use DIV operator for integer division
query I rowsort label-8800
SELECT col2 DIV - col2 + - col1 FROM tab0
----
-87
-92
-98

skipif mysql # not compatible
query I rowsort label-8800
SELECT col2 / - col2 + - col1 FROM tab0
----
-87
-92
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-8801
SELECT ALL + + col2 DIV ( - cor0.col1 ) - - col1 FROM tab1 AS cor0
----
24
5
6

skipif mysql # not compatible
query I rowsort label-8801
SELECT ALL + + col2 / ( - cor0.col1 ) - - col1 FROM tab1 AS cor0
----
24
5
6

query I rowsort
SELECT DISTINCT + + cor0.col2 AS col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL cor0.col2 + - 24 AS col0 FROM tab0 AS cor0
----
-23
58
9

query I rowsort
SELECT ALL col1 + - col0 AS col2 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT col1 + 42 AS col1 FROM tab1 AS cor0
----
52
55
68

query I rowsort
SELECT + col1 + + col2 * + col0 FROM tab2 cor0
----
2087
220
3019

query I rowsort
SELECT + col1 * + ( - col0 ) + - col0 AS col2 FROM tab0 AS cor0
----
-2088
-3430
-8188

onlyif mysql # use DIV operator for integer division
query I rowsort label-8808
SELECT - 94 DIV col1 FROM tab1 AS cor0
----
-3
-7
-9

skipif mysql # not compatible
query I rowsort label-8808
SELECT - 94 / col1 FROM tab1 AS cor0
----
-3
-7
-9

query I rowsort
SELECT - - col1 + cor0.col1 + col1 FROM tab2 cor0
----
177
51
93

query I rowsort
SELECT - + 54 FROM tab2 AS cor0
----
-54
-54
-54

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8811
SELECT - + CAST( col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-8811
SELECT - + CAST ( col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-54
-57
-96

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 cor0, tab1 AS cor1, tab0 AS cor2
----
972 values hashing to 5342fb4caf4767cb98bd21989bad099f

query I rowsort
SELECT - 98 FROM tab2 AS cor0
----
-98
-98
-98

query I rowsort
SELECT - 47 AS col2 FROM tab2 AS cor0
----
-47
-47
-47

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab0 AS cor1, tab2 cor2
----
972 values hashing to 89714dd446b7a97f8787d5744bdbf323

query I rowsort
SELECT col0 * col1 * + col2 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT DISTINCT 46 FROM tab1, tab0 cor0
----
46

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab0, tab2 cor1
----
972 values hashing to 9600bdf5bac0caec3229e87170cc40b3

query I rowsort
SELECT ALL + col1 - + col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT ( - col1 ) * - 34 AS col0 FROM tab2 cor0
----
1054
2006
578

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8821
SELECT CAST( NULL AS SIGNED ) * + 34 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-8821
SELECT CAST ( NULL AS INTEGER ) * + 34 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT + 39 AS col0 FROM tab2 cor0
----
39

onlyif mysql # use DIV operator for integer division
query I rowsort label-8823
SELECT ALL + col2 DIV + col2 + col0 FROM tab1 AS cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-8823
SELECT ALL + col2 / + col2 + col0 FROM tab1 AS cor0
----
4
65
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-8824
SELECT ALL - + ( col0 ) DIV cor0.col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8824
SELECT ALL - + ( col0 ) / cor0.col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( 1 ) col2 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8826
SELECT DISTINCT CAST( 65 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-8826
SELECT DISTINCT CAST ( 65 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
65

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( - col2 AS REAL ) + + col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - ( col0 ) FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT - col2 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-8830
SELECT DISTINCT + 32 DIV + col0 FROM tab1 AS cor0
----
0
10

skipif mysql # not compatible
query I rowsort label-8830
SELECT DISTINCT + 32 / + col0 FROM tab1 AS cor0
----
0
10

query I rowsort
SELECT ALL + - 21 * - col1 + + col1 AS col1 FROM tab1 AS cor0
----
220
286
572

query I rowsort
SELECT + ( - 11 ) AS col2 FROM tab0 cor0
----
-11
-11
-11

query I rowsort
SELECT DISTINCT col1 * col2 AS col0 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8834
SELECT + + CAST( - 12 AS SIGNED ) + - col0 AS col2 FROM tab1 AS cor0
----
-15
-76
-92

skipif mysql # not compatible
query I rowsort label-8834
SELECT + + CAST ( - 12 AS INTEGER ) + - col0 AS col2 FROM tab1 AS cor0
----
-15
-76
-92

query I rowsort
SELECT ALL - col1 + + 61 AS col1 FROM tab0 AS cor0
----
-25
-30
-36

query I rowsort
SELECT DISTINCT + 97 AS col1 FROM tab1 cor0
----
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-8837
SELECT - + 48 DIV + col1 AS col1 FROM tab2 cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-8837
SELECT - + 48 / + col1 AS col1 FROM tab2 cor0
----
-1
-2
0

query I rowsort
SELECT ALL - col0 + col0 * - col2 + col0 AS col1 FROM tab1 cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-8839
SELECT DISTINCT cor0.col1 DIV 6 FROM tab1 cor0
----
1
2
4

skipif mysql # not compatible
query I rowsort label-8839
SELECT DISTINCT cor0.col1 / 6 FROM tab1 cor0
----
1
2
4

query I rowsort
SELECT + + 0 * col1 + cor0.col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT 80 FROM tab2 AS cor0
----
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-8842
SELECT + - ( + col0 ) + col1 DIV ( + col2 ) AS col2 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-8842
SELECT + - ( + col0 ) + col1 / ( + col2 ) AS col2 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT + col1 - tab2.col2 AS col2 FROM tab2
----
-21
33
4

query I rowsort
SELECT DISTINCT - 67 * col1 AS col0 FROM tab1
----
-1742
-670
-871

query I rowsort
SELECT + ( cor0.col0 ) * ( - 58 ) + - col2 AS col2 FROM tab2 cor0
----
-433
-4550
-4620

query I rowsort
SELECT DISTINCT - col1 + ( col0 ) FROM tab2 AS cor0
----
-24
19
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-8847
SELECT ALL - 94 DIV - col2 FROM tab0
----
1
2
94

skipif mysql # not compatible
query I rowsort label-8847
SELECT ALL - 94 / - col2 FROM tab0
----
1
2
94

query I rowsort
SELECT ALL + - col2 - + col0 FROM tab0 cor0
----
-171
-36
-57

query I rowsort
SELECT ALL - col2 * + 31 FROM tab1 AS cor0
----
-1674
-1767
-2976

query I rowsort
SELECT DISTINCT + - col1 + - 4 * - col0 AS col1 FROM tab2 AS cor0
----
-3
253
299

query I rowsort
SELECT - + col1 + 18 + + 34 AS col2 FROM tab1 AS cor0
----
26
39
42

skipif mysql # not compatible
query I rowsort
SELECT col1 + col2 * CAST ( + col0 AS REAL ) FROM tab1
----
188
3658
7693

query I rowsort
SELECT - 48 FROM tab0
----
-48
-48
-48

query I rowsort
SELECT - cor0.col0 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

onlyif mysql # use DIV operator for integer division
query I rowsort label-8855
SELECT DISTINCT - - col1 + col0 DIV + 32 FROM tab1 AS cor0
----
12
15
26

skipif mysql # not compatible
query I rowsort label-8855
SELECT DISTINCT - - col1 + col0 / + 32 FROM tab1 AS cor0
----
12
15
26

query I rowsort
SELECT col2 * + col2 + - col2 FROM tab0 AS cor0
----
0
1056
6642

query I rowsort
SELECT DISTINCT cor0.col1 + - 92 * + col2 * - col0 FROM tab0 AS cor0
----
3317
671507
72950

query I rowsort
SELECT - + col1 + + 35 AS col0 FROM tab1 AS cor0
----
22
25
9

query I rowsort
SELECT DISTINCT cor0.col1 + - col2 * col0 FROM tab1 AS cor0
----
-136
-3638
-7667

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col1 + + cor0.col1 + cor0.col2 * ( + col2 ) col2 FROM tab2 AS cor0
----
-3867
118
543

query I rowsort
SELECT DISTINCT + cor0.col1 + - col1 + 24 * col1 AS col2 FROM tab0 AS cor0
----
2064
2184
2328

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab0 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to 489dc4a89dc53914f025e2426f93a929

query I rowsort
SELECT - + col1 * cor0.col0 + - col2 FROM tab1 AS cor0
----
-1136
-132
-697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 52 + - cor0.col0 + + col1 col0 FROM tab0 AS cor0
----
114
1778
4266

query I rowsort
SELECT DISTINCT + cor0.col0 * + col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

query IIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1, tab2 cor1
----
243 values hashing to ea21cea53be47edd19229592e3d26141

query I rowsort
SELECT DISTINCT ( col1 ) * - cor0.col1 + col0 FROM tab0 AS cor0
----
-7372
-8192
-9374

query I rowsort
SELECT DISTINCT col2 + + 52 * col1 * - 9 AS col2 FROM tab0 AS cor0
----
-40215
-42506
-45395

query I rowsort
SELECT ALL + col0 - 19 FROM tab1 AS cor0
----
-16
45
61

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8870
SELECT + CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-8870
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-8871
SELECT + - CAST( NULL AS SIGNED ) + col2 * - col0 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8871
SELECT + - CAST ( NULL AS INTEGER ) + col2 * - col0 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( cor0.col0 ) + col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + cor1.col1 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 69 + + col0 col2 FROM tab0 AS cor0
----
104
158
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor1.col2 col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
1
33
82

query I rowsort
SELECT 57 + - col2 AS col2 FROM tab2 AS cor0
----
19
30
31

query I rowsort
SELECT cor0.col2 + col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT 81 + col0 AS col2 FROM tab2
----
159
160
88

query I rowsort
SELECT ALL - 93 + col1 * + tab0.col2 AS col0 FROM tab0
----
2745
4
7369

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + col0 col2 FROM tab2 AS cor0
----
49
6084
6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 54 + - col2 + - col0 * col1 col0 FROM tab0 AS cor0
----
-2043
-3342
-8127

query I rowsort
SELECT ALL 28 * col2 AS col2 FROM tab2 AS cor0
----
1064
728
756

query I rowsort
SELECT - col2 * col0 * 96 FROM tab1 AS cor0
----
-15552
-350208
-737280

query I rowsort
SELECT + - col2 * - col2 FROM tab2 cor0
----
1444
676
729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - cor0.col2 col0 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT col1 + - 65 FROM tab0 AS cor0
----
21
26
32

query I rowsort
SELECT - col0 + 38 FROM tab0 AS cor0
----
-51
14
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8888
SELECT + col0 * - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8888
SELECT + col0 * - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 * - 90 * col2 AS col0 FROM tab0 AS cor0
----
-255420
-671580
-8730

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT + ( - col0 ) * + col2 + - tab1.col0 FROM tab1
----
-165
-3712
-7760

query I rowsort
SELECT - 33 + col0 + - 4 AS col0 FROM tab1
----
-34
27
43

query I rowsort
SELECT DISTINCT 92 + - col2 + tab0.col2 FROM tab0
----
92

query I rowsort
SELECT DISTINCT 84 + + col2 AS col2 FROM tab1
----
138
141
180

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8895
SELECT ALL 42 + - col1 + CAST( col2 * col1 AS SIGNED ) FROM tab2
----
1517
671
848

skipif mysql # not compatible
query I rowsort label-8895
SELECT ALL 42 + - col1 + CAST ( col2 * col1 AS INTEGER ) FROM tab2
----
1517
671
848

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - tab2.col1 col2 FROM tab2
----
0

query I rowsort
SELECT + - col0 + - col2 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT DISTINCT - 77 AS col1 FROM tab1, tab0 AS cor0 CROSS JOIN tab0
----
-77

query I rowsort
SELECT ( + ( + col2 ) ) AS col1 FROM tab1
----
54
57
96

query I rowsort
SELECT ALL cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT - 26 * - 2 FROM tab0 AS cor0
----
52
52
52

query I rowsort
SELECT - - ( - cor0.col1 ) AS col0 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT - col1 * - col2 + - col2 AS col2 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT + + 91 * col1 AS col2 FROM tab1 AS cor0
----
1183
2366
910

query I rowsort
SELECT + col2 + - col2 * - col0 + - 83 * - col1 FROM tab1
----
2374
4535
8855

query I rowsort
SELECT DISTINCT + tab0.col2 - - col1 AS col0 FROM tab0
----
119
173
98

query I rowsort
SELECT + 82 AS col0 FROM tab2, tab0 AS cor0, tab1 cor1
----
27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944

query I rowsort
SELECT + 6 AS col2 FROM tab1 AS cor0
----
6
6
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-8909
SELECT ALL + - col1 * col0 + - col0 + col2 DIV + col0 col1 FROM tab1 cor0
----
-1119
-63
-704

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8909
SELECT ALL + - col1 * col0 + - col0 + col2 / + col0 col1 FROM tab1 cor0
----
-1119
-63
-704

query I rowsort
SELECT DISTINCT + - cor0.col1 + - col2 FROM tab1 AS cor0
----
-109
-67
-80

skipif mysql # not compatible
query I rowsort
SELECT CAST ( - col0 AS REAL ) AS col1 FROM tab1
----
-3
-64
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8912
SELECT DISTINCT + col0 * - col1 * - CAST( + col1 AS SIGNED ) + col0 FROM tab1 AS cor0
----
13600
2031
6464

skipif mysql # not compatible
query I rowsort label-8912
SELECT DISTINCT + col0 * - col1 * - CAST ( + col1 AS INTEGER ) + col0 FROM tab1 AS cor0
----
13600
2031
6464

query I rowsort
SELECT ALL col0 * tab0.col0 + + 21 FROM tab0
----
1246
597
7942

query I rowsort
SELECT - col2 * 69 AS col0 FROM tab2 cor0
----
-1794
-1863
-2622

query I rowsort
SELECT col2 * ( col2 ) AS col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT col2 * col0 + - col1 FROM tab0 AS cor0
----
-62
706
7207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( col2 ) * - col1 col2 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-8918
SELECT - 78 DIV col2 AS col1 FROM tab0 AS cor0
----
-2
-78
0

skipif mysql # not compatible
query I rowsort label-8918
SELECT - 78 / col2 AS col1 FROM tab0 AS cor0
----
-2
-78
0

query I rowsort
SELECT - 63 + + ( col2 ) AS col0 FROM tab0 AS cor0
----
-30
-62
19

onlyif mysql # use DIV operator for integer division
query I rowsort label-8920
SELECT ALL 4 * - 13 + + col1 DIV 44 + - col1 AS col2 FROM tab1 AS cor0
----
-62
-65
-78

skipif mysql # not compatible
query I rowsort label-8920
SELECT ALL 4 * - 13 + + col1 / 44 + - col1 AS col2 FROM tab1 AS cor0
----
-62
-65
-78

query I rowsort
SELECT - 40 FROM tab1 cor0
----
-40
-40
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - ( + col0 * col0 ) col2 FROM tab2
----
-343
-474552
-493039

query I rowsort
SELECT + cor0.col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT + cor0.col2 AS col2 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8925
SELECT + - CAST( + col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-8925
SELECT + - CAST ( + col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT 29 AS col0 FROM tab2, tab2 AS cor0
----
29

query I rowsort
SELECT DISTINCT + 28 + col2 FROM tab1 AS cor0
----
124
82
85

query I rowsort
SELECT - 45 + col0 AS col0 FROM tab0 AS cor0
----
-10
-21
44

onlyif mysql # use DIV operator for integer division
query I rowsort label-8929
SELECT ALL + 74 DIV cor0.col0 + - col2 FROM tab0 AS cor0
----
-30
-82
1

skipif mysql # not compatible
query I rowsort label-8929
SELECT ALL + 74 / cor0.col0 + - col2 FROM tab0 AS cor0
----
-30
-82
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8930
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab2, tab1 cor0, tab1 AS cor1, tab0 AS cor2
----
NULL

skipif mysql # not compatible
query I rowsort label-8930
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab2, tab1 cor0, tab1 AS cor1, tab0 AS cor2
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8931
SELECT ALL - cor0.col1 DIV 2 AS col0 FROM tab0 cor0
----
-43
-45
-48

skipif mysql # not compatible
query I rowsort label-8931
SELECT ALL - cor0.col1 / 2 AS col0 FROM tab0 cor0
----
-43
-45
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 21 + - col1 col0 FROM tab0 AS cor0
----
-1892
-2002
-2134

query I rowsort
SELECT - cor0.col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT col1 * col1 + + col2 * + cor0.col0 * + col1 AS col2 FROM tab0 AS cor0
----
12804
672399
75508

query I rowsort
SELECT ALL - - cor0.col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT ( + 80 ) FROM tab1 AS cor0
----
80

query I rowsort
SELECT cor0.col0 AS col2 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT DISTINCT - col1 * col1 + + col2 + 57 FROM tab1 AS cor0
----
-16
-565
14

onlyif mysql # use DIV operator for integer division
query I rowsort label-8939
SELECT + col0 + + col1 DIV col2 col1 FROM tab0 AS cor0
----
132
26
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8939
SELECT + col0 + + col1 / col2 col1 FROM tab0 AS cor0
----
132
26
90

query I rowsort
SELECT ALL col0 * col1 * - col0 AS col0 FROM tab2 AS cor0
----
-106097
-1519
-358956

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) + col2 * + tab0.col1 * col0 col2 FROM tab0
----
3492
664209
68198

query I rowsort
SELECT 55 + col1 * col2 AS col2 FROM tab2
----
1589
701
892

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 95 ) col2 FROM tab0
----
-95
-95
-95

query I rowsort
SELECT ( - col1 * + tab2.col2 ) FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT ALL col0 * col1 AS col0 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT - + col1 + + col0 * 42 * + col2 AS col0 FROM tab2 AS cor0
----
126067
7907
85117

query I rowsort
SELECT col1 + + col0 AS col2 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT + 54 * col1 FROM tab1
----
1404
540
702

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - + col0 + CAST ( 95 AS REAL ) FROM tab2 cor0
----
16
17
88

query I rowsort
SELECT ALL + - col2 + + ( 92 ) FROM tab2 AS cor0
----
54
65
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-8951
SELECT - col1 - 20 DIV + 85 FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-8951
SELECT - col1 - 20 / + 85 FROM tab2 AS cor0
----
-17
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-8952
SELECT + col1 + + 54 * cor0.col1 DIV col2 AS col2 FROM tab0 AS cor0
----
150
226
5335

skipif mysql # not compatible
query I rowsort label-8952
SELECT + col1 + + 54 * cor0.col1 / col2 AS col2 FROM tab0 AS cor0
----
150
226
5335

query I rowsort
SELECT DISTINCT + col0 * + col1 - col2 * + col1 FROM tab1 AS cor0
----
-1326
-208
70

query I rowsort
SELECT DISTINCT - col1 * ( col0 ) + col1 FROM tab2 cor0
----
-1326
-186
-4543

query I rowsort
SELECT + col1 * - col0 AS col2 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT + col0 - - tab1.col0 AS col0 FROM tab1
----
128
160
6

query I rowsort
SELECT DISTINCT + tab2.col2 - tab2.col0 * col0 AS col2 FROM tab2
----
-22
-6058
-6203

query I rowsort
SELECT col0 * + col2 AS col1 FROM tab2
----
189
2028
3002

query I rowsort
SELECT tab2.col1 + + col0 - tab2.col0 * - 86 FROM tab2
----
640
6845
6890

query I rowsort
SELECT DISTINCT + 52 AS col1 FROM tab0, tab1 AS cor0
----
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-8961
SELECT col0 * - col0 * col2 + + col2 DIV col1 FROM tab2 AS cor0
----
-1323
-158184
-237156

skipif mysql # not compatible
query I rowsort label-8961
SELECT col0 * - col0 * col2 + + col2 / col1 FROM tab2 AS cor0
----
-1323
-158184
-237156

query I rowsort
SELECT DISTINCT col2 * - ( col2 ) FROM tab1 AS cor0
----
-2916
-3249
-9216

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8963
SELECT + col0 + CAST( ( - col0 ) AS SIGNED ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8963
SELECT + col0 + CAST ( ( - col0 ) AS INTEGER ) FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8964
SELECT + + col1 + - CAST( NULL AS DECIMAL ) * + col1 * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8964
SELECT + + col1 + - CAST ( NULL AS REAL ) * + col1 * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT tab1.col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT + ( - col2 ) * col1 + - col0 * + col0 AS col1 FROM tab0 AS cor0
----
-1322
-15383
-3414

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col2 ) * - col1 col2 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-8968
SELECT - 75 + cor0.col2 DIV ( cor0.col2 ) AS col1 FROM tab1 AS cor0
----
-74
-74
-74

skipif mysql # not compatible
query I rowsort label-8968
SELECT - 75 + cor0.col2 / ( cor0.col2 ) AS col1 FROM tab1 AS cor0
----
-74
-74
-74

query I rowsort
SELECT ALL - 16 FROM tab2 cor0
----
-16
-16
-16

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8970
SELECT - CAST( NULL AS SIGNED ) FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-8970
SELECT - CAST ( NULL AS INTEGER ) FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col1 + - ( - col2 + - col0 ) col0 FROM tab0 AS cor0
----
-7339
-8110
-9373

query I rowsort
SELECT DISTINCT col2 + + col0 AS col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT 92 AS col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817

query I rowsort
SELECT DISTINCT - col0 * col1 AS col2 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT ALL + col2 * col2 + - col1 FROM tab1 AS cor0
----
2890
3239
9203

query I rowsort
SELECT ALL + col0 - col2 * col2 AS col0 FROM tab2 AS cor0
----
-1365
-598
-722

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col0 * col2 col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT ALL col2 + ( 52 ) FROM tab0 AS cor0
----
134
53
85

query I rowsort
SELECT DISTINCT - col1 * - col1 AS col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT ALL col2 * + 80 AS col1 FROM tab1 AS cor0
----
4320
4560
7680

query I rowsort
SELECT DISTINCT col1 + ( - col0 ) FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT DISTINCT col1 - 72 FROM tab1 AS cor0
----
-46
-59
-62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8983
SELECT col0 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8983
SELECT col0 * - 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-8984
SELECT + col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8984
SELECT + col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * 52 * ( - col2 ) + col0 col0 FROM tab1 AS cor0
----
29704
64976
73011

query I rowsort
SELECT ALL + col2 * + col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT col0 * ( col2 ) FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT + - col2 * - 83 * col1 FROM tab1 AS cor0
----
103584
116532
47310

query I rowsort
SELECT - col0 * - col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL col1 + + col2 AS col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL + 33 + ( - col0 ) FROM tab0 cor0
----
-2
-56
9

query I rowsort
SELECT - - 83 + + col1 FROM tab1 AS cor0
----
109
93
96

query I rowsort
SELECT DISTINCT - - col2 * + 67 + + col2 AS col2 FROM tab0 AS cor0
----
2244
5576
68

query I rowsort
SELECT - - 33 * col1 * - col1 - col2 * col0 AS col0 FROM tab1 AS cor0
----
-13257
-22470
-6948

query I rowsort
SELECT 99 + + col0 AS col0 FROM tab1 AS cor0
----
102
163
179

query I rowsort
SELECT ALL + + 76 AS col1 FROM tab0 AS cor0
----
76
76
76

query I rowsort
SELECT 36 + + 9 + + col2 FROM tab1 cor0
----
102
141
99

query I rowsort
SELECT DISTINCT 81 FROM tab0 AS cor0
----
81

query I rowsort
SELECT + + cor1.col1 - 15 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5cf176669ac7ede5ad220855df27577c

query I rowsort
SELECT ALL - col2 + + col1 * col1 FROM tab0 AS cor0
----
7363
8199
9408

onlyif mysql # use DIV operator for integer division
query I rowsort label-9001
SELECT + + col1 + col2 DIV col0 + col1 AS col1 FROM tab2 AS cor0
----
118
34
65

skipif mysql # not compatible
query I rowsort label-9001
SELECT + + col1 + col2 / col0 + col1 AS col1 FROM tab2 AS cor0
----
118
34
65

query I rowsort
SELECT DISTINCT 43 * ( + col2 ) + ( col1 + col0 ) AS col0 FROM tab1
----
2351
2525
4221

query I rowsort
SELECT DISTINCT - ( col1 ) * - cor0.col1 AS col0 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT + - col0 - - col2 AS col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT ALL - cor0.col1 + + cor0.col1 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col1 * col1 + col1 col0 FROM tab0 AS cor0
----
177590
329412
737100

query I rowsort
SELECT ALL + + ( col1 ) AS col0 FROM tab0 AS cor0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-9008
SELECT ALL ( col2 ) + - col1 DIV - cor0.col2 col0 FROM tab1 AS cor0
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9008
SELECT ALL ( col2 ) + - col1 / - cor0.col2 col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT + + 81 AS col1 FROM tab0 AS cor0
----
81
81
81

query I rowsort
SELECT + 22 * ( col2 ) FROM tab0 AS cor0
----
1804
22
726

query I rowsort
SELECT ALL + cor0.col2 * col1 FROM tab2 AS cor0
----
1534
646
837

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 cor0 CROSS JOIN tab0, tab1 AS cor1
----
972 values hashing to 7942394eb7766dfb9ea95b7805ff595d

query I rowsort
SELECT DISTINCT col0 + col1 * col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT ( - col1 ) AS col0 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT col2 * col0 + - ( + 11 ) * col1 AS col0 FROM tab0 AS cor0
----
-1032
-154
6297

query I rowsort
SELECT - 21 + - col0 FROM tab2
----
-100
-28
-99

query I rowsort
SELECT - 1 * + col0 + col1 * col0 AS col2 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT - + ( + cor0.col0 ) - col1 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT - col2 * + col2 + + 58 * + col0 * + cor0.col2 FROM tab0 AS cor0
----
2029
416560
44847

query I rowsort
SELECT DISTINCT - ( col0 ) + col1 FROM tab2
----
-19
-62
24

query I rowsort
SELECT ALL 80 + col1 FROM tab1
----
106
90
93

query I rowsort
SELECT - 2 FROM tab2 AS cor0
----
-2
-2
-2

query I rowsort
SELECT - - col1 + col1 + col2 AS col1 FROM tab2 cor0
----
144
72
89

query I rowsort
SELECT 7 + - tab2.col2 * col2 FROM tab2
----
-1437
-669
-722

query I rowsort
SELECT DISTINCT 96 FROM tab0, tab0 AS cor0
----
96

query I rowsort
SELECT + 98 * + col1 + - col2 * 38 FROM tab2
----
2012
222
4794

onlyif mysql # use DIV operator for integer division
query I rowsort label-9027
SELECT col0 DIV + col1 + 58 col2 FROM tab2 AS cor0
----
58
59
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9027
SELECT col0 / + col1 + 58 col2 FROM tab2 AS cor0
----
58
59
62

query I rowsort
SELECT 52 + + col1 + + cor0.col1 AS col1 FROM tab0 AS cor0
----
224
234
246

query I rowsort
SELECT ALL + ( - col2 ) AS col2 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT - 36 FROM tab1 AS cor0
----
-36
-36
-36

onlyif mysql # use DIV operator for integer division
query I rowsort label-9031
SELECT DISTINCT + 4 + col0 DIV - CAST( - col1 AS SIGNED ) FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-9031
SELECT DISTINCT + 4 + col0 / - CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
4

query I rowsort
SELECT 41 FROM tab2, tab2 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT ALL + + col1 * + col1 + col2 AS col0 FROM tab2 AS cor0
----
327
3507
988

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 col0 * - col2 col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL + - col0 - col1 AS col2 FROM tab2 cor0
----
-137
-38
-96

query I rowsort
SELECT + 18 * cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3c4ff08df58a5604bd56394a0465a92c

query I rowsort
SELECT ALL + cor1.col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 15 col1 FROM tab1
----
-15
-15
-15

query I rowsort
SELECT - tab1.col1 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

query I rowsort
SELECT + tab1.col1 * + tab1.col0 - + 12 AS col2 FROM tab1
----
1028
628
66

query I rowsort
SELECT - cor0.col1 FROM tab1, tab2 cor0, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT ALL + cor1.col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT 54 FROM tab2, tab1 cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query I rowsort
SELECT - ( + col1 * col2 ) FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT 38 FROM tab1, tab1 cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT DISTINCT 87 AS col1 FROM tab2
----
87

query I rowsort
SELECT 86 FROM tab1, tab0 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT ALL col0 * col2 * - col2 FROM tab0
----
-26136
-35
-598436

query I rowsort
SELECT + 62 + cor0.col1 + + cor0.col1 FROM tab0 AS cor0
----
234
244
256

query I rowsort
SELECT ( 84 ) * + col1 FROM tab1
----
1092
2184
840

query I rowsort
SELECT - - ( - 5 ) AS col0 FROM tab0 AS cor0
----
-5
-5
-5

query I rowsort
SELECT DISTINCT + ( - col0 ) AS col2 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT ALL 37 FROM tab1 AS cor0
----
37
37
37

query I rowsort
SELECT ( - col2 ) FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT - col1 * + col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT col0 * - col1 * col0 + col2 FROM tab2
----
-106059
-1492
-358930

query I rowsort
SELECT - + 93 AS col0 FROM tab2 AS cor0
----
-93
-93
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-9059
SELECT DISTINCT col0 DIV - cor0.col2 AS col1 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-9059
SELECT DISTINCT col0 / - cor0.col2 AS col1 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT ALL ( - col1 ) * col2 AS col0 FROM tab0
----
-2838
-7462
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9061
SELECT ALL CAST( col0 AS SIGNED ) * col0 * + col1 FROM tab1
----
234
40960
83200

skipif mysql # not compatible
query I rowsort label-9061
SELECT ALL CAST ( col0 AS INTEGER ) * col0 * + col1 FROM tab1
----
234
40960
83200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT 2 AS col2 FROM tab1 AS cor0
----
2
2
2

query I rowsort
SELECT DISTINCT + 92 + col0 + - col2 FROM tab2
----
133
144
72

query I rowsort
SELECT ALL - col0 + - col0 * - 31 AS col0 FROM tab1
----
1920
2400
90

query I rowsort
SELECT ALL - col1 + col2 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT - tab1.col0 * tab1.col2 AS col2 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT ALL - 25 * - col2 AS col0 FROM tab2 AS cor0
----
650
675
950

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT 77 + col0 * + 30 + col1 * col2 AS col0 FROM tab1 AS cor0
----
1571
2567
3725

query I rowsort
SELECT ALL + - cor0.col1 + - col1 * col1 * cor0.col2 AS col1 FROM tab0 AS cor0
----
-244154
-679133
-9506

query I rowsort
SELECT + col2 * col2 + 32 + 87 * + col0 FROM tab1 AS cor0
----
16208
3209
8849

onlyif mysql # use DIV operator for integer division
query I rowsort label-9073
SELECT DISTINCT 38 DIV col1 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9073
SELECT DISTINCT 38 / col1 FROM tab0 cor0
----
0

query I rowsort
SELECT + ( - cor0.col0 ) + + 45 * + col0 * + col2 + cor0.col0 FROM tab1 AS cor0
----
164160
345600
7290

query I rowsort
SELECT - - col0 + col0 - col2 FROM tab0 AS cor0
----
15
69
96

query I rowsort
SELECT DISTINCT + 33 AS col2 FROM tab2 AS cor0
----
33

query I rowsort
SELECT 72 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7

query I rowsort
SELECT ALL - - col1 * + 71 FROM tab0 cor0
----
6106
6461
6887

query I rowsort
SELECT + col2 * + ( + 48 ) + col0 AS col0 FROM tab0 cor0
----
1608
4025
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-9080
SELECT ALL - col0 DIV + col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9080
SELECT ALL - col0 / + col0 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9081
SELECT + col2 * CAST( NULL AS SIGNED ) + + col1 * + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9081
SELECT + col2 * CAST ( NULL AS INTEGER ) + + col1 * + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 + + 82 AS col1 FROM tab0 AS cor0
----
-15
-4
-9

query I rowsort
SELECT DISTINCT col0 - + col0 * col0 FROM tab0 AS cor0
----
-1190
-552
-7832

query I rowsort
SELECT DISTINCT + + col1 + + ( col2 ) * + col0 AS col1 FROM tab1 cor0
----
188
3658
7693

query I rowsort
SELECT ALL + col0 - + 70 AS col2 FROM tab2 AS cor0
----
-63
8
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col0 col2 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL + cor0.col0 * 42 FROM tab1 cor0
----
126
2688
3360

query I rowsort
SELECT ALL - - col2 * col0 AS col0 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-9089
SELECT col0 DIV 41 AS col2 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-9089
SELECT col0 / 41 AS col2 FROM tab0 AS cor0
----
0
0
2

query I rowsort
SELECT ALL col1 * - tab2.col0 AS col1 FROM tab2
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-9091
SELECT col1 + - col0 DIV col0 col0 FROM tab1
----
12
25
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9091
SELECT col1 + - col0 / col0 col0 FROM tab1
----
12
25
9

query I rowsort
SELECT - ( + tab0.col2 ) * + 95 * 72 FROM tab0
----
-225720
-560880
-6840

query I rowsort
SELECT col0 * col0 + col0 AS col1 FROM tab1
----
12
4160
6480

query I rowsort
SELECT DISTINCT tab2.col0 + + col0 + col2 FROM tab2
----
182
196
41

query I rowsort
SELECT DISTINCT tab2.col2 * col0 + - col0 FROM tab2
----
182
1950
2923

query I rowsort
SELECT DISTINCT tab0.col0 * col1 AS col0 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT - 51 FROM tab1
----
-51

query I rowsort
SELECT 40 AS col2 FROM tab0 AS cor0
----
40
40
40

onlyif mysql # use DIV operator for integer division
query I rowsort label-9099
SELECT ( 81 ) DIV col2 AS col1 FROM tab0 AS cor0
----
0
2
81

skipif mysql # not compatible
query I rowsort label-9099
SELECT ( 81 ) / col2 AS col1 FROM tab0 AS cor0
----
0
2
81

query I rowsort
SELECT DISTINCT - cor0.col2 * col2 AS col1 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT ALL 44 + + col2 * + col1 FROM tab0 cor0
----
141
2882
7506

query I rowsort
SELECT DISTINCT + col0 * + col1 AS col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT + col2 + + col1 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT + 13 + col0 * col1 * + col1 AS col2 FROM tab1 AS cor0
----
13533
2041
6413

query I rowsort
SELECT DISTINCT + ( 92 ) FROM tab0, tab2 AS cor0
----
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-9106
SELECT + 79 + - col1 DIV cor0.col2 AS col1 FROM tab0 AS cor0
----
-18
77
78

skipif mysql # not compatible
query I rowsort label-9106
SELECT + 79 + - col1 / cor0.col2 AS col1 FROM tab0 AS cor0
----
-18
77
78

query I rowsort
SELECT ALL + + 9 * cor0.col2 FROM tab2 AS cor0
----
234
243
342

query I rowsort
SELECT ( cor0.col2 ) * + col1 AS col1 FROM tab2 AS cor0
----
1534
646
837

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( - 7 AS REAL ) + col1 * col0 AS col2 FROM tab0 cor0
----
2071
3402
8106

query I rowsort
SELECT ALL + col0 * - 48 FROM tab1 AS cor0
----
-144
-3072
-3840

query I rowsort
SELECT 17 FROM tab0 AS cor0
----
17
17
17

query I rowsort
SELECT DISTINCT - + col0 * col1 + + col0 AS col1 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT DISTINCT 56 AS col2 FROM tab2
----
56

query I rowsort
SELECT - ( col1 ) AS col2 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT col0 + + col1 FROM tab0 cor0
----
110
132
180

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab0 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to b34c9987c389223e07378cde8a36e94f

query I rowsort
SELECT DISTINCT - ( 44 ) AS col1 FROM tab1
----
-44

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9118
SELECT CAST( ( col1 ) AS SIGNED ) * col1 - + cor0.col1 FROM tab1 AS cor0
----
156
650
90

skipif mysql # not compatible
query I rowsort label-9118
SELECT CAST ( ( col1 ) AS INTEGER ) * col1 - + cor0.col1 FROM tab1 AS cor0
----
156
650
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-9119
SELECT ALL + ( - 37 ) DIV col0 AS col1 FROM tab2
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-9119
SELECT ALL + ( - 37 ) / col0 AS col1 FROM tab2
----
-5
0
0

query I rowsort
SELECT + cor0.col0 + 13 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 82d4d19bbe39e55dfe878dde0d676e7e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col0 ) - col1 col2 FROM tab2
----
-137
-38
-96

query I rowsort
SELECT DISTINCT col0 * - tab0.col2 + col1 + - col0 AS col2 FROM tab0
----
-7296
-730
27

query I rowsort
SELECT DISTINCT + col1 * - tab2.col0 + + col2 * + col2 * ( + ( - col0 ) + ( - col2 ) ) AS col0 FROM tab2
----
-170291
-25003
-74906

query I rowsort
SELECT DISTINCT + tab0.col1 + - 97 FROM tab0
----
-11
-6
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9125
SELECT ALL + col2 DIV + col0 + + 89 FROM tab2
----
89
89
92

skipif mysql # not compatible
query I rowsort label-9125
SELECT ALL + col2 / + col0 + + 89 FROM tab2
----
89
89
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 12 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT - - col1 * ( + col2 ) AS col2 FROM tab1 cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-9128
SELECT DISTINCT col2 DIV ( + 26 * - col0 + - col0 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9128
SELECT DISTINCT col2 / ( + 26 * - col0 + - col0 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT col0 + + col2 + + ( + col0 ) AS col0 FROM tab2
----
182
196
41

query I rowsort
SELECT ALL tab2.col0 + col0 AS col2 FROM tab2
----
14
156
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 21 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT ALL - 53 + - col1 * col2 AS col1 FROM tab1 AS cor0
----
-1301
-1457
-623

query I rowsort
SELECT ALL + col2 * 52 FROM tab2 AS cor0
----
1352
1404
1976

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 43 + col0 col2 FROM tab1 AS cor0
----
107
123
46

query I rowsort
SELECT ALL - 72 - col1 FROM tab1 AS cor0
----
-82
-85
-98

query I rowsort
SELECT - - col0 * col0 + + col1 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT - - col0 + 99 FROM tab1 cor0
----
102
163
179

query I rowsort
SELECT DISTINCT - ( cor0.col1 ) FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT + ( + 93 ) * col2 AS col2 FROM tab1 AS cor0
----
5022
5301
8928

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9140
SELECT ALL - CAST( NULL AS SIGNED ) * + col1 + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9140
SELECT ALL - CAST ( NULL AS INTEGER ) * + col1 + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9141
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * - col1 + + col2 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9141
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * - col1 + + col2 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + ( 32 ) * col2 AS col1 FROM tab1 AS cor0
----
1728
1824
3072

query I rowsort
SELECT + + col0 + - col0 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + ( - 49 ) + + col0 + col0 AS col1 FROM tab1 cor0
----
-43
111
79

query I rowsort
SELECT ALL 27 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query I rowsort
SELECT - col2 * cor0.col1 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL + - col0 * - col1 AS col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL + col2 * - col1 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-9149
SELECT ALL - col2 DIV + col0 AS col0 FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9149
SELECT ALL - col2 / + col0 AS col0 FROM tab0 cor0
----
-1
0
0

query I rowsort
SELECT + 74 * - col1 FROM tab1 AS cor0
----
-1924
-740
-962

query I rowsort
SELECT DISTINCT 19 FROM tab0 AS cor0
----
19

query I rowsort
SELECT DISTINCT - - col2 + - col1 * ( - col1 + + col2 ) * + cor0.col1 AS col1 FROM tab0 cor0
----
392021
74611
903265

query I rowsort
SELECT ALL - 33 + - col0 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
-2061
-222
-3035

query I rowsort
SELECT DISTINCT - col0 * - col0 * cor0.col0 AS col1 FROM tab0 AS cor0
----
13824
42875
704969

query I rowsort
SELECT DISTINCT + col1 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT - 93 * - cor0.col2 FROM tab0 cor0
----
3069
7626
93

query I rowsort
SELECT ALL - - 79 FROM tab0 AS cor0
----
79
79
79

query I rowsort
SELECT + + col2 * - col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT - col2 * cor0.col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL col2 + 37 * + 25 FROM tab0 AS cor0
----
1007
926
958

query I rowsort
SELECT ALL col2 * - ( - col1 ) + cor0.col1 AS col2 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT DISTINCT + - cor0.col0 + 4 FROM tab1 AS cor0
----
-60
-76
1

query I rowsort
SELECT ALL + 53 AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6

query I rowsort
SELECT col0 * 27 AS col2 FROM tab2 AS cor0
----
189
2106
2133

query I rowsort
SELECT - col2 * cor0.col0 FROM tab1 cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-9166
SELECT ALL col2 + - col2 DIV col2 AS col2 FROM tab1 AS cor0
----
53
56
95

skipif mysql # not compatible
query I rowsort label-9166
SELECT ALL col2 + - col2 / col2 AS col2 FROM tab1 AS cor0
----
53
56
95

query I rowsort
SELECT DISTINCT + col2 - + col1 * + col2 AS col1 FROM tab2
----
-1508
-608
-810

query I rowsort
SELECT - col0 + col1 * col1 AS col0 FROM tab2
----
210
3403
954

query I rowsort
SELECT ALL - - col1 * 75 + - col2 AS col1 FROM tab0 AS cor0
----
6417
6743
7274

query I rowsort
SELECT DISTINCT - - col2 - + col1 * cor0.col1 AS col0 FROM tab0 AS cor0
----
-7363
-8199
-9408

query I rowsort
SELECT - cor0.col0 - col2 * col1 AS col2 FROM tab0 AS cor0
----
-132
-2862
-7551

query I rowsort
SELECT DISTINCT cor0.col2 + - 57 * col0 FROM tab1 AS cor0
----
-117
-3591
-4464

query I rowsort
SELECT - col2 * - 68 FROM tab0 AS cor0
----
2244
5576
68

query I rowsort
SELECT DISTINCT - col2 + + ( cor0.col2 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT col1 * - col0 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col0 col2 FROM tab2 AS cor0
----
-49
-6084
-6241

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9177
SELECT ALL - CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9177
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT col2 * - col1 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT cor0.col2 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT + col0 * + col2 * cor0.col2 AS col1 FROM tab0 AS cor0
----
26136
35
598436

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 col2 * 92 + col2 FROM tab2 AS cor0
----
2418
2511
3534

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9183
SELECT + CAST( col0 AS SIGNED ) * col0 AS col1 FROM tab2 AS cor0
----
49
6084
6241

skipif mysql # not compatible
query I rowsort label-9183
SELECT + CAST ( col0 AS INTEGER ) * col0 AS col1 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT - - cor0.col2 + col1 + col1 * + 16 FROM tab1 AS cor0
----
227
317
496

query I rowsort
SELECT + 56 * col0 AS col0 FROM tab0 AS cor0
----
1344
1960
4984

query I rowsort
SELECT DISTINCT 66 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-9187
SELECT tab0.col1 DIV - col2 FROM tab0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-9187
SELECT tab0.col1 / - col2 FROM tab0
----
-1
-2
-97

query I rowsort
SELECT - + 10 * + cor0.col2 * - col0 FROM tab2 AS cor0
----
1890
20280
30020

query I rowsort
SELECT - - ( + col0 ) AS col1 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT + - cor0.col2 + - col1 FROM tab1 AS cor0
----
-109
-67
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9191
SELECT CAST( NULL AS SIGNED ) + col2 / + tab1.col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9191
SELECT CAST ( NULL AS INTEGER ) + col2 / + tab1.col0 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9192
SELECT + col0 + - col0 DIV col2 + + col1 AS col2 FROM tab1 AS cor0
----
29
73
93

skipif mysql # not compatible
query I rowsort label-9192
SELECT + col0 + - col0 / col2 + + col1 AS col2 FROM tab1 AS cor0
----
29
73
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col0 ) col1 FROM tab2
----
7
78
79

query I rowsort
SELECT ALL ( tab0.col1 ) FROM tab0
----
86
91
97

query I rowsort
SELECT DISTINCT + - 40 + + col2 FROM tab0 AS cor0
----
-39
-7
42

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab0 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to 283f1c907a0999dbd972d3bd45746c06

onlyif mysql # use DIV operator for integer division
query I rowsort label-9197
SELECT ALL + col1 + cor0.col2 * col1 DIV + col2 FROM tab1 AS cor0
----
20
26
52

skipif mysql # not compatible
query I rowsort label-9197
SELECT ALL + col1 + cor0.col2 * col1 / + col2 FROM tab1 AS cor0
----
20
26
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col2 col2 FROM tab1
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col2 col1 FROM tab0, tab2, tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-9200
SELECT + 86 DIV - col0 AS col0 FROM tab2 AS cor0
----
-1
-1
-12

skipif mysql # not compatible
query I rowsort label-9200
SELECT + 86 / - col0 AS col0 FROM tab2 AS cor0
----
-1
-1
-12

query I rowsort
SELECT 58 AS col2 FROM tab1 AS cor0
----
58
58
58

query I rowsort
SELECT + 38 * cor0.col1 + cor0.col2 FROM tab1 AS cor0
----
1042
437
590

query I rowsort
SELECT + 14 AS col0 FROM tab2 AS cor0
----
14
14
14

query I rowsort
SELECT DISTINCT + 87 FROM tab0 AS cor0
----
87

query I rowsort
SELECT ALL 15 AS col2 FROM tab1 AS cor0
----
15
15
15

onlyif mysql # use DIV operator for integer division
query I rowsort label-9206
SELECT - - col1 + + col0 DIV + col0 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-9206
SELECT - - col1 + + col0 / + col0 FROM tab0 AS cor0
----
87
92
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9207
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col1 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9207
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col1 AS col2 FROM tab1
----
NULL

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1, tab1 cor0, tab1 cor1
----
972 values hashing to 635619591835474e6aa6acdff4ab166c

query I rowsort
SELECT + col2 * col2 + col1 FROM tab1 AS cor0
----
2942
3259
9229

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9210
SELECT DISTINCT ( - col1 ) + CAST( NULL AS DECIMAL ) / + 93 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9210
SELECT DISTINCT ( - col1 ) + CAST ( NULL AS REAL ) / + 93 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 34 FROM tab1 AS cor0
----
34

query I rowsort
SELECT DISTINCT - ( - col0 ) FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT ALL - col2 * + 7 AS col0 FROM tab1 AS cor0
----
-378
-399
-672

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 97 col1 FROM tab2, tab1 AS cor0, tab2 AS cor1, tab0, tab2 AS cor2
----
243 values hashing to 611d3670a56910ef3403752a59daf048

query I rowsort
SELECT + cor1.col1 AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + ( - 43 ) col0 FROM tab1 AS cor0
----
11
14
53

query I rowsort
SELECT ALL + col2 * cor0.col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT - tab0.col0 * 73 * - tab0.col0 AS col0 FROM tab0, tab2 AS cor0
----
42048
578233
89425

query I rowsort
SELECT DISTINCT cor0.col0 + - ( col0 ) * 67 FROM tab2 cor0
----
-462
-5148
-5214

onlyif mysql # use DIV operator for integer division
query I rowsort label-9220
SELECT - cor0.col2 DIV cor0.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 734470aeecbccfdb5a335a173fa9f444

skipif mysql # not compatible
query I rowsort label-9220
SELECT - cor0.col2 / cor0.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 734470aeecbccfdb5a335a173fa9f444

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9221
SELECT ALL - CAST( + cor0.col2 AS SIGNED ) + - col0 * 67 AS col1 FROM tab2 AS cor0
----
-496
-5252
-5331

skipif mysql # not compatible
query I rowsort label-9221
SELECT ALL - CAST ( + cor0.col2 AS INTEGER ) + - col0 * 67 AS col1 FROM tab2 AS cor0
----
-496
-5252
-5331

query I rowsort
SELECT DISTINCT 79 AS col2 FROM tab2, tab0 AS cor0
----
79

query I rowsort
SELECT col1 + 67 FROM tab0 AS cor0
----
153
158
164

onlyif mysql # use DIV operator for integer division
query I rowsort label-9224
SELECT 33 * + 98 + - cor0.col2 DIV - ( - col1 ) FROM tab2 AS cor0
----
3232
3234
3234

skipif mysql # not compatible
query I rowsort label-9224
SELECT 33 * + 98 + - cor0.col2 / - ( - col1 ) FROM tab2 AS cor0
----
3232
3234
3234

query I rowsort
SELECT cor0.col0 + col1 * col0 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT col0 * 9 + - col0 * ( col0 ) AS col1 FROM tab1 AS cor0
----
-3520
-5680
18

query I rowsort
SELECT 65 FROM tab2, tab1 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query IIIIIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab2, tab1 AS cor1
----
243 values hashing to 877a8dbac0e29b86e845fb64ed9d2242

query I rowsort
SELECT + 65 AS col2 FROM tab2, tab0, tab1 AS cor0, tab1
----
81 values hashing to 1654646feeae82f39d2f564fe4ea26c2

onlyif mysql # use DIV operator for integer division
query I rowsort label-9230
SELECT + col1 DIV 80 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9230
SELECT + col1 / 80 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ( - col1 ) * tab0.col1 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT + col1 + + cor0.col0 FROM tab0 AS cor0
----
110
132
180

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9233
SELECT CAST( NULL AS SIGNED ) + - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9233
SELECT CAST ( NULL AS INTEGER ) + - col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9234
SELECT col2 + col1 * - tab0.col2 + + 35 DIV + col2 FROM tab0
----
-2804
-61
-7380

skipif mysql # not compatible
query I rowsort label-9234
SELECT col2 + col1 * - tab0.col2 + + 35 / + col2 FROM tab0
----
-2804
-61
-7380

query I rowsort
SELECT DISTINCT + 83 - - col1 AS col0 FROM tab1
----
109
93
96

query I rowsort
SELECT - col1 * 97 + + col0 FROM tab2 AS cor0
----
-1570
-3000
-5645

query I rowsort
SELECT col1 * + col2 + - col1 * 70 * - 17 AS col2 FROM tab0
----
105178
115527
115752

query I rowsort
SELECT ALL - col1 + - col2 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT ALL + 26 * 46 FROM tab1, tab0 cor0, tab2 AS cor1
----
27 values hashing to 5726eb86ecf27ec5560f4af7aa924663

query I rowsort
SELECT DISTINCT + cor0.col2 * + col1 + col2 FROM tab2 AS cor0
----
1560
684
864

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9241
SELECT - col0 * + cor0.col1 * col2 + col1 * col0 / CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9241
SELECT - col0 * + cor0.col1 * col2 + col1 * col0 / CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9242
SELECT - 24 * 44 DIV + col2 AS col2 FROM tab0
----
-1056
-12
-32

skipif mysql # not compatible
query I rowsort label-9242
SELECT - 24 * 44 / + col2 AS col2 FROM tab0
----
-1056
-12
-32

query I rowsort
SELECT + cor0.col0 * + cor0.col0 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to d2e5241c58e367013a1a203910e000c0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 56 + - tab2.col2 * - col0 + 59 col0 FROM tab2
----
2143
304
3117

query I rowsort
SELECT - cor0.col2 * cor0.col0 FROM tab2, tab0 cor0 CROSS JOIN tab1
----
27 values hashing to 8e23e17c36b823f4c429aaf1de1c2457

query I rowsort
SELECT col1 * - col1 + + col0 AS col1 FROM tab2 AS cor0
----
-210
-3403
-954

query I rowsort
SELECT DISTINCT + col0 * + col2 + + 46 * - cor0.col0 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
-156135
-365256
-94152

query I rowsort
SELECT DISTINCT + col0 + + col1 FROM tab2
----
137
38
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col0 ) + col0 col1 FROM tab0
----
178
48
70

query I rowsort
SELECT col0 * + cor0.col1 + - col2 AS col2 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT DISTINCT - - 51 * + col2 FROM tab2 cor0
----
1326
1377
1938

query I rowsort
SELECT - + ( - col2 ) AS col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL ( col2 ) + col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT - col1 + col2 * col0 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT DISTINCT - col1 + - col2 * - 69 FROM tab1 AS cor0
----
3700
3923
6611

query I rowsort
SELECT DISTINCT + 64 AS col0 FROM tab2, tab2 AS cor0
----
64

query I rowsort
SELECT + tab0.col1 + col1 FROM tab0
----
172
182
194

query I rowsort
SELECT col0 - col0 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 * 15 AS col1 FROM tab2 AS cor0
----
255
465
885

query I rowsort
SELECT ALL + + ( col0 ) + - col1 FROM tab2 cor0
----
-24
19
62

query I rowsort
SELECT ALL + 5 FROM tab1 AS cor0
----
5
5
5

query I rowsort
SELECT ALL 96 * + col0 FROM tab2 AS cor0
----
672
7488
7584

query I rowsort
SELECT - + col0 + - col0 * col2 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT DISTINCT - 10 FROM tab2 cor0
----
-10

query I rowsort
SELECT DISTINCT - + 81 * 29 * col0 AS col2 FROM tab2 AS cor0
----
-16443
-183222
-185571

query I rowsort
SELECT DISTINCT + - col2 + col0 FROM tab2 AS cor0
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-9267
SELECT DISTINCT + col0 DIV - col0 AS col2 FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9267
SELECT DISTINCT + col0 / - col0 AS col2 FROM tab2 cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col0 col2 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT + cor0.col1 * cor0.col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT DISTINCT + + col0 + 46 FROM tab2 AS cor0
----
124
125
53

query I rowsort
SELECT + 65 AS col1 FROM tab2 AS cor0
----
65
65
65

query I rowsort
SELECT + - col0 + col1 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT ALL 41 * 2 AS col0 FROM tab2 cor0
----
82
82
82

query I rowsort
SELECT DISTINCT - col2 + cor0.col2 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT 40 FROM tab2, tab2 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT ALL + + col0 * + 62 AS col0 FROM tab1 AS cor0
----
186
3968
4960

onlyif mysql # use DIV operator for integer division
query I rowsort label-9277
SELECT DISTINCT - cor0.col0 DIV col1 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9277
SELECT DISTINCT - cor0.col0 / col1 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + cor0.col1 + 68 * + col2 + - col1 AS col2 FROM tab1 AS cor0
----
3672
3876
6528

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 * cor0.col0 col2 FROM tab0 cor0
----
1225
576
7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * - 92 * ( - col0 ) col2 FROM tab1 AS cor0
----
58880
7176
95680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9281
SELECT DISTINCT + col2 + - CAST( col0 AS SIGNED ) FROM tab2
----
-41
-52
20

skipif mysql # not compatible
query I rowsort label-9281
SELECT DISTINCT + col2 + - CAST ( col0 AS INTEGER ) FROM tab2
----
-41
-52
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-9282
SELECT ALL col1 + ( - 91 ) * - tab0.col1 + - col2 DIV + col0 FROM tab0
----
7911
8372
8924

skipif mysql # not compatible
query I rowsort label-9282
SELECT ALL col1 + ( - 91 ) * - tab0.col1 + - col2 / + col0 FROM tab0
----
7911
8372
8924

onlyif mysql # use DIV operator for integer division
query I rowsort label-9283
SELECT ALL col0 DIV tab1.col0 + col0 * - tab1.col1 * col2 FROM tab1
----
-36479
-4211
-99839

skipif mysql # not compatible
query I rowsort label-9283
SELECT ALL col0 / tab1.col0 + col0 * - tab1.col1 * col2 FROM tab1
----
-36479
-4211
-99839

query I rowsort
SELECT 87 + ( + col2 ) AS col2 FROM tab2 AS cor0
----
113
114
125

query I rowsort
SELECT - + 63 * col0 AS col0 FROM tab1 cor0
----
-189
-4032
-5040

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9286
SELECT + + 31 * ( - col2 ) + + CAST( NULL AS SIGNED ) * - col2 + + col1 * - ( - ( - cor0.col0 ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9286
SELECT + + 31 * ( - col2 ) + + CAST ( NULL AS INTEGER ) * - col2 + + col1 * - ( - ( - cor0.col0 ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 * + 19 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to bb00ad656ecb1f86e668d1fef0b986f3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9288
SELECT ALL col1 / CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9288
SELECT ALL col1 / CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + 97 * - col0 AS col1 FROM tab2
----
-672
-7488
-7584

query I rowsort
SELECT ALL col2 * - col0 + - 78 FROM tab0
----
-113
-7376
-870

query I rowsort
SELECT ALL - col0 * - 35 FROM tab1
----
105
2240
2800

query I rowsort
SELECT - 32 * col1 FROM tab0 AS cor0
----
-2752
-2912
-3104

query I rowsort
SELECT ALL + ( + col2 ) AS col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT + 55 * + col2 + col1 AS col1 FROM tab0 AS cor0
----
152
1901
4601

query I rowsort
SELECT - - col0 * + col2 AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT + 18 * - 54 + col2 FROM tab0
----
-890
-939
-971

query I rowsort
SELECT DISTINCT - ( tab0.col1 + + col2 ) FROM tab0
----
-119
-173
-98

query I rowsort
SELECT ALL - ( + 98 ) FROM tab0
----
-98
-98
-98

query I rowsort
SELECT 95 AS col1 FROM tab2
----
95
95
95

query I rowsort
SELECT ALL 22 FROM tab1
----
22
22
22

query I rowsort
SELECT DISTINCT 41 AS col0 FROM tab2 cor0
----
41

query I rowsort
SELECT DISTINCT - - 5 + col2 * ( col1 ) * col0 FROM tab0 AS cor0
----
3400
664123
68117

query I rowsort
SELECT - col1 * + col0 + 52 FROM tab1 AS cor0
----
-26
-588
-988

query I rowsort
SELECT ALL - + col1 + col0 AS col1 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT ALL col1 * - col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT 40 + - cor0.col2 FROM tab0 AS cor0
----
-42
39
7

query I rowsort
SELECT - ( - col0 ) AS col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT + 33 + + col1 * col0 + col2 FROM tab2 cor0
----
1414
277
4661

query I rowsort
SELECT DISTINCT ( col2 ) AS col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL - - 45 AS col1 FROM tab2 AS cor0
----
45
45
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-9311
SELECT + + col2 + - col1 DIV ( col0 + + cor0.col0 ) FROM tab2 cor0
----
25
26
38

skipif mysql # not compatible
query I rowsort label-9311
SELECT + + col2 + - col1 / ( col0 + + cor0.col0 ) FROM tab2 cor0
----
25
26
38

query I rowsort
SELECT DISTINCT + col0 + col0 * + 22 FROM tab0 AS cor0
----
2047
552
805

query I rowsort
SELECT DISTINCT + 54 * col1 FROM tab0 cor0
----
4644
4914
5238

query I rowsort
SELECT ALL 63 AS col2 FROM tab1 AS cor0
----
63
63
63

query I rowsort
SELECT col2 * - col1 * + col2 FROM tab0 AS cor0
----
-611884
-93654
-97

query I rowsort
SELECT DISTINCT - 23 AS col1 FROM tab1
----
-23

query I rowsort
SELECT DISTINCT - 33 AS col2 FROM tab0
----
-33

query I rowsort
SELECT ALL col1 + col0 AS col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT 6 + 33 FROM tab2, tab0 cor0, tab1 AS cor1
----
27 values hashing to ed2ebd9def3e2c38aa46cb3af60fe229

query I rowsort
SELECT - 78 AS col2 FROM tab2
----
-78
-78
-78

query I rowsort
SELECT + 72 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7

query I rowsort
SELECT col0 * + 72 FROM tab1 AS cor0
----
216
4608
5760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9323
SELECT - col1 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9323
SELECT - col1 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab0, tab0 AS cor1, tab2 AS cor2
----
972 values hashing to d41be7437523f0dba2158c7f0439f329

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 6 col1 FROM tab2 AS cor0
----
42
468
474

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + ( col2 ) * cor0.col1 col1 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT + 42 * col1 + col0 + - col0 * - 33 AS col1 FROM tab1 AS cor0
----
1194
2596
3266

query I rowsort
SELECT + - 19 * 67 + - col2 + - 42 AS col2 FROM tab0 AS cor0
----
-1316
-1348
-1397

query I rowsort
SELECT DISTINCT cor0.col1 * 76 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
6536
6916
7372

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col2 col0 FROM tab1
----
1248
1404
570

query I rowsort
SELECT - tab2.col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT - 51 + - cor0.col1 - + cor0.col0 FROM tab1 AS cor0
----
-125
-144
-80

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-9334
SELECT + ( - cor0.col0 ) + col0 DIV - col0 + col0 * - col1 * + 82 FROM tab1 AS cor0
----
-52545
-6400
-85361

skipif mysql # not compatible
query I rowsort label-9334
SELECT + ( - cor0.col0 ) + col0 / - col0 + col0 * - col1 * + 82 FROM tab1 AS cor0
----
-52545
-6400
-85361

query I rowsort
SELECT DISTINCT cor0.col0 * - 19 FROM tab1 AS cor0
----
-1216
-1520
-57

query I rowsort
SELECT - 34 + 98 AS col1 FROM tab1 cor0
----
64
64
64

query I rowsort
SELECT + - col0 + cor0.col0 * + col1 AS col0 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT - col2 + - col0 * - col0 AS col0 FROM tab2
----
22
6058
6203

onlyif mysql # use DIV operator for integer division
query I rowsort label-9339
SELECT col2 DIV + 29 + cor0.col2 DIV + col0 FROM tab0 AS cor0
----
0
2
2

skipif mysql # not compatible
query I rowsort label-9339
SELECT col2 / + 29 + cor0.col2 / + col0 FROM tab0 AS cor0
----
0
2
2

query I rowsort
SELECT + col0 - + 42 AS col2 FROM tab2 cor0
----
-35
36
37

query I rowsort
SELECT + - col0 * col1 * + ( - col0 ) + ( - col0 ) AS col1 FROM tab0 AS cor0
----
118790
49512
720722

query I rowsort
SELECT + col0 * - ( + col1 ) AS col0 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT - col0 * ( col1 * - cor0.col1 ) - cor0.col2 AS col0 FROM tab2 AS cor0
----
22793
271492
6700

query I rowsort
SELECT - cor0.col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT ALL 68 AS col2 FROM tab1 AS cor0
----
68
68
68

query I rowsort
SELECT + cor0.col0 + col1 + - col2 AS col1 FROM tab1 AS cor0
----
-25
-3
17

query I rowsort
SELECT ALL + cor0.col2 * - 0 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9348
SELECT + + CAST( NULL AS SIGNED ) * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9348
SELECT + + CAST ( NULL AS INTEGER ) * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 cor0, tab2 cor1, tab1 AS cor2
----
972 values hashing to 263f0eb7d5dfd4076c74918bc141bd9b

query I rowsort
SELECT DISTINCT - col2 * 16 AS col1 FROM tab0
----
-1312
-16
-528

query IIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 AS cor2
----
972 values hashing to 01a5931cccc3dad8792a1bc6df09c614

query I rowsort
SELECT ALL - - cor0.col0 * - 14 + + col0 FROM tab2 AS cor0
----
-1014
-1027
-91

query I rowsort
SELECT ALL - col1 - ( col1 ) AS col2 FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT ALL col2 + - 41 + - col1 * - col2 FROM tab1 AS cor0
----
1303
1417
586

query I rowsort
SELECT DISTINCT + 8 AS col2 FROM tab1 AS cor0
----
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-9356
SELECT - cor0.col2 - + 68 DIV cor0.col0 AS col0 FROM tab2 AS cor0
----
-26
-36
-38

skipif mysql # not compatible
query I rowsort label-9356
SELECT - cor0.col2 - + 68 / cor0.col0 AS col0 FROM tab2 AS cor0
----
-26
-36
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-9357
SELECT - col1 + col1 DIV - 26 AS col2 FROM tab0 AS cor0
----
-100
-89
-94

skipif mysql # not compatible
query I rowsort label-9357
SELECT - col1 + col1 / - 26 AS col2 FROM tab0 AS cor0
----
-100
-89
-94

query I rowsort
SELECT + 45 + cor0.col1 AS col2 FROM tab0 AS cor0
----
131
136
142

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col0 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT - cor0.col0 FROM tab0, tab2 AS cor0 CROSS JOIN tab1 cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col1 ) col2 FROM tab0
----
86
91
97

query I rowsort
SELECT + col0 + + ( col2 ) * + col1 * cor0.col2 FROM tab1 AS cor0
----
119888
32554
75819

query I rowsort
SELECT - + cor0.col2 * + col2 + col0 * + col1 FROM tab2 AS cor0
----
-101
-512
3926

onlyif mysql # use DIV operator for integer division
query I rowsort label-9364
SELECT + col2 DIV col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9364
SELECT + col2 / col0 FROM tab0 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col2 col0 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT DISTINCT + - col2 + col0 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT ALL + + col1 * + 17 AS col0 FROM tab1 AS cor0
----
170
221
442

query I rowsort
SELECT + col1 * - col2 * col0 AS col0 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT ALL - - col2 * col0 + - col1 AS col1 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT ALL tab1.col2 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT DISTINCT col1 * + col2 AS col0 FROM tab1
----
1248
1404
570

query I rowsort
SELECT 37 FROM tab0
----
37
37
37

query I rowsort
SELECT col1 + + col1 FROM tab0 cor0
----
172
182
194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 74 col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82

query I rowsort
SELECT ALL col2 * col0 AS col0 FROM tab2 cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-9376
SELECT col0 DIV 42 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9376
SELECT col0 / 42 FROM tab1 AS cor0
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor1.col2 col2 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT ALL - cor0.col0 * col0 + col1 FROM tab0 AS cor0
----
-1128
-490
-7830

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9379
SELECT DISTINCT + col0 * CAST( ( - col1 ) + + col0 AS SIGNED ) col0 FROM tab0 AS cor0
----
-1488
-178
-2170

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9379
SELECT DISTINCT + col0 * CAST ( ( - col1 ) + + col0 AS INTEGER ) col0 FROM tab0 AS cor0
----
-1488
-178
-2170

query I rowsort
SELECT col1 + + ( col0 ) FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT DISTINCT + 64 * - cor1.col1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-5504
-5824
-6208

query I rowsort
SELECT + col1 + - col2 AS col0 FROM tab0
----
53
9
96

query I rowsort
SELECT ALL - tab0.col2 * ( col0 ) - - col1 AS col0 FROM tab0
----
-706
-7207
62

query I rowsort
SELECT 51 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5

onlyif mysql # use DIV operator for integer division
query I rowsort label-9385
SELECT + tab0.col2 DIV col1 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9385
SELECT + tab0.col2 / col1 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - 95 * + tab1.col2 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 33b946f8d0ffc1b06b274930e2b28b79

onlyif mysql # use DIV operator for integer division
query I rowsort label-9387
SELECT - col1 DIV 75 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9387
SELECT - col1 / 75 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * - ( 23 ) * col2 col2 FROM tab2 cor0
----
15548
16767
33212

query I rowsort
SELECT col1 + ( + col0 ) FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL + cor0.col2 FROM tab2, tab1 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT - 41 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 47b9ef972839428f4f71d9f5b0944edf

query I rowsort
SELECT + 17 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + 77 col2 FROM tab0
----
110
159
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor1.col0 col1 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT DISTINCT tab1.col0 * col0 * - col0 FROM tab1
----
-262144
-27
-512000

query I rowsort
SELECT ( + tab2.col2 + col1 ) AS col0 FROM tab2
----
55
58
85

query I rowsort
SELECT col0 + 86 * + col2 AS col1 FROM tab2
----
2314
2329
3347

onlyif mysql # use DIV operator for integer division
query I rowsort label-9398
SELECT DISTINCT + col1 DIV col2 + - ( ( col2 ) ) * 17 FROM tab1 AS cor0
----
-1632
-918
-969

skipif mysql # not compatible
query I rowsort label-9398
SELECT DISTINCT + col1 / col2 + - ( ( col2 ) ) * 17 FROM tab1 AS cor0
----
-1632
-918
-969

query I rowsort
SELECT DISTINCT + 0 AS col2 FROM tab2
----
0

query I rowsort
SELECT DISTINCT - tab0.col1 * col2 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT 65 * col2 + tab1.col2 FROM tab1
----
3564
3762
6336

onlyif mysql # use DIV operator for integer division
query I rowsort label-9402
SELECT - 58 + + col1 * cor0.col1 DIV - 81 FROM tab2 AS cor0
----
-100
-61
-69

skipif mysql # not compatible
query I rowsort label-9402
SELECT - 58 + + col1 * cor0.col1 / - 81 FROM tab2 AS cor0
----
-100
-61
-69

query I rowsort
SELECT - col2 + + col2 + + col2 FROM tab2
----
26
27
38

query I rowsort
SELECT ALL 94 * col1 * + ( ( + col1 ) ) AS col2 FROM tab2
----
27166
327214
90334

query I rowsort
SELECT - col0 + cor0.col2 * col2 FROM tab2 AS cor0
----
1365
598
722

query I rowsort
SELECT DISTINCT 63 + + col1 - + 17 FROM tab2 AS cor0
----
105
63
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + + col1 * + 12 col0 FROM tab2 AS cor0
----
166
345
682

query I rowsort
SELECT DISTINCT + + col0 * + col0 * - ( - 52 * + col0 ) + 97 * cor0.col1 AS col0 FROM tab1 AS cor0
----
13632458
26625261
3926

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 col2 + col0 * cor0.col2 col2 FROM tab2 cor0
----
2054
216
3040

query I rowsort
SELECT DISTINCT - + col2 + + col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + + col2 + col1 * col2 AS col0 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT - 48 + - col0 AS col2 FROM tab1 AS cor0
----
-112
-128
-51

query I rowsort
SELECT DISTINCT + 32 * col2 * col2 FROM tab0 AS cor0
----
215168
32
34848

query I rowsort
SELECT ALL 87 FROM tab1 AS cor0
----
87
87
87

query I rowsort
SELECT DISTINCT - - 97 + col2 * cor0.col0 AS col1 FROM tab1 AS cor0
----
259
3745
7777

query I rowsort
SELECT DISTINCT - - col2 + col1 AS col0 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL + - col2 * col0 + + col0 AS col1 FROM tab2 AS cor0
----
-182
-1950
-2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-9419
SELECT 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-9419
SELECT col2 / + col2 col0 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT + ( + col0 ) AS col2 FROM tab2
----
7
78
79

query I rowsort
SELECT + 14 * + 75 AS col2 FROM tab0 AS cor0
----
1050
1050
1050

query I rowsort
SELECT - + 72 AS col2 FROM tab1 AS cor0
----
-72
-72
-72

query I rowsort
SELECT - 4 * - col2 * col2 AS col2 FROM tab2 AS cor0
----
2704
2916
5776

query I rowsort
SELECT - cor0.col0 * col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT + col0 * col0 AS col0 FROM tab1 cor0
----
4096
6400
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-9426
SELECT 90 DIV - 27 + tab0.col2 FROM tab0
----
-2
30
79

skipif mysql # not compatible
query I rowsort label-9426
SELECT 90 / - 27 + tab0.col2 FROM tab0
----
-2
30
79

query I rowsort
SELECT + + 92 AS col1 FROM tab2 AS cor0
----
92
92
92

query I rowsort
SELECT + + 88 * col1 FROM tab1 AS cor0
----
1144
2288
880

query I rowsort
SELECT DISTINCT + ( - 94 + + col1 * + col2 ) FROM tab0
----
2744
3
7368

query I rowsort
SELECT + tab2.col0 * 56 + col1 FROM tab2
----
423
4427
4441

query I rowsort
SELECT DISTINCT 67 * col0 AS col1 FROM tab0
----
1608
2345
5963

query I rowsort
SELECT ALL - ( + col2 ) FROM tab2
----
-26
-27
-38

query I rowsort
SELECT DISTINCT - col1 + col1 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - col2 + + 56 AS col2 FROM tab2 AS cor0
----
18
29
30

onlyif mysql # use DIV operator for integer division
query I rowsort label-9435
SELECT - cor0.col2 DIV - ( col2 ) + col0 * col1 * + cor0.col2 FROM tab1 AS cor0
----
36481
4213
99841

skipif mysql # not compatible
query I rowsort label-9435
SELECT - cor0.col2 / - ( col2 ) + col0 * col1 * + cor0.col2 FROM tab1 AS cor0
----
36481
4213
99841

query I rowsort
SELECT ALL col1 + + col2 * 56 FROM tab2 cor0
----
1515
1543
2145

query I rowsort
SELECT DISTINCT + col0 + - cor0.col2 AS col1 FROM tab0 AS cor0
----
-9
34
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9438
SELECT ALL - - col1 * - CAST( 90 AS SIGNED ) + + col2 AS col2 FROM tab0 AS cor0
----
-7707
-8108
-8729

skipif mysql # not compatible
query I rowsort label-9438
SELECT ALL - - col1 * - CAST ( 90 AS INTEGER ) + + col2 AS col2 FROM tab0 AS cor0
----
-7707
-8108
-8729

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9439
SELECT + col1 * - CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9439
SELECT + col1 * - CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - cor0.col2 * + col1 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL + col1 * + 98 + + 68 * - col0 * + col1 AS col2 FROM tab0 AS cor0
----
-131924
-221354
-541814

query I rowsort
SELECT DISTINCT + col2 + - col2 * cor0.col0 AS col0 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT - col2 * ( ( col2 ) ) + + col0 AS col2 FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT DISTINCT + col0 * col1 + + col2 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT DISTINCT + col1 * + col0 + + ( + col0 + col1 ) * col0 FROM tab1
----
165
5376
8480

query I rowsort
SELECT 37 FROM tab2
----
37
37
37

query I rowsort
SELECT col1 * col1 + - col0 AS col2 FROM tab1
----
36
673
89

query I rowsort
SELECT - tab2.col0 * + col2 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT - - col2 * - col2 + + 26 * col0 FROM tab2 AS cor0
----
-547
1352
610

query I rowsort
SELECT - col1 + col1 + + col0 AS col0 FROM tab2
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-9451
SELECT + col2 DIV col0 + ( col2 ) col0 FROM tab2
----
26
30
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9451
SELECT + col2 / col0 + ( col2 ) col0 FROM tab2
----
26
30
38

query I rowsort
SELECT DISTINCT + tab2.col1 AS col2 FROM tab2
----
17
31
59

query I rowsort
SELECT tab2.col2 * 63 - + col1 AS col0 FROM tab2
----
1579
1670
2377

query I rowsort
SELECT ALL - col2 * 48 FROM tab2 AS cor0
----
-1248
-1296
-1824

onlyif mysql # use DIV operator for integer division
query I rowsort label-9455
SELECT col1 DIV col2 col2 FROM tab0 AS cor0
----
1
2
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9455
SELECT col1 / col2 col2 FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT DISTINCT + + cor0.col2 + col2 * + cor0.col2 FROM tab0 cor0
----
1122
2
6806

query I rowsort
SELECT - col0 * ( + 15 + - col2 ) AS col0 FROM tab1 AS cor0
----
117
2688
6480

onlyif mysql # use DIV operator for integer division
query I rowsort label-9458
SELECT + - cor0.col1 DIV col2 + + col2 FROM tab0 AS cor0
----
-96
31
81

skipif mysql # not compatible
query I rowsort label-9458
SELECT + - cor0.col1 / col2 + + col2 FROM tab0 AS cor0
----
-96
31
81

query I rowsort
SELECT ALL col1 * - 48 * col1 AS col2 FROM tab0
----
-355008
-397488
-451632

query I rowsort
SELECT ALL + 87 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT col2 * 35 FROM tab2
----
1330
910
945

query I rowsort
SELECT + col2 + - 24 FROM tab1 AS cor0
----
30
33
72

query I rowsort
SELECT col1 * col1 * col2 FROM tab2
----
10982
25947
90506

query I rowsort
SELECT - cor0.col1 + cor0.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 81a5cd95f3bf6bcb4ae24bb35bb8df50

query I rowsort
SELECT - cor0.col0 * + col0 + cor0.col1 AS col1 FROM tab0 AS cor0
----
-1128
-490
-7830

query I rowsort
SELECT col0 + 61 FROM tab2 AS cor0
----
139
140
68

onlyif mysql # use DIV operator for integer division
query I rowsort label-9467
SELECT + col0 DIV col1 AS col1 FROM tab2 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-9467
SELECT + col0 / col1 AS col1 FROM tab2 AS cor0
----
0
1
4

query I rowsort
SELECT 5 AS col1 FROM tab1
----
5
5
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col1 * col0 + 7 col2 FROM tab0
----
2071
3402
8106

query I rowsort
SELECT 37 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9471
SELECT - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9471
SELECT - CAST ( NULL AS REAL ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT + 93 + col0 FROM tab2
----
100
171
172

query I rowsort
SELECT ALL - - col1 - + col0 AS col0 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT 54 + - cor0.col2 FROM tab2 AS cor0
----
16
27
28

onlyif mysql # use DIV operator for integer division
query I rowsort label-9475
SELECT ALL - ( col0 ) DIV - ( col2 + + col1 ) AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9475
SELECT ALL - ( col0 ) / - ( col2 + + col1 ) AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 + col0 FROM tab1 AS cor0
----
128
160
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-9477
SELECT - col1 + cor0.col0 DIV - ( - col2 * col0 + + ( cor0.col1 ) ) FROM tab1 cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-9477
SELECT - col1 + cor0.col0 / - ( - col2 * col0 + + ( cor0.col1 ) ) FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT + cor0.col2 AS col1 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT ALL + col0 - - col1 * + 40 AS col0 FROM tab2 AS cor0
----
1247
2438
759

query I rowsort
SELECT - + ( col0 ) FROM tab1 cor0
----
-3
-64
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9481
SELECT DISTINCT - - col1 * col0 + CAST( + col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
1136
132
697

skipif mysql # not compatible
query I rowsort label-9481
SELECT DISTINCT - - col1 * col0 + CAST ( + col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT DISTINCT + 62 AS col2 FROM tab0
----
62

query I rowsort
SELECT - col2 + col2 FROM tab1 cor0
----
0
0
0

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 cor0, tab1 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to 08000767d0a951e4a7a7f8edda07fb64

onlyif mysql # use DIV operator for integer division
query I rowsort label-9485
SELECT + col0 + + col1 DIV col0 AS col1 FROM tab2 AS cor0
----
11
78
79

skipif mysql # not compatible
query I rowsort label-9485
SELECT + col0 + + col1 / col0 AS col1 FROM tab2 AS cor0
----
11
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-9486
SELECT ALL col1 + 77 DIV - 38 AS col1 FROM tab1 AS cor0
----
11
24
8

skipif mysql # not compatible
query I rowsort label-9486
SELECT ALL col1 + 77 / - 38 AS col1 FROM tab1 AS cor0
----
11
24
8

query I rowsort
SELECT + cor0.col0 + + 54 FROM tab2 AS cor0
----
132
133
61

query I rowsort
SELECT - - cor0.col2 + col1 * - col1 FROM tab1 cor0
----
-43
-622
-73

query I rowsort
SELECT - - col0 * - 24 * cor0.col1 + - col1 AS col2 FROM tab1 AS cor0
----
-15370
-1898
-24973

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 + col2 col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT DISTINCT - 11 + col2 * + ( col2 ) + col0 AS col0 FROM tab0 AS cor0
----
1102
25
6802

query I rowsort
SELECT ALL + col1 + col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT 84 FROM tab2 AS cor0
----
84
84
84

query I rowsort
SELECT ALL + 18 * + col1 * col2 + + 23 AS col2 FROM tab1 AS cor0
----
10283
22487
25295

query I rowsort
SELECT ALL ( - 93 ) FROM tab0
----
-93
-93
-93

query I rowsort
SELECT DISTINCT - + cor0.col0 * - col1 * 77 AS col0 FROM tab1 cor0
----
49280
6006
80080

query I rowsort
SELECT ALL 97 FROM tab0
----
97
97
97

query I rowsort
SELECT DISTINCT 34 AS col2 FROM tab1
----
34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9499
SELECT DISTINCT CAST( col2 AS SIGNED ) FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-9499
SELECT DISTINCT CAST ( col2 AS INTEGER ) FROM tab2
----
26
27
38

query I rowsort
SELECT ALL + 45 - - col2 AS col0 FROM tab0
----
127
46
78

query I rowsort
SELECT DISTINCT - - col2 * + col2 + 9 FROM tab0 cor0
----
10
1098
6733

query I rowsort
SELECT DISTINCT + 98 * col1 + 15 AS col0 FROM tab0 AS cor0
----
8443
8933
9521

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * col0 * + ( col2 * + col1 ) col0 FROM tab1 AS cor0
----
-109512
-1297920
-364800

query I rowsort
SELECT col1 * + col0 + ( cor0.col1 ) FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT ALL - 51 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
357
3978
4029

query I rowsort
SELECT DISTINCT 9 * col1 + + 49 FROM tab0 AS cor0
----
823
868
922

query I rowsort
SELECT col1 * - col1 - - col0 * + col0 FROM tab1 AS cor0
----
-667
3996
6231

query I rowsort
SELECT + 37 + col0 * 48 FROM tab1 AS cor0
----
181
3109
3877

query I rowsort
SELECT ALL - col2 + + ( col0 * col2 ) FROM tab0
----
34
7216
759

query I rowsort
SELECT + + cor0.col2 + - cor0.col1 * col1 FROM tab2 AS cor0
----
-251
-3455
-934

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 + - cor0.col2 * 10 FROM tab0 AS cor0
----
-10
-330
-820

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 AS cor2
----
972 values hashing to 263f0eb7d5dfd4076c74918bc141bd9b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9514
SELECT + col2 + - CAST( - col1 AS SIGNED ) * col2 * col0 AS col1 FROM tab0
----
3396
664200
68145

skipif mysql # not compatible
query I rowsort label-9514
SELECT + col2 + - CAST ( - col1 AS INTEGER ) * col2 * col0 AS col1 FROM tab0
----
3396
664200
68145

query I rowsort
SELECT + ( + col0 ) * col2 AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT - 57 + + cor0.col1 AS col0 FROM tab0 cor0
----
29
34
40

query I rowsort
SELECT + 90 AS col2 FROM tab2
----
90
90
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-9518
SELECT DISTINCT col0 DIV col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9518
SELECT DISTINCT col0 / col0 FROM tab2 AS cor0
----
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-9519
SELECT ALL - 98 DIV cor0.col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 6b8fd3f6a7d79fcda1564774aa75ad00

skipif mysql # not compatible
query I rowsort label-9519
SELECT ALL - 98 / cor0.col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 6b8fd3f6a7d79fcda1564774aa75ad00

query I rowsort
SELECT DISTINCT - + ( col2 ) AS col0 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT ALL - 95 + col1 * col1 FROM tab2 AS cor0
----
194
3386
866

query I rowsort
SELECT - + cor0.col0 AS col0 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT - - col2 * cor0.col0 AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT + - ( + 82 ) FROM tab0 cor0
----
-82
-82
-82

query I rowsort
SELECT DISTINCT + - 39 * - ( - col0 ) * 59 FROM tab0 AS cor0
----
-204789
-55224
-80535

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9526
SELECT ALL - CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-9526
SELECT ALL - CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT - 49 * - col2 AS col0 FROM tab1 AS cor0
----
2646
2793
4704

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9528
SELECT + CAST( NULL AS SIGNED ) + + ( - cor0.col0 ) / - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9528
SELECT + CAST ( NULL AS INTEGER ) + + ( - cor0.col0 ) / - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * 8 * + col2 FROM tab2 AS cor0
----
11552
5408
5832

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9530
SELECT - CAST( col1 AS SIGNED ) + col0 col2 FROM tab2
----
-24
19
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9530
SELECT - CAST ( col1 AS INTEGER ) + col0 col2 FROM tab2
----
-24
19
62

query I rowsort
SELECT ALL - cor0.col0 * + cor0.col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT cor0.col1 * col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT ALL - + ( col1 ) AS col0 FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT ALL + 87 FROM tab1 AS cor0
----
87
87
87

query I rowsort
SELECT - 21 * cor0.col0 * col0 AS col0 FROM tab2 AS cor0
----
-1029
-127764
-131061

query I rowsort
SELECT DISTINCT col1 + - col1 AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col2 * + 49 FROM tab0 AS cor0
----
1617
4018
49

onlyif mysql # use DIV operator for integer division
query I rowsort label-9538
SELECT DISTINCT 19 DIV + 82 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9538
SELECT DISTINCT 19 / + 82 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + ( col0 ) - col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT - + 87 * - col0 * + col1 FROM tab1 AS cor0
----
55680
6786
90480

query I rowsort
SELECT ALL - col2 * col0 * - col0 - - 44 FROM tab2 cor0
----
1367
158228
237202

query I rowsort
SELECT DISTINCT - ( - 82 ) * + cor0.col2 + col2 FROM tab2 AS cor0
----
2158
2241
3154

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col0 col1 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT - cor0.col1 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 37 * col0 - + col0 col0 FROM tab2 AS cor0
----
-266
-2964
-3002

query I rowsort
SELECT ( col0 ) * + col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT col0 * cor0.col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT + col1 * + 60 - + col1 AS col0 FROM tab2
----
1003
1829
3481

query I rowsort
SELECT DISTINCT - 50 FROM tab2
----
-50

onlyif mysql # use DIV operator for integer division
query I rowsort label-9550
SELECT - 18 DIV - 51 + + col2 AS col2 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-9550
SELECT - 18 / - 51 + + col2 AS col2 FROM tab0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - 19 * ( col2 ) col2 FROM tab1 AS cor0
----
-1052
-1093
-1837

query I rowsort
SELECT ALL + + col0 * 46 + - col1 FROM tab0 AS cor0
----
1018
1513
4003

query I rowsort
SELECT ALL - col1 + - col0 * col0 FROM tab1 AS cor0
----
-35
-4106
-6413

query I rowsort
SELECT - 22 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 647e567609c5ada1d3454d2102819bfe

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 1 col0 FROM tab2, tab1 cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query I rowsort
SELECT DISTINCT - col1 * 7 FROM tab2 AS cor0
----
-119
-217
-413

query I rowsort
SELECT - col2 + + col1 AS col2 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT + - col2 + col2 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col0 + + 8 FROM tab0 AS cor0
----
32
43
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col1 col0 FROM tab0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-9561
SELECT col1 * col1 DIV - col0 FROM tab2
----
-137
-3
-44

skipif mysql # not compatible
query I rowsort label-9561
SELECT col1 * col1 / - col0 FROM tab2
----
-137
-3
-44

query I rowsort
SELECT - col1 - - ( + 42 ) FROM tab1 AS cor0
----
16
29
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-9563
SELECT ALL cor0.col1 DIV cor0.col2 + col2 DIV + col2 AS col1 FROM tab0 AS cor0
----
2
3
98

skipif mysql # not compatible
query I rowsort label-9563
SELECT ALL cor0.col1 / cor0.col2 + col2 / + col2 AS col1 FROM tab0 AS cor0
----
2
3
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9564
SELECT DISTINCT cor0.col0 * CAST( NULL AS SIGNED ) + col1 * col2 * 24 + 85 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9564
SELECT DISTINCT cor0.col0 * CAST ( NULL AS INTEGER ) + col1 * col2 * 24 + 85 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT cor0.col0 + col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT ALL col1 * - col0 * 19 AS col1 FROM tab0 AS cor0
----
-153881
-39216
-64505

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col1 * + ( - col1 ) + - col2 col1 FROM tab1
----
-157
-265
-730

query I rowsort
SELECT col2 * 11 FROM tab2
----
286
297
418

query I rowsort
SELECT DISTINCT - tab0.col0 + col0 + tab0.col0 FROM tab0
----
24
35
89

query I rowsort
SELECT - col0 + col0 - col0 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT DISTINCT + col2 * + 84 + 24 + col2 FROM tab1
----
4614
4869
8184

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 * + 75 col2 FROM tab2 AS cor0
----
1275
2325
4425

query I rowsort
SELECT - col0 + + cor0.col0 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - + col0 * cor0.col2 FROM tab2 AS cor0
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * - cor0.col1 col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT + col2 * + col2 AS col0 FROM tab1
----
2916
3249
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - cor1.col2 ) col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9578
SELECT ALL tab1.col1 * col1 + tab1.col1 + col0 * - CAST( col2 + col1 AS SIGNED ) FROM tab1
----
-4178
-8538
462

skipif mysql # not compatible
query I rowsort label-9578
SELECT ALL tab1.col1 * col1 + tab1.col1 + col0 * - CAST ( col2 + col1 AS INTEGER ) FROM tab1
----
-4178
-8538
462

query I rowsort
SELECT col0 * col1 + + 39 FROM tab2
----
1382
256
4641

onlyif mysql # use DIV operator for integer division
query I rowsort label-9580
SELECT DISTINCT tab0.col2 DIV col2 + - col0 * col0 AS col0 FROM tab0
----
-1224
-575
-7920

skipif mysql # not compatible
query I rowsort label-9580
SELECT DISTINCT tab0.col2 / col2 + - col0 * col0 AS col0 FROM tab0
----
-1224
-575
-7920

query I rowsort
SELECT ALL + 65 - 57 FROM tab2, tab1 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query I rowsort
SELECT ALL tab1.col1 + + 63 FROM tab1
----
73
76
89

query I rowsort
SELECT DISTINCT col1 * tab1.col0 + tab1.col0 + col1 FROM tab1
----
107
1133
714

query I rowsort
SELECT - 2 FROM tab0
----
-2
-2
-2

query I rowsort
SELECT DISTINCT - - col0 + col1 * col2 + - cor0.col0 AS col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - 33 AS col0 FROM tab0 AS cor0
----
-33
-33
-33

query I rowsort
SELECT 7 FROM tab1, tab0 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * ( col1 ) col0 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-9589
SELECT ALL col0 DIV col0 + 47 FROM tab0 AS cor0
----
48
48
48

skipif mysql # not compatible
query I rowsort label-9589
SELECT ALL col0 / col0 + 47 FROM tab0 AS cor0
----
48
48
48

query I rowsort
SELECT DISTINCT + col1 - col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + col1 + col0 * + col0 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT DISTINCT + col2 + 70 AS col2 FROM tab0 cor0
----
103
152
71

query I rowsort
SELECT ALL - col0 * - 46 AS col0 FROM tab2 AS cor0
----
322
3588
3634

query I rowsort
SELECT col2 + 67 AS col2 FROM tab0 AS cor0
----
100
149
68

onlyif mysql # use DIV operator for integer division
query I rowsort label-9595
SELECT ALL col2 + col1 DIV - col1 FROM tab2 AS cor0
----
25
26
37

skipif mysql # not compatible
query I rowsort label-9595
SELECT ALL col2 + col1 / - col1 FROM tab2 AS cor0
----
25
26
37

query I rowsort
SELECT 38 FROM tab2, tab2 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT ALL - ( - 16 * col0 ) + 5 FROM tab0
----
1429
389
565

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0, tab1 AS cor0, tab1 cor1
----
972 values hashing to 7864aada86bf5bf5e1621c7905de8dcd

query I rowsort
SELECT + ( - col1 ) + cor0.col0 AS col0 FROM tab2 AS cor0
----
-24
19
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-9600
SELECT ALL - cor0.col0 DIV col0 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9600
SELECT ALL - cor0.col0 / col0 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + + 29 + + col1 FROM tab1 AS cor0
----
39
42
55

query I rowsort
SELECT - - 44 * col1 AS col1 FROM tab0 cor0
----
3784
4004
4268

query I rowsort
SELECT col1 + col0 AS col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT DISTINCT cor0.col2 * ( + cor0.col2 ) FROM tab2 cor0
----
1444
676
729

query I rowsort
SELECT - col1 * - 54 * - col0 + 12 FROM tab2 AS cor0
----
-11706
-248496
-72510

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col0 + + cor0.col1 col2 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT ALL - cor0.col0 * - 2 AS col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to a948cb9564f9df3b844d27e9beda0cba

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * + 33 * col2 col0 FROM tab2 AS cor0
----
6237
66924
99066

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9609
SELECT ALL - CAST( NULL AS SIGNED ) * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9609
SELECT ALL - CAST ( NULL AS INTEGER ) * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( cor0.col1 ) + col0 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT col2 + - col1 * + ( col2 ) FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT DISTINCT + col1 * + col1 + col0 AS col0 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT ALL - col0 - + col2 * + col0 FROM tab0 AS cor0
----
-70
-7387
-816

query I rowsort
SELECT ALL col2 * col0 + + col0 + + cor0.col1 FROM tab1 cor0
----
191
3722
7773

query I rowsort
SELECT ALL + - cor0.col2 + + col2 * - ( col1 ) - - col0 * cor0.col2 FROM tab0 AS cor0
----
-2079
-246
-63

query I rowsort
SELECT + 11 FROM tab2
----
11
11
11

query I rowsort
SELECT ALL col2 + col0 * + tab1.col0 AS col0 FROM tab1
----
4153
63
6496

onlyif mysql # use DIV operator for integer division
query I rowsort label-9618
SELECT DISTINCT + 94 * + ( + col2 ) + col0 DIV + col2 FROM tab1
----
5076
5359
9024

skipif mysql # not compatible
query I rowsort label-9618
SELECT DISTINCT + 94 * + ( + col2 ) + col0 / + col2 FROM tab1
----
5076
5359
9024

query I rowsort
SELECT + col2 + - col2 + col2 AS col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT + cor0.col1 + col2 * cor0.col0 AS col2 FROM tab1 AS cor0
----
188
3658
7693

onlyif mysql # use DIV operator for integer division
query I rowsort label-9621
SELECT DISTINCT + col2 DIV - 43 + col0 FROM tab0
----
24
35
88

skipif mysql # not compatible
query I rowsort label-9621
SELECT DISTINCT + col2 / - 43 + col0 FROM tab0
----
24
35
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 43 col1 FROM tab1, tab0 AS cor0, tab1 cor1
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9

query I rowsort
SELECT DISTINCT - 27 * col0 - col2 * + col2 * col0 FROM tab1
----
-209664
-739440
-8829

query I rowsort
SELECT - cor0.col0 + col1 * col1 AS col0 FROM tab0 AS cor0
----
7372
8192
9374

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9625
SELECT - + col0 * col0 + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9625
SELECT - + col0 * col0 + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 * - col2 - ( col2 ) col2 FROM tab2 AS cor0
----
-1254
-858
-891

query I rowsort
SELECT + 78 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT - + col2 * - col1 + cor0.col2 * col0 + col1 FROM tab2 AS cor0
----
1057
3621
3665

query I rowsort
SELECT col1 * col1 - + 74 AS col0 FROM tab1 AS cor0
----
26
602
95

query I rowsort
SELECT col1 * col1 + - col0 * cor0.col0 + + ( cor0.col0 ) AS col1 FROM tab1 AS cor0
----
-3932
-6151
670

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9631
SELECT ALL - col2 / - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9631
SELECT ALL - col2 / - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 71 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 3907e0aa4f29c002120742c4abb3e23a

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9633
SELECT - col1 + CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
-33
-4
21

skipif mysql # not compatible
query I rowsort label-9633
SELECT - col1 + CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT 77 * col0 AS col1 FROM tab1
----
231
4928
6160

query I rowsort
SELECT + col0 * + tab2.col0 FROM tab2
----
49
6084
6241

query I rowsort
SELECT ( col0 ) * col0 * + col0 AS col0 FROM tab2
----
343
474552
493039

query I rowsort
SELECT + 35 * - col2 * - col0 AS col0 FROM tab2
----
105070
6615
70980

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 - + ( + 4 ) FROM tab0 cor0
----
-4
-4
-4

onlyif mysql # use DIV operator for integer division
query I rowsort label-9640
SELECT - col2 * col1 DIV cor0.col0 FROM tab1 AS cor0
----
-15
-468
-8

skipif mysql # not compatible
query I rowsort label-9640
SELECT - col2 * col1 / cor0.col0 FROM tab1 AS cor0
----
-15
-468
-8

query I rowsort
SELECT + ( ( col2 ) ) AS col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT tab1.col2 + - 63 FROM tab1
----
-6
-9
33

query I rowsort
SELECT - ( 45 ) + - col2 * 16 AS col0 FROM tab1 AS cor0
----
-1581
-909
-957

onlyif mysql # use DIV operator for integer division
query I rowsort label-9644
SELECT DISTINCT tab2.col1 DIV - col0 AS col0 FROM tab2
----
-4
0

skipif mysql # not compatible
query I rowsort label-9644
SELECT DISTINCT tab2.col1 / - col0 AS col0 FROM tab2
----
-4
0

query I rowsort
SELECT ALL + 37 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

onlyif mysql # use DIV operator for integer division
query I rowsort label-9646
SELECT - col0 DIV - col0 col0 FROM tab1
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9646
SELECT - col0 / - col0 col0 FROM tab1
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-9647
SELECT ALL + 58 DIV + col1 FROM tab1
----
2
4
5

skipif mysql # not compatible
query I rowsort label-9647
SELECT ALL + 58 / + col1 FROM tab1
----
2
4
5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9648
SELECT CAST( NULL AS SIGNED ) * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9648
SELECT CAST ( NULL AS INTEGER ) * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + 37 * ( + cor0.col0 ) AS col0 FROM tab1 AS cor0
----
-111
-2368
-2960

query I rowsort
SELECT + col0 - - col0 FROM tab2
----
14
156
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col1 col0 FROM tab0
----
110
132
180

query I rowsort
SELECT ALL col0 + + col1 FROM tab2
----
137
38
96

query I rowsort
SELECT - col2 + + tab1.col0 FROM tab1
----
-16
-51
7

query I rowsort
SELECT + col2 * col1 AS col2 FROM tab1
----
1248
1404
570

query I rowsort
SELECT ALL col1 + col2 AS col1 FROM tab2
----
55
58
85

query I rowsort
SELECT DISTINCT col2 + + tab1.col1 AS col2 FROM tab1
----
109
67
80

query I rowsort
SELECT - col2 AS col0 FROM tab2 WHERE col1 * col1 NOT IN ( + col2 )
----
-26
-27
-38

query I rowsort
SELECT + col1 - col2 FROM tab2
----
-21
33
4

query I rowsort
SELECT DISTINCT col1 + col2 AS col1 FROM tab2
----
55
58
85

query I rowsort
SELECT DISTINCT + col2 * - col0 + - col1 FROM tab2 WHERE ( NULL ) >= NULL
----

query I rowsort
SELECT ALL + col0 / - col2 FROM tab2 WHERE NOT col2 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col0 * col2 col2 FROM tab1
----
165
3712
7760

query I rowsort
SELECT DISTINCT - tab0.col2 + - tab0.col0 FROM tab0
----
-171
-36
-57

query I rowsort
SELECT ALL col0 - col2 * + col0 FROM tab1
----
-159
-3584
-7600

query I rowsort
SELECT DISTINCT col1 * - col1 + - col2 AS col1 FROM tab2
----
-327
-3507
-988

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab1 WHERE NOT ( NULL ) < NULL
----

query I rowsort
SELECT col0 + - col2 * + col2 FROM tab2
----
-1365
-598
-722

query I rowsort
SELECT ALL + col0 * + tab0.col2 + + col0 AS col0 FROM tab0
----
70
7387
816

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL < + col0
----

query I rowsort
SELECT - col0 * col2 + col2 * col2 + + col2 * + col0 FROM tab0
----
1
1089
6724

query I rowsort
SELECT DISTINCT col0 + tab1.col0 FROM tab1
----
128
160
6

query I rowsort
SELECT ALL col0 + col1 AS col1 FROM tab1
----
29
74
93

query I rowsort
SELECT col0 * + col1 + - col2 FROM tab0 WHERE ( NULL ) NOT IN ( + col1 )
----

query I rowsort
SELECT + col0 - col1 * + col2 FROM tab0
----
-2814
-62
-7373

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE NOT NULL IN ( col1 )
----

query I rowsort
SELECT col0 + col0 AS col1 FROM tab2
----
14
156
158

query I rowsort
SELECT ALL col1 + + col0 AS col0 FROM tab0
----
110
132
180

query I rowsort
SELECT - col0 * col2 AS col1 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT - col0 + + col2 + tab1.col1 AS col2 FROM tab1
----
29
3
77

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 IN ( - col1 / - col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT col2 + - tab2.col1 FROM tab2
----
-33
-4
21

query I rowsort
SELECT DISTINCT col2 + + col2 * + col0 FROM tab1
----
216
3705
7776

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 BETWEEN NULL AND + col1 + col1
----
79
17
38

query I rowsort
SELECT DISTINCT + col2 + - col1 * + col0 AS col1 FROM tab1
----
-24
-583
-944

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT NULL <> NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-9686
SELECT col0 DIV - col0 col0 FROM tab2
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9686
SELECT col0 / - col0 col0 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT DISTINCT tab0.col2 FROM tab0 WHERE NOT ( - col2 ) NOT BETWEEN NULL AND ( + col1 * col1 )
----

query I rowsort
SELECT ALL tab2.col1 + col2 FROM tab2 WHERE + col0 * col0 >= NULL
----

query I rowsort
SELECT DISTINCT col1 * + col1 / col0 + col2 * - col1 FROM tab2 WHERE NOT col2 BETWEEN + col2 AND col1 + col0 * col0
----

query I rowsort
SELECT + tab0.col0 AS col2 FROM tab0 WHERE NOT col1 * - col2 NOT IN ( col0 + col1 * col0 )
----

query I rowsort
SELECT DISTINCT + col2 * - col2 - + col0 FROM tab0 AS cor0
----
-1113
-36
-6813

query I rowsort
SELECT - tab2.col0 * col0 FROM tab2
----
-49
-6084
-6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-9693
SELECT ALL - col2 DIV - col1 - col2 FROM tab2
----
-26
-27
-36

skipif mysql # not compatible
query I rowsort label-9693
SELECT ALL - col2 / - col1 - col2 FROM tab2
----
-26
-27
-36

onlyif mysql # use DIV operator for integer division
query I rowsort label-9694
SELECT ALL col0 DIV - col0 + - col0 AS col1 FROM tab2
----
-79
-8
-80

skipif mysql # not compatible
query I rowsort label-9694
SELECT ALL col0 / - col0 + - col0 AS col1 FROM tab2
----
-79
-8
-80

query I rowsort
SELECT ALL tab0.col2 * + col0 FROM tab0
----
35
7298
792

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( + col1 )
----

query I rowsort
SELECT ALL col0 * tab1.col1 FROM tab1
----
1040
640
78

query I rowsort
SELECT DISTINCT + tab0.col0 * col1 * + col1 - - col0 AS col1 FROM tab0
----
177528
329350
737098

query I rowsort
SELECT + col0 * - col0 + + col1 AS col0 FROM tab0 AS cor0
----
-1128
-490
-7830

query I rowsort
SELECT - col0 + tab1.col0 + - tab1.col2 * + col1 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT + col0 + + col1 AS col2 FROM tab0
----
110
132
180

query I rowsort
SELECT + col2 * col0 * tab1.col1 + col2 AS col0 FROM tab1
----
36537
4266
99936

query I rowsort
SELECT DISTINCT col1 * - col0 FROM tab1
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-9704
SELECT col0 DIV - col2 AS col2 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9704
SELECT col0 / - col2 AS col2 FROM tab1
----
-1
0
0

query I rowsort
SELECT + col0 + col2 AS col1 FROM tab1
----
121
176
57

query I rowsort
SELECT ALL + cor0.col2 * + col0 AS col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT + cor0.col0 FROM tab2, tab2 cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

onlyif mysql # use DIV operator for integer division
query I rowsort label-9708
SELECT col0 * + col0 + - cor0.col2 * col2 * + col0 + + col1 DIV + col1 FROM tab1 AS cor0
----
-203839
-730879
-8738

skipif mysql # not compatible
query I rowsort label-9708
SELECT col0 * + col0 + - cor0.col2 * col2 * + col0 + + col1 / + col1 FROM tab1 AS cor0
----
-203839
-730879
-8738

query I rowsort
SELECT - cor0.col2 + + col2 FROM tab0 AS cor0
----
0
0
0

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2, tab1 cor1
----
243 values hashing to 4fe4780e49e612b93957f575d9b3e89f

query I rowsort
SELECT col1 * - col1 + col2 FROM tab2
----
-251
-3455
-934

query I rowsort
SELECT ALL - tab1.col1 + + col1 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL - col2 * col0 + - 38 * + col2 + cor0.col0 AS col0 FROM tab2 cor0
----
-1208
-2938
-4367

query I rowsort
SELECT DISTINCT - col0 * col1 - 62 AS col1 FROM tab2 AS cor0
----
-1405
-279
-4664

query I rowsort
SELECT cor0.col1 * + col2 + - col0 * - cor0.col2 AS col1 FROM tab1 cor0
----
1566
4218
8928

query I rowsort
SELECT col2 + - 92 AS col2 FROM tab1 AS cor0
----
-35
-38
4

query I rowsort
SELECT + col1 + - col0 * 56 FROM tab2 AS cor0
----
-361
-4309
-4407

query I rowsort
SELECT DISTINCT + col2 + col2 AS col0 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT ALL - col0 - - ( cor0.col1 ) * col1 AS col0 FROM tab1 AS cor0
----
36
673
89

query I rowsort
SELECT - - col2 * - ( cor0.col2 * col2 + - col2 ) FROM tab1 AS cor0
----
-154548
-181944
-875520

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to a8f0522dfcc0ffd1116145dd0d0134ff

query I rowsort
SELECT + col1 * col2 + col1 AS col2 FROM tab2 AS cor0
----
1593
663
868

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9723
SELECT DISTINCT col0 / - CAST( NULL AS SIGNED ) + + col2 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9723
SELECT DISTINCT col0 / - CAST ( NULL AS INTEGER ) + + col2 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9724
SELECT CAST( 96 AS SIGNED ) + col2 * - 96 FROM tab2 AS cor0
----
-2400
-2496
-3552

skipif mysql # not compatible
query I rowsort label-9724
SELECT CAST ( 96 AS INTEGER ) + col2 * - 96 FROM tab2 AS cor0
----
-2400
-2496
-3552

onlyif mysql # use DIV operator for integer division
query I rowsort label-9725
SELECT DISTINCT + col2 DIV 37 - cor0.col2 AS col0 FROM tab1 AS cor0
----
-53
-56
-94

skipif mysql # not compatible
query I rowsort label-9725
SELECT DISTINCT + col2 / 37 - cor0.col2 AS col0 FROM tab1 AS cor0
----
-53
-56
-94

query I rowsort
SELECT - col0 + - 0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL - 91 * cor0.col0 * cor0.col0 FROM tab2 AS cor0
----
-4459
-553644
-567931

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 col2 FROM tab0 AS cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + 60 col0 FROM tab2 AS cor0
----
1
29
43

query I rowsort
SELECT ALL - tab0.col2 AS col1 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT - col0 * col2 AS col1 FROM tab1 cor0
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT CAST ( + 46 AS REAL ) + + col2 col0 FROM tab1 AS cor0
----
100
103
142

query I rowsort
SELECT ALL - ( - ( cor0.col0 ) ) * - col1 + - col1 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT ALL + + ( col1 ) + + col0 FROM tab2 AS cor0
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-9735
SELECT DISTINCT col0 DIV col2 - col2 * col2 DIV col1 FROM tab1 AS cor0
----
-112
-323
-708

skipif mysql # not compatible
query I rowsort label-9735
SELECT DISTINCT col0 / col2 - col2 * col2 / col1 FROM tab1 AS cor0
----
-112
-323
-708

query I rowsort
SELECT - 67 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab2 cor1, tab1 AS cor2
----
972 values hashing to 92235dbc382d83baa93d6546ed489b0c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * col1 col0 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9739
SELECT ALL + - CAST( NULL AS SIGNED ) + 37 + + col1 col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9739
SELECT ALL + - CAST ( NULL AS INTEGER ) + 37 + + col1 col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 27 + 59 AS col2 FROM tab2 cor0
----
32

query I rowsort
SELECT + col0 + - 26 AS col0 FROM tab2 AS cor0
----
-19
52
53

onlyif mysql # use DIV operator for integer division
query I rowsort label-9742
SELECT + 58 + + col2 DIV + col0 col1 FROM tab1 AS cor0
----
58
59
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9742
SELECT + 58 + + col2 / + col0 col1 FROM tab1 AS cor0
----
58
59
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col1 ) col0 FROM tab2 AS cor0
----
-17
-31
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col1 + - col0 - col1 * tab0.col0 col2 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT col1 + col2 * + ( col1 ) FROM tab1 AS cor0
----
1261
1430
580

onlyif mysql # use DIV operator for integer division
query I rowsort label-9746
SELECT ALL - cor0.col0 DIV col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9746
SELECT ALL - cor0.col0 / col0 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + - col0 * - col2 AS col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL + 81 + col1 FROM tab0 AS cor0
----
167
172
178

query I rowsort
SELECT - ( + col0 ) * col2 FROM tab1 cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-9750
SELECT ALL - 46 + col0 DIV 90 AS col1 FROM tab1 AS cor0
----
-46
-46
-46

skipif mysql # not compatible
query I rowsort label-9750
SELECT ALL - 46 + col0 / 90 AS col1 FROM tab1 AS cor0
----
-46
-46
-46

query I rowsort
SELECT DISTINCT - cor0.col0 AS col2 FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT - col1 * 47 + - 53 AS col1 FROM tab0 cor0
----
-4095
-4330
-4612

query I rowsort
SELECT + col1 + + col0 * + col2 AS col1 FROM tab1 AS cor0
----
188
3658
7693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - cor0.col1 * col2 col0 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT col1 * + col1 + cor0.col0 FROM tab2 AS cor0
----
3559
368
968

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * ( cor0.col0 ) col1 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT - - col2 - 47 * + 80 AS col2 FROM tab2 AS cor0
----
-3722
-3733
-3734

query I rowsort
SELECT 29 * col0 + ( col0 ) AS col2 FROM tab2
----
210
2340
2370

query I rowsort
SELECT - ( + col1 ) * 27 + col1 FROM tab1
----
-260
-338
-676

query I rowsort
SELECT DISTINCT col2 - col0 * ( + col0 ) * col0 AS col0 FROM tab1
----
-262087
-511904
27

query I rowsort
SELECT col0 + tab2.col0 * + col2 + - 83 FROM tab2
----
113
2023
2998

query I rowsort
SELECT + col2 * - col2 * + col1 AS col0 FROM tab0
----
-611884
-93654
-97

query I rowsort
SELECT cor1.col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT + 82 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - 9 col2 FROM tab2
----
-35
-36
-47

query I rowsort
SELECT 65 + - 13 FROM tab1 AS cor0
----
52
52
52

query I rowsort
SELECT 55 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT - col0 + 17 + - col0 AS col1 FROM tab1
----
-111
-143
11

onlyif mysql # use DIV operator for integer division
query I rowsort label-9769
SELECT DISTINCT + tab2.col2 * + tab2.col1 DIV + tab2.col1 + + col2 AS col2 FROM tab2
----
52
54
76

skipif mysql # not compatible
query I rowsort label-9769
SELECT DISTINCT + tab2.col2 * + tab2.col1 / + tab2.col1 + + col2 AS col2 FROM tab2
----
52
54
76

query I rowsort
SELECT 21 * col2 AS col1 FROM tab1
----
1134
1197
2016

query I rowsort
SELECT ALL + 33 * + col1 FROM tab1
----
330
429
858

onlyif mysql # use DIV operator for integer division
query I rowsort label-9772
SELECT ALL 43 DIV col1 AS col0 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-9772
SELECT ALL 43 / col1 AS col0 FROM tab2
----
0
1
2

query I rowsort
SELECT ALL - 93 AS col0 FROM tab0
----
-93
-93
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-9774
SELECT DISTINCT 61 DIV - col0 FROM tab1
----
-20
0

skipif mysql # not compatible
query I rowsort label-9774
SELECT DISTINCT 61 / - col0 FROM tab1
----
-20
0

query I rowsort
SELECT DISTINCT - cor0.col2 * + col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT cor0.col2 * + 85 AS col2 FROM tab0 AS cor0
----
2805
6970
85

query I rowsort
SELECT ALL + - ( cor0.col2 ) FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT + col1 * + 8 FROM tab1 AS cor0
----
104
208
80

query I rowsort
SELECT DISTINCT - ( ( + col2 ) ) AS col1 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT 11 * + tab0.col0 FROM tab0
----
264
385
979

onlyif mysql # use DIV operator for integer division
query I rowsort label-9781
SELECT ALL + - col1 DIV 86 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9781
SELECT ALL + - col1 / 86 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + ( col0 ) + col0 * col0 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT + 61 + col0 AS col0 FROM tab1 AS cor0
----
125
141
64

query I rowsort
SELECT DISTINCT - 74 FROM tab1 AS cor0
----
-74

onlyif mysql # use DIV operator for integer division
query I rowsort label-9785
SELECT - col1 * col2 DIV col2 col2 FROM tab0 AS cor0
----
-86
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9785
SELECT - col1 * col2 / col2 col2 FROM tab0 AS cor0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-9786
SELECT + col1 DIV col0 + CAST( 0 AS SIGNED ) FROM tab1
----
0
0
8

skipif mysql # not compatible
query I rowsort label-9786
SELECT + col1 / col0 + CAST ( 0 AS INTEGER ) FROM tab1
----
0
0
8

query I rowsort
SELECT - col1 * col1 + ( - col2 * - col0 ) FROM tab0
----
-6604
-9374
-983

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 45 col0 FROM tab2
----
45
45
45

query I rowsort
SELECT 59 AS col1 FROM tab2
----
59
59
59

query I rowsort
SELECT DISTINCT - - col0 * col2 * 98 - - col1 * + col0 AS col0 FROM tab0 AS cor0
----
6825
723303
79680

query I rowsort
SELECT ALL + - 71 * col2 - + 7 AS col0 FROM tab2 AS cor0
----
-1853
-1924
-2705

query I rowsort
SELECT DISTINCT 1 AS col0 FROM tab0
----
1

query I rowsort
SELECT col2 + col1 * col0 FROM tab0
----
2097
3396
8181

query I rowsort
SELECT + - col1 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
-55
-58
-85

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 + + col2 * - col2 + col1 * col2 col0 FROM tab0 AS cor0
----
1749
738
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-9797
SELECT DISTINCT cor0.col0 + col0 DIV + cor0.col1 FROM tab1 AS cor0
----
3
70
86

skipif mysql # not compatible
query I rowsort label-9797
SELECT DISTINCT cor0.col0 + col0 / + cor0.col1 FROM tab1 AS cor0
----
3
70
86

query I rowsort
SELECT ALL col0 + + 54 - - col0 * col2 * - col1 AS col1 FROM tab2 cor0
----
-119520
-50901
-5798

query I rowsort
SELECT ALL + + col2 + col0 * col2 FROM tab0 AS cor0
----
36
7380
825

onlyif mysql # use DIV operator for integer division
query I rowsort label-9800
SELECT - col0 DIV col0 + - col2 FROM tab2 AS cor0
----
-27
-28
-39

skipif mysql # not compatible
query I rowsort label-9800
SELECT - col0 / col0 + - col2 FROM tab2 AS cor0
----
-27
-28
-39

query I rowsort
SELECT DISTINCT cor0.col2 * - col0 * col2 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT 52 * 84 FROM tab1, tab0 AS cor0
----
9 values hashing to ea7de11f398d25449fedf96950ce3c07

query I rowsort
SELECT ALL - + col0 * 99 * col0 AS col0 FROM tab2 cor0
----
-4851
-602316
-617859

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col2 - ( - cor0.col0 ) * cor0.col1 col1 FROM tab0 AS cor0
----
15397
2856
3430

query I rowsort
SELECT DISTINCT + cor0.col2 + + ( + col1 ) AS col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT + col2 * - 0 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 32 col1 FROM tab0
----
-32

onlyif mysql # use DIV operator for integer division
query I rowsort label-9808
SELECT ALL col1 + + 21 * col0 DIV + col0 AS col1 FROM tab1 AS cor0
----
31
34
47

skipif mysql # not compatible
query I rowsort label-9808
SELECT ALL col1 + + 21 * col0 / + col0 AS col1 FROM tab1 AS cor0
----
31
34
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + cor0.col0 col1 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT + + col2 * ( col1 ) + col1 - col2 FROM tab2 AS cor0
----
1567
625
841

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - 4 * + col1 * - col2 col0 FROM tab0 AS cor0
----
11385
29930
389

query I rowsort
SELECT ALL + col2 * - col0 AS col1 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT - - col0 * - col2 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT - col1 * + col1 - col1 FROM tab2 AS cor0
----
-306
-3540
-992

query I rowsort
SELECT - col0 * + col2 + + cor0.col2 * col1 FROM tab2 AS cor0
----
-2356
-494
648

query I rowsort
SELECT - col2 * - col1 FROM tab2
----
1534
646
837

query III rowsort
SELECT * FROM tab1 WHERE NULL >= col2 + + col1 AND ( NULL ) <= - col0 * + col2
----

query I rowsort
SELECT col1 - col1 AS col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - - col0 * + col0 + col2 FROM tab2 AS cor0
----
6110
6279
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 * col1 - col0 col0 FROM tab2 cor0
----
-1422
-224
-4680

query I rowsort
SELECT col1 * - col0 + - col1 FROM tab1 AS cor0
----
-104
-1053
-650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + tab2.col2 col2 FROM tab2
----
52
54
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab2.col2 * col0 + + col2 col1 FROM tab2
----
-162
-2002
-2964

query I rowsort
SELECT + + col0 * col2 - cor0.col0 * - col1 AS col1 FROM tab2 AS cor0
----
406
4345
6630

onlyif mysql # use DIV operator for integer division
query I rowsort label-9825
SELECT - col1 + - col1 DIV - col0 AS col1 FROM tab1 AS cor0
----
-10
-13
-18

skipif mysql # not compatible
query I rowsort label-9825
SELECT - col1 + - col1 / - col0 AS col1 FROM tab1 AS cor0
----
-10
-13
-18

onlyif mysql # use DIV operator for integer division
query I rowsort label-9826
SELECT - col0 DIV - col1 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9826
SELECT - col0 / - col1 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + col0 * col2 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL + 19 AS col2 FROM tab2 AS cor0
----
19
19
19

query I rowsort
SELECT - - col1 * col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT + ( col2 ) AS col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT + cor0.col0 AS col2 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT - - col2 + col2 * col2 AS col0 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT DISTINCT cor1.col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
54
57
96

query I rowsort
SELECT + + col1 * col1 AS col0 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT + 40 FROM tab2
----
40
40
40

query I rowsort
SELECT ALL col1 * - col0 * - tab1.col1 AS col2 FROM tab1
----
13520
2028
6400

query I rowsort
SELECT ALL - col0 * + col1 AS col1 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT + 95 FROM tab1
----
95
95
95

query I rowsort
SELECT ALL + 48 + - col0 FROM tab2
----
-30
-31
41

query I rowsort
SELECT - 77 AS col2 FROM tab1
----
-77
-77
-77

query I rowsort
SELECT DISTINCT + 10 * - col1 + + ( 59 ) FROM tab2
----
-111
-251
-531

query I rowsort
SELECT DISTINCT + col2 * col1 + + col1 + + col1 AS col0 FROM tab0 AS cor0
----
291
3010
7644

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col0 - + col1 col2 FROM tab2 AS cor0
----
-1360
-248
-4661

query I rowsort
SELECT ALL + + col2 * - col1 + - col2 + + col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT + + col2 - col2 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col1 ) + - col1 * col0 * + cor0.col2 col0 FROM tab0 AS cor0
----
-3298
-664027
-68026

onlyif mysql # use DIV operator for integer division
query I rowsort label-9847
SELECT ALL + 26 * + col2 * 95 - col1 DIV col0 col1 FROM tab1 AS cor0
----
133372
140790
237120

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9847
SELECT ALL + 26 * + col2 * 95 - col1 / col0 col1 FROM tab1 AS cor0
----
133372
140790
237120

onlyif mysql # use DIV operator for integer division
query I rowsort label-9848
SELECT - 30 * - col2 + + 34 DIV col0 col0 FROM tab0 AS cor0
----
2460
30
991

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9848
SELECT - 30 * - col2 + + 34 / col0 col0 FROM tab0 AS cor0
----
2460
30
991

onlyif mysql # use DIV operator for integer division
query I rowsort label-9849
SELECT + 96 + col2 + col1 DIV col0 AS col2 FROM tab2 cor0
----
122
127
134

skipif mysql # not compatible
query I rowsort label-9849
SELECT + 96 + col2 + col1 / col0 AS col2 FROM tab2 cor0
----
122
127
134

onlyif mysql # use DIV operator for integer division
query I rowsort label-9850
SELECT DISTINCT cor0.col2 + - col2 * CAST( col1 AS SIGNED ) DIV - col1 AS col1 FROM tab1 AS cor0
----
108
114
192

skipif mysql # not compatible
query I rowsort label-9850
SELECT DISTINCT cor0.col2 + - col2 * CAST ( col1 AS INTEGER ) / - col1 AS col1 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT - - cor0.col0 * + col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT ALL col0 + - 59 AS col2 FROM tab2 AS cor0
----
-52
19
20

query I rowsort
SELECT DISTINCT + cor0.col2 * - col0 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
1225
19008
649522

query I rowsort
SELECT ALL col1 * col2 * + col2 + - col2 * ( col1 ) FROM tab0 cor0
----
0
604422
90816

query I rowsort
SELECT ALL col2 * col0 - col1 AS col1 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT - col1 * - cor0.col1 FROM tab2 cor0
----
289
3481
961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + cor0.col0 * - col1 col1 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT ALL - col1 * ( cor0.col2 ) AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT - col1 + + 51 FROM tab0 AS cor0
----
-35
-40
-46

query I rowsort
SELECT DISTINCT cor0.col0 * 56 + - col0 FROM tab2 cor0
----
385
4290
4345

query I rowsort
SELECT ALL + col2 + ( col0 ) * col2 * + col2 FROM tab1 AS cor0
----
207993
737376
8802

query I rowsort
SELECT ALL + cor0.col1 + ( 19 ) - + col0 AS col1 FROM tab0 AS cor0
----
21
81
81

query I rowsort
SELECT ALL - col0 + 7 AS col1 FROM tab0 cor0
----
-17
-28
-82

query I rowsort
SELECT - 34 * col0 FROM tab0
----
-1190
-3026
-816

query I rowsort
SELECT - 40 FROM tab1
----
-40
-40
-40

query I rowsort
SELECT DISTINCT col1 * + col1 * - 8 + tab2.col1 * + col2 FROM tab2
----
-1666
-26314
-6851

query I rowsort
SELECT + - cor0.col0 + + 45 AS col0 FROM tab2 AS cor0
----
-33
-34
38

query I rowsort
SELECT + cor0.col0 * 22 AS col0 FROM tab2 cor0
----
154
1716
1738

query I rowsort
SELECT 65 AS col1 FROM tab1
----
65
65
65

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9870
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9870
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col0 * + cor0.col1 - + col1 * ( col0 ) AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + - ( 82 ) * col2 AS col0 FROM tab1 AS cor0
----
-4428
-4674
-7872

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 62 col2 FROM tab0 AS cor0
----
62
62
62

query I rowsort
SELECT - col2 * - col1 - + col1 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT + col0 + col1 * - cor0.col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT DISTINCT - col1 + + cor0.col2 AS col0 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT - col2 * cor0.col0 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT + + col1 + col1 + - col1 AS col1 FROM tab2 AS cor0
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 73 * col2 col1 FROM tab1 AS cor0
----
3888
4104
6912

query I rowsort
SELECT DISTINCT - + cor0.col2 AS col0 FROM tab2, tab1, tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ALL - ( 10 ) + col0 * col1 FROM tab2 AS cor0
----
1333
207
4592

query I rowsort
SELECT DISTINCT + 91 + ( col0 * + col2 ) FROM tab2 AS cor0
----
2119
280
3093

query I rowsort
SELECT ALL + + ( + cor0.col0 ) + - col2 AS col0 FROM tab1 AS cor0
----
-16
-51
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-9884
SELECT col1 DIV 43 AS col1 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9884
SELECT col1 / 43 AS col1 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9885
SELECT ALL + ( col2 ) + col2 * - CAST( NULL AS SIGNED ) * + 12 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9885
SELECT ALL + ( col2 ) + col2 * - CAST ( NULL AS INTEGER ) * + 12 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9886
SELECT DISTINCT 3 + col2 DIV cor0.col1 FROM tab2 AS cor0
----
3
5

skipif mysql # not compatible
query I rowsort label-9886
SELECT DISTINCT 3 + col2 / cor0.col1 FROM tab2 AS cor0
----
3
5

query I rowsort
SELECT - 85 FROM tab1 cor0
----
-85
-85
-85

query I rowsort
SELECT ALL 36 FROM tab0
----
36
36
36

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 AS cor2
----
3645 values hashing to b34c9987c389223e07378cde8a36e94f

query I rowsort
SELECT 63 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 38764a6e696d1a6b5095e29ef84959c0

query I rowsort
SELECT DISTINCT - cor0.col1 * + col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT col2 * - col0 AS col0 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT - ( 80 ) - col0 FROM tab0 AS cor0
----
-104
-115
-169

query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
243 values hashing to 70c6a01760d7239f3003db4da92180a4

query I rowsort
SELECT 70 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

query I rowsort
SELECT - - ( col1 ) + - ( - col0 ) AS col1 FROM tab1 AS cor0
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-9897
SELECT ALL - + col0 DIV col0 + - col2 * col0 AS col1 FROM tab1 AS cor0
----
-163
-3649
-7681

skipif mysql # not compatible
query I rowsort label-9897
SELECT ALL - + col0 / col0 + - col2 * col0 AS col1 FROM tab1 AS cor0
----
-163
-3649
-7681

query I rowsort
SELECT 9 + + col0 * col2 + ( col1 ) * + col2 AS col0 FROM tab2 AS cor0
----
1035
3571
3657

query I rowsort
SELECT DISTINCT + + 51 * col0 AS col2 FROM tab1 cor0
----
153
3264
4080

query I rowsort
SELECT col1 * + col1 + ( col2 ) + col1 * col2 * col2 FROM tab1 AS cor0
----
120073
32647
76546

query I rowsort
SELECT - - col2 + cor0.col0 - + ( + 34 + + col0 ) AS col0 FROM tab1 AS cor0
----
20
23
62

query I rowsort
SELECT DISTINCT - - col0 * - col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT col0 + + cor0.col2 * col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT ALL + cor0.col0 + + cor0.col1 * ( - col2 ) FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT + col2 * col0 + + 10 + 80 AS col0 FROM tab2 AS cor0
----
2118
279
3092

query I rowsort
SELECT DISTINCT 12 FROM tab0, tab2 AS cor0
----
12

query I rowsort
SELECT - 85 FROM tab1
----
-85
-85
-85

query I rowsort
SELECT ALL + 18 FROM tab1, tab2, tab2 AS cor0, tab1 cor1
----
81 values hashing to a13db73ec93475d2821cb4a6d0eff298

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9909
SELECT CAST( NULL AS SIGNED ) / - col0 + + col0 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9909
SELECT CAST ( NULL AS INTEGER ) / - col0 + + col0 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 87 - + col2 * + col1 FROM tab2
----
-1621
-733
-924

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col2 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT ALL - 66 FROM tab1, tab0 AS cor0
----
9 values hashing to a408108d423d7784b7d610cb779e515a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col2 FROM tab1, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT + ( - col0 ) + - col2 AS col2 FROM tab0
----
-171
-36
-57

query I rowsort
SELECT ALL - - col2 * cor0.col1 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT 36 FROM tab1 AS cor0
----
36
36
36

query I rowsort
SELECT DISTINCT + ( - col0 ) + 66 AS col0 FROM tab2 AS cor0
----
-12
-13
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-9918
SELECT DISTINCT - col0 DIV - col2 FROM tab1 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-9918
SELECT DISTINCT - col0 / - col2 FROM tab1 cor0
----
0
1

query I rowsort
SELECT DISTINCT - + 41 * - col1 FROM tab1 AS cor0
----
1066
410
533

query I rowsort
SELECT ALL + + 2 * - col0 FROM tab1 cor0
----
-128
-160
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - cor0.col2 - 4 col2 FROM tab1 AS cor0
----
158
3644
7676

query I rowsort
SELECT + - 87 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

query I rowsort
SELECT ALL 78 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to d8e5ef4db3419fc251e82c50ba04e048

query I rowsort
SELECT - col1 - tab0.col2 FROM tab0
----
-119
-173
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 41 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT DISTINCT col1 + ( col0 ) + - col2 AS col1 FROM tab1 cor0
----
-25
-3
17

query I rowsort
SELECT + col0 * ( - tab0.col0 ) + col0 FROM tab0
----
-1190
-552
-7832

query I rowsort
SELECT ALL 68 FROM tab0 AS cor0
----
68
68
68

query I rowsort
SELECT DISTINCT cor0.col1 * + 57 AS col1 FROM tab1 AS cor0
----
1482
570
741

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 8 + col0 col2 FROM tab1 AS cor0
----
-5
56
72

query I rowsort
SELECT DISTINCT + 59 - 21 * - col1 AS col1 FROM tab0 AS cor0
----
1865
1970
2096

query I rowsort
SELECT DISTINCT - 59 + - col2 AS col2 FROM tab0 AS cor0
----
-141
-60
-92

query I rowsort
SELECT + + 10 * - 48 AS col2 FROM tab1 AS cor0
----
-480
-480
-480

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1, tab1 AS cor0, tab0 cor1
----
972 values hashing to 909b7ebab62aff8f69dc42ccbb5c2eae

onlyif mysql # use DIV operator for integer division
query I rowsort label-9935
SELECT DISTINCT tab0.col1 DIV + tab0.col2 FROM tab0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-9935
SELECT DISTINCT tab0.col1 / + tab0.col2 FROM tab0
----
1
2
97

query I rowsort
SELECT DISTINCT + tab2.col2 AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
26
27
38

query I rowsort
SELECT - ( - 79 ) AS col0 FROM tab2
----
79
79
79

query I rowsort
SELECT ALL - ( - col1 ) AS col2 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT DISTINCT 83 AS col1 FROM tab1 AS cor0
----
83

skipif mysql # not compatible
query I rowsort
SELECT + + CAST ( - ( - col0 ) AS REAL ) / col0 AS col2 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT + + col1 * + col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL + col2 * - ( - col1 ) FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT - col1 + 54 * + 61 AS col0 FROM tab0 AS cor0
----
3197
3203
3208

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * ( col2 ) col1 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT DISTINCT 42 FROM tab0, tab1 AS cor0
----
42

query I rowsort
SELECT - + col1 + 33 AS col2 FROM tab2 AS cor0
----
-26
16
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-9947
SELECT + col1 DIV - col2 FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-9947
SELECT + col1 / - col2 FROM tab0 AS cor0
----
-1
-2
-97

query I rowsort
SELECT + 50 - col0 FROM tab0 AS cor0
----
-39
15
26

query I rowsort
SELECT + - col1 + - col0 AS col0 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT DISTINCT + cor0.col1 FROM tab0, tab1 cor0
----
10
13
26

query I rowsort
SELECT cor0.col0 + + col0 FROM tab2 cor0
----
14
156
158

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0, tab0, tab2 AS cor1
----
972 values hashing to d41be7437523f0dba2158c7f0439f329

query I rowsort
SELECT 44 + + tab1.col1 FROM tab1
----
54
57
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-9954
SELECT DISTINCT - tab1.col1 DIV + col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-9954
SELECT DISTINCT - tab1.col1 / + col1 FROM tab1
----
-1

query I rowsort
SELECT DISTINCT + 83 FROM tab0, tab2 AS cor0, tab1 cor1
----
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) col2 FROM tab0
----
86
91
97

query I rowsort
SELECT ALL 35 * - col1 FROM tab2
----
-1085
-2065
-595

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 5 col1 FROM tab1
----
5

query I rowsort
SELECT ALL - + 0 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + ( - col0 ) FROM tab1
----
-3
-64
-80

query I rowsort
SELECT DISTINCT - col2 + cor0.col0 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT - - col0 * ( - 87 ) FROM tab1 AS cor0
----
-261
-5568
-6960

query I rowsort
SELECT DISTINCT - 26 FROM tab2, tab2 AS cor0
----
-26

query I rowsort
SELECT + col0 + - col0 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + tab1.col2 + col2 col0 FROM tab1
----
2970
3306
9312

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 ALL col0 * - 45 FROM tab1
----
-135
-2880
-3600

query I rowsort
SELECT + cor0.col2 * + col0 AS col0 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT - cor0.col0 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

query I rowsort
SELECT - col1 * ( - 72 ) * + col0 FROM tab1 AS cor0
----
46080
5616
74880

query I rowsort
SELECT col2 * + col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT 29 FROM tab1
----
29

query I rowsort
SELECT + 85 FROM tab2
----
85
85
85

query I rowsort
SELECT 37 FROM tab2, tab1 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query I rowsort
SELECT 76 + col2 * + col1 FROM tab1 AS cor0
----
1324
1480
646

query I rowsort
SELECT - + 14 FROM tab0 AS cor0
----
-14
-14
-14

onlyif mysql # use DIV operator for integer division
query I rowsort label-9977
SELECT - + col2 DIV col2 + col2 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-9977
SELECT - + col2 / col2 + col2 FROM tab0 AS cor0
----
0
32
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9978
SELECT ALL CAST( NULL AS SIGNED ) * col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9978
SELECT ALL CAST ( NULL AS INTEGER ) * col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col0 col1 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT + 78 AS col1 FROM tab0
----
78

query I rowsort
SELECT col2 * col1 AS col0 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT - 93 + - col1 AS col0 FROM tab2 cor0
----
-110
-124
-152

query I rowsort
SELECT + col2 * - cor0.col2 + + 26 AS col0 FROM tab1 cor0
----
-2890
-3223
-9190

query I rowsort
SELECT + cor0.col0 * - col1 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT - - ( - col1 ) AS col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT - col0 * + col0 + col0 FROM tab0
----
-1190
-552
-7832

query I rowsort
SELECT + col2 * col1 + 88 FROM tab1 AS cor0
----
1336
1492
658

onlyif mysql # use DIV operator for integer division
query I rowsort label-9988
SELECT DISTINCT + col0 * col0 + - col1 DIV col0 FROM tab2 AS cor0
----
45
6084
6241

skipif mysql # not compatible
query I rowsort label-9988
SELECT DISTINCT + col0 * col0 + - col1 / col0 FROM tab2 AS cor0
----
45
6084
6241

query I rowsort
SELECT ALL col1 + col0 AS col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT 17 * cor0.col2 FROM tab0 AS cor0
----
1394
17
561

query I rowsort
SELECT - + col1 + + col2 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT col0 - col2 FROM tab2
----
-20
41
52

query I rowsort
SELECT DISTINCT tab1.col1 * + col0 - 21 FROM tab1
----
1019
57
619

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col2 + - col2 * + col2 col2 FROM tab0
----
-1023
-6560
1

query I rowsort
SELECT col1 + + tab2.col0 - - ( + col0 ) FROM tab2
----
175
215
45

query I rowsort
SELECT col0 + 8 - - col2 FROM tab0
----
179
44
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + ( + col1 ) col1 FROM tab2
----
-21
33
4

query I rowsort
SELECT - - col2 + ( - cor0.col2 ) AS col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT + col1 + col2 * 98 AS col0 FROM tab2 AS cor0
----
2607
2677
3741