sqllogictest

Artifact [cb6604eb27]
Login

Artifact cb6604eb27db8ed718f32a798443dd7b488732e5:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT 43 * - col1 * cor0.col1 + - cor0.col0 + cor0.col0 FROM tab1 AS cor0
----
-29068
-4300
-7267

query I rowsort
SELECT ( + 32 ) AS col2 FROM tab1 cor0
----
32
32
32

query I rowsort
SELECT ALL ( - tab1.col0 ) FROM tab1, tab0 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

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

query I rowsort
SELECT col0 * - 32 FROM tab0
----
-1120
-2848
-768

query I rowsort
SELECT DISTINCT + col0 + + 4 + col1 FROM tab1
----
33
78
97

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

query I rowsort
SELECT - col0 * 91 AS col0 FROM tab1
----
-273
-5824
-7280

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

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

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

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

query I rowsort
SELECT DISTINCT - + 28 + 87 * cor0.col0 FROM tab1 AS cor0
----
233
5540
6932

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT col1 - col1 * - col2 * 93 AS col2 FROM tab1 AS cor0
----
116077
130598
53020

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

query I rowsort
SELECT ALL - + 93 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
-4
-58
-69

query I rowsort
SELECT DISTINCT tab1.col0 + + 31 FROM tab1
----
111
34
95

query I rowsort
SELECT DISTINCT + 40 + - ( col0 + - 97 ) * - 70 FROM tab2
----
-1220
-1290
-6260

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

query I rowsort
SELECT + ( - col2 * col2 ) + - tab0.col0 + col2 AS col1 FROM tab0
----
-1080
-35
-6731

query I rowsort
SELECT + 12 - 87 * - col0 AS col2 FROM tab2
----
621
6798
6885

query I rowsort
SELECT 13 * cor0.col0 * 98 FROM tab0, tab1 AS cor0
----
9 values hashing to 00ae44d93a73858b019f4cbba75c6ac7

query I rowsort
SELECT DISTINCT col1 + 85 * + col2 FROM tab0
----
182
2891
7061

query I rowsort
SELECT ALL + col0 * 45 + col2 FROM tab0
----
1113
1576
4087

query I rowsort
SELECT DISTINCT 90 + col0 * 28 FROM tab0 AS cor0
----
1070
2582
762

query I rowsort
SELECT ALL - col1 * col0 + col1 AS col0 FROM tab0 cor0
----
-1978
-3298
-8008

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

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

query I rowsort
SELECT DISTINCT - - 56 * col2 FROM tab2 AS cor0
----
1456
1512
2128

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 91 + - col1 col2 FROM tab1 AS cor0
----
65
78
81

query I rowsort
SELECT DISTINCT - + 1 * + cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-10
-13
-26

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-35
SELECT ALL CAST ( NULL AS INTEGER ) col0 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - 18 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-38
SELECT DISTINCT + col2 DIV + col0 + + col2 * + col1 FROM tab0
----
2839
7462
97

skipif mysql # not compatible
query I rowsort label-38
SELECT DISTINCT + col2 / + col0 + + col2 * + col1 FROM tab0
----
2839
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-39
SELECT DISTINCT col2 * 98 * + col1 + + 68 DIV + ( col1 ) AS col1 FROM tab2
----
150333
63312
82028

skipif mysql # not compatible
query I rowsort label-39
SELECT DISTINCT col2 * 98 * + col1 + + 68 / + ( col1 ) AS col1 FROM tab2
----
150333
63312
82028

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

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

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

skipif mysql # not compatible
query I rowsort label-41
SELECT + ( + col1 ) - col1 / - col1 AS col0 FROM tab2 AS cor0
----
18
32
60

query I rowsort
SELECT ALL - - 72 * - 43 - cor0.col0 AS col2 FROM tab1 AS cor0
----
-3099
-3160
-3176

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + + 61 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 35ba68c52996c6a53c15510880f53e21

query I rowsort
SELECT + + cor0.col1 + 35 AS col2 FROM tab1 cor0
----
45
48
61

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + - col2 * col2 * col2 + - col0 + - col1 FROM tab2 AS cor0
----
-17713
-19721
-54968

query I rowsort
SELECT DISTINCT + col1 * + 39 AS col1 FROM tab0 AS cor0
----
3354
3549
3783

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-53
SELECT DISTINCT col1 + + 20 * ( col0 ) DIV col1 FROM tab1 AS cor0
----
136
138
28

skipif mysql # not compatible
query I rowsort label-53
SELECT DISTINCT col1 + + 20 * ( col0 ) / col1 FROM tab1 AS cor0
----
136
138
28

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

query I rowsort
SELECT col2 * 47 AS col2 FROM tab0 AS cor0
----
1551
3854
47

query I rowsort
SELECT + 81 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query I rowsort
SELECT ALL cor0.col0 + - 18 FROM tab0 AS cor0
----
17
6
71

query I rowsort
SELECT DISTINCT + cor0.col2 - - col2 * col0 * 20 AS col1 FROM tab0 AS cor0
----
146042
15873
701

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-60
SELECT ALL + 83 * + col0 - col0 DIV 65 FROM tab2 cor0
----
581
6473
6556

skipif mysql # not compatible
query I rowsort label-60
SELECT ALL + 83 * + col0 - col0 / 65 FROM tab2 cor0
----
581
6473
6556

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

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

query I rowsort
SELECT 9 + col2 FROM tab1 AS cor0
----
105
63
66

query I rowsort
SELECT DISTINCT + + 6 * + 21 + + col2 + cor0.col1 FROM tab0 AS cor0
----
224
245
299

query I rowsort
SELECT ALL + 70 + col2 * col0 FROM tab1 AS cor0
----
232
3718
7750

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

query I rowsort
SELECT DISTINCT - 73 - 42 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
-3685
-3895
-4147

query I rowsort
SELECT DISTINCT + cor0.col0 + 67 FROM tab0 cor0
----
102
156
91

query I rowsort
SELECT - col2 * col1 * + col0 + col2 * cor0.col2 AS col2 FROM tab1 AS cor0
----
-1296
-33231
-90624

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

query I rowsort
SELECT DISTINCT + + 97 + col1 * col0 FROM tab2 AS cor0
----
1440
314
4699

query I rowsort
SELECT ALL + col0 * + col1 + + col1 * cor0.col1 AS col0 FROM tab2 AS cor0
----
1178
1632
8083

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

query I rowsort
SELECT DISTINCT - col2 * col0 + 57 FROM tab1 cor0
----
-105
-3591
-7623

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

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

query I rowsort
SELECT DISTINCT - 45 AS col0 FROM tab1 cor0
----
-45

query I rowsort
SELECT ALL + col0 + col1 + col0 FROM tab2 AS cor0
----
175
215
45

query I rowsort
SELECT DISTINCT + - cor0.col1 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
-17
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-78
SELECT tab2.col1 DIV tab2.col0 col1 FROM tab0, tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
81 values hashing to c392ee53ba300c1f9b39825fbd964e05

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-78
SELECT tab2.col1 / tab2.col0 col1 FROM tab0, tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
81 values hashing to c392ee53ba300c1f9b39825fbd964e05

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

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

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

query I rowsort
SELECT 24 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
-624
-648
-912

query I rowsort
SELECT DISTINCT - + col0 * - cor0.col0 + 71 FROM tab0 AS cor0
----
1296
647
7992

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

query I rowsort
SELECT + 1 * - col0 + col2 + - 0 FROM tab1 AS cor0
----
-7
16
51

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

query I rowsort
SELECT + 36 * - 17 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5fafdf019d6bb269a562b53849545a3b

query I rowsort
SELECT 49 + - col0 AS col0 FROM tab1
----
-15
-31
46

query I rowsort
SELECT - col0 * 80 + col2 FROM tab2 AS cor0
----
-533
-6214
-6282

query I rowsort
SELECT 78 + - col1 FROM tab1 AS cor0
----
52
65
68

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

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

query I rowsort
SELECT DISTINCT - + 79 * col0 AS col0 FROM tab2 AS cor0
----
-553
-6162
-6241

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

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

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

query I rowsort
SELECT - ( 82 ) * col2 AS col0 FROM tab1
----
-4428
-4674
-7872

query I rowsort
SELECT - col0 * + 49 AS col2 FROM tab2
----
-343
-3822
-3871

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

skipif mysql # not compatible
query I rowsort label-97
SELECT + CAST ( + col0 * col1 AS INTEGER ) + + CAST ( NULL AS REAL ) + col1 * col0 * CAST ( 30 AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

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

query I rowsort
SELECT - col0 * col2 * col0 + ( 1 ) AS col1 FROM tab1 AS cor0
----
-233471
-485
-614399

query I rowsort
SELECT + 77 * tab0.col1 FROM tab0
----
6622
7007
7469

query I rowsort
SELECT col2 * - ( 2 ) AS col1 FROM tab0
----
-164
-2
-66

skipif mysql # not compatible
query I rowsort
SELECT CAST ( 12 AS REAL ) FROM tab0, tab0 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT + col2 + 6 FROM tab1 AS cor0
----
102
60
63

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

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

query I rowsort
SELECT ALL ( - 79 ) + col2 FROM tab1 AS cor0
----
-22
-25
17

query I rowsort
SELECT + ( 20 ) AS col2 FROM tab1 AS cor0
----
20
20
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-107
SELECT DISTINCT 93 DIV col1 AS col2 FROM tab1 AS cor0
----
3
7
9

skipif mysql # not compatible
query I rowsort label-107
SELECT DISTINCT 93 / col1 AS col2 FROM tab1 AS cor0
----
3
7
9

query I rowsort
SELECT ALL 33 + 88 AS col1 FROM tab1 AS cor0
----
121
121
121

onlyif mysql # use DIV operator for integer division
query I rowsort label-109
SELECT + 94 DIV cor1.col1 AS col1 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to 3daf191600c64328f2c60722189235c6

skipif mysql # not compatible
query I rowsort label-109
SELECT + 94 / cor1.col1 AS col1 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to 3daf191600c64328f2c60722189235c6

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

query I rowsort
SELECT 59 + + tab0.col2 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 9688810da0fede84b263678a550e1a7d

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

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

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

skipif mysql # not compatible
query I rowsort label-114
SELECT + cor0.col1 / - 29 FROM tab2, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

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

query I rowsort
SELECT - - col1 * cor0.col0 * + ( col0 ) + col0 FROM tab0 AS cor0
----
118860
49560
720900

query I rowsort
SELECT - col1 + - 62 AS col2 FROM tab2 AS cor0
----
-121
-79
-93

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

query I rowsort
SELECT + col2 + + 84 * col0 * col2 AS col2 FROM tab2 AS cor0
----
15903
170378
252206

query I rowsort
SELECT 61 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55

query I rowsort
SELECT ALL + + col1 * + 35 + + cor0.col1 * - col2 AS col2 FROM tab2 AS cor0
----
-51
248
531

query I rowsort
SELECT DISTINCT - col1 + + col0 + - col2 FROM tab2 cor0
----
-51
-7
24

query I rowsort
SELECT + 78 * + col1 FROM tab0
----
6708
7098
7566

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

query I rowsort
SELECT col2 + + col0 - - col2 FROM tab0 AS cor0
----
253
37
90

query I rowsort
SELECT DISTINCT + + col0 + + 78 FROM tab2 AS cor0
----
156
157
85

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * col2 col1 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT ALL col1 * ( col1 + col1 ) AS col1 FROM tab0 AS cor0
----
14792
16562
18818

query I rowsort
SELECT col0 + col0 * - col0 + - tab0.col1 FROM tab0
----
-1287
-638
-7923

query I rowsort
SELECT ALL + col0 * col1 + + 53 AS col2 FROM tab2 AS cor0
----
1396
270
4655

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-133
SELECT ALL + + col0 - - col2 DIV col0 FROM tab0 cor0
----
25
35
89

skipif mysql # not compatible
query I rowsort label-133
SELECT ALL + + col0 - - col2 / col0 FROM tab0 cor0
----
25
35
89

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

query I rowsort
SELECT cor0.col2 * + 71 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
-13419
-143988
-213142

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

query I rowsort
SELECT DISTINCT cor0.col0 + - 32 AS col1 FROM tab0 AS cor0
----
-8
3
57

query I rowsort
SELECT DISTINCT - - 34 - + col0 FROM tab0 AS cor0
----
-1
-55
10

query I rowsort
SELECT + ( 74 ) * cor0.col0 FROM tab0 AS cor0
----
1776
2590
6586

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

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

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

query I rowsort
SELECT + col2 * - col2 + 53 * col0 FROM tab0
----
-2007
183
1854

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

query I rowsort
SELECT col1 * 0 AS col0 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - - tab1.col1 * + 66 col1 FROM tab1
----
1742
670
871

query I rowsort
SELECT ALL col0 + + tab2.col0 + - col1 AS col2 FROM tab2
----
-17
141
97

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

skipif mysql # not compatible
query I rowsort label-148
SELECT DISTINCT + 44 / - col1 + + col0 AS col0 FROM tab2 AS cor0
----
6
77
78

query I rowsort
SELECT DISTINCT + 91 * + col0 + 56 FROM tab1 AS cor0
----
329
5880
7336

query I rowsort
SELECT + ( - col2 ) * 94 AS col2 FROM tab0 cor0
----
-3102
-7708
-94

query I rowsort
SELECT ALL - - 39 * col0 FROM tab1 AS cor0
----
117
2496
3120

query I rowsort
SELECT DISTINCT + 56 * + cor0.col2 + ( - 97 ) + col0 AS col2 FROM tab1 cor0
----
2930
3159
5359

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

skipif mysql # not compatible
query I rowsort label-153
SELECT ALL col1 + - col1 + + CAST ( + col2 AS INTEGER ) * + col1 FROM tab1 AS cor0
----
1248
1404
570

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-155
SELECT ALL - col1 + - col1 / - 67 col2 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT - ( col2 ) * - 33 FROM tab1 AS cor0
----
1782
1881
3168

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

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

query I rowsort
SELECT 62 + + 52 AS col1 FROM tab2
----
114
114
114

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-163
SELECT DISTINCT + CAST ( 43 AS INTEGER ) + col2 FROM tab1 AS cor0
----
100
139
97

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

query I rowsort
SELECT ALL + 9 * col0 + - col1 * + 72 FROM tab2 AS cor0
----
-2169
-3546
-513

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-168
SELECT ALL 25 DIV 34 + col2 AS col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-168
SELECT ALL 25 / 34 + col2 AS col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT - col2 + 55 * col2 AS col2 FROM tab0
----
1782
4428
54

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

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

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

query I rowsort
SELECT + col0 + 27 * - col1 FROM tab0
----
-2298
-2368
-2584

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

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-177
SELECT CAST( - 47 AS SIGNED ) + + col0 FROM tab2
----
-40
31
32

skipif mysql # not compatible
query I rowsort label-177
SELECT CAST ( - 47 AS INTEGER ) + + col0 FROM tab2
----
-40
31
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-178
SELECT DISTINCT ( 26 ) DIV col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-178
SELECT DISTINCT ( 26 ) / col1 FROM tab0
----
0

query I rowsort
SELECT ALL - ( - 92 ) + + col0 AS col0 FROM tab0 AS cor0
----
116
127
181

query I rowsort
SELECT ALL + 79 + cor0.col0 * + cor0.col1 FROM tab2 AS cor0
----
1422
296
4681

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

skipif mysql # not compatible
query I rowsort label-181
SELECT DISTINCT - - col0 / - 79 AS col0 FROM tab2 cor0
----
-1
0

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

skipif mysql # not compatible
query I rowsort label-182
SELECT ALL - 47 / + col0 + - col1 FROM tab2 AS cor0
----
-17
-37
-59

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

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

query I rowsort
SELECT ALL + 57 * + 3 * cor0.col2 FROM tab1 AS cor0
----
16416
9234
9747

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

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

query I rowsort
SELECT DISTINCT - col2 * - 94 AS col0 FROM tab1 AS cor0
----
5076
5358
9024

query I rowsort
SELECT + 66 - + col2 * + 20 FROM tab0 AS cor0
----
-1574
-594
46

query I rowsort
SELECT DISTINCT - 77 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-77

query I rowsort
SELECT DISTINCT + + col0 + + col2 + + ( col1 ) * + col1 FROM tab0 AS cor0
----
7453
8452
9445

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * - 96 - + col1 col1 FROM tab1 AS cor0
----
1235
2470
950

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

query I rowsort
SELECT ALL col2 + - 77 FROM tab0 cor0
----
-44
-76
5

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

query I rowsort
SELECT + col0 + 7 AS col2 FROM tab1 AS cor0
----
10
71
87

query I rowsort
SELECT ALL - 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 - cor1.col1 col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT - 27 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

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

query I rowsort
SELECT + col0 * + ( 76 ) AS col2 FROM tab0
----
1824
2660
6764

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

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

query I rowsort
SELECT DISTINCT + + col2 + - 80 - col0 * - col0 FROM tab2 AS cor0
----
-4
6030
6199

onlyif mysql # use DIV operator for integer division
query I rowsort label-205
SELECT ALL - col2 * 19 - col1 DIV + col0 FROM tab0 cor0
----
-1559
-21
-630

skipif mysql # not compatible
query I rowsort label-205
SELECT ALL - col2 * 19 - col1 / + col0 FROM tab0 cor0
----
-1559
-21
-630

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-208
SELECT DISTINCT + - cor0.col0 * CAST( 68 AS SIGNED ) DIV col1 + col0 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
2046
3371
8033

skipif mysql # not compatible
query I rowsort label-208
SELECT DISTINCT + - cor0.col0 * CAST ( 68 AS INTEGER ) / col1 + col0 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
2046
3371
8033

query I rowsort
SELECT ALL - 27 - + col0 FROM tab2 AS cor0
----
-105
-106
-34

query I rowsort
SELECT DISTINCT 93 + + cor0.col0 * col2 * col2 AS col1 FROM tab2 cor0
----
114169
5196
52821

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

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

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

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

skipif mysql # not compatible
query I rowsort label-213
SELECT - CAST ( + col1 AS INTEGER ) * col1 AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT - 54 * col1 FROM tab1 AS cor0
----
-1404
-540
-702

query I rowsort
SELECT DISTINCT + 5 + col1 * col2 + + col1 FROM tab2 AS cor0
----
1598
668
873

query I rowsort
SELECT DISTINCT - + col2 - + col0 * 13 * + ( col0 + col2 ) FROM tab1 AS cor0
----
-100729
-183136
-2277

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-217
SELECT ALL 6 + col2 * + CAST( col0 AS SIGNED ) FROM tab2 cor0
----
195
2034
3008

skipif mysql # not compatible
query I rowsort label-217
SELECT ALL 6 + col2 * + CAST ( col0 AS INTEGER ) FROM tab2 cor0
----
195
2034
3008

query I rowsort
SELECT ALL + - 23 * cor0.col0 AS col0 FROM tab1 AS cor0
----
-1472
-1840
-69

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-222
SELECT + col2 DIV + ( col1 ) + - col2 - + col0 AS col0 FROM tab2 AS cor0
----
-104
-115
-34

skipif mysql # not compatible
query I rowsort label-222
SELECT + col2 / + ( col1 ) + - col2 - + col0 AS col0 FROM tab2 AS cor0
----
-104
-115
-34

query I rowsort
SELECT + cor0.col0 * ( - ( + col2 ) ) + col0 - col1 AS col1 FROM tab1 AS cor0
----
-185
-3594
-7613

query I rowsort
SELECT + col2 * - col0 + + col0 - - col1 * col1 AS col0 FROM tab1 AS cor0
----
-3484
-7431
517

query I rowsort
SELECT + col0 + 59 * - col0 AS col0 FROM tab2 AS cor0
----
-406
-4524
-4582

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

query I rowsort
SELECT col1 + col2 + 10 AS col1 FROM tab2
----
65
68
95

query I rowsort
SELECT + 15 * - tab2.col2 AS col0 FROM tab2
----
-390
-405
-570

query I rowsort
SELECT ALL - col2 * col1 * + 55 + col1 FROM tab0
----
-156004
-410319
-5238

query I rowsort
SELECT + 16 AS col0 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-231
SELECT ALL col2 / - col1 + col2 col1 FROM tab0
----
1
33
82

query I rowsort
SELECT ALL + 53 AS col2 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6

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

query I rowsort
SELECT col2 + + col0 * + 2 FROM tab0
----
260
71
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-235
SELECT DISTINCT ( - col2 + + tab0.col2 ) DIV col2 col1 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-235
SELECT DISTINCT ( - col2 + + tab0.col2 ) / col2 col1 FROM tab0
----
0

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-237
SELECT ALL col2 * + col0 + tab2.col2 DIV 68 AS col2 FROM tab2
----
189
2028
3002

skipif mysql # not compatible
query I rowsort label-237
SELECT ALL col2 * + col0 + tab2.col2 / 68 AS col2 FROM tab2
----
189
2028
3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-238
SELECT - + CAST( - 24 AS SIGNED ) + col0 FROM tab1 AS cor0
----
104
27
88

skipif mysql # not compatible
query I rowsort label-238
SELECT - + CAST ( - 24 AS INTEGER ) + col0 FROM tab1 AS cor0
----
104
27
88

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

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

query I rowsort
SELECT ( tab1.col1 ) * col0 + + col2 - col1 FROM tab1
----
106
1123
687

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

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

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

query I rowsort
SELECT + 70 * col1 + col2 AS col2 FROM tab0 AS cor0
----
6053
6452
6791

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

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

query I rowsort
SELECT - ( - 69 ) * col1 + + 56 FROM tab2 cor0
----
1229
2195
4127

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + ( col2 ) col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL - 9 AS col1 FROM tab2
----
-9
-9
-9

query I rowsort
SELECT - 40 + + ( - col0 ) FROM tab1
----
-104
-120
-43

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

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

query I rowsort
SELECT DISTINCT + - 86 * col2 * cor0.col1 + - 92 + 8 FROM tab2 cor0
----
-132008
-55640
-72066

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

query I rowsort
SELECT ALL - + 32 * col1 + col0 AS col1 FROM tab2 AS cor0
----
-1810
-465
-985

query I rowsort
SELECT DISTINCT ( 0 ) * + col2 + - 96 * col2 AS col1 FROM tab2 AS cor0
----
-2496
-2592
-3648

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-257
SELECT col2 / col1 + col1 col1 FROM tab0 AS cor0
----
86
91
97

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

query I rowsort
SELECT DISTINCT + + cor0.col0 * + col2 + + 23 * - col1 AS col0 FROM tab0 AS cor0
----
-1186
-2196
5205

query I rowsort
SELECT DISTINCT - 13 * + col1 FROM tab2 AS cor0
----
-221
-403
-767

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 16 + col2 col2 FROM tab0 AS cor0
----
-15
17
66

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

query I rowsort
SELECT ALL - - ( cor0.col2 ) * + col0 + - col1 + cor0.col0 FROM tab2 cor0
----
165
2047
3064

onlyif mysql # use DIV operator for integer division
query I rowsort label-264
SELECT DISTINCT col0 DIV col1 - + 69 col2 FROM tab2 AS cor0
----
-65
-68
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-264
SELECT DISTINCT col0 / col1 - + 69 col2 FROM tab2 AS cor0
----
-65
-68
-69

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

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

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

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

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

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

query I rowsort
SELECT + ( + col1 ) * - col1 * - col1 FROM tab1
----
1000
17576
2197

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

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

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

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

query I rowsort
SELECT DISTINCT + 85 * - cor0.col0 FROM tab2 AS cor0
----
-595
-6630
-6715

query I rowsort
SELECT DISTINCT - 64 + col0 + col0 AS col1 FROM tab1 AS cor0
----
-58
64
96

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

skipif mysql # not compatible
query I rowsort label-275
SELECT col0 / 82 FROM tab0
----
0
0
1

query I rowsort
SELECT - - col2 * + 49 AS col1 FROM tab1 cor0
----
2646
2793
4704

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

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

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

query I rowsort
SELECT + - col0 * col2 * col0 FROM tab2 AS cor0
----
-1323
-158184
-237158

query I rowsort
SELECT + col0 * - 60 AS col2 FROM tab1 AS cor0
----
-180
-3840
-4800

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

skipif mysql # not compatible
query I rowsort label-281
SELECT - col0 / + 95 + - ( - col2 ) / col0 FROM tab2 AS cor0
----
0
0
3

query I rowsort
SELECT DISTINCT + col2 + - ( + cor0.col2 ) FROM tab1 AS cor0
----
0

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

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

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

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

query I rowsort
SELECT - col2 * + col0 + - ( col0 ) * 26 AS col1 FROM tab1 AS cor0
----
-240
-5312
-9760

query I rowsort
SELECT + col0 * 53 AS col1 FROM tab0
----
1272
1855
4717

query I rowsort
SELECT col1 * + 86 FROM tab1
----
1118
2236
860

onlyif mysql # use DIV operator for integer division
query I rowsort label-289
SELECT DISTINCT - col0 DIV - col2 + - cor0.col2 - cor0.col1 * col1 FROM tab1 AS cor0
----
-156
-265
-730

skipif mysql # not compatible
query I rowsort label-289
SELECT DISTINCT - col0 / - col2 + - cor0.col2 - cor0.col1 * col1 FROM tab1 AS cor0
----
-156
-265
-730

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

skipif mysql # not compatible
query I rowsort label-290
SELECT ALL - col2 * ( + col0 ) / + col0 AS col0 FROM tab2 cor0
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-291
SELECT - - cor0.col0 DIV cor0.col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif mysql # not compatible
query I rowsort label-291
SELECT - - cor0.col0 / cor0.col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

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

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

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

query I rowsort
SELECT + + 86 * - col1 + col0 * + col2 FROM tab1 AS cor0
----
-2074
2788
6562

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( - 94 AS REAL ) * + col2 FROM tab1 AS cor0
----
-5076
-5358
-9024

query I rowsort
SELECT ALL 75 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

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

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

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

query I rowsort
SELECT ALL + 57 * - cor0.col0 * - col0 AS col2 FROM tab2 AS cor0
----
2793
346788
355737

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col2 + + col0 - 91 col2 FROM tab2 AS cor0
----
-1456
-689
-813

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

query I rowsort
SELECT col0 * cor0.col1 * col2 + + col0 - col2 AS col0 FROM tab0 AS cor0
----
3429
664125
68103

query I rowsort
SELECT ALL + - col0 * - col2 * ( 24 ) FROM tab0 AS cor0
----
175152
19008
840

query I rowsort
SELECT DISTINCT 86 AS col1 FROM tab1 AS cor0
----
86

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-308
SELECT ALL - ( col0 ) DIV col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-308
SELECT ALL - ( col0 ) / col0 FROM tab1
----
-1
-1
-1

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

query I rowsort
SELECT ALL 26 * - col1 AS col2 FROM tab0
----
-2236
-2366
-2522

query I rowsort
SELECT - 32 * + col2 AS col0 FROM tab1
----
-1728
-1824
-3072

query I rowsort
SELECT ALL 19 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 86c53e8567a17c8d91fc5aff119e0498

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 18 col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
18

query I rowsort
SELECT ALL + 55 + + tab1.col0 * + col2 FROM tab1
----
217
3703
7735

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

skipif mysql # not compatible
query I rowsort label-315
SELECT - col2 / 24 + col2 AS col0 FROM tab2 AS cor0
----
25
26
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + + col0 * 83 col0 FROM tab0 AS cor0
----
1968
2870
7298

onlyif mysql # use DIV operator for integer division
query I rowsort label-317
SELECT - + col0 DIV - 7 AS col0 FROM tab2 AS cor0
----
1
11
11

skipif mysql # not compatible
query I rowsort label-317
SELECT - + col0 / - 7 AS col0 FROM tab2 AS cor0
----
1
11
11

query I rowsort
SELECT - col2 * col2 + 2 FROM tab2 AS cor0
----
-1442
-674
-727

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

query I rowsort
SELECT DISTINCT + col0 * + col1 + col0 * + col2 * col2 AS col1 FROM tab2
----
115419
5320
57330

query I rowsort
SELECT + 74 AS col1 FROM tab2
----
74
74
74

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

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

query I rowsort
SELECT - - col2 * col2 - ( - col2 ) AS col1 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT + - col0 + 79 AS col0 FROM tab0 AS cor0
----
-10
44
55

query I rowsort
SELECT + + col0 * col0 * - col0 - col2 FROM tab2 AS cor0
----
-370
-474578
-493077

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-329
SELECT DISTINCT - 49 * - 95 + cor0.col2 DIV col1 FROM tab2 cor0
----
4655
4657

skipif mysql # not compatible
query I rowsort label-329
SELECT DISTINCT - 49 * - 95 + cor0.col2 / col1 FROM tab2 cor0
----
4655
4657

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

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-332
SELECT DISTINCT - CAST( - col0 AS SIGNED ) * col2 + ( col1 ) * col1 + 92 DIV col2 AS col0 FROM tab1 cor0
----
3749
7849
839

skipif mysql # not compatible
query I rowsort label-332
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) * col2 + ( col1 ) * col1 + 92 / col2 AS col0 FROM tab1 cor0
----
3749
7849
839

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-333
SELECT ALL + CAST( + 60 AS SIGNED ) + - cor0.col0 * cor0.col0 AS col0 FROM tab0 AS cor0
----
-1165
-516
-7861

skipif mysql # not compatible
query I rowsort label-333
SELECT ALL + CAST ( + 60 AS INTEGER ) + - cor0.col0 * cor0.col0 AS col0 FROM tab0 AS cor0
----
-1165
-516
-7861

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 28 ) col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to eac00a95d734c7071360ed392c3f39bc

query I rowsort
SELECT + 8 * col1 AS col1 FROM tab1 AS cor0
----
104
208
80

query I rowsort
SELECT DISTINCT 78 FROM tab2, tab0 AS cor0, tab2 AS cor1, tab2 AS cor2
----
78

query I rowsort
SELECT col0 * cor0.col0 * col0 FROM tab0 AS cor0
----
13824
42875
704969

onlyif mysql # use DIV operator for integer division
query I rowsort label-339
SELECT + - col0 * + col0 DIV + cor0.col0 + + col1 * + col1 - - col2 FROM tab1 AS cor0
----
185
727
93

skipif mysql # not compatible
query I rowsort label-339
SELECT + - col0 * + col0 / + cor0.col0 + + col1 * + col1 - - col2 FROM tab1 AS cor0
----
185
727
93

query I rowsort
SELECT + cor0.col0 + 14 FROM tab0 AS cor0
----
103
38
49

query I rowsort
SELECT DISTINCT + + 52 + col2 FROM tab1 cor0
----
106
109
148

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

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

query I rowsort
SELECT DISTINCT col0 + + col2 * + col1 * - col1 AS col1 FROM tab0 AS cor0
----
-244044
-678953
-9374

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

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

query I rowsort
SELECT + col2 + col2 * cor0.col0 * + col0 FROM tab1 AS cor0
----
233529
540
614496

query I rowsort
SELECT ALL col1 * + 67 - col1 FROM tab0 AS cor0
----
5676
6006
6402

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-348
SELECT DISTINCT - + col1 DIV cor0.col1 + 10 - - col0 * - col1 col2 FROM tab2 AS cor0
----
-1334
-208
-4593

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-348
SELECT DISTINCT - + col1 / cor0.col1 + 10 - - col0 * - col1 col2 FROM tab2 AS cor0
----
-1334
-208
-4593

query I rowsort
SELECT + 20 * - cor0.col2 AS col1 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to f07bb0385fcc0fdae972f20e57fabaa3

onlyif mysql # use DIV operator for integer division
query I rowsort label-350
SELECT DISTINCT + + 73 + - col0 - + 22 DIV col2 AS col2 FROM tab1 AS cor0
----
-7
70
9

skipif mysql # not compatible
query I rowsort label-350
SELECT DISTINCT + + 73 + - col0 - + 22 / col2 AS col2 FROM tab1 AS cor0
----
-7
70
9

query I rowsort
SELECT ALL + - 92 * + col1 FROM tab1 AS cor0
----
-1196
-2392
-920

query I rowsort
SELECT + 45 FROM tab2, tab1 AS cor0, tab0, tab2 AS cor1
----
81 values hashing to 8a6d20810140ea088e8e0fd74ffb8339

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

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

query I rowsort
SELECT ALL col0 + ( + 92 ) FROM tab0 AS cor0
----
116
127
181

query I rowsort
SELECT DISTINCT - 59 FROM tab1, tab1 cor0
----
-59

query I rowsort
SELECT - + col0 * 37 * col2 FROM tab0 AS cor0
----
-1295
-270026
-29304

query I rowsort
SELECT + tab0.col1 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

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

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

query I rowsort
SELECT ALL - 47 FROM tab2, tab1 AS cor0
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 + - 17 col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
18
7
72

query I rowsort
SELECT + - 63 * 2 FROM tab0 cor0
----
-126
-126
-126

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

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

query I rowsort
SELECT DISTINCT col1 + 17 FROM tab2 AS cor0
----
34
48
76

query I rowsort
SELECT DISTINCT - 56 AS col1 FROM tab1, tab1 AS cor0
----
-56

onlyif mysql # use DIV operator for integer division
query I rowsort label-367
SELECT DISTINCT - col2 * + col1 DIV col1 + + col0 * col2 * col1 AS col0 FROM tab1
----
36423
4158
99744

skipif mysql # not compatible
query I rowsort label-367
SELECT DISTINCT - col2 * + col1 / col1 + + col0 * col2 * col1 AS col0 FROM tab1
----
36423
4158
99744

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

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

query I rowsort
SELECT ALL 73 + col1 FROM tab2
----
104
132
90

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

query I rowsort
SELECT DISTINCT + col1 + - ( 98 ) AS col2 FROM tab0 AS cor0
----
-1
-12
-7

query I rowsort
SELECT DISTINCT - col1 - + 85 FROM tab1 cor0
----
-111
-95
-98

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-374
SELECT DISTINCT - col1 DIV - 47 + - col2 AS col1 FROM tab2 AS cor0
----
-25
-27
-38

skipif mysql # not compatible
query I rowsort label-374
SELECT DISTINCT - col1 / - 47 + - col2 AS col1 FROM tab2 AS cor0
----
-25
-27
-38

query I rowsort
SELECT - col2 + - ( - col1 + + col2 ) * col1 FROM tab1 AS cor0
----
-1175
-527
-782

query I rowsort
SELECT DISTINCT col0 + 54 AS col0 FROM tab0 AS cor0
----
143
78
89

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

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

query I rowsort
SELECT DISTINCT + col0 * col2 * + col0 + cor0.col0 AS col2 FROM tab2 AS cor0
----
1330
158262
237237

query I rowsort
SELECT ALL col2 * 33 AS col0 FROM tab2 AS cor0
----
1254
858
891

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

query I rowsort
SELECT ALL - col2 * 70 + + ( - col0 ) FROM tab0 AS cor0
----
-105
-2334
-5829

query I rowsort
SELECT DISTINCT col2 + - col2 * - col2 * - col0 AS col0 FROM tab0 AS cor0
----
-26103
-34
-598354

query I rowsort
SELECT ALL + 25 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 2c77240b60ac01c717a5ed5d0165f450

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

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

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

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

query I rowsort
SELECT DISTINCT col0 * - 8 + + col2 * col0 AS col2 FROM tab2 AS cor0
----
133
1404
2370

query I rowsort
SELECT + col1 * 82 * col2 FROM tab1 AS cor0
----
102336
115128
46740

query I rowsort
SELECT ALL - col1 * col1 - col0 FROM tab1 AS cor0
----
-164
-249
-679

query I rowsort
SELECT DISTINCT col2 * ( - 75 + col1 ) AS col0 FROM tab1 AS cor0
----
-2646
-3705
-5952

query I rowsort
SELECT DISTINCT col2 * 39 + col0 * col1 * - col1 AS col0 FROM tab0 AS cor0
----
-176217
-329276
-733811

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

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

query I rowsort
SELECT + 53 + col2 * col1 + col0 FROM tab1
----
1381
1460
687

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-398
SELECT DISTINCT - col0 * tab1.col0 + col2 * col1 DIV - col2 FROM tab1
----
-35
-4106
-6413

skipif mysql # not compatible
query I rowsort label-398
SELECT DISTINCT - col0 * tab1.col0 + col2 * col1 / - col2 FROM tab1
----
-35
-4106
-6413

query I rowsort
SELECT + cor2.col1 * cor0.col1 AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 9ef59267bc423612079185b5c4f6afb0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-400
SELECT ALL CAST( col1 AS SIGNED ) * col2 + + ( + col2 + col0 ) FROM tab0 cor0
----
133
2895
7633

skipif mysql # not compatible
query I rowsort label-400
SELECT ALL CAST ( col1 AS INTEGER ) * col2 + + ( + col2 + col0 ) FROM tab0 cor0
----
133
2895
7633

query I rowsort
SELECT - - 30 + + col1 AS col2 FROM tab1 AS cor0
----
40
43
56

query I rowsort
SELECT ALL 40 + 41 FROM tab0 AS cor0
----
81
81
81

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

skipif mysql # not compatible
query I rowsort label-403
SELECT ALL + CAST ( - col1 AS INTEGER ) * col2 + + col0 AS col0 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT ALL 11 + col2 * - col1 FROM tab0 AS cor0
----
-2827
-7451
-86

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

query I rowsort
SELECT + 65 + - col2 AS col0 FROM tab0 AS cor0
----
-17
32
64

query I rowsort
SELECT + + 76 + + col2 * col2 * col2 FROM tab2 cor0
----
17652
19759
54948

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col1 * - col1 + - CAST ( + col0 + col1 AS REAL ) * 66 AS col1 FROM tab1 AS cor0
----
-2590
-4984
-6307

query I rowsort
SELECT ALL - + cor0.col2 * + col1 + - col2 - 75 AS col1 FROM tab1 cor0
----
-1419
-1533
-702

onlyif mysql # use DIV operator for integer division
query I rowsort label-410
SELECT + 20 + col2 DIV CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
21
21
21

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

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

query I rowsort
SELECT DISTINCT col0 * - col2 - 31 AS col2 FROM tab1 cor0
----
-193
-3679
-7711

query I rowsort
SELECT ALL - 20 * + col1 AS col0 FROM tab1 AS cor0
----
-200
-260
-520

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

skipif mysql # not compatible
query I rowsort label-414
SELECT DISTINCT + - col1 / + col2 + 49 AS col2 FROM tab1 AS cor0
----
49

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

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

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

skipif mysql # not compatible
query I rowsort label-416
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + col1 + + col2 FROM tab2
----
NULL

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

query I rowsort
SELECT + cor0.col2 + col2 + - cor0.col2 * - col0 FROM tab0 AS cor0
----
37
7462
858

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

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

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

skipif mysql # not compatible
query I rowsort label-421
SELECT + col1 * + CAST ( - col1 + col0 * + col0 AS INTEGER ) FROM tab1 AS cor0
----
-442
40860
83031

query I rowsort
SELECT ALL - col1 * 66 * - col1 AS col2 FROM tab0 AS cor0
----
488136
546546
620994

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

query I rowsort
SELECT ALL + col1 * 16 - - col0 FROM tab1 AS cor0
----
224
288
419

query I rowsort
SELECT - col1 * 92 AS col1 FROM tab2 AS cor0
----
-1564
-2852
-5428

onlyif mysql # use DIV operator for integer division
query I rowsort label-426
SELECT ALL col1 DIV col2 + + 72 - + col2 FROM tab1 AS cor0
----
-24
15
18

skipif mysql # not compatible
query I rowsort label-426
SELECT ALL col1 / col2 + + 72 - + col2 FROM tab1 AS cor0
----
-24
15
18

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

query I rowsort
SELECT + - cor0.col1 * 65 AS col1 FROM tab1 AS cor0
----
-1690
-650
-845

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + 9 * col1 col0 FROM tab0 AS cor0
----
737
741
872

query I rowsort
SELECT + col2 * - ( + 84 ) AS col0 FROM tab2 AS cor0
----
-2184
-2268
-3192

query I rowsort
SELECT + - col0 * + 85 + + 14 FROM tab1 AS cor0
----
-241
-5426
-6786

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

query I rowsort
SELECT 96 * cor0.col2 FROM tab2 AS cor0
----
2496
2592
3648

query I rowsort
SELECT DISTINCT + 6 * col1 + col2 AS col1 FROM tab0 AS cor0
----
549
583
628

query I rowsort
SELECT col2 + col2 * ( - col2 ) FROM tab2
----
-1406
-650
-702

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

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

query I rowsort
SELECT + ( + 60 ) * - col1 FROM tab2 AS cor0
----
-1020
-1860
-3540

query I rowsort
SELECT DISTINCT - col0 * - 90 AS col0 FROM tab0
----
2160
3150
8010

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

query I rowsort
SELECT - cor0.col1 * - 10 + col0 AS col1 FROM tab0 AS cor0
----
1005
884
999

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-442
SELECT - - col0 - - col1 DIV col2 FROM tab0 cor0
----
132
26
90

skipif mysql # not compatible
query I rowsort label-442
SELECT - - col0 - - col1 / col2 FROM tab0 cor0
----
132
26
90

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

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

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

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

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

query I rowsort
SELECT ALL 32 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

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

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

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

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

query I rowsort
SELECT + 19 AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 86c53e8567a17c8d91fc5aff119e0498

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

skipif mysql # not compatible
query I rowsort label-451
SELECT ALL col2 * CAST ( col1 + col1 AS INTEGER ) * - col0 FROM tab2 AS cor0
----
-102068
-11718
-239304

query I rowsort
SELECT + - 19 + col1 FROM tab0 AS cor0
----
67
72
78

query I rowsort
SELECT 24 * col1 FROM tab0 AS cor0
----
2064
2184
2328

query I rowsort
SELECT ALL + col1 - - 30 AS col1 FROM tab0 AS cor0
----
116
121
127

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

query I rowsort
SELECT DISTINCT 63 * 18 AS col0 FROM tab1, tab1 AS cor0
----
1134

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

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

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

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

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

query I rowsort
SELECT col1 * col2 * col1 AS col2 FROM tab0 cor0
----
244068
679042
9409

query I rowsort
SELECT + + col2 + + 64 AS col2 FROM tab1 AS cor0
----
118
121
160

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

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

query I rowsort
SELECT ( 93 ) FROM tab0 AS cor0
----
93
93
93

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

query I rowsort
SELECT + - col0 * col0 + ( col0 ) * + col2 AS col1 FROM tab1 AS cor0
----
-448
1280
153

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 52 * col0 col2 FROM tab0 AS cor0
----
1248
1820
4628

query I rowsort
SELECT DISTINCT cor0.col0 AS col2 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
7
78
79

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

query I rowsort
SELECT + col0 * - tab1.col0 - + 6 * tab1.col1 * ( - col0 ) FROM tab1
----
-160
-256
459

query I rowsort
SELECT + 79 - - 11 * + col2 FROM tab1 AS cor0
----
1135
673
706

query I rowsort
SELECT DISTINCT ( + col2 ) * col2 * + 48 + - col0 FROM tab0 AS cor0
----
13
322663
52248

query I rowsort
SELECT 27 + + col1 AS col0 FROM tab2 AS cor0
----
44
58
86

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

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

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

query I rowsort
SELECT ALL col1 + 13 - + 16 * + col1 FROM tab1
----
-137
-182
-377

query I rowsort
SELECT + 88 * + 48 * + cor0.col1 - - col1 AS col1 FROM tab2 AS cor0
----
130975
249275
71825

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

query I rowsort
SELECT DISTINCT + - col0 * col1 + - col1 * col1 FROM tab1 AS cor0
----
-1209
-740
-754

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-483
SELECT DISTINCT + col2 DIV + col1 + - col1 FROM tab1 cor0
----
-24
-5
-6

skipif mysql # not compatible
query I rowsort label-483
SELECT DISTINCT + col2 / + col1 + - col1 FROM tab1 cor0
----
-24
-5
-6

onlyif mysql # use DIV operator for integer division
query I rowsort label-484
SELECT ALL col2 + 94 DIV col2 FROM tab1 AS cor0
----
55
58
96

skipif mysql # not compatible
query I rowsort label-484
SELECT ALL col2 + 94 / col2 FROM tab1 AS cor0
----
55
58
96

query I rowsort
SELECT ( + 56 ) * + cor0.col1 - col0 FROM tab2 cor0
----
1729
3226
873

query I rowsort
SELECT DISTINCT - - cor0.col2 * col2 * col2 AS col1 FROM tab0 AS cor0
----
1
35937
551368

query I rowsort
SELECT ( col1 ) + cor0.col0 * - 48 FROM tab2 AS cor0
----
-305
-3685
-3775

query I rowsort
SELECT ALL - ( 5 ) FROM tab1 AS cor0
----
-5
-5
-5

onlyif mysql # use DIV operator for integer division
query I rowsort label-489
SELECT DISTINCT - 5 DIV 56 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-489
SELECT DISTINCT - 5 / 56 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 30 ) col2 FROM tab1, tab2 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-492
SELECT DISTINCT + col2 * CAST( 3 AS SIGNED ) + col0 col0 FROM tab1
----
165
235
368

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-492
SELECT DISTINCT + col2 * CAST ( 3 AS INTEGER ) + col0 col0 FROM tab1
----
165
235
368

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

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

query I rowsort
SELECT DISTINCT + tab2.col2 + 28 AS col1 FROM tab2
----
54
55
66

query I rowsort
SELECT DISTINCT + col1 + col2 * - col1 * col2 + col2 * + 17 AS col2 FROM tab2
----
-22109
-23885
-39383

onlyif mysql # use DIV operator for integer division
query I rowsort label-497
SELECT ALL col0 + ( ( col1 ) ) DIV - 75 FROM tab0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-497
SELECT ALL col0 + ( ( col1 ) ) / - 75 FROM tab0
----
23
34
88

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

query I rowsort
SELECT ALL ( - 51 ) FROM tab1, tab2 AS cor0
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

query I rowsort
SELECT + cor1.col1 + + cor2.col0 AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to 559eed2100755d7b17dc2c63e1bfca8a

query I rowsort
SELECT + col0 * col0 * - col0 FROM tab1 AS cor0
----
-262144
-27
-512000

query I rowsort
SELECT DISTINCT - - col0 + 55 * col0 FROM tab0 AS cor0
----
1344
1960
4984

query I rowsort
SELECT DISTINCT + col2 * + tab2.col0 * + 23 FROM tab2
----
4347
46644
69046

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

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

query I rowsort
SELECT ALL tab2.col0 * - cor0.col1 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 778568a0294a40217171bb2f1bbf2149

query I rowsort
SELECT ( + 71 + + col0 ) FROM tab0
----
106
160
95

query I rowsort
SELECT ALL 68 FROM tab2, tab0 AS cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

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

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

query I rowsort
SELECT ALL + 41 AS col0 FROM tab0
----
41
41
41

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-511
SELECT DISTINCT + CAST( + cor0.col2 AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
1
33
82

skipif mysql # not compatible
query I rowsort label-511
SELECT DISTINCT + CAST ( + cor0.col2 AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
1
33
82

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

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

query I rowsort
SELECT DISTINCT + col0 * + col0 + + col1 * - col0 AS col2 FROM tab1 AS cor0
----
-69
3456
5360

query I rowsort
SELECT ALL + col2 * - col2 + col0 FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT DISTINCT + col1 * col2 + 77 FROM tab1 AS cor0
----
1325
1481
647

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-517
SELECT - col2 + col1 / 69 col1 FROM tab1 AS cor0
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-518
SELECT DISTINCT + col2 + - cor0.col1 DIV ( + 94 ) FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-518
SELECT DISTINCT + col2 + - cor0.col1 / ( + 94 ) FROM tab2 AS cor0
----
26
27
38

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-521
SELECT DISTINCT col2 + + col2 * - CAST( col2 AS SIGNED ) DIV - col2 FROM tab1 AS cor0
----
108
114
192

skipif mysql # not compatible
query I rowsort label-521
SELECT DISTINCT col2 + + col2 * - CAST ( col2 AS INTEGER ) / - col2 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT - + col2 + col0 * 31 FROM tab1 cor0
----
1927
2384
39

query I rowsort
SELECT DISTINCT - 58 * - col1 FROM tab1
----
1508
580
754

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

query I rowsort
SELECT - 36 + - cor0.col0 FROM tab1 AS cor0
----
-100
-116
-39

query I rowsort
SELECT - col1 * + 49 FROM tab0 AS cor0
----
-4214
-4459
-4753

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

skipif mysql # not compatible
query I rowsort label-527
SELECT - col0 + CAST ( col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-41
-52
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + 72 + - col1 col2 FROM tab2 AS cor0
----
134
48
91

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

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

query I rowsort
SELECT col2 * + cor0.col0 + cor0.col1 * ( + 37 * col2 ) AS col1 FROM tab0 AS cor0
----
105798
283392
3624

query I rowsort
SELECT col0 * col0 - cor0.col1 AS col0 FROM tab2 cor0
----
18
6025
6224

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

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

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

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

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

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

query I rowsort
SELECT - - 71 * + 24 + - cor0.col1 * - 73 FROM tab0 AS cor0
----
7982
8347
8785

query I rowsort
SELECT - + 22 + - 39 FROM tab0 AS cor0
----
-61
-61
-61

onlyif mysql # use DIV operator for integer division
query I rowsort label-541
SELECT + CAST( col2 AS SIGNED ) DIV col1 - + ( 25 + col0 ) AS col1 FROM tab0 AS cor0
----
-114
-49
-60

skipif mysql # not compatible
query I rowsort label-541
SELECT + CAST ( col2 AS INTEGER ) / col1 - + ( 25 + col0 ) AS col1 FROM tab0 AS cor0
----
-114
-49
-60

query I rowsort
SELECT 2 * col0 FROM tab2 cor0
----
14
156
158

query I rowsort
SELECT DISTINCT + 74 AS col0 FROM tab0, tab1 AS cor0
----
74

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

query I rowsort
SELECT ALL 18 + + col1 AS col2 FROM tab0 AS cor0
----
104
109
115

query I rowsort
SELECT DISTINCT - 3 AS col0 FROM tab0, tab1 AS cor0
----
-3

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

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

query I rowsort
SELECT - col1 + 15 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
-1376
-1456
-1552

query I rowsort
SELECT DISTINCT - col0 * - ( col0 ) * 4 FROM tab1 AS cor0
----
16384
25600
36

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

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

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

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

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

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

query I rowsort
SELECT ALL + col1 * - 24 AS col1 FROM tab2 AS cor0
----
-1416
-408
-744

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-561
SELECT + col0 * + col2 + col1 * - CAST ( cor0.col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
3008
6640
84

query I rowsort
SELECT - ( - col1 ) + 94 - - col0 FROM tab0
----
204
226
274

query I rowsort
SELECT + 17 + - cor0.col0 FROM tab2 AS cor0
----
-61
-62
10

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

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

query I rowsort
SELECT DISTINCT col0 * - col1 + 37 + col0 AS col0 FROM tab1
----
-38
-539
-923

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-567
SELECT ALL + tab1.col0 + - CAST( - 69 AS SIGNED ) AS col0 FROM tab1
----
133
149
72

skipif mysql # not compatible
query I rowsort label-567
SELECT ALL + tab1.col0 + - CAST ( - 69 AS INTEGER ) AS col0 FROM tab1
----
133
149
72

query I rowsort
SELECT DISTINCT col2 + - 53 AS col0 FROM tab2
----
-15
-26
-27

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-571
SELECT DISTINCT + col2 - + col2 DIV + col0 FROM tab0 AS cor0
----
1
32
82

skipif mysql # not compatible
query I rowsort label-571
SELECT DISTINCT + col2 - + col2 / + col0 FROM tab0 AS cor0
----
1
32
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col2 * - 5 + 35 col1 FROM tab1
----
-235
-250
-445

query I rowsort
SELECT ALL - ( + 78 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to afa1a417c354fab37e0e421ec67035c7

query I rowsort
SELECT ALL - col2 + - ( + 61 ) * col2 AS col0 FROM tab1 cor0
----
-3348
-3534
-5952

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-576
SELECT ALL + - col0 * - col1 + 33 DIV - col0 FROM tab1 AS cor0
----
1040
640
67

skipif mysql # not compatible
query I rowsort label-576
SELECT ALL + - col0 * - col1 + 33 / - col0 FROM tab1 AS cor0
----
1040
640
67

query I rowsort
SELECT DISTINCT + - col0 * + cor0.col2 - + ( col2 ) * + ( 81 + col2 * + 78 ) FROM tab1 AS cor0
----
-231984
-261687
-734304

query I rowsort
SELECT ALL col1 * ( - col2 * - col2 ) FROM tab1 AS cor0
----
119808
32490
75816

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-582
SELECT DISTINCT 64 + 89 DIV + col0 AS col1 FROM tab2 AS cor0
----
65
76

skipif mysql # not compatible
query I rowsort label-582
SELECT DISTINCT 64 + 89 / + col0 AS col1 FROM tab2 AS cor0
----
65
76

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

query I rowsort
SELECT 31 * - col0 + - col0 FROM tab0 AS cor0
----
-1120
-2848
-768

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 15 + col0 * - col1 * col1 col0 FROM tab2 AS cor0
----
-22846
-271533
-6742

query I rowsort
SELECT DISTINCT + 61 * + cor1.col0 FROM tab0, tab2 AS cor0, tab1, tab2 AS cor1
----
427
4758
4819

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

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

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

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

query I rowsort
SELECT 68 - + col1 * - 13 AS col1 FROM tab1
----
198
237
406

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + 16 col1 FROM tab1 AS cor0
----
-38
-41
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - cor0.col0 + cor0.col1 * + col0 + cor0.col0 * - 47 col2 FROM tab2 AS cor0
----
-1027
105
5538

onlyif mysql # use DIV operator for integer division
query I rowsort label-596
SELECT ALL col1 DIV col1 + col0 FROM tab1 AS cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-596
SELECT ALL col1 / col1 + col0 FROM tab1 AS cor0
----
4
65
81

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

query I rowsort
SELECT DISTINCT + col0 - 63 AS col2 FROM tab1 AS cor0
----
-60
1
17

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

query I rowsort
SELECT DISTINCT col0 - col0 * - ( col1 * + tab2.col0 ) FROM tab2
----
106176
1526
359034

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

query I rowsort
SELECT cor1.col1 * + cor1.col2 FROM tab2, tab1, tab2 AS cor0, tab0 AS cor1
----
81 values hashing to fa19f19166ddb9d787d698fb7a7a671e

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

query I rowsort
SELECT 31 AS col1 FROM tab2, tab0 cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 0bb6d1445d82a11417f7bb2ec248ca9c

query I rowsort
SELECT col1 - + col0 FROM tab0 WHERE - col1 + col1 <> ( NULL )
----

query I rowsort
SELECT + col1 AS col0 FROM tab1 WHERE NOT col0 * col0 * - col2 IN ( + tab1.col2 + - col2 * col0 + - col1 )
----
10
13
26

query I rowsort
SELECT ALL - 26 * + col0 AS col1 FROM tab0
----
-2314
-624
-910

query I rowsort
SELECT + 57 AS col2 FROM tab2, tab1, tab2 cor0
----
27 values hashing to 220a93709e207779b34ef74b544764a5

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

skipif mysql # not compatible
query I rowsort label-609
SELECT DISTINCT CAST ( cor0.col0 AS INTEGER ) AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
3
64
80

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

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

query I rowsort
SELECT col0 * col0 + + col1 + col1 AS col2 FROM tab0
----
1419
748
8103

query I rowsort
SELECT DISTINCT col1 + + col1 - col1 FROM tab1
----
10
13
26

query I rowsort
SELECT DISTINCT tab1.col0 * col2 - col0 FROM tab1 WHERE NULL >= ( NULL )
----

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + tab1.col2 + col1 col0 FROM tab1
----
-2890
-3239
-9203

query I rowsort
SELECT DISTINCT col2 * + col1 + col0 + + col0 * col0 AS col1 FROM tab1
----
1416
4730
7728

query I rowsort
SELECT ALL - tab2.col2 * - tab2.col2 AS col2 FROM tab2
----
1444
676
729

query I rowsort
SELECT DISTINCT - col2 + col0 FROM tab1 WHERE NOT - col1 * - col1 + - col1 > col1
----

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

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN ( col2 * col2 ) AND NULL
----

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

query I rowsort
SELECT col2 FROM tab0 WHERE NOT - tab0.col0 * col0 > NULL
----

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

query I rowsort
SELECT col2 * col2 * - col2 FROM tab2
----
-17576
-19683
-54872

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 * col2 <= ( col2 + + col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col2 + + col0 col1 FROM tab1
----
-2913
-3185
-9136

query I rowsort
SELECT col2 * col2 + col1 AS col2 FROM tab1
----
2942
3259
9229

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col0 col2 FROM tab2 WHERE NOT ( NULL ) >= NULL
----

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

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT col1 IN ( + col0 * col0 + tab0.col1 )
----
-86
-91
-97

query I rowsort
SELECT DISTINCT 25 + - col0 AS col1 FROM tab0 AS cor0
----
-10
-64
1

query I rowsort
SELECT + col2 - col2 * col2 FROM tab1 AS cor0
----
-2862
-3192
-9120

query I rowsort
SELECT + col0 * 23 * col2 AS col0 FROM tab2
----
4347
46644
69046

query I rowsort
SELECT 87 AS col1 FROM tab2, tab0, tab2 cor0
----
27 values hashing to 8661ffbd1a72897c495405c53b816e50

query I rowsort
SELECT DISTINCT + + ( 89 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
89

query I rowsort
SELECT + 33 + - col1 * + col2 * - cor0.col1 + - col1 * col2 FROM tab2 AS cor0
----
10369
25143
89005

query I rowsort
SELECT - + col0 * - cor0.col0 + col2 * col0 FROM tab2 AS cor0
----
238
8112
9243

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * 32 * col1 col2 FROM tab1 AS cor0
----
20480
2496
33280

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

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

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

skipif mysql # not compatible
query I rowsort label-648
SELECT ALL - + col1 / - 83 FROM tab0 cor0
----
1
1
1

query I rowsort
SELECT - 18 - 30 AS col1 FROM tab0 AS cor0
----
-48
-48
-48

query I rowsort
SELECT + col1 + + 59 FROM tab1 AS cor0
----
69
72
85

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

query I rowsort
SELECT - 29 * col0 - - col1 AS col2 FROM tab0 AS cor0
----
-2490
-610
-918

query I rowsort
SELECT + col2 * 54 - col1 AS col0 FROM tab1 AS cor0
----
2890
3068
5171

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

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

query I rowsort
SELECT DISTINCT 31 * col2 + + col1 * col2 AS col1 FROM tab0 cor0
----
10004
128
3861

query I rowsort
SELECT ALL - - 97 * - col0 AS col2 FROM tab2 AS cor0
----
-679
-7566
-7663

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

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

query I rowsort
SELECT + + 59 * + col1 * col2 AS col0 FROM tab1 AS cor0
----
33630
73632
82836

query I rowsort
SELECT - 68 * + col1 FROM tab2
----
-1156
-2108
-4012

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 ALL col2 + + col1 col2 FROM tab2 AS cor0
----
55
58
85

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

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

query I rowsort
SELECT DISTINCT - col2 * col2 + col0 * + cor0.col1 FROM tab0 AS cor0
----
1375
3394
975

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-668
SELECT + + 91 * col1 DIV cor0.col0 + col1 AS col0 FROM tab0 AS cor0
----
184
349
412

skipif mysql # not compatible
query I rowsort label-668
SELECT + + 91 * col1 / cor0.col0 + col1 AS col0 FROM tab0 AS cor0
----
184
349
412

query I rowsort
SELECT ALL 60 + - col2 * col0 + + col0 FROM tab1
----
-3524
-7540
-99

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

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

query I rowsort
SELECT ALL - tab2.col0 + - col2 - col0 * col2 FROM tab2
----
-2132
-223
-3119

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

query I rowsort
SELECT + col1 - + 49 * + tab2.col2 FROM tab2
----
-1215
-1292
-1845

query I rowsort
SELECT cor0.col2 * - 85 FROM tab0 AS cor0
----
-2805
-6970
-85

query I rowsort
SELECT - 30 * - col2 FROM tab1 AS cor0
----
1620
1710
2880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 88 * cor0.col1 + + col2 * cor0.col1 * + col1 col0 FROM tab0 AS cor0
----
17945
251636
687050

onlyif mysql # use DIV operator for integer division
query I rowsort label-678
SELECT cor0.col1 DIV cor0.col1 - - col0 * - cor0.col1 AS col2 FROM tab2 cor0
----
-1342
-216
-4601

skipif mysql # not compatible
query I rowsort label-678
SELECT cor0.col1 / cor0.col1 - - col0 * - cor0.col1 AS col2 FROM tab2 cor0
----
-1342
-216
-4601

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

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

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

query I rowsort
SELECT DISTINCT + col0 + cor0.col1 * - col1 * col1 FROM tab2 AS cor0
----
-205301
-29784
-4834

query I rowsort
SELECT DISTINCT - col1 * col0 + + col0 * col2 + col1 FROM tab2 AS cor0
----
-2515
1676
3

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

query I rowsort
SELECT DISTINCT - col0 * col2 * col2 FROM tab1
----
-207936
-737280
-8748

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 + + col1 + + col2 >= NULL
----

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

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

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT col1 * + col1 + - col1 NOT BETWEEN ( col2 + col0 + - col0 ) AND ( - col1 )
----

query I rowsort
SELECT ALL - col0 + + cor0.col1 * - cor0.col0 FROM tab2 AS cor0
----
-1422
-224
-4680

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col0 <> - col0
----

query I rowsort
SELECT ALL + col2 + col1 * col0 * col2 AS col2 FROM tab1 cor0
----
36537
4266
99936

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

query I rowsort
SELECT DISTINCT - col0 + + col0 * - col0 AS col1 FROM tab1 AS cor0
----
-12
-4160
-6480

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-696
SELECT DISTINCT + cor0.col0 + col1 / col1 col1 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT ALL - cor0.col0 * col0 + cor0.col1 FROM tab2 AS cor0
----
-18
-6025
-6224

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

query I rowsort
SELECT DISTINCT + col2 * col2 + col0 - + col1 AS col1 FROM tab2 AS cor0
----
1506
695
705

query I rowsort
SELECT DISTINCT - col0 * - col1 + cor0.col2 * cor0.col0 * + col2 FROM tab1 cor0
----
208576
738320
8826

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-704
SELECT - col2 + - col1 DIV + tab2.col1 AS col2 FROM tab2
----
-27
-28
-39

skipif mysql # not compatible
query I rowsort label-704
SELECT - col2 + - col1 / + tab2.col1 AS col2 FROM tab2
----
-27
-28
-39

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - 67 - - 40 col2 FROM tab2 AS cor0
----
-1
0
11

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-711
SELECT ALL + - col1 + col1 DIV - col1 FROM tab2 AS cor0
----
-18
-32
-60

skipif mysql # not compatible
query I rowsort label-711
SELECT ALL + - col1 + col1 / - col1 FROM tab2 AS cor0
----
-18
-32
-60

query I rowsort
SELECT ALL + col1 - - cor0.col1 FROM tab1 AS cor0
----
20
26
52

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

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

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

query I rowsort
SELECT - 96 * col2 * + cor0.col0 FROM tab1 AS cor0
----
-15552
-350208
-737280

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 3 + col0 col0 FROM tab2 AS cor0
----
10
81
82

query I rowsort
SELECT DISTINCT + + col1 + - col2 * ( - col0 ) + + col2 * - ( col1 ) * - col0 FROM tab0 AS cor0
----
3527
671507
68990

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 81 * col1 + - 62 * cor0.col2 col0 FROM tab2 AS cor0
----
-979
3167
837

query I rowsort
SELECT 24 FROM tab0, tab1 AS cor0, tab0 cor1
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080

onlyif mysql # use DIV operator for integer division
query I rowsort label-724
SELECT - cor0.col2 DIV 1 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

skipif mysql # not compatible
query I rowsort label-724
SELECT - cor0.col2 / 1 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

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

query I rowsort
SELECT ALL - 23 + + col1 * + ( col0 ) FROM tab1 AS cor0
----
1017
55
617

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-729
SELECT col0 * - col2 + + ( cor0.col0 + + cor0.col0 ) DIV + col2 AS col0 FROM tab1 AS cor0
----
-162
-3646
-7679

skipif mysql # not compatible
query I rowsort label-729
SELECT col0 * - col2 + + ( cor0.col0 + + cor0.col0 ) / + col2 AS col0 FROM tab1 AS cor0
----
-162
-3646
-7679

onlyif mysql # use DIV operator for integer division
query I rowsort label-730
SELECT - col0 + col0 DIV 80 FROM tab1 AS cor0
----
-3
-64
-79

skipif mysql # not compatible
query I rowsort label-730
SELECT - col0 + col0 / 80 FROM tab1 AS cor0
----
-3
-64
-79

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

query I rowsort
SELECT DISTINCT - ( col1 ) + - 71 AS col2 FROM tab1
----
-81
-84
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-733
SELECT - ( col0 ) DIV + 11 AS col0 FROM tab0
----
-2
-3
-8

skipif mysql # not compatible
query I rowsort label-733
SELECT - ( col0 ) / + 11 AS col0 FROM tab0
----
-2
-3
-8

query I rowsort
SELECT ALL 99 AS col2 FROM tab0, tab1, tab0 cor0
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67

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

query I rowsort
SELECT - + col1 * col1 - col0 AS col2 FROM tab1 AS cor0
----
-164
-249
-679

onlyif mysql # use DIV operator for integer division
query I rowsort label-737
SELECT + col1 * 39 + col2 * + col0 - - 95 DIV col2 FROM tab0 AS cor0
----
10848
3913
4148

skipif mysql # not compatible
query I rowsort label-737
SELECT + col1 * 39 + col2 * + col0 - - 95 / col2 FROM tab0 AS cor0
----
10848
3913
4148

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

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

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

query I rowsort
SELECT col0 * cor0.col0 - 35 FROM tab0 AS cor0
----
1190
541
7886

query I rowsort
SELECT ALL - col1 + - 3 - col1 AS col2 FROM tab1 AS cor0
----
-23
-29
-55

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

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

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

query I rowsort
SELECT + cor0.col2 + + 75 FROM tab1 AS cor0
----
129
132
171

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-747
SELECT ALL col1 * CAST( 9 AS SIGNED ) FROM tab2
----
153
279
531

skipif mysql # not compatible
query I rowsort label-747
SELECT ALL col1 * CAST ( 9 AS INTEGER ) FROM tab2
----
153
279
531

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

query I rowsort
SELECT - 32 * cor0.col2 AS col2 FROM tab0 AS cor0
----
-1056
-2624
-32

onlyif mysql # use DIV operator for integer division
query I rowsort label-750
SELECT ALL 39 DIV + col0 FROM tab1
----
0
0
13

skipif mysql # not compatible
query I rowsort label-750
SELECT ALL 39 / + col0 FROM tab1
----
0
0
13

query I rowsort
SELECT + + 95 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e

onlyif mysql # use DIV operator for integer division
query I rowsort label-752
SELECT - 70 + - col0 DIV + col0 AS col2 FROM tab2 AS cor0
----
-71
-71
-71

skipif mysql # not compatible
query I rowsort label-752
SELECT - 70 + - col0 / + col0 AS col2 FROM tab2 AS cor0
----
-71
-71
-71

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

query I rowsort
SELECT - 52 * col0 AS col1 FROM tab2 AS cor0
----
-364
-4056
-4108

query I rowsort
SELECT 13 * cor0.col1 AS col0 FROM tab0 AS cor0
----
1118
1183
1261

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

query I rowsort
SELECT ALL + 97 AS col2 FROM tab2
----
97
97
97

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

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

query I rowsort
SELECT DISTINCT - + 29 * - 93 AS col2 FROM tab1 AS cor0
----
2697

query I rowsort
SELECT ALL - 34 + - 38 AS col0 FROM tab0 AS cor0
----
-72
-72
-72

query I rowsort
SELECT DISTINCT ( col0 ) * col2 + - 48 * col1 + cor0.col0 * - cor0.col1 FROM tab2 AS cor0
----
-1516
-5406
843

query I rowsort
SELECT + 57 + col1 FROM tab1 AS cor0
----
67
70
83

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

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

query I rowsort
SELECT + + 34 * + col0 + - col2 AS col2 FROM tab0 AS cor0
----
1189
2944
783

query I rowsort
SELECT DISTINCT + + 63 + + col2 FROM tab2 AS cor0
----
101
89
90

query I rowsort
SELECT DISTINCT + + col2 * col0 * 68 AS col2 FROM tab0 AS cor0
----
2380
496264
53856

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-770
SELECT DISTINCT + col2 + - cor0.col2 DIV - 79 AS col2 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-770
SELECT DISTINCT + col2 + - cor0.col2 / - 79 AS col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL - + 53 + - col1 AS col2 FROM tab0 AS cor0
----
-139
-144
-150

query I rowsort
SELECT ALL + + col1 + col1 * ( + 32 + + col2 ) FROM tab1 AS cor0
----
1677
2262
900

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

query I rowsort
SELECT DISTINCT col1 * + col2 + + col1 * 71 AS col1 FROM tab2 AS cor0
----
1853
3038
5723

query I rowsort
SELECT DISTINCT - ( 39 ) - col1 FROM tab1
----
-49
-52
-65

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col1 + - col2 AS REAL ) FROM tab2
----
-21
33
4

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

skipif mysql # not compatible
query I rowsort label-777
SELECT ALL 48 / + 78 - col1 AS col0 FROM tab2
----
-17
-31
-59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-778
SELECT + ( + col0 + col0 ) * + CAST( - 35 AS SIGNED ) * + col1 FROM tab2
----
-15190
-322140
-94010

skipif mysql # not compatible
query I rowsort label-778
SELECT + ( + col0 + col0 ) * + CAST ( - 35 AS INTEGER ) * + col1 FROM tab2
----
-15190
-322140
-94010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 97 col2 FROM tab1, tab2, tab2 AS cor0, tab1 AS cor1
----
81 values hashing to a85708f93e08f0a017b33cd7912642fd

query I rowsort
SELECT ALL + + 33 + cor0.col0 * + 76 * - 18 FROM tab2 cor0
----
-106671
-108039
-9543

query I rowsort
SELECT ALL - col2 * - col2 * col2 + + col2 AS col1 FROM tab2 AS cor0
----
17602
19710
54910

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-784
SELECT - col0 - + col2 * CAST( 92 AS SIGNED ) FROM tab2 AS cor0
----
-2470
-2491
-3575

skipif mysql # not compatible
query I rowsort label-784
SELECT - col0 - + col2 * CAST ( 92 AS INTEGER ) FROM tab2 AS cor0
----
-2470
-2491
-3575

query I rowsort
SELECT + ( - col0 + + col2 ) * + tab0.col2 FROM tab0
----
-34
-574
297

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

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

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

query I rowsort
SELECT + col0 + - 81 FROM tab2 AS cor0
----
-2
-3
-74

query I rowsort
SELECT - col0 * - 74 * col0 AS col1 FROM tab0 AS cor0
----
42624
586154
90650

query I rowsort
SELECT + col0 + 69 + 79 AS col1 FROM tab1 AS cor0
----
151
212
228

query I rowsort
SELECT - - col0 * col0 + + 48 FROM tab2 AS cor0
----
6132
6289
97

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

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

query I rowsort
SELECT + 48 * + col1 + + col2 FROM tab0 AS cor0
----
4161
4450
4657

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col2 - - cor0.col0 col0 FROM tab1 AS cor0
----
185
256
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-797
SELECT 27 DIV + 48 col1 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-797
SELECT 27 / + 48 col1 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + col1 * col1 col2 FROM tab1 cor0
----
164
249
679

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

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

query I rowsort
SELECT DISTINCT + - col1 * + 65 FROM tab2 AS cor0
----
-1105
-2015
-3835

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

query I rowsort
SELECT col0 + + 43 FROM tab2
----
121
122
50

query I rowsort
SELECT DISTINCT + col0 * 63 FROM tab0
----
1512
2205
5607

query I rowsort
SELECT ALL - ( 26 ) AS col0 FROM tab1
----
-26
-26
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * 25 col0 FROM tab2 AS cor0
----
1475
425
775

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

query I rowsort
SELECT DISTINCT - 52 + 87 * - col0 AS col2 FROM tab2 AS cor0
----
-661
-6838
-6925

query I rowsort
SELECT ALL - col2 * 51 - + col1 * + cor0.col1 FROM tab2 AS cor0
----
-2227
-2338
-4807

query I rowsort
SELECT DISTINCT - col1 + ( col2 ) * ( - ( cor0.col2 ) ) * - 4 AS col2 FROM tab0 AS cor0
----
-93
26805
4270

skipif mysql # not compatible
query I rowsort
SELECT - - CAST ( + col0 AS REAL ) AS col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT - + col1 - col1 AS col0 FROM tab1 AS cor0
----
-20
-26
-52

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

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

query I rowsort
SELECT DISTINCT + 52 * + col2 + - 33 * col2 AS col2 FROM tab1
----
1026
1083
1824

query I rowsort
SELECT - col1 * col1 * col2 AS col0 FROM tab0
----
-244068
-679042
-9409

query I rowsort
SELECT ( col1 ) - - 43 AS col2 FROM tab1 cor0
----
53
56
69

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

skipif mysql # not compatible
query I rowsort label-817
SELECT ALL - col0 + CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
-19
-62
24

skipif mysql # not compatible
query I rowsort
SELECT ALL - col0 * col1 + 76 * + col1 + - CAST ( + col1 AS REAL ) * col1 AS col2 FROM tab1 AS cor0
----
-221
1222
20

query I rowsort
SELECT col0 + 78 * tab1.col2 FROM tab1
----
4215
4510
7568

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

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

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

query I rowsort
SELECT ALL col1 + tab2.col1 * col1 AS col0 FROM tab2
----
306
3540
992

query I rowsort
SELECT DISTINCT - + ( 4 ) * + col2 + + 36 AS col2 FROM tab0 AS cor0
----
-292
-96
32

query I rowsort
SELECT + 30 * col2 FROM tab1
----
1620
1710
2880

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-827
SELECT + col2 * - col1 - 96 DIV + col1 FROM tab0 AS cor0
----
-2839
-7463
-97

skipif mysql # not compatible
query I rowsort label-827
SELECT + col2 * - col1 - 96 / + col1 FROM tab0 AS cor0
----
-2839
-7463
-97

query I rowsort
SELECT 49 + + col2 FROM tab1 cor0
----
103
106
145

query I rowsort
SELECT + 95 - - cor0.col0 * 27 * - col1 FROM tab0 AS cor0
----
-218578
-55633
-91570

query I rowsort
SELECT ALL - col2 + + 85 FROM tab2 AS cor0
----
47
58
59

query I rowsort
SELECT DISTINCT + col0 + col1 + col0 * col1 FROM tab1 AS cor0
----
107
1133
714

query I rowsort
SELECT 79 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1

query I rowsort
SELECT - + 38 * col0 AS col0 FROM tab0 AS cor0
----
-1330
-3382
-912

query I rowsort
SELECT 8 * - col2 FROM tab2 AS cor0
----
-208
-216
-304

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

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

query I rowsort
SELECT DISTINCT + 85 + + col0 AS col1 FROM tab0 AS cor0
----
109
120
174

query I rowsort
SELECT DISTINCT - + 39 * col2 FROM tab1 AS cor0
----
-2106
-2223
-3744

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

query I rowsort
SELECT - + col1 * + 19 FROM tab0 AS cor0
----
-1634
-1729
-1843

query I rowsort
SELECT - ( + col1 ) + - cor0.col1 FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT DISTINCT col1 * 66 FROM tab0
----
5676
6006
6402

onlyif mysql # use DIV operator for integer division
query I rowsort label-842
SELECT DISTINCT 32 * col2 - + col1 DIV - col2 AS col0 FROM tab0 AS cor0
----
1058
129
2625

skipif mysql # not compatible
query I rowsort label-842
SELECT DISTINCT 32 * col2 - + col1 / - col2 AS col0 FROM tab0 AS cor0
----
1058
129
2625

query I rowsort
SELECT DISTINCT + cor0.col2 + - ( 69 ) AS col0 FROM tab0, tab2 AS cor0, tab2 cor1
----
-31
-42
-43

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-845
SELECT ALL - + col2 * + col1 - + col0 DIV - col0 AS col1 FROM tab0 cor0
----
-2837
-7461
-96

skipif mysql # not compatible
query I rowsort label-845
SELECT ALL - + col2 * + col1 - + col0 / - col0 AS col1 FROM tab0 cor0
----
-2837
-7461
-96

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

query I rowsort
SELECT + col0 * - cor0.col0 * + ( + col0 * col2 ) + + col2 AS col1 FROM tab0 AS cor0
----
-42874
-456159
-57807376

onlyif mysql # use DIV operator for integer division
query I rowsort label-848
SELECT + ( col0 ) - + ( col0 ) DIV col1 AS col1 FROM tab1 AS cor0
----
3
58
74

skipif mysql # not compatible
query I rowsort label-848
SELECT + ( col0 ) - + ( col0 ) / col1 AS col1 FROM tab1 AS cor0
----
3
58
74

query I rowsort
SELECT DISTINCT - 73 + col2 AS col2 FROM tab2 AS cor0
----
-35
-46
-47

query I rowsort
SELECT + cor0.col2 * 82 AS col0 FROM tab1 cor0
----
4428
4674
7872

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

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

query I rowsort
SELECT + col1 * col0 * + col2 + col1 + col2 * + cor0.col1 * col2 FROM tab1 AS cor0
----
219661
68980
80054

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

query I rowsort
SELECT - 72 * col2 * col2 FROM tab1
----
-209952
-233928
-663552

query I rowsort
SELECT ( - col0 + + col0 ) FROM tab2
----
0
0
0

query I rowsort
SELECT col1 * - 97 * col2 FROM tab1
----
-121056
-136188
-55290

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 84 ) col0 FROM tab1, tab1 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query I rowsort
SELECT + col2 + 33 FROM tab0 AS cor0
----
115
34
66

query I rowsort
SELECT - col2 - - col2 * col0 FROM tab0
----
34
7216
759

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

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

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

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

query I rowsort
SELECT 37 * tab2.col0 + col2 * col0 FROM tab2
----
448
4914
5925

query I rowsort
SELECT - cor0.col1 * - 55 + + col1 * col2 FROM tab0 AS cor0
----
12467
5432
7568

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

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

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

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

query I rowsort
SELECT + col1 + col1 * 90 AS col1 FROM tab2 cor0
----
1547
2821
5369

query I rowsort
SELECT ALL col0 + col2 * 33 + col0 FROM tab0 AS cor0
----
103
1137
2884

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

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

query I rowsort
SELECT DISTINCT col0 + col1 * - 72 + col1 AS col2 FROM tab0 AS cor0
----
-6082
-6372
-6852

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

skipif mysql # not compatible
query I rowsort label-873
SELECT ALL - col0 * CAST ( + col2 AS INTEGER ) + col0 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT + 9 + 24 AS col2 FROM tab2 AS cor0
----
33
33
33

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

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

query I rowsort
SELECT ALL - - 4 * cor0.col2 FROM tab0, tab1 AS cor0, tab1, tab1 AS cor1
----
81 values hashing to 68e8947468c68f416cec7ec574863e72

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

query I rowsort
SELECT DISTINCT - col2 + - ( - cor0.col2 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + + 81 + 42 FROM tab2 AS cor0
----
123

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + + col1 * - col1 col1 FROM tab1 cor0
----
-36
-673
-89

query I rowsort
SELECT ALL - col2 + - col2 * + 92 AS col1 FROM tab1 AS cor0
----
-5022
-5301
-8928

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

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

query I rowsort
SELECT - 52 AS col2 FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
81 values hashing to bee61227972ad9a02705a1cd2b945aee

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-888
SELECT + ( - col1 ) DIV col2 + + col1 AS col1 FROM tab1 cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-888
SELECT + ( - col1 ) / col2 + + col1 AS col1 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT 72 + col1 AS col1 FROM tab2 AS cor0
----
103
131
89

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

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

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

query I rowsort
SELECT ALL - - col0 * - cor0.col0 * - col0 - + col1 FROM tab0 AS cor0
----
13738
42778
704878

query I rowsort
SELECT DISTINCT + - ( - col0 ) + + 96 * - col1 + col1 * - cor0.col1 FROM tab2 AS cor0
----
-1842
-3930
-9067

query I rowsort
SELECT ALL - 45 + col1 FROM tab1 AS cor0
----
-19
-32
-35

onlyif mysql # use DIV operator for integer division
query I rowsort label-896
SELECT - 98 DIV col1 FROM tab2 AS cor0
----
-1
-3
-5

skipif mysql # not compatible
query I rowsort label-896
SELECT - 98 / col1 FROM tab2 AS cor0
----
-1
-3
-5

query I rowsort
SELECT ALL col0 + + 3 FROM tab0
----
27
38
92

query I rowsort
SELECT ( col0 ) + col0 * 46 FROM tab2 AS cor0
----
329
3666
3713

query I rowsort
SELECT ALL + 75 * - col0 + tab1.col2 FROM tab1
----
-171
-4743
-5904

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

query I rowsort
SELECT DISTINCT 3 + col0 AS col0 FROM tab1 AS cor0
----
6
67
83

query I rowsort
SELECT + 18 * cor0.col2 FROM tab1 AS cor0
----
1026
1728
972

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

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

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

query I rowsort
SELECT ALL 61 + - 66 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

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

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

query I rowsort
SELECT ALL - 18 * 19 AS col2 FROM tab0 AS cor0
----
-342
-342
-342

query I rowsort
SELECT DISTINCT 69 * 44 FROM tab1 AS cor0
----
3036

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + + col1 - + col0 col1 FROM tab0 AS cor0
----
63
84
95

query I rowsort
SELECT ALL 98 FROM tab2, tab2 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

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

query I rowsort
SELECT DISTINCT - 16 * cor0.col2 FROM tab2 AS cor0
----
-416
-432
-608

query I rowsort
SELECT DISTINCT - col0 - - col2 * 70 * + col0 FROM tab2
----
13223
141882
210061

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-916
SELECT - 97 DIV col0 FROM tab1
----
-1
-1
-32

skipif mysql # not compatible
query I rowsort label-916
SELECT - 97 / col0 FROM tab1
----
-1
-1
-32

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-919
SELECT DISTINCT + col2 DIV - 77 FROM tab1 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-919
SELECT DISTINCT + col2 / - 77 FROM tab1 cor0
----
-1
0

query I rowsort
SELECT + 54 * + col0 + col1 * + col0 AS col1 FROM tab0 AS cor0
----
12905
3360
5285

query I rowsort
SELECT col0 * 16 + - cor0.col1 * ( + ( + col0 ) + - cor0.col1 ) FROM tab1 AS cor0
----
409
484
646

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-923
SELECT DISTINCT + col0 DIV - 32 + + col0 AS col1 FROM tab2
----
7
76
77

skipif mysql # not compatible
query I rowsort label-923
SELECT DISTINCT + col0 / - 32 + + col0 AS col1 FROM tab2
----
7
76
77

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

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

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

query I rowsort
SELECT col1 FROM tab2 WHERE NOT ( + col1 ) NOT BETWEEN col0 + - col2 AND - col2
----

query I rowsort
SELECT col2 * + col1 AS col1 FROM tab0 WHERE ( col0 * col2 ) <= col1 + - col0 * + col2
----
97

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-929
SELECT DISTINCT + col2 / - col1 + col1 * + col0 col2 FROM tab1
----
1033
635
76

query I rowsort
SELECT ALL - col1 AS col2 FROM tab1 WHERE NOT ( col1 ) < col0 - - col0
----
-26

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

query I rowsort
SELECT tab1.col2 * - col0 * - col1 + + col0 + - col0 * + col0 AS col0 FROM tab1
----
32448
4206
93520

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col2 ) NOT BETWEEN col2 AND NULL
----

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

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

query I rowsort
SELECT + col1 + - col0 * col1 * - col1 - - col2 AS col1 FROM tab1
----
13629
2108
6467

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col1 col2 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT col1 * - tab1.col0 - col2 * + col2 FROM tab1
----
-10256
-2994
-3889

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col0 - col0 col2 FROM tab0 WHERE NOT col0 < + col2 - col1
----
-70
-7387
-816

query I rowsort
SELECT + cor0.col2 * col0 - + ( 8 * + cor0.col2 ) FROM tab2 AS cor0
----
-27
1820
2698

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-943
SELECT ALL col1 - col0 DIV col2 col1 FROM tab0
----
62
86
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-943
SELECT ALL col1 - col0 / col2 col1 FROM tab0
----
62
86
90

query I rowsort
SELECT DISTINCT - col2 FROM tab0 cor0 WHERE NOT ( NULL ) <= + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col1 * + tab1.col1 col1 FROM tab1
----
100
169
676

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-948
SELECT ALL - col0 DIV col2 + col0 * + tab0.col2 * col2 FROM tab0
----
0
26136
598435

skipif mysql # not compatible
query I rowsort label-948
SELECT ALL - col0 / col2 + col0 * + tab0.col2 * col2 FROM tab0
----
0
26136
598435

query I rowsort
SELECT ALL - tab2.col1 * - col1 FROM tab2 WHERE NOT col2 NOT BETWEEN col0 AND NULL
----

query I rowsort
SELECT - tab2.col2 + - col0 * tab2.col2 FROM tab2
----
-2054
-216
-3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-951
SELECT + col0 * col0 DIV - col2 FROM tab1 AS cor0
----
-66
-71
0

skipif mysql # not compatible
query I rowsort label-951
SELECT + col0 * col0 / - col2 FROM tab1 AS cor0
----
-66
-71
0

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col0 - + col0 * tab0.col0 * col0 col2 FROM tab0
----
-15888
-46270
-713068

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 39 ) * + col0 col1 FROM tab1
----
117
2496
3120

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

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

query I rowsort
SELECT 61 AS col1 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-967
SELECT + col1 + ( col2 + col2 ) / col1 AS col0 FROM tab0 cor0
----
86
92
97

query I rowsort
SELECT col0 + - cor0.col2 + col1 AS col1 FROM tab1 cor0
----
-25
-3
17

query I rowsort
SELECT - col2 + + cor0.col1 * col2 * - col2 + 9 * col0 * col1 AS col0 FROM tab0 cor0
----
-539075
-75111
30457

query I rowsort
SELECT DISTINCT - 51 * col0 FROM tab1
----
-153
-3264
-4080

query I rowsort
SELECT ALL + cor0.col2 * + 96 * - col2 + - col1 AS col1 FROM tab1 AS cor0
----
-279962
-311914
-884749

onlyif mysql # use DIV operator for integer division
query I rowsort label-972
SELECT + col2 * col1 + + 0 DIV cor0.col1 FROM tab0 cor0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-972
SELECT + col2 * col1 + + 0 / cor0.col1 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT ALL - + cor0.col1 * cor0.col1 + - 16 FROM tab0 AS cor0
----
-7412
-8297
-9425

query I rowsort
SELECT DISTINCT + + col0 + col1 - - 22 * + col0 FROM tab0 AS cor0
----
2138
638
902

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

query I rowsort
SELECT 10 * - col2 * ( - col2 * + col0 ) AS col1 FROM tab1
----
2079360
7372800
87480

query I rowsort
SELECT ALL + + ( + 28 ) * col0 AS col0 FROM tab2 AS cor0
----
196
2184
2212

query I rowsort
SELECT ALL + col0 * col1 - + col2 * - col1 AS col0 FROM tab0 AS cor0
----
15561
3492
4902

query I rowsort
SELECT ALL - - col2 + 15 FROM tab2 cor0
----
41
42
53

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-981
SELECT DISTINCT col2 + + CAST( + 19 AS SIGNED ) + + tab2.col2 FROM tab2
----
71
73
95

skipif mysql # not compatible
query I rowsort label-981
SELECT DISTINCT col2 + + CAST ( + 19 AS INTEGER ) + + tab2.col2 FROM tab2
----
71
73
95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-982
SELECT DISTINCT + tab0.col2 * CAST( 19 AS SIGNED ) + col0 * col0 AS col1 FROM tab0
----
1203
1244
9479

skipif mysql # not compatible
query I rowsort label-982
SELECT DISTINCT + tab0.col2 * CAST ( 19 AS INTEGER ) + col0 * col0 AS col1 FROM tab0
----
1203
1244
9479

query I rowsort
SELECT - col1 * - 84 FROM tab0
----
7224
7644
8148

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 47 ) col0 FROM tab0
----
47

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + 77 col1 FROM tab0
----
110
159
78

query I rowsort
SELECT - ( + ( col1 ) + - col2 ) * col1 AS col0 FROM tab1
----
1079
470
728

query I rowsort
SELECT - 94 + - tab0.col2 * col2 AS col0 FROM tab0
----
-1183
-6818
-95

query I rowsort
SELECT DISTINCT ( 22 ) * tab2.col0 * - col0 FROM tab2
----
-1078
-133848
-137302

query I rowsort
SELECT + col0 * + col1 + + col1 * col2 AS col0 FROM tab0
----
15561
3492
4902

query I rowsort
SELECT 79 + col2 FROM tab2
----
105
106
117

query I rowsort
SELECT - 36 * - col1 FROM tab1
----
360
468
936

query I rowsort
SELECT DISTINCT - tab1.col0 * 41 AS col1 FROM tab1, tab0 AS cor0
----
-123
-2624
-3280

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 60 col1 FROM tab0, tab2, tab2 cor0
----
-60

skipif mysql # not compatible
query I rowsort
SELECT ALL + col1 * CAST ( col2 AS REAL ) FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-996
SELECT col0 DIV col0 - col0 * col0 FROM tab2 AS cor0
----
-48
-6083
-6240

skipif mysql # not compatible
query I rowsort label-996
SELECT col0 / col0 - col0 * col0 FROM tab2 AS cor0
----
-48
-6083
-6240

onlyif mysql # use DIV operator for integer division
query I rowsort label-997
SELECT DISTINCT - + col2 * ( - ( cor0.col1 ) ) DIV col1 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-997
SELECT DISTINCT - + col2 * ( - ( cor0.col1 ) ) / col1 FROM tab2 AS cor0
----
26
27
38

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

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

query I rowsort
SELECT ALL + col2 * + tab1.col1 - 56 * + col2 FROM tab1
----
-1620
-2622
-4128

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

query I rowsort
SELECT + - col1 + col0 * 77 FROM tab2 AS cor0
----
508
5947
6066

query I rowsort
SELECT 18 * - col2 + + col0 AS col1 FROM tab1
----
-1648
-962
-969

query I rowsort
SELECT ALL - col2 * col0 + + col1 * - col1 - col0 * tab2.col1 AS col1 FROM tab2
----
-10111
-1367
-4634

onlyif mysql # use DIV operator for integer division
query I rowsort label-1005
SELECT 31 DIV col0 - + col0 * + col0 FROM tab1
----
-4096
-6400
1

skipif mysql # not compatible
query I rowsort label-1005
SELECT 31 / col0 - + col0 * + col0 FROM tab1
----
-4096
-6400
1

query I rowsort
SELECT DISTINCT - 98 * col2 - col0 AS col0 FROM tab1
----
-5295
-5650
-9488

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-1008
SELECT ALL col0 DIV 64 + col0 + + col0 FROM tab2
----
14
157
159

skipif mysql # not compatible
query I rowsort label-1008
SELECT ALL col0 / 64 + col0 + + col0 FROM tab2
----
14
157
159

query I rowsort
SELECT - col1 * col2 + col2 * col1 * col1 AS col2 FROM tab2 cor0
----
10336
25110
88972

query I rowsort
SELECT ALL + - cor0.col1 + - 7 AS col0 FROM tab2 AS cor0
----
-24
-38
-66

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

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

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

query I rowsort
SELECT col2 + 84 AS col2 FROM tab2 AS cor0
----
110
111
122

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

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

query I rowsort
SELECT - - col2 * - ( col1 * col1 ) - col1 AS col2 FROM tab1 AS cor0
----
-16237
-36530
-5710

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

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

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

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

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

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

query I rowsort
SELECT ALL + col2 * col2 + + col1 FROM tab1
----
2942
3259
9229

query I rowsort
SELECT ALL + col1 * col1 + + col1 + - col0 AS col2 FROM tab2
----
227
3462
985

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col2 + col2 col2 FROM tab1
----
162
171
288

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

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

query I rowsort
SELECT DISTINCT - cor0.col1 * col0 + + col2 + - col0 FROM tab0 AS cor0
----
-2055
-3429
-8106

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col0 - + col2 * col1 col2 FROM tab0 AS cor0
----
-2262
1128
459

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * - col0 + - col2 col2 FROM tab1 AS cor0
----
108
3591
7584

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1030
SELECT ALL - col0 / + col2 col2 FROM tab0 AS cor0
----
-1
-35
0

query I rowsort
SELECT - col1 * - col2 + col2 + - col1 AS col2 FROM tab2 AS cor0
----
1501
667
833

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

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

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

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

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

query I rowsort
SELECT col2 + col0 + col1 * - col0 FROM tab2 AS cor0
----
-1226
-183
-4498

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

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

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

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

query I rowsort
SELECT ALL + - col2 * col0 + cor0.col1 * + col1 - col0 FROM tab0 AS cor0
----
6580
894
9339

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1044
SELECT ALL + - 39 DIV + cor0.col2 FROM tab0 cor0
----
-1
-39
0

skipif mysql # not compatible
query I rowsort label-1044
SELECT ALL + - 39 / + cor0.col2 FROM tab0 cor0
----
-1
-39
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 99 + cor0.col1 * + col1 col1 FROM tab0 AS cor0
----
7495
8380
9508

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

query I rowsort
SELECT ALL - 52 + col1 FROM tab0 AS cor0
----
34
39
45

query I rowsort
SELECT DISTINCT + - col2 * + col2 + - col0 AS col1 FROM tab0 AS cor0
----
-1113
-36
-6813

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * col2 + + col2 col2 FROM tab1 AS cor0
----
216
3705
7776

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

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

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

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

query I rowsort
SELECT ALL + col2 * col2 + - col1 + col2 * cor0.col1 AS col2 FROM tab2 cor0
----
1535
2073
2151

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

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

query I rowsort
SELECT + 81 * cor0.col1 FROM tab0 AS cor0
----
6966
7371
7857

query I rowsort
SELECT DISTINCT 86 * + col0 FROM tab0
----
2064
3010
7654

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 71 * cor0.col2 * col2 col2 FROM tab2 AS cor0
----
-102524
-47996
-51759

query I rowsort
SELECT ALL + col2 * 62 - col1 AS col1 FROM tab1 AS cor0
----
3322
3524
5939

query I rowsort
SELECT - 16 * - 8 FROM tab1 cor0
----
128
128
128

query I rowsort
SELECT ( col1 * + col2 ) + + 94 * - col1 FROM tab2
----
-2077
-4012
-952

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

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

query I rowsort
SELECT DISTINCT + - 54 * ( - col2 ) - col1 * col2 AS col2 FROM tab2 AS cor0
----
-130
1406
621

query I rowsort
SELECT DISTINCT 19 FROM tab0, tab0 AS cor0
----
19

query I rowsort
SELECT DISTINCT 22 FROM tab1, tab2 cor0
----
22

query I rowsort
SELECT ALL + ( + tab1.col1 ) FROM tab1
----
10
13
26

query I rowsort
SELECT 12 * - col1 AS col0 FROM tab0
----
-1032
-1092
-1164

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

query I rowsort
SELECT DISTINCT - - 15 + - cor0.col1 * - col1 FROM tab1 AS cor0
----
115
184
691

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

query I rowsort
SELECT ALL col1 + + col2 * tab2.col1 + + 46 FROM tab2
----
1639
709
914

query I rowsort
SELECT ALL 47 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d

query I rowsort
SELECT col2 * + col1 * - 0 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT 41 * + col0 + + 35 AS col1 FROM tab1 cor0
----
158
2659
3315

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

query I rowsort
SELECT - 39 * + col0 FROM tab2
----
-273
-3042
-3081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * tab1.col0 + col1 col0 FROM tab1
----
104
1053
650

query I rowsort
SELECT ALL + 97 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c73fa6978df8525c99d6bc792bb27123

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

query I rowsort
SELECT ALL + col0 + 39 + 17 FROM tab0
----
145
80
91

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

skipif mysql # not compatible
query I rowsort label-1087
SELECT col0 / 44 AS col0 FROM tab2
----
0
1
1

query I rowsort
SELECT col0 + + col1 * 67 FROM tab0 AS cor0
----
5786
6186
6534

query I rowsort
SELECT ALL 60 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1090
SELECT 45 + 44 * + col0 - - CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
3503
3559
380

skipif mysql # not compatible
query I rowsort label-1090
SELECT 45 + 44 * + col0 - - CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
3503
3559
380

onlyif mysql # use DIV operator for integer division
query I rowsort label-1091
SELECT 96 DIV col1 AS col1 FROM tab1 cor0
----
3
7
9

skipif mysql # not compatible
query I rowsort label-1091
SELECT 96 / col1 AS col1 FROM tab1 cor0
----
3
7
9

query I rowsort
SELECT - col2 * + 18 AS col0 FROM tab2 AS cor0
----
-468
-486
-684

query I rowsort
SELECT - - 41 + 75 AS col2 FROM tab0 AS cor0
----
116
116
116

query I rowsort
SELECT - 85 + col2 FROM tab0 AS cor0
----
-3
-52
-84

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

query I rowsort
SELECT DISTINCT cor0.col2 * 82 AS col1 FROM tab0 AS cor0
----
2706
6724
82

query I rowsort
SELECT - + 16 + col1 FROM tab1 cor0
----
-3
-6
10

query I rowsort
SELECT - 53 * - 85 + - col0 FROM tab0 AS cor0
----
4416
4470
4481

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

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

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

query I rowsort
SELECT - col2 * col1 * - col1 FROM tab1
----
16224
36504
5700

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * ( + col0 ) + col1 * col0 col1 FROM tab2 AS cor0
----
-1482
-4898
168

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

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

query I rowsort
SELECT - col0 * + 95 + - col2 * 66 AS col0 FROM tab0 AS cor0
----
-13867
-3391
-4458

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

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

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

query I rowsort
SELECT ALL col0 * - 31 + col1 AS col1 FROM tab1 AS cor0
----
-1974
-2467
-67

query I rowsort
SELECT DISTINCT 46 * 83 * col0 + 37 + - 76 AS col0 FROM tab0 cor0
----
133591
339763
91593

query I rowsort
SELECT col1 + col0 * - 92 * col1 + col1 FROM tab2
----
-123522
-19902
-423266

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1115
SELECT DISTINCT tab1.col2 DIV - col1 + + col1 FROM tab1
----
24
5
6

skipif mysql # not compatible
query I rowsort label-1115
SELECT DISTINCT tab1.col2 / - col1 + + col1 FROM tab1
----
24
5
6

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

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

skipif mysql # not compatible
query I rowsort label-1117
SELECT ALL - col2 / col2 + col2 / col1 FROM tab0
----
-1
-1
-1

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1119
SELECT + 58 + cor0.col0 DIV - 45 FROM tab2 AS cor0
----
57
57
58

skipif mysql # not compatible
query I rowsort label-1119
SELECT + 58 + cor0.col0 / - 45 FROM tab2 AS cor0
----
57
57
58

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col2 * col1 col2 FROM tab2 AS cor0
----
22599
24548
39884

query I rowsort
SELECT DISTINCT + ( ( - col1 ) ) * - col1 FROM tab1
----
100
169
676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col2 * + col0 col0 FROM tab1
----
188
3658
7693

query I rowsort
SELECT + 34 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query I rowsort
SELECT DISTINCT + 79 - col0 AS col2 FROM tab0
----
-10
44
55

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

query I rowsort
SELECT ALL col1 * - col0 * + 75 FROM tab0
----
-154800
-254625
-607425

query I rowsort
SELECT ALL col1 * - col1 * + 15 AS col2 FROM tab1
----
-10140
-1500
-2535

query I rowsort
SELECT ALL col1 * + 75 AS col0 FROM tab1
----
1950
750
975

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

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

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

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

query I rowsort
SELECT - 99 + cor0.col1 FROM tab0, tab2 cor0
----
9 values hashing to 7ea6654561cf7f12aec14fe2a82ea98f

query I rowsort
SELECT ALL tab1.col2 + 49 FROM tab1
----
103
106
145

query I rowsort
SELECT - - col0 * 97 + col1 AS col1 FROM tab0 cor0
----
2414
3492
8724

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

skipif mysql # not compatible
query I rowsort label-1136
SELECT DISTINCT + cor0.col2 + - 29 / - col2 AS col0 FROM tab1 AS cor0
----
54
57
96

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

query I rowsort
SELECT + - col1 + + cor0.col0 - + 20 FROM tab1 cor0
----
-43
34
47

query I rowsort
SELECT - cor0.col0 + 86 FROM tab0 cor0
----
-3
51
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + + 50 * col2 col0 FROM tab0 AS cor0
----
1683
4182
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-1141
SELECT ALL - + cor0.col1 DIV + col0 + - col1 + - cor0.col1 AS col2 FROM tab0 AS cor0
----
-175
-183
-196

skipif mysql # not compatible
query I rowsort label-1141
SELECT ALL - + cor0.col1 / + col0 + - col1 + - cor0.col1 AS col2 FROM tab0 AS cor0
----
-175
-183
-196

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

query I rowsort
SELECT DISTINCT 17 * cor0.col1 * - col0 FROM tab0 AS cor0
----
-137683
-35088
-57715

query I rowsort
SELECT ALL + 82 - col0 * col2 * + 47 AS col0 FROM tab0 AS cor0
----
-1563
-342924
-37142

query I rowsort
SELECT ALL - 85 + - col0 FROM tab1 cor0
----
-149
-165
-88

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

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

query I rowsort
SELECT ALL - col2 * + 94 + col1 AS col1 FROM tab2 AS cor0
----
-2385
-2507
-3555

query I rowsort
SELECT ALL 96 + col2 + col0 AS col2 FROM tab1 AS cor0
----
153
217
272

query I rowsort
SELECT + - 68 * - cor0.col1 + + col2 AS col1 FROM tab0 AS cor0
----
5881
6270
6597

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * - col2 col0 FROM tab1 AS cor0
----
2916
3249
9216

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1152
SELECT ALL + CAST( col2 AS SIGNED ) * - col0 + - cor0.col2 AS col0 FROM tab1 cor0
----
-216
-3705
-7776

skipif mysql # not compatible
query I rowsort label-1152
SELECT ALL + CAST ( col2 AS INTEGER ) * - col0 + - cor0.col2 AS col0 FROM tab1 cor0
----
-216
-3705
-7776

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

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

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

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

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 DISTINCT - - ( col0 ) + + col1 * - cor0.col0 FROM tab1 AS cor0
----
-576
-75
-960

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

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

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

query I rowsort
SELECT DISTINCT col1 * + 74 FROM tab0
----
6364
6734
7178

query I rowsort
SELECT DISTINCT + ( col2 ) * + col0 * cor0.col2 FROM tab2 cor0
----
114076
5103
52728

query I rowsort
SELECT ALL 58 * 38 + col2 AS col2 FROM tab2 AS cor0
----
2230
2231
2242

query I rowsort
SELECT ALL col0 * ( ( - col0 ) * - 33 ) AS col0 FROM tab2
----
1617
200772
205953

query I rowsort
SELECT - 69 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

query I rowsort
SELECT - col1 * 73 * col0 FROM tab1
----
-46720
-5694
-75920

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1168
SELECT + 89 DIV col2 + col1 FROM tab0 AS cor0
----
186
88
92

skipif mysql # not compatible
query I rowsort label-1168
SELECT + 89 / col2 + col1 FROM tab0 AS cor0
----
186
88
92

query I rowsort
SELECT - col1 * col0 * ( - cor0.col1 * col2 ) AS col1 FROM tab0 AS cor0
----
329315
5857632
60434738

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1172
SELECT DISTINCT + 75 DIV col0 + - col0 FROM tab1 cor0
----
-63
-80
22

skipif mysql # not compatible
query I rowsort label-1172
SELECT DISTINCT + 75 / col0 + - col0 FROM tab1 cor0
----
-63
-80
22

query I rowsort
SELECT DISTINCT 89 * cor0.col1 FROM tab2, tab0 AS cor0
----
7654
8099
8633

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

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

query I rowsort
SELECT + col2 - 32 FROM tab2 cor0
----
-5
-6
6

query I rowsort
SELECT - cor0.col2 + + ( col2 + col2 ) * - cor0.col2 FROM tab1 AS cor0
----
-18528
-5886
-6555

query I rowsort
SELECT - + col0 + 16 FROM tab0 cor0
----
-19
-73
-8

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

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

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

query I rowsort
SELECT ALL - cor0.col1 + - cor0.col1 * - col1 * col2 FROM tab2 AS cor0
----
10965
25916
90447

query I rowsort
SELECT ALL col0 * col1 + 89 AS col1 FROM tab0 AS cor0
----
2153
3484
8188

query I rowsort
SELECT DISTINCT col1 - - 53 * col2 AS col2 FROM tab0 AS cor0
----
150
1835
4437

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

query I rowsort
SELECT DISTINCT + col1 * col1 - + 14 * cor0.col1 AS col2 FROM tab1 cor0
----
-13
-40
312

query I rowsort
SELECT ALL - + col2 * - ( 31 ) AS col2 FROM tab2 AS cor0
----
1178
806
837

query I rowsort
SELECT ALL - - 28 * col0 + - col1 FROM tab1 cor0
----
1782
2227
58

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

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

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

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

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

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

query I rowsort
SELECT ALL - cor0.col0 + - 36 AS col1 FROM tab2 AS cor0
----
-114
-115
-43

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

query I rowsort
SELECT DISTINCT - + col2 * + 19 + col1 FROM tab2 AS cor0
----
-435
-482
-705

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

query I rowsort
SELECT 38 + col0 AS col0 FROM tab2
----
116
117
45

query I rowsort
SELECT ALL - 71 * - col2 AS col1 FROM tab1 AS cor0
----
3834
4047
6816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 35 - + col0 col2 FROM tab0 AS cor0
----
-124
-59
-70

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

query I rowsort
SELECT + col2 + - col0 - col2 * col0 FROM tab2 cor0
----
-169
-2080
-3043

query I rowsort
SELECT DISTINCT + + col2 * + col1 + 56 FROM tab1 cor0
----
1304
1460
626

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

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

query I rowsort
SELECT ALL cor0.col1 + - col2 + - col0 * - col0 AS col0 FROM tab2 AS cor0
----
53
6117
6220

query I rowsort
SELECT - 71 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 3907e0aa4f29c002120742c4abb3e23a

query I rowsort
SELECT DISTINCT - - col1 * - ( col2 ) + cor0.col1 + + col1 * - col0 FROM tab0 AS cor0
----
-15470
-3395
-4816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - 71 col0 FROM tab0 cor0
----
-36
-47
18

query I rowsort
SELECT DISTINCT + col2 + cor0.col2 + col0 FROM tab1 AS cor0
----
111
178
272

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 62 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query I rowsort
SELECT ALL col0 * 32 AS col2 FROM tab2 AS cor0
----
224
2496
2528

query I rowsort
SELECT DISTINCT - 40 + - 72 * + col1 AS col2 FROM tab1 AS cor0
----
-1912
-760
-976

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

query I rowsort
SELECT ALL - 53 AS col1 FROM tab2 AS cor0
----
-53
-53
-53

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

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

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

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

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

query I rowsort
SELECT + 82 * + 83 FROM tab2 AS cor0
----
6806
6806
6806

query I rowsort
SELECT - col2 * - 4 + tab1.col1 FROM tab1
----
238
242
397

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

query I rowsort
SELECT + 15 * 88 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 0f31ed4595f6a63481226fd8ef132c9a

query I rowsort
SELECT DISTINCT 28 * + col0 + - col0 FROM tab0 AS cor0
----
2403
648
945

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

skipif mysql # not compatible
query I rowsort label-1221
SELECT col0 + - CAST ( col1 AS INTEGER ) AS col2 FROM tab0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT - 22 AS col1 FROM tab2 AS cor0
----
-22

onlyif mysql # use DIV operator for integer division
query I rowsort label-1223
SELECT DISTINCT - + col2 * - col1 + col1 DIV - col1 + + 83 AS col1 FROM tab2 AS cor0
----
1616
728
919

skipif mysql # not compatible
query I rowsort label-1223
SELECT DISTINCT - + col2 * - col1 + col1 / - col1 + + 83 AS col1 FROM tab2 AS cor0
----
1616
728
919

query I rowsort
SELECT + cor0.col0 * - 58 AS col0 FROM tab1 AS cor0
----
-174
-3712
-4640

query I rowsort
SELECT - + 56 * 49 * col1 FROM tab2 AS cor0
----
-161896
-46648
-85064

query I rowsort
SELECT ALL + col2 * + 83 FROM tab0
----
2739
6806
83

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

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

query I rowsort
SELECT + ( 41 ) AS col2 FROM tab0
----
41
41
41

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

query I rowsort
SELECT - 56 * col1 + 57 FROM tab0 AS cor0
----
-4759
-5039
-5375

query I rowsort
SELECT ( + 28 * tab2.col0 + ( + col0 ) ) FROM tab2
----
203
2262
2291

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

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

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

query I rowsort
SELECT DISTINCT + - col0 * + 13 + - col1 * col1 AS col1 FROM tab2 AS cor0
----
-1052
-1316
-4495

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

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

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

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

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

query I rowsort
SELECT DISTINCT - col1 * + 24 * - 61 + + col2 * cor0.col0 AS col1 FROM tab2 cor0
----
27890
45573
88404

query I rowsort
SELECT - col1 + + 2 * - col0 * cor0.col2 AS col1 FROM tab1 AS cor0
----
-15373
-350
-7306

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

query I rowsort
SELECT ALL - col1 + col0 * 88 + 38 AS col0 FROM tab1
----
276
5660
7065

query I rowsort
SELECT col2 + + tab2.col1 * + col2 FROM tab2
----
1560
684
864

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

query I rowsort
SELECT cor1.col0 - cor1.col2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
27 values hashing to 09b61d5303a3c257c2b4280abfc64db7

query I rowsort
SELECT DISTINCT - col2 * - 55 AS col0 FROM tab0 AS cor0
----
1815
4510
55

query I rowsort
SELECT ALL - col2 + - 11 FROM tab1 AS cor0
----
-107
-65
-68

query I rowsort
SELECT + col0 * - ( - col1 * col0 + + col2 ) FROM tab1 AS cor0
----
37312
72
75520

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

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

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

query I rowsort
SELECT col1 * 11 AS col0 FROM tab0 AS cor0
----
1001
1067
946

query I rowsort
SELECT cor0.col1 + col0 + + 88 FROM tab2 AS cor0
----
126
184
225

query I rowsort
SELECT - - 40 + col0 * - 14 FROM tab0 AS cor0
----
-1206
-296
-450

query I rowsort
SELECT - col1 * + col2 - + 9 AS col1 FROM tab1 AS cor0
----
-1257
-1413
-579

query I rowsort
SELECT - + col0 * cor0.col1 + - cor0.col1 * col1 - + cor0.col1 FROM tab2 AS cor0
----
-1209
-1649
-8142

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-1260
SELECT col2 * col2 DIV col2 AS col1 FROM tab1
----
54
57
96

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1262
SELECT ALL - 95 + col0 DIV + col1 col0 FROM tab0
----
-95
-95
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1262
SELECT ALL - 95 + col0 / + col1 col0 FROM tab0
----
-95
-95
-95

query I rowsort
SELECT DISTINCT 57 * + col1 + col2 AS col1 FROM tab2
----
1007
1794
3389

query I rowsort
SELECT ALL 51 + + 94 + col2 AS col1 FROM tab2
----
171
172
183

onlyif mysql # use DIV operator for integer division
query I rowsort label-1265
SELECT - - col0 * col0 DIV cor0.col1 FROM tab2 cor0
----
1
103
367

skipif mysql # not compatible
query I rowsort label-1265
SELECT - - col0 * col0 / cor0.col1 FROM tab2 cor0
----
1
103
367

query I rowsort
SELECT + col1 * col2 + 16 - - ( col1 ) AS col2 FROM tab0 AS cor0
----
210
2940
7569

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 75 * + col0 col0 FROM tab1 AS cor0
----
-225
-4800
-6000

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1269
SELECT ALL + col2 * 51 + + 96 * col1 DIV - col2 FROM tab1 AS cor0
----
2708
2891
4883

skipif mysql # not compatible
query I rowsort label-1269
SELECT ALL + col2 * 51 + + 96 * col1 / - col2 FROM tab1 AS cor0
----
2708
2891
4883

query I rowsort
SELECT col1 * + 55 + - col2 FROM tab1 AS cor0
----
1376
493
619

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

query I rowsort
SELECT 73 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query I rowsort
SELECT DISTINCT - cor1.col2 * - cor0.col1 + 8 AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c7501f80b0480b848bd169e560198307

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 16 * - col0 col0 FROM tab2 AS cor0
----
112
1248
1264

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

query I rowsort
SELECT + 35 + + col1 * - col0 FROM tab2 AS cor0
----
-1308
-182
-4567

onlyif mysql # use DIV operator for integer division
query I rowsort label-1279
SELECT + 1 * + 74 DIV col0 FROM tab1 AS cor0
----
0
1
24

skipif mysql # not compatible
query I rowsort label-1279
SELECT + 1 * + 74 / col0 FROM tab1 AS cor0
----
0
1
24

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1281
SELECT DISTINCT + col2 DIV - col1 + - 75 * col1 AS col1 FROM tab0 AS cor0
----
-6450
-6825
-7275

skipif mysql # not compatible
query I rowsort label-1281
SELECT DISTINCT + col2 / - col1 + - 75 * col1 AS col1 FROM tab0 AS cor0
----
-6450
-6825
-7275

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

query I rowsort
SELECT + 72 + col2 AS col0 FROM tab1 AS cor0
----
126
129
168

query I rowsort
SELECT + 53 AS col1 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6

query I rowsort
SELECT DISTINCT cor0.col2 * + col1 * col1 + col2 * + col2 + - col2 FROM tab0 AS cor0
----
245124
685684
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 75 + col0 + col2 col1 FROM tab2 AS cor0
----
109
179
192

query I rowsort
SELECT + col1 + - col2 * + col2 AS col2 FROM tab2 AS cor0
----
-1427
-617
-698

query I rowsort
SELECT - cor0.col2 AS col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

onlyif mysql # use DIV operator for integer division
query I rowsort label-1289
SELECT col0 - 65 DIV 43 FROM tab0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-1289
SELECT col0 - 65 / 43 FROM tab0
----
23
34
88

query I rowsort
SELECT col2 * - col1 + 79 FROM tab0 cor0
----
-18
-2759
-7383

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * ( + col2 ) * col0 col1 FROM tab2 AS cor0
----
-1323
-158184
-237158

query I rowsort
SELECT - - cor0.col1 * + 41 * + col0 FROM tab0 AS cor0
----
139195
332059
84624

onlyif mysql # use DIV operator for integer division
query I rowsort label-1293
SELECT ALL + 37 + col1 DIV col0 AS col0 FROM tab1 AS cor0
----
37
37
45

skipif mysql # not compatible
query I rowsort label-1293
SELECT ALL + 37 + col1 / col0 AS col0 FROM tab1 AS cor0
----
37
37
45

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

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

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

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

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

query I rowsort
SELECT DISTINCT - col0 + col2 * cor0.col0 * - 66 AS col2 FROM tab0 AS cor0
----
-2345
-481757
-52296

query I rowsort
SELECT ALL - 56 * col2 + - col2 AS col1 FROM tab0 AS cor0
----
-1881
-4674
-57

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

skipif mysql # not compatible
query I rowsort label-1300
SELECT + CAST ( + cor0.col2 AS INTEGER ) FROM tab2 AS cor0
----
26
27
38

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

query I rowsort
SELECT + col1 * col1 * 53 + tab0.col0 FROM tab0
----
392012
438982
498712

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

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

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

query I rowsort
SELECT DISTINCT col0 * 53 * + col2 AS col1 FROM tab0
----
1855
386794
41976

query I rowsort
SELECT ALL - col0 * - 81 * - col1 FROM tab2 AS cor0
----
-108783
-17577
-372762

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

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

skipif mysql # not compatible
query I rowsort label-1308
SELECT ALL - - col1 / + ( 94 ) FROM tab0 AS cor0
----
0
0
1

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

query I rowsort
SELECT col1 * ( col0 * col0 + 73 * col0 ) FROM tab2 cor0
----
17360
204136
694902

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

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

query I rowsort
SELECT DISTINCT + ( + 47 ) * col0 + ( - col2 ) * col1 + col1 AS col0 FROM tab2
----
-477
2191
3084

query I rowsort
SELECT - 51 * - col0 * - col1 FROM tab1
----
-32640
-3978
-53040

query I rowsort
SELECT col2 + + col1 + - col0 FROM tab1
----
29
3
77

query I rowsort
SELECT ALL 45 + + col2 AS col2 FROM tab2
----
71
72
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-1316
SELECT ALL col2 DIV ( col0 ) + - col1 + + col1 * col2 DIV - col0 AS col0 FROM tab2
----
-147
-25
-78

skipif mysql # not compatible
query I rowsort label-1316
SELECT ALL col2 / ( col0 ) + - col1 + + col1 * col2 / - col0 AS col0 FROM tab2
----
-147
-25
-78

query I rowsort
SELECT DISTINCT 4 + col0 FROM tab1
----
68
7
84

query I rowsort
SELECT ALL col1 * + col2 + - col0 * col0 + + col0 * + col2 * col1 FROM tab0
----
2267
663659
70374

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

query I rowsort
SELECT DISTINCT + + cor0.col2 * col2 * + col0 - col2 * - col0 AS col1 FROM tab0 AS cor0
----
26928
605734
70

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

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

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

query I rowsort
SELECT DISTINCT + + 1 + col2 AS col1 FROM tab1 AS cor0
----
55
58
97

query I rowsort
SELECT DISTINCT 89 * + col0 FROM tab1 AS cor0
----
267
5696
7120

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

query I rowsort
SELECT ALL + 87 + col2 * + col2 AS col1 FROM tab1 AS cor0
----
3003
3336
9303

onlyif mysql # use DIV operator for integer division
query I rowsort label-1328
SELECT + col0 DIV cor0.col0 + ( col1 ) AS col0 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-1328
SELECT + col0 / cor0.col0 + ( col1 ) AS col0 FROM tab0 AS cor0
----
87
92
98

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 61 + - col2 * + 82 + - col2 col2 FROM tab1 cor0
----
-4543
-4792
-8029

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

query I rowsort
SELECT 97 + col2 FROM tab2 AS cor0
----
123
124
135

query I rowsort
SELECT ALL 11 + col0 + + col0 FROM tab1 cor0
----
139
17
171

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1336
SELECT - 35 DIV cor0.col0 FROM tab1 AS cor0
----
-11
0
0

skipif mysql # not compatible
query I rowsort label-1336
SELECT - 35 / cor0.col0 FROM tab1 AS cor0
----
-11
0
0

query I rowsort
SELECT ALL + ( col2 ) * 3 + cor0.col2 * - col1 FROM tab1 cor0
----
-1242
-399
-960

query I rowsort
SELECT + 65 + + col2 FROM tab1 AS cor0
----
119
122
161

query I rowsort
SELECT ALL 20 + 92 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 5c4ae8b46ba4e16a3d91639b0f9e6a91

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

query I rowsort
SELECT ALL + 73 AS col0 FROM tab1
----
73
73
73

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * ( 50 ) + - cor0.col0 col2 FROM tab1 AS cor0
----
-153
-3264
-4080

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

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

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

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

query I rowsort
SELECT 5 * col1 FROM tab1
----
130
50
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col1 + tab0.col0 col2 FROM tab0
----
7420
8370
9444

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1350
SELECT col1 DIV col0 + tab0.col2 AS col2 FROM tab0
----
3
36
83

skipif mysql # not compatible
query I rowsort label-1350
SELECT col1 / col0 + tab0.col2 AS col2 FROM tab0
----
3
36
83

query I rowsort
SELECT + 46 * - col2 + - col0 FROM tab2 AS cor0
----
-1249
-1274
-1827

query I rowsort
SELECT ALL - - col2 + 20 AS col1 FROM tab0 AS cor0
----
102
21
53

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1354
SELECT + 29 DIV + col1 + col1 * - col2 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-1354
SELECT + 29 / + col1 + col1 * - col2 FROM tab0 AS cor0
----
-2838
-7462
-97

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

query I rowsort
SELECT DISTINCT col1 * 71 + col0 * - 87 - - 47 FROM tab0 AS cor0
----
-1235
3889
4065

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

skipif mysql # not compatible
query I rowsort label-1357
SELECT - + CAST ( col1 AS INTEGER ) + - cor0.col1 * ( col1 ) * col2 FROM tab2 AS cor0
----
-10999
-25978
-90565

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

query I rowsort
SELECT + 67 * + 54 AS col2 FROM tab2 AS cor0
----
3618
3618
3618

query I rowsort
SELECT ALL + 3 + - col2 AS col0 FROM tab0 AS cor0
----
-30
-79
2

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

query I rowsort
SELECT ALL + + ( - col1 ) * + col1 * + col0 + + col1 FROM tab2 AS cor0
----
-22814
-271459
-6696

query I rowsort
SELECT DISTINCT col0 + - col1 + + col2 * + col0 FROM tab2 AS cor0
----
165
2047
3064

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

query I rowsort
SELECT DISTINCT + col1 * - 88 + col2 FROM tab0
----
-7535
-7926
-8535

query I rowsort
SELECT + - 2 * + col1 + col2 AS col2 FROM tab0 AS cor0
----
-100
-139
-193

query I rowsort
SELECT DISTINCT 7 AS col0 FROM tab2, tab0 AS cor0 CROSS JOIN tab1
----
7

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

query I rowsort
SELECT ALL - ( - 64 ) AS col1 FROM tab1
----
64
64
64

query I rowsort
SELECT DISTINCT 27 * col2 AS col1 FROM tab2 AS cor0
----
1026
702
729

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

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

query I rowsort
SELECT - 13 + col0 * - cor0.col1 FROM tab2 cor0
----
-1356
-230
-4615

query I rowsort
SELECT DISTINCT - ( col1 ) * 32 FROM tab1 AS cor0
----
-320
-416
-832

query I rowsort
SELECT ALL col2 * col2 + 85 * - 91 FROM tab2 AS cor0
----
-6291
-7006
-7059

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

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

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

query I rowsort
SELECT + col1 + 90 AS col2 FROM tab1 AS cor0
----
100
103
116

query I rowsort
SELECT - col1 + col1 * - col2 * - col0 FROM tab0 AS cor0
----
3298
664027
68026

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT col2 - 46 AS col0 FROM tab1 AS cor0
----
11
50
8

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

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

query I rowsort
SELECT ( - 10 ) * col0 AS col2 FROM tab1 AS cor0
----
-30
-640
-800

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1387
SELECT ALL + + CAST( - col0 AS SIGNED ) * + col0 + 19 - 27 * col2 AS col2 FROM tab0 AS cor0
----
-10116
-1233
-1448

skipif mysql # not compatible
query I rowsort label-1387
SELECT ALL + + CAST ( - col0 AS INTEGER ) * + col0 + 19 - 27 * col2 AS col2 FROM tab0 AS cor0
----
-10116
-1233
-1448

query I rowsort
SELECT ALL col1 * - 67 * - tab0.col1 AS col2 FROM tab0
----
495532
554827
630403

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1389
SELECT + CAST( NULL AS SIGNED ) * + cor0.col2 + tab2.col2 * - 90 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1389
SELECT + CAST ( NULL AS INTEGER ) * + cor0.col2 + tab2.col2 * - 90 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

query I rowsort
SELECT + - ( col0 ) * col0 * col1 FROM tab1 cor0
----
-234
-40960
-83200

query I rowsort
SELECT DISTINCT + 78 * - 66 + cor0.col2 FROM tab0 AS cor0
----
-5066
-5115
-5147

query I rowsort
SELECT ALL + col0 - + 58 * + col1 AS col1 FROM tab0 AS cor0
----
-4964
-5189
-5591

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

query I rowsort
SELECT DISTINCT + - 44 + + col0 AS col0 FROM tab1 cor0
----
-41
20
36

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

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

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

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

query I rowsort
SELECT col0 * + 85 * col2 + + col2 FROM tab0
----
2976
620412
67353

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

query I rowsort
SELECT col1 * + col2 + + tab2.col2 FROM tab2
----
1560
684
864

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

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

query I rowsort
SELECT ALL col2 + - 0 * - col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT + + 53 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
135
54
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-1406
SELECT - CAST( col0 AS SIGNED ) * col0 DIV cor0.col1 + - ( - col1 ) + + ( - 95 ) FROM tab0 AS cor0
----
-10
-15
-91

skipif mysql # not compatible
query I rowsort label-1406
SELECT - CAST ( col0 AS INTEGER ) * col0 / cor0.col1 + - ( - col1 ) + + ( - 95 ) FROM tab0 AS cor0
----
-10
-15
-91

query I rowsort
SELECT col1 * 32 FROM tab1 cor0
----
320
416
832

query I rowsort
SELECT DISTINCT + 6 + + col0 FROM tab0 AS cor0
----
30
41
95

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

query I rowsort
SELECT 73 + cor0.col1 FROM tab2 AS cor0
----
104
132
90

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

query I rowsort
SELECT + - cor0.col2 + - ( + 47 ) * cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to acff81558b7b310f577feee8d9d5c8cb

query I rowsort
SELECT 96 * cor0.col2 AS col2 FROM tab1 AS cor0
----
5184
5472
9216

query I rowsort
SELECT DISTINCT 43 - tab1.col0 * col0 AS col1 FROM tab1
----
-4053
-6357
34

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

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1419
SELECT DISTINCT + col2 + col2 - CAST( col0 + + col2 * - col2 AS SIGNED ) AS col1 FROM tab1
----
3021
3299
9328

skipif mysql # not compatible
query I rowsort label-1419
SELECT DISTINCT + col2 + col2 - CAST ( col0 + + col2 * - col2 AS INTEGER ) AS col1 FROM tab1
----
3021
3299
9328

onlyif mysql # use DIV operator for integer division
query I rowsort label-1420
SELECT DISTINCT tab0.col0 + - col2 DIV ( col1 ) - - col0 * col2 col0 FROM tab0
----
70
7387
816

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1420
SELECT DISTINCT tab0.col0 + - col2 / ( col1 ) - - col0 * col2 col0 FROM tab0
----
70
7387
816

query I rowsort
SELECT DISTINCT cor0.col1 + 93 FROM tab2 AS cor0
----
110
124
152

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 52 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

query I rowsort
SELECT ALL + col1 * - 68 AS col2 FROM tab2 AS cor0
----
-1156
-2108
-4012

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

skipif mysql # not compatible
query I rowsort label-1424
SELECT - + col1 + CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT ALL cor0.col1 + - 8 FROM tab0 AS cor0
----
78
83
89

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

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

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

query I rowsort
SELECT ALL - col0 + + col1 * - 47 AS col0 FROM tab1 AS cor0
----
-1225
-534
-691

query I rowsort
SELECT col1 + col0 * 47 FROM tab0 AS cor0
----
1214
1742
4274

query I rowsort
SELECT ALL - col1 * - col0 + - 50 AS col2 FROM tab1 AS cor0
----
28
590
990

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1432
SELECT ALL - 5 DIV col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1432
SELECT ALL - 5 / col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + 1 + cor0.col0 FROM tab0 AS cor0
----
25
36
90

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

skipif mysql # not compatible
query I rowsort label-1434
SELECT DISTINCT - 8 + col1 / col2 FROM tab1 AS cor0
----
-8

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

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

query I rowsort
SELECT - - col0 * + col0 * + col2 FROM tab2 AS cor0
----
1323
158184
237158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 79 + - tab0.col1 col1 FROM tab0
----
-12
-18
-7

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col0 col1 FROM tab0 cor0
----
-1225
-576
-7921

query I rowsort
SELECT ALL 46 * + col2 + 30 - - 7 AS col2 FROM tab1 AS cor0
----
2521
2659
4453

onlyif mysql # use DIV operator for integer division
query I rowsort label-1442
SELECT ALL + col0 DIV - col1 + - col2 AS col0 FROM tab2 AS cor0
----
-27
-27
-42

skipif mysql # not compatible
query I rowsort label-1442
SELECT ALL + col0 / - col1 + - col2 AS col0 FROM tab2 AS cor0
----
-27
-27
-42

onlyif mysql # use DIV operator for integer division
query I rowsort label-1443
SELECT col2 * - col0 - - col0 DIV - 53 AS col0 FROM tab1 AS cor0
----
-162
-3649
-7681

skipif mysql # not compatible
query I rowsort label-1443
SELECT col2 * - col0 - - col0 / - 53 AS col0 FROM tab1 AS cor0
----
-162
-3649
-7681

query I rowsort
SELECT DISTINCT col2 * - 22 - - col1 * + 92 FROM tab1 AS cor0
----
-334
-916
1204

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

query I rowsort
SELECT col1 + col2 - col2 * - col2 * col2 FROM tab2 AS cor0
----
17661
19741
54927

query I rowsort
SELECT DISTINCT 15 + cor0.col0 - + col0 * ( - ( + col2 ) ) FROM tab2 AS cor0
----
211
2121
3096

query I rowsort
SELECT DISTINCT 41 FROM tab1 cor0
----
41

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

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

query I rowsort
SELECT DISTINCT 66 FROM tab2, tab1 cor0
----
66

query I rowsort
SELECT + 87 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT + 64 * col2 FROM tab1
----
3456
3648
6144

query I rowsort
SELECT ALL + ( 77 ) + col0 AS col0 FROM tab1
----
141
157
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-1454
SELECT DISTINCT col1 DIV + col1 + tab2.col2 AS col1 FROM tab2
----
27
28
39

skipif mysql # not compatible
query I rowsort label-1454
SELECT DISTINCT col1 / + col1 + tab2.col2 AS col1 FROM tab2
----
27
28
39

query I rowsort
SELECT - ( col2 ) * + col0 - col1 * cor0.col0 * col1 FROM tab0 AS cor0
----
-178296
-329350
-744307

query I rowsort
SELECT ALL + 7 * 59 AS col2 FROM tab2 cor0
----
413
413
413

onlyif mysql # use DIV operator for integer division
query I rowsort label-1457
SELECT DISTINCT - 8 DIV - ( - col2 ) FROM tab0 AS cor0
----
-8
0

skipif mysql # not compatible
query I rowsort label-1457
SELECT DISTINCT - 8 / - ( - col2 ) FROM tab0 AS cor0
----
-8
0

query I rowsort
SELECT - - ( cor0.col2 ) * - col2 - - col0 * cor0.col2 FROM tab0 AS cor0
----
-297
34
574

query I rowsort
SELECT ALL col1 * col0 - col1 * cor0.col1 FROM tab2 cor0
----
-744
1054
1121

query I rowsort
SELECT DISTINCT col0 + 50 AS col0 FROM tab0
----
139
74
85

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

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

query I rowsort
SELECT DISTINCT 48 + - ( + col0 ) AS col2 FROM tab2
----
-30
-31
41

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1466
SELECT DISTINCT col2 DIV col2 + + col0 FROM tab1
----
4
65
81

skipif mysql # not compatible
query I rowsort label-1466
SELECT DISTINCT col2 / col2 + + col0 FROM tab1
----
4
65
81

query I rowsort
SELECT - 12 * + col2 FROM tab1
----
-1152
-648
-684

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

query I rowsort
SELECT col1 * + col0 + + col2 * + col1 FROM tab1 AS cor0
----
1210
1482
2288

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1472
SELECT ALL col2 DIV - 43 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1472
SELECT ALL col2 / - 43 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - col1 + + ( - 6 * col2 ) + - 43 AS col2 FROM tab2 AS cor0
----
-236
-258
-288

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

query I rowsort
SELECT ALL + - col2 * + 85 FROM tab2 AS cor0
----
-2210
-2295
-3230

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1478
SELECT DISTINCT - CAST( - col0 AS SIGNED ) * cor0.col2 + 91 FROM tab2 AS cor0
----
2119
280
3093

skipif mysql # not compatible
query I rowsort label-1478
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) * cor0.col2 + 91 FROM tab2 AS cor0
----
2119
280
3093

query I rowsort
SELECT ALL - 68 * col0 + - col1 * col1 FROM tab0 AS cor0
----
-11789
-14333
-9028

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

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

query I rowsort
SELECT ALL - 53 * ( cor0.col1 ) * cor0.col0 FROM tab0 AS cor0
----
-109392
-179935
-429247

query I rowsort
SELECT 37 + - col1 AS col0 FROM tab2 cor0
----
-22
20
6

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

skipif mysql # not compatible
query I rowsort label-1483
SELECT DISTINCT - ( + col1 ) / - col1 AS col2 FROM tab0 cor0
----
1

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

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

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

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

query I rowsort
SELECT - col2 * + 37 FROM tab1 AS cor0
----
-1998
-2109
-3552

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1489
SELECT ALL + 90 DIV + col2 AS col1 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1489
SELECT ALL + 90 / + col2 AS col1 FROM tab1
----
0
1
1

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

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

query I rowsort
SELECT DISTINCT - col1 * col0 + - 78 FROM tab2
----
-1421
-295
-4680

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

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

query I rowsort
SELECT - col1 + + 75 * - 63 AS col1 FROM tab1 AS cor0
----
-4735
-4738
-4751

query I rowsort
SELECT + - col0 * ( col2 + cor0.col0 ) FROM tab2 AS cor0
----
-238
-8112
-9243

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

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

query I rowsort
SELECT 63 * - col1 + - col2 FROM tab1 AS cor0
----
-1692
-687
-915

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

query I rowsort
SELECT + - 68 + - col0 FROM tab1 AS cor0
----
-132
-148
-71

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

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

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

query I rowsort
SELECT 26 + cor0.col1 AS col1 FROM tab2 cor0
----
43
57
85

query I rowsort
SELECT + - 90 * 59 + - col1 FROM tab0 AS cor0
----
-5396
-5401
-5407

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 + tab1.col2 * - 35 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 12fc416d70931197f2b4dd184238bb2a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 12 * + col1 + - col0 col2 FROM tab0 AS cor0
----
-1056
-1181
-1199

onlyif mysql # use DIV operator for integer division
query I rowsort label-1508
SELECT - col1 DIV col0 + col0 FROM tab0 AS cor0
----
21
33
88

skipif mysql # not compatible
query I rowsort label-1508
SELECT - col1 / col0 + col0 FROM tab0 AS cor0
----
21
33
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 * + cor0.col0 + + ( - ( - cor0.col2 ) ) col2 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT - col0 - + col1 * + ( 57 ) AS col0 FROM tab2 cor0
----
-1048
-1774
-3441

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

query I rowsort
SELECT + + col2 * + cor0.col2 + - 76 * - col0 FROM tab2 AS cor0
----
1261
6604
7448

query I rowsort
SELECT + + col1 * - col2 + - ( - 16 ) AS col2 FROM tab0 AS cor0
----
-2822
-7446
-81

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

query I rowsort
SELECT - - col0 * cor0.col1 - 39 AS col1 FROM tab0 cor0
----
2025
3356
8060

query I rowsort
SELECT 49 * 64 AS col2 FROM tab2
----
3136
3136
3136

query I rowsort
SELECT + 99 + - col2 * - 53 FROM tab0 AS cor0
----
152
1848
4445

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

query I rowsort
SELECT ALL - col0 * - col2 + + 53 + - col0 AS col2 FROM tab0
----
53
7262
821

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1521
SELECT ALL - col2 * + col1 + + cor0.col0 * - cor0.col1 - ( col0 ) DIV - 27 FROM tab2 AS cor0
----
-1054
-1987
-6134

skipif mysql # not compatible
query I rowsort label-1521
SELECT ALL - col2 * + col1 + + cor0.col0 * - cor0.col1 - ( col0 ) / - 27 FROM tab2 AS cor0
----
-1054
-1987
-6134

query I rowsort
SELECT ALL ( col2 ) - - col2 * col0 FROM tab1
----
216
3705
7776

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

query I rowsort
SELECT DISTINCT - col2 * col2 - - col0 * 58 AS col0 FROM tab1
----
-2742
-4576
463

query I rowsort
SELECT ALL 65 * + col2 AS col2 FROM tab0
----
2145
5330
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-1526
SELECT 34 DIV + col2 - col2 FROM tab1
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-1526
SELECT 34 / + col2 - col2 FROM tab1
----
-54
-57
-96

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

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

query I rowsort
SELECT - ( col1 ) + col2 * col2 - + cor0.col0 FROM tab1 AS cor0
----
2887
3175
9123

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

query I rowsort
SELECT ALL + cor2.col1 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1, tab2 AS cor2
----
243 values hashing to 42b04a30acb32fcd35bf97afdee87fe6

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

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

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

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

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

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

query I rowsort
SELECT - col2 * - col2 + + col0 * - col0 FROM tab2 AS cor0
----
-4797
-5408
680

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

query I rowsort
SELECT DISTINCT - col1 + - col1 * col2 * - col1 FROM tab2 AS cor0
----
10965
25916
90447

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - ( - 75 ) + - col0 col0 FROM tab1 AS cor0
----
-53
-85
69

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

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

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

query I rowsort
SELECT cor0.col2 * 88 - col1 AS col1 FROM tab1 AS cor0
----
4726
5006
8435

query I rowsort
SELECT ALL + col1 + - 37 AS col0 FROM tab0 AS cor0
----
49
54
60

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

query I rowsort
SELECT DISTINCT - 43 * + cor0.col0 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
-2107
-261612
-268363

query I rowsort
SELECT DISTINCT - + 78 FROM tab1 cor0
----
-78

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

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

skipif mysql # not compatible
query I rowsort label-1547
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) * - col0 FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-1548
SELECT + - col2 DIV + col2 + col1 + ( - col2 ) AS col0 FROM tab1 AS cor0
----
-29
-48
-84

skipif mysql # not compatible
query I rowsort label-1548
SELECT + - col2 / + col2 + col1 + ( - col2 ) AS col0 FROM tab1 AS cor0
----
-29
-48
-84

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1551
SELECT DISTINCT + col0 DIV col1 + - col0 * ( + col0 + col0 ) * - col2 AS col0 FROM tab1 cor0
----
1228806
466950
972

skipif mysql # not compatible
query I rowsort label-1551
SELECT DISTINCT + col0 / col1 + - col0 * ( + col0 + col0 ) * - col2 AS col0 FROM tab1 cor0
----
1228806
466950
972

query I rowsort
SELECT DISTINCT 7 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab2 cor2
----
7

query I rowsort
SELECT ALL - - 41 * cor0.col1 + col0 AS col0 FROM tab0 AS cor0
----
3550
3820
4012

query I rowsort
SELECT ALL + col2 * col1 + - 59 * col2 AS col0 FROM tab1 AS cor0
----
-1782
-2793
-4416

query I rowsort
SELECT + - ( cor0.col1 ) + 69 FROM tab1 AS cor0
----
43
56
59

query I rowsort
SELECT DISTINCT - + cor0.col2 + cor0.col0 * + 11 * + 87 FROM tab0 AS cor0
----
22935
33494
85091

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

query I rowsort
SELECT ALL col1 * + col1 + + 32 AS col0 FROM tab1 AS cor0
----
132
201
708

onlyif mysql # use DIV operator for integer division
query I rowsort label-1559
SELECT DISTINCT col1 DIV - col0 AS col2 FROM tab2 AS cor0
----
-4
0

skipif mysql # not compatible
query I rowsort label-1559
SELECT DISTINCT col1 / - col0 AS col2 FROM tab2 AS cor0
----
-4
0

query I rowsort
SELECT 53 AS col0 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6

query I rowsort
SELECT 95 * + col1 AS col0 FROM tab1
----
1235
2470
950

query I rowsort
SELECT ALL + col2 - + 53 * cor0.col2 FROM tab1 AS cor0
----
-2808
-2964
-4992

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * + ( + col2 * + col0 ) col2 FROM tab1 AS cor0
----
233472
486
614400

onlyif mysql # use DIV operator for integer division
query I rowsort label-1565
SELECT DISTINCT col2 * + col1 * cor0.col0 + col0 DIV + col0 + cor0.col1 FROM tab1 AS cor0
----
36491
4239
99854

skipif mysql # not compatible
query I rowsort label-1565
SELECT DISTINCT col2 * + col1 * cor0.col0 + col0 / + col0 + cor0.col1 FROM tab1 AS cor0
----
36491
4239
99854

query I rowsort
SELECT ALL col0 * + 90 AS col0 FROM tab1 cor0
----
270
5760
7200

query I rowsort
SELECT - col1 - - col2 * 44 AS col1 FROM tab2 AS cor0
----
1085
1157
1655

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

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

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

query I rowsort
SELECT + col2 * + col2 + + 7 FROM tab0
----
1096
6731
8

query I rowsort
SELECT DISTINCT + 82 * 27 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
2214

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

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

query I rowsort
SELECT DISTINCT col0 + + 17 AS col1 FROM tab2
----
24
95
96

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

query I rowsort
SELECT ALL - 67 FROM tab1, tab1 cor0
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

query I rowsort
SELECT ALL tab2.col0 + 47 AS col0 FROM tab2
----
125
126
54

query I rowsort
SELECT ALL + col1 + 73 AS col2 FROM tab1
----
83
86
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 29 col1 FROM tab0 AS cor0
----
2378
29
957

query I rowsort
SELECT ALL col0 * 71 AS col1 FROM tab1 AS cor0
----
213
4544
5680

query I rowsort
SELECT DISTINCT + col2 * 3 AS col0 FROM tab0 cor0
----
246
3
99

query I rowsort
SELECT cor0.col0 + 86 * - cor0.col2 * + col1 AS col1 FROM tab2 AS cor0
----
-131846
-55477
-71975

query I rowsort
SELECT 16 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc

onlyif mysql # use DIV operator for integer division
query I rowsort label-1584
SELECT col0 + - col0 * col0 DIV col1 AS col1 FROM tab0 AS cor0
----
18
2
23

skipif mysql # not compatible
query I rowsort label-1584
SELECT col0 + - col0 * col0 / col1 AS col1 FROM tab0 AS cor0
----
18
2
23

query I rowsort
SELECT ALL - col2 * - 58 AS col2 FROM tab1
----
3132
3306
5568

query I rowsort
SELECT - col2 * 9 * - col0 FROM tab0
----
315
65682
7128

query I rowsort
SELECT DISTINCT - tab0.col1 * 63 FROM tab0
----
-5418
-5733
-6111

query I rowsort
SELECT ALL + 25 FROM tab2, tab2 cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query I rowsort
SELECT DISTINCT 59 * 25 AS col0 FROM tab1
----
1475

query I rowsort
SELECT DISTINCT 18 * col2 FROM tab0
----
1476
18
594

query I rowsort
SELECT - col1 * - 42 * + col0 + col2 * 44 * + col0 FROM tab1
----
10404
187392
381600

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1592
SELECT ALL - 7 * - col2 + col0 * + CAST( - 82 AS SIGNED ) + + col1 * - 58 AS col1 FROM tab2 AS cor0
----
-2183
-7198
-9636

skipif mysql # not compatible
query I rowsort label-1592
SELECT ALL - 7 * - col2 + col0 * + CAST ( - 82 AS INTEGER ) + + col1 * - 58 AS col1 FROM tab2 AS cor0
----
-2183
-7198
-9636

onlyif mysql # use DIV operator for integer division
query I rowsort label-1593
SELECT ALL + col1 * col1 DIV tab1.col1 col1 FROM tab1
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1593
SELECT ALL + col1 * col1 / tab1.col1 col1 FROM tab1
----
10
13
26

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

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * cor0.col1 col1 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT ALL - 62 + - cor0.col2 * - col1 AS col0 FROM tab1 AS cor0
----
1186
1342
508

onlyif mysql # use DIV operator for integer division
query I rowsort label-1602
SELECT DISTINCT + 59 DIV - col1 FROM tab2 AS cor0
----
-1
-3

skipif mysql # not compatible
query I rowsort label-1602
SELECT DISTINCT + 59 / - col1 FROM tab2 AS cor0
----
-1
-3

query I rowsort
SELECT ALL + tab2.col0 * 31 FROM tab2
----
217
2418
2449

query I rowsort
SELECT col2 * 68 FROM tab1
----
3672
3876
6528

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

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

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

query I rowsort
SELECT ALL 62 + 28 * tab2.col0 AS col2 FROM tab2
----
2246
2274
258

query I rowsort
SELECT DISTINCT - 8 * col2 + - col1 * tab0.col1 FROM tab0
----
-7660
-8937
-9417

query I rowsort
SELECT 23 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 546d49aa433406dd83ea19885588e658

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * 28 col0 FROM tab0 AS cor0
----
2492
672
980

onlyif mysql # use DIV operator for integer division
query I rowsort label-1611
SELECT col0 * 71 + col1 DIV 48 FROM tab2 AS cor0
----
497
5539
5609

skipif mysql # not compatible
query I rowsort label-1611
SELECT col0 * 71 + col1 / 48 FROM tab2 AS cor0
----
497
5539
5609

query I rowsort
SELECT + col0 * col0 * col0 FROM tab1 AS cor0
----
262144
27
512000

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

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

query I rowsort
SELECT + col2 * ( ( - col2 ) ) - - 29 AS col2 FROM tab0 AS cor0
----
-1060
-6695
28

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

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

query I rowsort
SELECT + col1 * - 24 + col2 - col0 * - col2 FROM tab1 cor0
----
-408
3465
7464

query I rowsort
SELECT ALL col0 + col0 + 39 * col0 AS col0 FROM tab0
----
1435
3649
984

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

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

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

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

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

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

query I rowsort
SELECT ALL col1 * + col1 + - 36 - col2 FROM tab0
----
7327
8163
9372

query I rowsort
SELECT ALL + col2 + 76 AS col1 FROM tab0 AS cor0
----
109
158
77

query I rowsort
SELECT DISTINCT + col2 + - 74 * - col1 AS col0 FROM tab1 AS cor0
----
1058
1978
797

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 31 * + 82 col0 FROM tab1 AS cor0
----
-2542
-2542
-2542

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 84 + + col2 + + cor0.col0 * - cor0.col1 FROM tab1 AS cor0
----
-499
-860
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 98 * + col2 col2 FROM tab2 AS cor0
----
2548
2646
3724

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1631
SELECT + cor0.col0 * col1 DIV - col2 AS col2 FROM tab0 AS cor0
----
-3395
-62
-98

skipif mysql # not compatible
query I rowsort label-1631
SELECT + cor0.col0 * col1 / - col2 AS col2 FROM tab0 AS cor0
----
-3395
-62
-98

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

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

query I rowsort
SELECT ALL + 74 * + 5 AS col2 FROM tab0 AS cor0
----
370
370
370

query I rowsort
SELECT - col2 + - 77 AS col0 FROM tab1 AS cor0
----
-131
-134
-173

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col2 ) + - col1 * ( cor0.col2 ) col1 FROM tab0 AS cor0
----
-2871
-7544
-98

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

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

query I rowsort
SELECT DISTINCT - col1 - 38 * + tab1.col1 FROM tab1
----
-1014
-390
-507

query I rowsort
SELECT DISTINCT col2 + col0 - - 8 * + col2 FROM tab1
----
489
577
944

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

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

query I rowsort
SELECT + col2 - + 39 AS col1 FROM tab2 AS cor0
----
-1
-12
-13

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

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

skipif mysql # not compatible
query I rowsort label-1643
SELECT ALL CAST ( col2 AS INTEGER ) * + col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT col0 * 99 FROM tab0
----
2376
3465
8811

query I rowsort
SELECT + 4 * 6 + + col1 FROM tab2 cor0
----
41
55
83

query I rowsort
SELECT ALL 17 * + col1 + + 3 FROM tab1 AS cor0
----
173
224
445

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

query I rowsort
SELECT ALL - 56 * + cor0.col0 * col1 AS col1 FROM tab0 cor0
----
-115584
-190120
-453544

query I rowsort
SELECT + 55 * + col2 AS col2 FROM tab2 AS cor0
----
1430
1485
2090

query I rowsort
SELECT + col1 + col0 * 5 FROM tab0 AS cor0
----
206
272
536

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

query I rowsort
SELECT DISTINCT - col2 + + col0 * - 90 AS col1 FROM tab1 AS cor0
----
-324
-5817
-7296

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

query I rowsort
SELECT ALL cor0.col1 * + col0 * + col0 AS col2 FROM tab2 cor0
----
106097
1519
358956

query I rowsort
SELECT DISTINCT - + cor0.col2 + col0 AS col0 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT ALL + 6 * + col2 AS col1 FROM tab0 AS cor0
----
198
492
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-1657
SELECT DISTINCT + - col1 + - ( - 5 ) DIV - col2 AS col1 FROM tab0 AS cor0
----
-102
-86
-91

skipif mysql # not compatible
query I rowsort label-1657
SELECT DISTINCT + - col1 + - ( - 5 ) / - col2 AS col1 FROM tab0 AS cor0
----
-102
-86
-91

query I rowsort
SELECT DISTINCT + col1 - + ( - col2 ) AS col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT - 67 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1660
SELECT + col1 + + col1 * CAST( - col0 AS SIGNED ) * col0 + - col2 * - 94 * col2 col2 FROM tab2 AS cor0
----
-295353
29656
67038

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1660
SELECT + col1 + + col1 * CAST ( - col0 AS INTEGER ) * col0 + - col2 * - 94 * col2 col2 FROM tab2 AS cor0
----
-295353
29656
67038

query I rowsort
SELECT col0 + - col0 * + 41 FROM tab0 cor0
----
-1400
-3560
-960

query I rowsort
SELECT col1 * - ( col2 ) + - 66 * col0 FROM tab2
----
-1299
-5860
-6682

query I rowsort
SELECT ALL - col1 * 19 FROM tab0
----
-1634
-1729
-1843

query I rowsort
SELECT - 29 + - col1 AS col2 FROM tab2 AS cor0
----
-46
-60
-88

query I rowsort
SELECT DISTINCT - col2 * col2 + col0 FROM tab0
----
-1065
-6635
34

query I rowsort
SELECT ALL + cor0.col1 * col2 AS col1 FROM tab0 cor0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 * col0 col2 FROM tab2 cor0
----
49
6084
6241

query I rowsort
SELECT ALL - + ( - col0 ) * col2 * 17 FROM tab1 AS cor0
----
130560
2754
62016

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col0 * + 73 - + col2 * - col1 * ( 86 * + col0 ) col0 FROM tab1 AS cor0
----
2870976
350406
8025600

query I rowsort
SELECT DISTINCT + ( col1 ) + col1 AS col2 FROM tab1 AS cor0
----
20
26
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1671
SELECT ALL - col0 + + col2 - CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1671
SELECT ALL - col0 + + col2 - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - 16 * col0 AS col1 FROM tab1 AS cor0
----
1024
1280
48

query I rowsort
SELECT col2 + + cor0.col0 * col2 AS col0 FROM tab0 cor0
----
36
7380
825

query I rowsort
SELECT DISTINCT + col0 * 84 + col0 FROM tab2 AS cor0
----
595
6630
6715

query I rowsort
SELECT DISTINCT col1 * cor0.col2 + col0 FROM tab2 cor0
----
1612
725
844

query I rowsort
SELECT ALL + col2 * ( col0 ) + + col1 AS col0 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT + + cor0.col0 + 58 AS col0 FROM tab1 cor0
----
122
138
61

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1678
SELECT DISTINCT col0 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1678
SELECT DISTINCT col0 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL

query I rowsort
SELECT + - col1 + - ( 2 ) * - cor0.col2 + 52 * 61 AS col2 FROM tab1 AS cor0
----
3254
3276
3351

query I rowsort
SELECT + 27 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query I rowsort
SELECT ALL - + cor0.col0 * col1 * col2 AS col1 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT DISTINCT ( + col1 ) + - col0 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT + col2 + + 9 * - col0 FROM tab0 AS cor0
----
-183
-314
-719

query I rowsort
SELECT + cor0.col2 FROM tab0, tab1 AS cor0, tab2, tab2 AS cor1
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886

query I rowsort
SELECT DISTINCT ( + cor0.col2 ) FROM tab0 cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 96 col1 FROM tab2, tab1 AS cor0
----
96

query I rowsort
SELECT - - 26 AS col0 FROM tab0 AS cor0
----
26
26
26

query I rowsort
SELECT + col2 * + 30 FROM tab2 AS cor0
----
1140
780
810

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( + 95 AS REAL ) AS col2 FROM tab2
----
95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1690
SELECT - CAST( + col0 AS SIGNED ) AS col0 FROM tab2
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-1690
SELECT - CAST ( + col0 AS INTEGER ) AS col0 FROM tab2
----
-7
-78
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1691
SELECT - - CAST( NULL AS SIGNED ) * col2 + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1691
SELECT - - CAST ( NULL AS INTEGER ) * col2 + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + cor0.col2 + - col1 FROM tab2 AS cor0
----
-33
-4
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 11 col1 FROM tab0 AS cor0
----
11
11
11

query I rowsort
SELECT - 0 * col0 + col0 AS col2 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT - - col1 * - cor0.col0 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT 37 * col0 FROM tab2 AS cor0
----
259
2886
2923

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + + col2 col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1698
SELECT DISTINCT 99 DIV + col0 AS col2 FROM tab0
----
1
2
4

skipif mysql # not compatible
query I rowsort label-1698
SELECT DISTINCT 99 / + col0 AS col2 FROM tab0
----
1
2
4

query I rowsort
SELECT 16 + - cor0.col2 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to fef674ae1d3a84f2a11278ac900558e2

query I rowsort
SELECT + + col2 * 22 FROM tab0 AS cor0
----
1804
22
726

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1701
SELECT ALL CAST( + 10 AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

skipif mysql # not compatible
query I rowsort label-1701
SELECT ALL CAST ( + 10 AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query I rowsort
SELECT - 99 AS col2 FROM tab1 AS cor0
----
-99
-99
-99

query I rowsort
SELECT + tab2.col2 * 86 AS col2 FROM tab2
----
2236
2322
3268

query I rowsort
SELECT ALL + 12 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE ( - col0 ) IN ( col0 )
----

query I rowsort
SELECT col2 * + cor0.col0 + + col1 AS col1 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT + col0 - cor0.col2 AS col0 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT + col0 + - cor0.col1 + - col2 AS col0 FROM tab2 cor0 WHERE NOT ( NULL ) IN ( + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - col0 * tab1.col0 col1 FROM tab1 WHERE NULL >= NULL
----

query I rowsort
SELECT col2 * tab1.col1 AS col0 FROM tab1 WHERE NOT - col1 * col2 NOT IN ( + col1 * + col2 )
----

query I rowsort
SELECT ALL + col1 * - col1 + - col1 AS col1 FROM tab1 AS cor0
----
-110
-182
-702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - col0 col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT col1 * + col1 + + col1 FROM tab2
----
306
3540
992

query I rowsort
SELECT col1 / - col1 AS col1 FROM tab1 WHERE NOT ( col0 ) NOT IN ( col0 * col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col1 - col2 col2 FROM tab2
----
1305
190
4576

query I rowsort
SELECT + col0 * col0 * - col1 + - col2 FROM tab2
----
-106135
-1546
-358982

query I rowsort
SELECT ALL + col0 * - col2 * col0 + + tab2.col1 * + col1 AS col2 FROM tab2
----
-154703
-236869
-362

query I rowsort
SELECT + col0 * - col1 + col0 FROM tab0 WHERE NULL NOT IN ( + col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1719
SELECT col2 * + col0 DIV tab2.col0 AS col2 FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-1719
SELECT col2 * + col0 / tab2.col0 AS col2 FROM tab2
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + col0 + col0 col2 FROM tab2
----
196
2106
3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-1721
SELECT col1 DIV - col0 + + tab0.col0 * - col0 AS col0 FROM tab0
----
-1227
-579
-7922

skipif mysql # not compatible
query I rowsort label-1721
SELECT col1 / - col0 + + tab0.col0 * - col0 AS col0 FROM tab0
----
-1227
-579
-7922

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 + col0 * col1 col1 FROM tab0 AS cor0
----
2150
3492
8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-1723
SELECT col0 DIV col1 + col2 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-1723
SELECT col0 / col1 + col2 FROM tab0
----
1
33
82

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE + col2 / col0 <= ( NULL )
----

query I rowsort
SELECT DISTINCT 29 * col0 AS col1 FROM tab1
----
1856
2320
87

query I rowsort
SELECT col1 * - col1 + ( tab2.col0 * col2 ) FROM tab2
----
-1453
-772
2713

query I rowsort
SELECT 55 - col1 * - ( - col2 ) AS col0 FROM tab0
----
-2783
-42
-7407

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col0 col2 FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1729
SELECT + col0 * + CAST( NULL AS SIGNED ) * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1729
SELECT + col0 * + CAST ( NULL AS INTEGER ) * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col0 * + tab0.col0 col2 FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT ALL ( - tab0.col2 ) FROM tab0, tab1 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT - + cor0.col0 * - col1 * 52 FROM tab2 AS cor0
----
11284
239304
69836

query I rowsort
SELECT DISTINCT + cor0.col0 + ( col1 ) FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT + col2 + col1 + - col0 AS col1 FROM tab0
----
63
84
95

query I rowsort
SELECT ALL + col2 * tab0.col2 * - col2 AS col1 FROM tab0
----
-1
-35937
-551368

query I rowsort
SELECT col1 FROM tab2 WHERE NOT NULL <= ( NULL )
----

query I rowsort
SELECT + col2 * col0 + col1 AS col0 FROM tab1
----
188
3658
7693

onlyif mysql # use DIV operator for integer division
query I rowsort label-1738
SELECT ALL col0 * col1 - col0 DIV col0 FROM tab1
----
1039
639
77

skipif mysql # not compatible
query I rowsort label-1738
SELECT ALL col0 * col1 - col0 / col0 FROM tab1
----
1039
639
77

query I rowsort
SELECT col0 * tab1.col0 * col1 FROM tab1
----
234
40960
83200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col2 * - col0 - - col2 * col1 col2 FROM tab0
----
-23298
-590974
62

query I rowsort
SELECT - col1 - + col0 AS col2 FROM tab1
----
-29
-74
-93

query I rowsort
SELECT col2 * col2 + + tab0.col2 FROM tab0
----
1122
2
6806

query I rowsort
SELECT - tab2.col0 * - col0 AS col1 FROM tab2
----
49
6084
6241

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 * - col0 + - col1 / + col1 IN ( + tab1.col0 * tab1.col0 * - col1 )
----

query I rowsort
SELECT DISTINCT tab0.col2 * col0 * col0 FROM tab0
----
1225
19008
649522

query I rowsort
SELECT DISTINCT + + col2 + + col0 * - col0 FROM tab0 AS cor0
----
-1224
-543
-7839

query I rowsort
SELECT DISTINCT + col1 * - cor0.col0 * - 67 FROM tab0 AS cor0
----
138288
227465
542633

query I rowsort
SELECT col0 + col0 * - col1 * 32 AS col1 FROM tab2 AS cor0
----
-147186
-42897
-6937

query I rowsort
SELECT ALL + col2 AS col2 FROM tab2 WHERE NOT NULL BETWEEN col1 AND NULL
----

query I rowsort
SELECT ALL col2 * col1 - col0 AS col0 FROM tab1
----
1168
1401
506

query I rowsort
SELECT DISTINCT col1 * - col2 + col2 AS col2 FROM tab2
----
-1508
-608
-810

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( - col0 * col1 * - col1 )
----

query I rowsort
SELECT col2 * col1 FROM tab2 WHERE ( col2 ) NOT IN ( + col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1754
SELECT DISTINCT col1 DIV + col0 AS col2 FROM tab1 AS cor0
----
0
8

skipif mysql # not compatible
query I rowsort label-1754
SELECT DISTINCT col1 / + col0 AS col2 FROM tab1 AS cor0
----
0
8

query I rowsort
SELECT + + col1 * - 89 FROM tab0 AS cor0
----
-7654
-8099
-8633

query I rowsort
SELECT DISTINCT + col2 * + cor0.col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - - col2 + + 87 * ( - col0 ) * + col0 FROM tab1 cor0
----
-356295
-556704
-729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - cor0.col0 col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - tab2.col2 * col0 * + col0 FROM tab2
----
-1323
-158184
-237158

query I rowsort
SELECT 50 * - col1 + - 86 AS col1 FROM tab1
----
-1386
-586
-736

query I rowsort
SELECT - ( + tab0.col2 ) + 34 * col0 * col0 FROM tab0
----
19551
269232
41649

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col1 * tab1.col0 col0 FROM tab1
----
-24
-583
-944

onlyif mysql # use DIV operator for integer division
query I rowsort label-1763
SELECT col1 DIV + col2 + 34 FROM tab0
----
131
35
36

skipif mysql # not compatible
query I rowsort label-1763
SELECT col1 / + col2 + 34 FROM tab0
----
131
35
36

query I rowsort
SELECT tab2.col1 - - col0 AS col1 FROM tab2
----
137
38
96

query I rowsort
SELECT DISTINCT - + col2 + + ( 16 ) AS col2 FROM tab2 cor0
----
-10
-11
-22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 - col1 col2 FROM tab0 AS cor0
----
-119
-173
-98

skipif mysql # not compatible
query I rowsort
SELECT + col1 + CAST ( - col2 AS REAL ) AS col0 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT - 10 * col1 - + col0 FROM tab1
----
-164
-210
-263

onlyif mysql # use DIV operator for integer division
query I rowsort label-1769
SELECT 6 DIV - tab1.col1 + 95 FROM tab1, tab2 cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

skipif mysql # not compatible
query I rowsort label-1769
SELECT 6 / - tab1.col1 + 95 FROM tab1, tab2 cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query I rowsort
SELECT ALL col2 + col0 + + tab0.col1 * + col0 * - col2 AS col2 FROM tab0
----
-3359
-663947
-68055

query I rowsort
SELECT DISTINCT tab0.col1 AS col2 FROM tab1, tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
86
91
97

query I rowsort
SELECT ALL - col0 + + 53 AS col0 FROM tab0 AS cor0
----
-36
18
29

query I rowsort
SELECT col0 * 81 FROM tab0 AS cor0
----
1944
2835
7209

query I rowsort
SELECT ALL + + 83 AS col2 FROM tab1 AS cor0
----
83
83
83

query I rowsort
SELECT ALL + ( col2 ) + - col2 * + tab0.col1 AS col2 FROM tab0
----
-2805
-7380
-96

query I rowsort
SELECT + cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT - col1 + + col1 + - tab0.col1 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT ALL - col2 * col0 - + col1 * - 93 FROM tab0 AS cor0
----
1165
7206
8986

query I rowsort
SELECT + + col1 * col2 + + col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT DISTINCT 43 * + col1 FROM tab0 cor0
----
3698
3913
4171

onlyif mysql # use DIV operator for integer division
query I rowsort label-1781
SELECT DISTINCT + col0 * col1 DIV 60 AS col2 FROM tab0
----
134
34
56

skipif mysql # not compatible
query I rowsort label-1781
SELECT DISTINCT + col0 * col1 / 60 AS col2 FROM tab0
----
134
34
56

query I rowsort
SELECT ALL + + 34 AS col2 FROM tab0 AS cor0
----
34
34
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * cor0.col2 col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - col1 + col0 * - col1 AS col1 FROM tab1 AS cor0
----
-104
-1053
-650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 67 col1 FROM tab0 cor0
----
67

query I rowsort
SELECT ALL + tab2.col1 * tab2.col0 * + tab2.col1 FROM tab2
----
22831
271518
6727

query I rowsort
SELECT + - col2 + col0 * col1 * + col0 FROM tab0 AS cor0
----
118824
49503
720729

query I rowsort
SELECT ( - col2 ) * col2 * col1 + col0 FROM tab0 AS cor0
----
-611795
-62
-93630

query I rowsort
SELECT DISTINCT - - 7 * - col0 FROM tab2 AS cor0
----
-49
-546
-553

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 + col0 col0 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT - ( col2 ) * - col0 AS col2 FROM tab2
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + col2 col0 FROM tab0 cor0
----
1
1089
6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-1793
SELECT - - cor0.col1 + col1 * cor0.col2 + + col2 DIV + col1 AS col1 FROM tab2 AS cor0
----
1593
665
868

skipif mysql # not compatible
query I rowsort label-1793
SELECT - - cor0.col1 + col1 * cor0.col2 + + col2 / + col1 AS col1 FROM tab2 AS cor0
----
1593
665
868

query I rowsort
SELECT ALL - col2 * + col0 * - col2 AS col1 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT - col1 * + col2 + cor0.col1 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT - col2 + cor0.col1 + - col2 FROM tab2 AS cor0
----
-23
-59
7

query I rowsort
SELECT + ( - col0 ) + col1 AS col0 FROM tab2 AS cor0
----
-19
-62
24

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1798
SELECT ALL CAST( col2 AS SIGNED ) + - cor0.col1 FROM tab2 AS cor0
----
-33
-4
21

skipif mysql # not compatible
query I rowsort label-1798
SELECT ALL CAST ( col2 AS INTEGER ) + - cor0.col1 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT ALL - ( cor0.col1 ) + col2 FROM tab1 AS cor0
----
28
47
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-1800
SELECT ( + tab1.col1 ) DIV + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1800
SELECT ( + tab1.col1 ) / + col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + ( - col1 + + col0 * col0 ) AS col0 FROM tab0
----
1128
490
7830

query I rowsort
SELECT - - ( col2 ) - - col0 * + col1 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT ALL + col2 + - col0 * + col2 AS col0 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT 47 + + cor0.col1 FROM tab2 cor0
----
106
64
78

query I rowsort
SELECT - 63 + col0 * col0 + - col0 FROM tab0 AS cor0
----
1127
489
7769

query I rowsort
SELECT + - ( col1 ) + col0 AS col0 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT - col0 + + col2 * - col2 + col0 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT + ( col1 ) * + col1 + col0 + col1 * cor0.col2 FROM tab0 AS cor0
----
10258
15832
9541

query I rowsort
SELECT + 0 + 34 + col0 FROM tab2
----
112
113
41

query I rowsort
SELECT ALL + 80 + 65 AS col0 FROM tab2
----
145
145
145

query I rowsort
SELECT ALL - col2 + 95 AS col2 FROM tab0
----
13
62
94

query I rowsort
SELECT ALL + ( 56 ) + col2 FROM tab1
----
110
113
152

query I rowsort
SELECT 80 * + cor0.col2 + col2 FROM tab1 AS cor0
----
4374
4617
7776

query I rowsort
SELECT - + 51 * col2 * col0 AS col0 FROM tab1 AS cor0
----
-186048
-391680
-8262

query I rowsort
SELECT + 16 * - col0 AS col2 FROM tab2 AS cor0
----
-112
-1248
-1264

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - col0 * - col2 col2 FROM tab1 AS cor0
----
136
3638
7667

onlyif mysql # use DIV operator for integer division
query I rowsort label-1817
SELECT col0 DIV col0 + cor0.col0 - col1 FROM tab0 AS cor0
----
-1
-61
-61

skipif mysql # not compatible
query I rowsort label-1817
SELECT col0 / col0 + cor0.col0 - col1 FROM tab0 AS cor0
----
-1
-61
-61

query I rowsort
SELECT - - 75 * col2 FROM tab0 AS cor0
----
2475
6150
75

query I rowsort
SELECT - 67 * + col0 AS col2 FROM tab1 AS cor0
----
-201
-4288
-5360

query I rowsort
SELECT - col0 + cor0.col1 - col0 FROM tab1 AS cor0
----
-118
-147
20

query I rowsort
SELECT - - col1 + + col1 + ( cor0.col0 + col1 ) FROM tab1 AS cor0
----
119
81
94

query I rowsort
SELECT + col2 + + col0 * + 88 - 81 AS col1 FROM tab1 AS cor0
----
237
5608
7055

onlyif mysql # use DIV operator for integer division
query I rowsort label-1823
SELECT ALL - col2 DIV tab1.col0 AS col0 FROM tab1
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-1823
SELECT ALL - col2 / tab1.col0 AS col0 FROM tab1
----
-1
-18
0

query I rowsort
SELECT ALL 52 * col0 FROM tab1 AS cor0
----
156
3328
4160

query I rowsort
SELECT + - col1 + cor0.col1 * col0 AS col1 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT + col1 - ( - col2 ) FROM tab0
----
119
173
98

query I rowsort
SELECT DISTINCT + 88 * - col2 + col2 * col0 FROM tab0 AS cor0
----
-2112
-53
82

query I rowsort
SELECT ALL + col2 * + cor0.col0 - + col1 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT DISTINCT col2 + col0 * + cor0.col0 FROM tab1 AS cor0
----
4153
63
6496

onlyif mysql # use DIV operator for integer division
query I rowsort label-1830
SELECT DISTINCT + col1 DIV 46 + + col2 * + col0 FROM tab1 cor0
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-1830
SELECT DISTINCT + col1 / 46 + + col2 * + col0 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT + 19 * - col0 + col1 FROM tab0 AS cor0
----
-1600
-370
-568

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1832
SELECT CAST( NULL AS SIGNED ) col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1832
SELECT CAST ( NULL AS INTEGER ) col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 41 + + col0 * cor0.col1 * col0 + - col0 FROM tab1 cor0
----
272
40937
83161

query I rowsort
SELECT ALL + col1 + - 6 AS col0 FROM tab1 AS cor0
----
20
4
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + cor0.col1 ) * + col2 col0 FROM tab0 AS cor0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 15 * col1 col2 FROM tab2 AS cor0
----
-255
-465
-885

query I rowsort
SELECT DISTINCT - col1 * cor0.col2 * + col2 FROM tab1 AS cor0
----
-119808
-32490
-75816

query I rowsort
SELECT ALL - col1 + cor0.col2 * col2 AS col2 FROM tab0 AS cor0
----
-96
1003
6633

query I rowsort
SELECT ALL 93 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to bed80270d2bd273301f8ff63d7ef9f43

query I rowsort
SELECT DISTINCT - + col1 * 30 FROM tab0 AS cor0
----
-2580
-2730
-2910

query I rowsort
SELECT - cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT 14 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1843
SELECT ALL CAST( + ( col1 ) + + 94 AS SIGNED ) * col0 DIV - col1 FROM tab1
----
-13
-658
-665

skipif mysql # not compatible
query I rowsort label-1843
SELECT ALL CAST ( + ( col1 ) + + 94 AS INTEGER ) * col0 / - col1 FROM tab1
----
-13
-658
-665

onlyif mysql # use DIV operator for integer division
query I rowsort label-1844
SELECT 26 + + col1 DIV col0 AS col1 FROM tab0
----
27
28
29

skipif mysql # not compatible
query I rowsort label-1844
SELECT 26 + + col1 / col0 AS col1 FROM tab0
----
27
28
29

query I rowsort
SELECT - col0 + ( col2 ) FROM tab2
----
-41
-52
20

query I rowsort
SELECT - col2 + - ( + col1 * - col1 ) FROM tab1
----
43
622
73

query I rowsort
SELECT DISTINCT - 9 AS col2 FROM tab0 AS cor0
----
-9

query I rowsort
SELECT DISTINCT ( - ( col2 ) ) FROM tab2
----
-26
-27
-38

query I rowsort
SELECT DISTINCT + 82 FROM tab0, tab2 AS cor0
----
82

query I rowsort
SELECT DISTINCT - col0 - tab2.col2 FROM tab2
----
-104
-117
-34

query I rowsort
SELECT col1 + col2 - tab1.col2 * col1 AS col0 FROM tab1
----
-1139
-1324
-503

onlyif mysql # use DIV operator for integer division
query I rowsort label-1852
SELECT ALL + tab0.col2 DIV col0 - + ( col0 ) * - col1 * 58 FROM tab0
----
119713
196910
469742

skipif mysql # not compatible
query I rowsort label-1852
SELECT ALL + tab0.col2 / col0 - + ( col0 ) * - col1 * 58 FROM tab0
----
119713
196910
469742

query I rowsort
SELECT ALL + + col1 + + 20 * col1 AS col2 FROM tab2 AS cor0
----
1239
357
651

onlyif mysql # use DIV operator for integer division
query I rowsort label-1854
SELECT - col2 DIV 37 - col2 * col1 * + col0 FROM tab1 AS cor0
----
-36481
-4213
-99842

skipif mysql # not compatible
query I rowsort label-1854
SELECT - col2 / 37 - col2 * col1 * + col0 FROM tab1 AS cor0
----
-36481
-4213
-99842

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 10 col2 FROM tab2 AS cor0
----
70
780
790

query I rowsort
SELECT - col1 + + 66 AS col1 FROM tab1 AS cor0
----
40
53
56

query I rowsort
SELECT DISTINCT + col1 * + 40 FROM tab1 AS cor0
----
1040
400
520

query I rowsort
SELECT ALL col0 - - col1 * col2 FROM tab0
----
132
2862
7551

query I rowsort
SELECT ( - tab2.col2 ) + + col2 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT 45 * col0 + - col0 * - col0 + + tab1.col2 * + 1 FROM tab1
----
10096
198
7033

onlyif mysql # use DIV operator for integer division
query I rowsort label-1861
SELECT + col2 * 25 + - ( - col2 ) DIV 22 FROM tab2 AS cor0
----
651
676
951

skipif mysql # not compatible
query I rowsort label-1861
SELECT + col2 * 25 + - ( - col2 ) / 22 FROM tab2 AS cor0
----
651
676
951

query I rowsort
SELECT ALL + 93 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7

query I rowsort
SELECT ALL + - col2 * 51 FROM tab1 AS cor0
----
-2754
-2907
-4896

query I rowsort
SELECT + col1 * ( - col1 ) AS col2 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT ALL - col1 * - col1 * - col2 FROM tab1 AS cor0
----
-16224
-36504
-5700

onlyif mysql # use DIV operator for integer division
query I rowsort label-1866
SELECT DISTINCT + col1 DIV - 9 AS col0 FROM tab2 AS cor0
----
-1
-3
-6

skipif mysql # not compatible
query I rowsort label-1866
SELECT DISTINCT + col1 / - 9 AS col0 FROM tab2 AS cor0
----
-1
-3
-6

query I rowsort
SELECT DISTINCT col2 + - 99 * col0 AS col2 FROM tab2 AS cor0
----
-666
-7696
-7783

query I rowsort
SELECT ALL + cor0.col0 * cor0.col1 - - cor0.col0 * col0 AS col1 FROM tab2 cor0
----
10686
266
7584

query I rowsort
SELECT + col2 + 70 * 85 FROM tab1 AS cor0
----
6004
6007
6046

query I rowsort
SELECT DISTINCT + col2 * col0 - + ( - col0 ) FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT - col2 * ( - cor0.col0 ) + - col1 FROM tab1 AS cor0
----
136
3638
7667

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT ALL + + col2 * + col2 * - col0 AS col0 FROM tab0 AS cor0
----
-26136
-35
-598436

onlyif mysql # use DIV operator for integer division
query I rowsort label-1874
SELECT 47 DIV - col0 + ( col2 ) AS col0 FROM tab1 AS cor0
----
39
57
96

skipif mysql # not compatible
query I rowsort label-1874
SELECT 47 / - col0 + ( col2 ) AS col0 FROM tab1 AS cor0
----
39
57
96

query I rowsort
SELECT DISTINCT - 0 * cor0.col0 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - 0 * col2 FROM tab1 AS cor0
----
0
0
0

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 cor0, tab2 AS cor1, tab1, tab2 cor2
----
3645 values hashing to 4805bcb9c04e49d1f6f82defa880d751

query I rowsort
SELECT DISTINCT - cor0.col0 * - col0 * + 96 FROM tab1 AS cor0
----
393216
614400
864

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1879
SELECT - CAST( NULL AS SIGNED ) FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-1879
SELECT - CAST ( NULL AS INTEGER ) FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL + tab2.col2 + + 93 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to 2e6a90cb7894b7f64d561866b332d94d

query I rowsort
SELECT DISTINCT - + col1 - cor0.col2 * + col2 FROM tab2 AS cor0
----
-1461
-735
-760

query I rowsort
SELECT ALL col1 * - cor0.col2 + + col0 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT DISTINCT ( cor0.col2 ) + + col2 * - 4 FROM tab2 cor0
----
-114
-78
-81

onlyif mysql # use DIV operator for integer division
query I rowsort label-1884
SELECT + + 22 + col1 DIV - col2 AS col1 FROM tab1 AS cor0
----
22
22
22

skipif mysql # not compatible
query I rowsort label-1884
SELECT + + 22 + col1 / - col2 AS col1 FROM tab1 AS cor0
----
22
22
22

query I rowsort
SELECT DISTINCT - + col0 + + ( - col1 + col1 ) FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL + - col0 - ( col0 ) AS col1 FROM tab0 AS cor0
----
-178
-48
-70

query I rowsort
SELECT + col2 + ( - col1 ) FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT DISTINCT col1 + cor0.col0 * col0 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT - 73 * col2 + col1 AS col0 FROM tab0 cor0
----
-2323
-5895
24

query I rowsort
SELECT DISTINCT col1 + + 96 * + col0 * + 85 FROM tab0 AS cor0
----
195926
285697
726331

onlyif mysql # use DIV operator for integer division
query I rowsort label-1891
SELECT ALL - col2 DIV + col2 + cor0.col1 + - col1 col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1891
SELECT ALL - col2 / + col2 + cor0.col1 + - col1 col2 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-1892
SELECT DISTINCT - col1 DIV 4 - + ( col2 ) * + tab1.col0 FROM tab1
----
-168
-3650
-7683

skipif mysql # not compatible
query I rowsort label-1892
SELECT DISTINCT - col1 / 4 - + ( col2 ) * + tab1.col0 FROM tab1
----
-168
-3650
-7683

query I rowsort
SELECT + col0 - col2 * - col0 AS col0 FROM tab1
----
165
3712
7760

query I rowsort
SELECT DISTINCT - col0 - + col0 FROM tab0
----
-178
-48
-70

query I rowsort
SELECT - col1 * col0 - col0 FROM tab0 cor0
----
-2088
-3430
-8188

query I rowsort
SELECT col0 - - tab2.col0 FROM tab2
----
14
156
158

query I rowsort
SELECT - cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT + col0 * + col2 + 43 AS col2 FROM tab2 AS cor0
----
2071
232
3045

query I rowsort
SELECT ALL - col2 + col2 AS col0 FROM tab1 cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1900
SELECT CAST( NULL AS DECIMAL ) * tab1.col2 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1900
SELECT CAST ( NULL AS REAL ) * tab1.col2 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1901
SELECT - col0 * col0 DIV col0 - - cor0.col2 DIV col0 AS col2 FROM tab0 cor0
----
-23
-35
-89

skipif mysql # not compatible
query I rowsort label-1901
SELECT - col0 * col0 / col0 - - cor0.col2 / col0 AS col2 FROM tab0 cor0
----
-23
-35
-89

query I rowsort
SELECT + col2 + col2 * col1 AS col0 FROM tab1 cor0
----
1344
1458
627

query I rowsort
SELECT + - 40 + col0 AS col1 FROM tab2 AS cor0
----
-33
38
39

query I rowsort
SELECT - col0 - - col0 * col0 * col1 FROM tab0 cor0
----
118790
49512
720722

query I rowsort
SELECT - - col1 * col0 + - col2 AS col1 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT + 21 * + col1 FROM tab1
----
210
273
546

onlyif mysql # use DIV operator for integer division
query I rowsort label-1907
SELECT + 70 DIV + col1 AS col2 FROM tab2
----
1
2
4

skipif mysql # not compatible
query I rowsort label-1907
SELECT + 70 / + col1 AS col2 FROM tab2
----
1
2
4

query I rowsort
SELECT ALL 54 * - col2 FROM tab0
----
-1782
-4428
-54

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1909
SELECT + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1909
SELECT + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT 99 - + col2 AS col0 FROM tab2 AS cor0
----
61
72
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-1911
SELECT - col1 * col2 - - 54 DIV 47 FROM tab0 AS cor0
----
-2837
-7461
-96

skipif mysql # not compatible
query I rowsort label-1911
SELECT - col1 * col2 - - 54 / 47 FROM tab0 AS cor0
----
-2837
-7461
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 38 ) col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to e8c064543bf0f2e57329db1bb0a411e3

query I rowsort
SELECT DISTINCT + col2 * - col2 - - col0 FROM tab1
----
-2913
-3185
-9136

query I rowsort
SELECT - 50 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

query I rowsort
SELECT - 31 + + col2 AS col2 FROM tab1 AS cor0
----
23
26
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-1916
SELECT ALL - col0 * 15 DIV + 63 FROM tab1 AS cor0
----
-15
-19
0

skipif mysql # not compatible
query I rowsort label-1916
SELECT ALL - col0 * 15 / + 63 FROM tab1 AS cor0
----
-15
-19
0

query I rowsort
SELECT DISTINCT - cor0.col1 + - 19 FROM tab0, tab2 AS cor0
----
-36
-50
-78

query I rowsort
SELECT + 18 * - col0 FROM tab2 AS cor0
----
-126
-1404
-1422

query I rowsort
SELECT ALL ( col0 ) * + col2 AS col1 FROM tab0
----
35
7298
792

query I rowsort
SELECT DISTINCT 3 FROM tab1, tab0 AS cor0, tab2 cor1, tab1 AS cor2
----
3

query I rowsort
SELECT + ( 92 ) AS col2 FROM tab1 cor0
----
92
92
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + tab0.col2 col2 FROM tab0
----
1
1089
6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 14 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 59 + + col2 * + 38 * + 71 col0 FROM tab2
----
102465
70089
72787

query I rowsort
SELECT col1 + + cor0.col1 * 91 FROM tab0 AS cor0
----
7912
8372
8924

query I rowsort
SELECT + col1 + - 48 FROM tab1
----
-22
-35
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - cor0.col0 col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT + 59 FROM tab2, tab1 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 + col0 * - col2 * col2 col0 FROM tab1
----
-207924
-737268
-8736

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1930
SELECT ALL CAST( col2 AS SIGNED ) AS col2 FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-1930
SELECT ALL CAST ( col2 AS INTEGER ) AS col2 FROM tab2
----
26
27
38

query I rowsort
SELECT + - 76 + col2 AS col2 FROM tab0 AS cor0
----
-43
-75
6

query I rowsort
SELECT 16 + + col1 FROM tab1 AS cor0
----
26
29
42

query I rowsort
SELECT - 18 FROM tab0, tab2 AS cor0
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

query I rowsort
SELECT col2 * - col2 * ( 92 ) + col0 AS col0 FROM tab2 AS cor0
----
-132769
-62114
-67061

query I rowsort
SELECT - + 74 * col2 AS col1 FROM tab0 AS cor0
----
-2442
-6068
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col2 col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL col1 * col2 AS col2 FROM tab0 cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-1938
SELECT - col0 DIV - cor0.col1 + + col0 * - cor0.col2 + + cor0.col2 AS col1 FROM tab1 AS cor0
----
-108
-3585
-7578

skipif mysql # not compatible
query I rowsort label-1938
SELECT - col0 / - cor0.col1 + + col0 * - cor0.col2 + + cor0.col2 AS col1 FROM tab1 AS cor0
----
-108
-3585
-7578

query I rowsort
SELECT - - col1 * + cor0.col0 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT + + 18 * - tab2.col1 FROM tab2, tab0, tab1 cor0
----
27 values hashing to 5ec353edea96f8c7d58132497910c75a

query I rowsort
SELECT 43 * 73 FROM tab1
----
3139
3139
3139

query I rowsort
SELECT - col2 * + col1 AS col1 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT + + col2 + + col0 AS col2 FROM tab0 AS cor0
----
171
36
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1944
SELECT ALL CAST( NULL AS SIGNED ) / + 95 + + cor0.col0 AS col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-1944
SELECT ALL CAST ( NULL AS INTEGER ) / + 95 + + cor0.col0 AS col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT + ( col2 ) * + 41 * + col0 + - col1 + - col1 FROM tab2 AS cor0
----
123048
7687
83030

query I rowsort
SELECT ALL - 95 + + col2 FROM tab0 cor0
----
-13
-62
-94

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 cor0, tab1 cor1, tab0, tab2 AS cor2
----
3645 values hashing to d2c0c94b38e721d8cf9f7df226475a2f

onlyif mysql # use DIV operator for integer division
query I rowsort label-1948
SELECT ALL - - 36 DIV - cor0.col2 + - col0 + + cor0.col1 * col0 AS col0 FROM tab0 AS cor0
----
2039
3324
8010

skipif mysql # not compatible
query I rowsort label-1948
SELECT ALL - - 36 / - cor0.col2 + - col0 + + cor0.col1 * col0 AS col0 FROM tab0 AS cor0
----
2039
3324
8010

query I rowsort
SELECT - 16 AS col0 FROM tab0 AS cor0
----
-16
-16
-16

query I rowsort
SELECT ALL - col0 * col2 * + col0 FROM tab0 AS cor0
----
-1225
-19008
-649522

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1951
SELECT + - col2 * + CAST( + 0 AS SIGNED ) + col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1951
SELECT + - col2 * + CAST ( + 0 AS INTEGER ) + col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + + col0 * - col2 + col1 FROM tab0 AS cor0
----
-620
-7116
159

query I rowsort
SELECT + 9 + - col0 FROM tab2
----
-69
-70
2

query I rowsort
SELECT DISTINCT - col1 + 6 * ( - col0 ) FROM tab0 AS cor0
----
-230
-307
-625

query I rowsort
SELECT DISTINCT + col2 * - col0 + + 30 * - col1 AS col2 FROM tab0 AS cor0
----
-10028
-2945
-3372

query I rowsort
SELECT - col2 + - tab2.col0 * col0 * col0 FROM tab2
----
-370
-474578
-493077

query I rowsort
SELECT ALL - ( tab1.col2 ) + tab1.col0 AS col2 FROM tab1
----
-16
-51
7

query I rowsort
SELECT DISTINCT - tab0.col1 * + col2 + - col2 AS col1 FROM tab0
----
-2871
-7544
-98

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - - CAST ( - 56 AS INTEGER ) + col0 * - CAST ( col2 AS REAL ) FROM tab1 AS cor0
----
-218
-3704
-7736

query I rowsort
SELECT DISTINCT - 67 * + col0 AS col2 FROM tab2 AS cor0
----
-469
-5226
-5293

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 + + col0 col2 FROM tab0 cor0
----
178
48
70

query I rowsort
SELECT ALL - cor0.col0 * - col1 * - col1 - col2 FROM tab2 AS cor0
----
-22869
-271544
-6754

query I rowsort
SELECT col1 * 9 + + col1 AS col2 FROM tab2 cor0
----
170
310
590

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + + CAST ( - col1 AS REAL ) * col0 FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1965
SELECT DISTINCT - CAST( NULL AS SIGNED ) / 14 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1965
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / 14 AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1966
SELECT ALL + - CAST( + col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-1966
SELECT ALL + - CAST ( + col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-7
-78
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1967
SELECT + ( col1 ) * col0 * CAST( - col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-119652
-51034
-5859

skipif mysql # not compatible
query I rowsort label-1967
SELECT + ( col1 ) * col0 * CAST ( - col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT ALL + ( + 68 ) + - col2 AS col2 FROM tab1 AS cor0
----
-28
11
14

query I rowsort
SELECT col2 - col1 * col2 FROM tab1
----
-1152
-1350
-513

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1970
SELECT + tab2.col0 + - CAST( - col0 * - col1 AS SIGNED ) FROM tab2
----
-1264
-210
-4524

skipif mysql # not compatible
query I rowsort label-1970
SELECT + tab2.col0 + - CAST ( - col0 * - col1 AS INTEGER ) FROM tab2
----
-1264
-210
-4524

query I rowsort
SELECT ALL + 11 FROM tab0, tab2 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query I rowsort
SELECT + col2 + + ( - col2 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + + col1 - col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + 60 * - col1 - - col0 * 21 * - ( + col1 ) AS col1 FROM tab2 AS cor0
----
-100182
-29223
-6417

query I rowsort
SELECT DISTINCT + col0 * col0 - col0 AS col0 FROM tab2 AS cor0
----
42
6006
6162

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1976
SELECT ( ( col2 ) ) * + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1976
SELECT ( ( col2 ) ) * + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * - col2 AS col2 FROM tab2 cor0
----
-1444
-676
-729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 42 col0 FROM tab0, tab0 AS cor0 CROSS JOIN tab1
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1979
SELECT + CAST( NULL AS DECIMAL ) / + 89 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1979
SELECT + CAST ( NULL AS REAL ) / + 89 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # use DIV operator for integer division
query I rowsort label-1980
SELECT ALL col1 + ( 61 ) DIV + col2 FROM tab1
----
11
13
27

skipif mysql # not compatible
query I rowsort label-1980
SELECT ALL col1 + ( 61 ) / + col2 FROM tab1
----
11
13
27

onlyif mysql # use DIV operator for integer division
query I rowsort label-1981
SELECT - + col1 DIV + 62 + 27 DIV + col1 FROM tab1 AS cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-1981
SELECT - + col1 / + 62 + 27 / + col1 FROM tab1 AS cor0
----
1
2
2

query I rowsort
SELECT ALL - col2 * col1 + - col2 FROM tab1 cor0
----
-1344
-1458
-627

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1983
SELECT ALL col1 * cor0.col1 / - 34 + + col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1983
SELECT ALL col1 * cor0.col1 / - 34 + + col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 * - 81 FROM tab0
----
1944
2835
7209

query I rowsort
SELECT + col0 + - col1 + 62 FROM tab1
----
116
129
39

onlyif mysql # use DIV operator for integer division
query I rowsort label-1986
SELECT cor0.col0 * - 42 + - col2 DIV + col1 FROM tab0 AS cor0
----
-1008
-1470
-3738

skipif mysql # not compatible
query I rowsort label-1986
SELECT cor0.col0 * - 42 + - col2 / + col1 FROM tab0 AS cor0
----
-1008
-1470
-3738

query I rowsort
SELECT + col0 * 89 - + 29 AS col2 FROM tab0 AS cor0
----
2107
3086
7892

query I rowsort
SELECT ALL - - ( 63 ) AS col0 FROM tab0 AS cor0
----
63
63
63

query I rowsort
SELECT - 22 + - 30 FROM tab1 AS cor0
----
-52
-52
-52

query I rowsort
SELECT ALL + - 30 + col2 FROM tab0 cor0
----
-29
3
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 87 + col1 col0 FROM tab1 AS cor0
----
-61
-74
-77

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1992
SELECT DISTINCT - - CAST( 4 AS SIGNED ) * - cor0.col1 - CAST( + col2 AS SIGNED ) FROM tab1 AS cor0
----
-148
-158
-97

skipif mysql # not compatible
query I rowsort label-1992
SELECT DISTINCT - - CAST ( 4 AS INTEGER ) * - cor0.col1 - CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
-148
-158
-97

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( - 21 AS REAL ) * + col1 + 85 * + 59 AS col0 FROM tab0 AS cor0
----
6821
6926
7052

query I rowsort
SELECT ALL + 40 + + col1 * col0 FROM tab1 AS cor0
----
1080
118
680

query I rowsort
SELECT ALL + cor0.col2 AS col0 FROM tab0, tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886

query I rowsort
SELECT ALL - cor0.col0 + col1 * col0 FROM tab1 AS cor0
----
576
75
960

onlyif mysql # use DIV operator for integer division
query I rowsort label-1997
SELECT ( + col0 ) * + col2 + col1 DIV - col1 AS col2 FROM tab2 AS cor0
----
188
2027
3001

skipif mysql # not compatible
query I rowsort label-1997
SELECT ( + col0 ) * + col2 + col1 / - col1 AS col2 FROM tab2 AS cor0
----
188
2027
3001

query I rowsort
SELECT ALL - + ( col1 ) * - col0 * cor0.col2 AS col1 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT 62 * - col2 FROM tab1 AS cor0
----
-3348
-3534
-5952

query I rowsort
SELECT DISTINCT ( + cor0.col0 ) AS col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT col2 + col1 * cor0.col1 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT ( col0 ) * col0 + + ( 43 ) * + col1 AS col1 FROM tab0 AS cor0
----
11834
4274
5396

onlyif mysql # use DIV operator for integer division
query I rowsort label-2003
SELECT + + 5 DIV 24 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2003
SELECT + + 5 / 24 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col2 + + 94 AS col1 FROM tab1 AS cor0
----
148
151
190

onlyif mysql # use DIV operator for integer division
query I rowsort label-2005
SELECT 47 * 5 DIV col2 + col2 AS col2 FROM tab0 AS cor0
----
236
40
84

skipif mysql # not compatible
query I rowsort label-2005
SELECT 47 * 5 / col2 + col2 AS col2 FROM tab0 AS cor0
----
236
40
84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2006
SELECT + - CAST( NULL AS DECIMAL ) * + col2 + - col1 * col1 * 6 + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2006
SELECT + - CAST ( NULL AS REAL ) * + col2 + - col1 * col1 * 6 + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 42 - - col1 FROM tab0 AS cor0
----
44
49
55

query I rowsort
SELECT DISTINCT - + ( + col1 ) AS col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT - 33 * cor0.col0 AS col0 FROM tab2 AS cor0
----
-231
-2574
-2607

query I rowsort
SELECT ALL 48 * + col2 AS col2 FROM tab2 AS cor0
----
1248
1296
1824

query I rowsort
SELECT - ( col1 + - col2 ) FROM tab0
----
-53
-9
-96

query I rowsort
SELECT ALL + col0 + cor0.col2 + ( col2 ) FROM tab0 AS cor0
----
253
37
90

query I rowsort
SELECT ALL + 12 + col1 FROM tab2 AS cor0
----
29
43
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 92 col2 FROM tab2 AS cor0
----
92
92
92

query I rowsort
SELECT ALL + 14 + + col1 FROM tab0 AS cor0
----
100
105
111

query I rowsort
SELECT - 85 + col1 AS col2 FROM tab2 AS cor0
----
-26
-54
-68

query I rowsort
SELECT ALL - 6 AS col1 FROM tab0 AS cor0
----
-6
-6
-6

query I rowsort
SELECT DISTINCT 29 * cor0.col0 FROM tab0 AS cor0
----
1015
2581
696

query I rowsort
SELECT DISTINCT - col1 + - col0 * - ( + 42 ) FROM tab2 cor0
----
263
3217
3301

query I rowsort
SELECT + 21 * - col0 + col0 FROM tab0 AS cor0
----
-1780
-480
-700

query I rowsort
SELECT DISTINCT + 16 AS col1 FROM tab0 AS cor0
----
16

query I rowsort
SELECT + col0 - ( col0 ) * - col1 FROM tab0 AS cor0
----
2088
3430
8188

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2023
SELECT - - col2 * - CAST( col2 + col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-13448
-2
-2178

skipif mysql # not compatible
query I rowsort label-2023
SELECT - - col2 * - CAST ( col2 + col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-13448
-2
-2178

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2024
SELECT + col0 * + CAST( NULL AS SIGNED ) * 52 + - col1 / - col0 - col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2024
SELECT + col0 * + CAST ( NULL AS INTEGER ) * 52 + - col1 / - col0 - col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * + col1 + + cor0.col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT DISTINCT - + col1 + 24 * cor0.col0 AS col1 FROM tab0 AS cor0
----
2045
490
743

query I rowsort
SELECT - col0 - ( - ( - col0 ) + col0 ) * cor0.col2 * + cor0.col1 FROM tab2 AS cor0
----
-102147
-11725
-239382

query I rowsort
SELECT - + cor0.col0 + col2 AS col1 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT col2 * - tab2.col0 + + 79 AS col1 FROM tab2
----
-110
-1949
-2923

query I rowsort
SELECT col1 + + col0 * + col1 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT + - col2 * ( - col2 ) FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT DISTINCT + 37 AS col1 FROM tab0, tab0 AS cor0
----
37

query I rowsort
SELECT ALL tab0.col0 * - ( - 79 ) * col1 AS col2 FROM tab0
----
163056
268205
639821

query I rowsort
SELECT + cor0.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 + 67 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query IIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0 WHERE NULL < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 0 col2 FROM tab1
----
0
0
0

query I rowsort
SELECT 89 + col0 FROM tab2 AS cor0
----
167
168
96

query I rowsort
SELECT ALL - + cor0.col2 * col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT - 15 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
-15

onlyif mysql # use DIV operator for integer division
query I rowsort label-2041
SELECT ALL col0 DIV cor0.col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2041
SELECT ALL col0 / cor0.col2 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2042
SELECT ALL col1 + - col0 DIV col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-2042
SELECT ALL col1 + - col0 / col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT + col2 - - col2 * cor0.col1 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT ALL - col2 + cor0.col2 * + col1 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT - col0 + col2 * col0 AS col2 FROM tab2 AS cor0
----
182
1950
2923

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + + col0 * - cor0.col0 * - col0 col0 FROM tab0 cor0
----
13791
42874
704887

query I rowsort
SELECT ALL - + col1 + cor0.col2 * col2 AS col0 FROM tab0 AS cor0
----
-96
1003
6633

query I rowsort
SELECT + col2 * tab2.col2 * col1 FROM tab2
----
22599
24548
39884

query I rowsort
SELECT ALL col2 * col1 + + col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT DISTINCT cor0.col0 + col2 * col1 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT ALL col2 + - col0 + - col0 AS col1 FROM tab0 AS cor0
----
-15
-69
-96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL = NULL OR + cor0.col1 * - cor0.col0 + col0 <= - cor0.col1 * + col0 * col2
----

query I rowsort
SELECT + col2 * - col1 + col0 AS col1 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT - tab1.col1 + col1 AS col0 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2055
SELECT ALL + col0 DIV cor0.col2 AS col0 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-2055
SELECT ALL + col0 / cor0.col2 AS col0 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT DISTINCT + col0 * col1 + + cor0.col0 * + col2 FROM tab0 AS cor0
----
15397
2856
3430

query I rowsort
SELECT - col0 * + tab0.col2 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT col1 * col0 + col1 * tab0.col2 * col2 AS col1 FROM tab0
----
3492
619983
95718

query I rowsort
SELECT + col1 * col0 + - col2 * + cor0.col1 FROM tab1 AS cor0
----
-1326
-208
70

query I rowsort
SELECT DISTINCT col0 + - col0 + - col2 FROM tab2
----
-26
-27
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - - col2 col1 FROM tab2 AS cor0
----
52
54
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 35 col2 FROM tab2
----
35
35
35

query I rowsort
SELECT DISTINCT + col0 * + col0 - + col0 FROM tab1
----
4032
6
6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-2064
SELECT DISTINCT col1 DIV + col1 - - tab2.col2 FROM tab2
----
27
28
39

skipif mysql # not compatible
query I rowsort label-2064
SELECT DISTINCT col1 / + col1 - - tab2.col2 FROM tab2
----
27
28
39

query I rowsort
SELECT ALL col2 * - col0 - col1 FROM tab2
----
-2087
-220
-3019

query I rowsort
SELECT tab2.col1 + + col1 + + tab2.col2 FROM tab2
----
144
72
89

query I rowsort
SELECT ALL col2 * + tab0.col2 - + col0 * + tab0.col0 * col1 FROM tab0
----
-118824
-48447
-714087

onlyif mysql # use DIV operator for integer division
query I rowsort label-2068
SELECT DISTINCT col0 DIV col0 - - tab1.col1 AS col1 FROM tab1
----
11
14
27

skipif mysql # not compatible
query I rowsort label-2068
SELECT DISTINCT col0 / col0 - - tab1.col1 AS col1 FROM tab1
----
11
14
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col2 - - col0 col2 FROM tab1
----
185
256
60

query I rowsort
SELECT - cor0.col2 * col2 * - col0 - + col0 FROM tab0 AS cor0
----
0
26112
598347

query I rowsort
SELECT ALL + col0 * - cor0.col2 + - col2 * + col2 AS col1 FROM tab0 AS cor0
----
-14022
-1881
-36

query I rowsort
SELECT + + col2 * - col2 - col1 FROM tab2 AS cor0
----
-1461
-735
-760

onlyif mysql # use DIV operator for integer division
query I rowsort label-2073
SELECT DISTINCT + col0 + col2 + - col1 DIV + col2 FROM tab1
----
121
176
57

skipif mysql # not compatible
query I rowsort label-2073
SELECT DISTINCT + col0 + col2 + - col1 / + col2 FROM tab1
----
121
176
57

query I rowsort
SELECT - col1 * col0 * col0 AS col2 FROM tab2
----
-106097
-1519
-358956

query I rowsort
SELECT + col0 * - col2 FROM tab1 WHERE ( NULL ) <> col0 * - col0
----

query I rowsort
SELECT DISTINCT - tab1.col1 + + col1 - col2 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT col1 * col0 * + col0 AS col1 FROM tab1
----
234
40960
83200

query I rowsort
SELECT ALL + col2 + + col0 * col1 - - col0 AS col1 FROM tab2
----
1460
251
4706

query I rowsort
SELECT col1 + - col0 + + col1 * + col1 AS col1 FROM tab1
----
102
46
699

query I rowsort
SELECT + col1 * col1 * col1 AS col2 FROM tab1
----
1000
17576
2197

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( col1 + col2 )
----

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NOT + col2 / - col0 IN ( + tab0.col0 )
----
86
91
97

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 IN ( + col2 + col0 + + col0 / col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT DISTINCT + cor0.col0 * + col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL - + 19 AS col0 FROM tab2 AS cor0
----
-19
-19
-19

query I rowsort
SELECT DISTINCT - col1 + col1 - - col2 FROM tab2 AS cor0
----
26
27
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2087
SELECT ALL - CAST( NULL AS SIGNED ) + - 48 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-2087
SELECT ALL - CAST ( NULL AS INTEGER ) + - 48 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT - cor0.col2 - cor0.col2 FROM tab1 AS cor0
----
-108
-114
-192

onlyif mysql # use DIV operator for integer division
query I rowsort label-2089
SELECT ALL 48 + - col2 * col1 DIV 65 FROM tab0
----
-66
47
5

skipif mysql # not compatible
query I rowsort label-2089
SELECT ALL 48 + - col2 * col1 / 65 FROM tab0
----
-66
47
5

query I rowsort
SELECT 3 * + col0 AS col1 FROM tab0
----
105
267
72

query I rowsort
SELECT 78 AS col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to d8e5ef4db3419fc251e82c50ba04e048

query I rowsort
SELECT - 65 * - cor0.col2 + col1 FROM tab0 AS cor0
----
162
2231
5421

query I rowsort
SELECT ALL + 33 * + cor0.col0 FROM tab0 AS cor0
----
1155
2937
792

query I rowsort
SELECT 83 * col1 + col1 FROM tab2 AS cor0
----
1428
2604
4956

query I rowsort
SELECT ALL 34 - - col1 * 4 FROM tab2 AS cor0
----
102
158
270

query I rowsort
SELECT ALL col0 * col0 + col0 - col2 FROM tab0 AS cor0
----
1259
567
7928

query I rowsort
SELECT col2 AS col2 FROM tab1 cor0 WHERE NOT NULL NOT IN ( col1 * cor0.col1 )
----

query I rowsort
SELECT ALL col2 * + col2 + col2 AS col1 FROM tab2
----
1482
702
756

query I rowsort
SELECT DISTINCT col0 + + col1 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
164
249
679

onlyif mysql # use DIV operator for integer division
query I rowsort label-2100
SELECT DISTINCT cor0.col2 DIV col0 col0 FROM tab2 AS cor0
----
0
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2100
SELECT DISTINCT cor0.col2 / col0 col0 FROM tab2 AS cor0
----
0
3

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL <= + col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2102
SELECT + tab0.col2 + col1 DIV tab0.col1 AS col0 FROM tab0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-2102
SELECT + tab0.col2 + col1 / tab0.col1 AS col0 FROM tab0
----
2
34
83

query I rowsort
SELECT DISTINCT - tab0.col2 / col2 AS col2 FROM tab0 WHERE NULL <> col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 * col1 IN ( col2 * col2 )
----

query I rowsort
SELECT col1 FROM tab0 WHERE NOT - col2 / - col2 < tab0.col0 * + col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2106
SELECT col0 - col0 * + col2 DIV + col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2106
SELECT col0 - col0 * + col2 / + col2 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col2 ) <= + col0
----
24
86
33

query I rowsort
SELECT col0 + - col2 + col1 FROM tab1
----
-25
-3
17

query I rowsort
SELECT + - 44 + col2 AS col1 FROM tab0 AS cor0
----
-11
-43
38

query I rowsort
SELECT - 71 * - 22 FROM tab1, tab0 AS cor0
----
9 values hashing to 3408109de511330d0a1477fdf184c784

query I rowsort
SELECT ALL - 19 AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 0fbbff28a7b63c37b01cf369f9325662

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2112
SELECT ALL + CAST( + col0 + - col2 AS SIGNED ) FROM tab1
----
-16
-51
7

skipif mysql # not compatible
query I rowsort label-2112
SELECT ALL + CAST ( + col0 + - col2 AS INTEGER ) FROM tab1
----
-16
-51
7

query I rowsort
SELECT - cor0.col2 * 56 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to a25528cb2adafb9953cec876765cb142

query I rowsort
SELECT + tab2.col2 * - col1 * - tab2.col2 AS col2 FROM tab2
----
22599
24548
39884

query I rowsort
SELECT ALL - 8 FROM tab1
----
-8
-8
-8

query I rowsort
SELECT ALL col1 + tab1.col0 * - ( - col1 ) FROM tab1
----
104
1053
650

query I rowsort
SELECT - 96 AS col0 FROM tab2, tab0, tab1 cor0
----
27 values hashing to a7b3e5dd01c8929180b7ffda67f79798

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * cor0.col1 + - col2 col0 FROM tab0 AS cor0
----
7363
8199
9408

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2119
SELECT + col1 * col1 + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2119
SELECT + col1 * col1 + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 68 AS col1 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4

query I rowsort
SELECT + col2 * - col1 - 7 * + col0 * + col0 AS col1 FROM tab0 AS cor0
----
-62909
-6870
-8672

query I rowsort
SELECT DISTINCT + cor0.col2 + + cor0.col2 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT tab1.col2 + - ( tab1.col2 ) FROM tab1
----
0
0
0

query I rowsort
SELECT col1 + - 63 FROM tab2
----
-32
-4
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col1 + 78 * + col1 col0 FROM tab1
----
1027
2054
790

query I rowsort
SELECT + ( 8 ) FROM tab2 cor0
----
8
8
8

query I rowsort
SELECT ALL col2 * - 22 FROM tab0
----
-1804
-22
-726

query I rowsort
SELECT ALL - col0 * 73 FROM tab1
----
-219
-4672
-5840

query I rowsort
SELECT ALL - col0 * 70 AS col2 FROM tab2
----
-490
-5460
-5530

onlyif mysql # use DIV operator for integer division
query I rowsort label-2130
SELECT + tab2.col2 * col0 DIV col0 + - col1 DIV tab2.col0 AS col1 FROM tab2
----
23
26
38

skipif mysql # not compatible
query I rowsort label-2130
SELECT + tab2.col2 * col0 / col0 + - col1 / tab2.col0 AS col1 FROM tab2
----
23
26
38

query I rowsort
SELECT - ( 34 ) FROM tab1, tab0 AS cor0
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

query I rowsort
SELECT cor0.col1 * - 99 AS col0 FROM tab0 AS cor0
----
-8514
-9009
-9603

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( col1 AS REAL ) * col0 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT + 39 AS col1 FROM tab0
----
39
39
39

query I rowsort
SELECT ALL + - col1 + 85 FROM tab0 AS cor0
----
-1
-12
-6

query I rowsort
SELECT DISTINCT - - cor0.col1 * + 97 FROM tab0 AS cor0
----
8342
8827
9409

query I rowsort
SELECT + - col2 + 93 AS col0 FROM tab2 AS cor0
----
55
66
67

query I rowsort
SELECT 69 AS col2 FROM tab0 cor0
----
69
69
69

query I rowsort
SELECT ALL - ( - 48 ) + col1 * - 16 AS col0 FROM tab2 AS cor0
----
-224
-448
-896

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 3 + col0 * col1 * ( ( col2 ) ) - col0 col0 FROM tab2 AS cor0
----
119577
50958
5855

query I rowsort
SELECT ALL + col2 + col2 * col2 + col0 FROM tab2
----
1561
763
780

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2142
SELECT CAST( col2 AS SIGNED ) + col0 AS col2 FROM tab1
----
121
176
57

skipif mysql # not compatible
query I rowsort label-2142
SELECT CAST ( col2 AS INTEGER ) + col0 AS col2 FROM tab1
----
121
176
57

query I rowsort
SELECT ALL ( 68 + col0 ) * col2 AS col0 FROM tab2
----
2025
3796
5586

query I rowsort
SELECT - ( + col2 ) * + col1 * - col1 AS col2 FROM tab0 AS cor0
----
244068
679042
9409

query I rowsort
SELECT + ( - 12 ) * + col1 AS col1 FROM tab0 AS cor0
----
-1032
-1092
-1164

query I rowsort
SELECT - + 12 * col0 AS col2 FROM tab1 AS cor0
----
-36
-768
-960

query I rowsort
SELECT + - col1 * col0 * + col1 FROM tab2 AS cor0
----
-22831
-271518
-6727

query I rowsort
SELECT - + col2 + + col0 * col1 AS col0 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT DISTINCT 94 * col0 FROM tab2 AS cor0
----
658
7332
7426

query I rowsort
SELECT DISTINCT 40 AS col0 FROM tab2, tab2 AS cor0
----
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 98 * + col1 col2 FROM tab0 cor0
----
-8428
-8918
-9506

query I rowsort
SELECT + 34 + - col2 * col0 AS col0 FROM tab2 AS cor0
----
-155
-1994
-2968

onlyif mysql # use DIV operator for integer division
query I rowsort label-2153
SELECT ALL - ( - col2 ) DIV col1 AS col0 FROM tab1 cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-2153
SELECT ALL - ( - col2 ) / col1 AS col0 FROM tab1 cor0
----
2
5
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col0 col2 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT - + col2 + 10 AS col0 FROM tab1 cor0
----
-44
-47
-86

query I rowsort
SELECT - col1 * + ( - col0 ) AS col2 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-2157
SELECT col0 * col0 DIV cor0.col0 + col0 + col2 FROM tab1 AS cor0
----
185
256
60

skipif mysql # not compatible
query I rowsort label-2157
SELECT col0 * col0 / cor0.col0 + col0 + col2 FROM tab1 AS cor0
----
185
256
60

query I rowsort
SELECT - col1 - 60 AS col0 FROM tab1 cor0
----
-70
-73
-86

query I rowsort
SELECT + - col0 - col0 * col0 AS col0 FROM tab1 AS cor0
----
-12
-4160
-6480

query I rowsort
SELECT + + col1 * + 77 + + col1 FROM tab0 AS cor0
----
6708
7098
7566

query I rowsort
SELECT col0 * ( col1 ) AS col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL + 33 + - cor0.col1 FROM tab1 AS cor0
----
20
23
7

query I rowsort
SELECT - + 84 + col1 FROM tab2 AS cor0
----
-25
-53
-67

query I rowsort
SELECT - 19 + col2 * - col0 AS col1 FROM tab1 AS cor0
----
-181
-3667
-7699

query I rowsort
SELECT + ( - 72 ) FROM tab2 AS cor0
----
-72
-72
-72

onlyif mysql # use DIV operator for integer division
query I rowsort label-2166
SELECT ALL - tab0.col0 * 10 DIV col1 AS col0 FROM tab0
----
-2
-3
-9

skipif mysql # not compatible
query I rowsort label-2166
SELECT ALL - tab0.col0 * 10 / col1 AS col0 FROM tab0
----
-2
-3
-9

query I rowsort
SELECT ALL col1 * col2 * ( col1 + col2 ) FROM tab1
----
112320
136032
38190

query I rowsort
SELECT col1 * col0 + - col1 * cor0.col2 AS col2 FROM tab0 AS cor0
----
-774
3298
637

query I rowsort
SELECT - cor0.col0 - - cor0.col0 FROM tab0 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2170
SELECT + col0 DIV - 63 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2170
SELECT + col0 / - 63 FROM tab0 AS cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - - 0 col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL - cor0.col0 * cor0.col0 AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT + col2 * + col1 * ( - col2 * 64 ) + col1 AS col2 FROM tab1 AS cor0
----
-2079350
-4852198
-7667699

query I rowsort
SELECT + + col0 * - 85 FROM tab1 AS cor0
----
-255
-5440
-6800

query I rowsort
SELECT DISTINCT + - col0 + + ( - col2 ) AS col1 FROM tab1 cor0
----
-121
-176
-57

query I rowsort
SELECT DISTINCT + col1 * col0 + - col0 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT col0 * cor0.col1 + 96 FROM tab2 AS cor0
----
1439
313
4698

query I rowsort
SELECT ALL - ( - 99 ) AS col2 FROM tab0 AS cor0
----
99
99
99

query I rowsort
SELECT ALL + col1 * - tab0.col2 * + 3 FROM tab0
----
-22386
-291
-8514

query I rowsort
SELECT ALL cor0.col2 AS col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT + ( + col0 ) * + col1 AS col0 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT + col1 * - col0 * + col2 FROM tab1 cor0
----
-36480
-4212
-99840

query I rowsort
SELECT + col0 + col0 - col2 FROM tab2
----
-13
120
130

query I rowsort
SELECT - - 81 AS col2 FROM tab0 AS cor0
----
81
81
81

query I rowsort
SELECT - + 77 AS col1 FROM tab2 AS cor0
----
-77
-77
-77

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 col1 * col2 - col1 AS col0 FROM tab1
----
1235
1378
560

query I rowsort
SELECT - 95 + - col0 FROM tab0
----
-119
-130
-184

query I rowsort
SELECT tab0.col2 + + col1 AS col2 FROM tab0
----
119
173
98

query I rowsort
SELECT ALL + 85 - 84 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * - col2 col2 FROM tab2 AS cor0
----
1444
676
729

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2192
SELECT col0 * - CAST( - col0 AS SIGNED ) + col0 AS col0 FROM tab0 AS cor0
----
1260
600
8010

skipif mysql # not compatible
query I rowsort label-2192
SELECT col0 * - CAST ( - col0 AS INTEGER ) + col0 AS col0 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT DISTINCT + 30 FROM tab1, tab1 AS cor0
----
30

onlyif mysql # use DIV operator for integer division
query I rowsort label-2194
SELECT DISTINCT col0 + - col1 DIV - 87 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-2194
SELECT DISTINCT col0 + - col1 / - 87 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT - + col0 - + col2 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT DISTINCT - + col2 + 19 * col1 FROM tab2 AS cor0
----
1095
285
562

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2197
SELECT ALL + cor0.col1 * - CAST( col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-2197
SELECT ALL + cor0.col1 * - CAST ( col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL col2 + + col0 * + 32 AS col1 FROM tab2 cor0
----
251
2522
2566

query I rowsort
SELECT ALL + col2 * ( col1 ) * + col0 + cor0.col2 AS col2 FROM tab0 AS cor0
----
3396
664200
68145

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col0 * - col2 + col1 * + cor0.col1 col2 FROM tab2 cor0
----
1150
3291
5509

query I rowsort
SELECT DISTINCT tab0.col1 + col0 * + col1 AS col2 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT DISTINCT 92 * + ( + tab2.col1 ) + - 17 AS col0 FROM tab2
----
1547
2835
5411

query I rowsort
SELECT DISTINCT - 85 AS col1 FROM tab0, tab2 AS cor0
----
-85

query I rowsort
SELECT ALL 38 + col0 AS col2 FROM tab1
----
102
118
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col1 * - col2 col2 FROM tab2
----
-1475
-629
-806

onlyif mysql # use DIV operator for integer division
query I rowsort label-2206
SELECT ALL - col0 + 72 * - col0 + - col0 DIV col1 AS col1 FROM tab2
----
-511
-5695
-5771

skipif mysql # not compatible
query I rowsort label-2206
SELECT ALL - col0 + 72 * - col0 + - col0 / col1 AS col1 FROM tab2
----
-511
-5695
-5771

query I rowsort
SELECT + - ( cor0.col0 ) + col2 * - col1 AS col2 FROM tab2 cor0
----
-1612
-725
-844

query I rowsort
SELECT ALL 73 * col2 FROM tab1 cor0
----
3942
4161
7008

query I rowsort
SELECT DISTINCT + - col0 * - col1 * - col0 AS col1 FROM tab2 AS cor0
----
-106097
-1519
-358956

query I rowsort
SELECT + + 82 * + 41 FROM tab1 AS cor0
----
3362
3362
3362

query I rowsort
SELECT ALL - - col2 * - col1 + + col0 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT ALL + ( - col0 ) + + tab2.col0 * - col0 AS col0 FROM tab2
----
-56
-6162
-6320

query I rowsort
SELECT DISTINCT + - 55 * - col2 FROM tab1 AS cor0
----
2970
3135
5280

onlyif mysql # use DIV operator for integer division
query I rowsort label-2214
SELECT ALL col0 DIV col2 - + ( - 41 ) * + cor0.col0 col0 FROM tab1 AS cor0
----
123
2625
3280

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2214
SELECT ALL col0 / col2 - + ( - 41 ) * + cor0.col0 col0 FROM tab1 AS cor0
----
123
2625
3280

query I rowsort
SELECT DISTINCT - - 47 * - col1 + + 4 FROM tab1 AS cor0
----
-1218
-466
-607

query I rowsort
SELECT ALL + col0 + + col2 * 31 - cor0.col0 FROM tab2 AS cor0
----
1178
806
837

query I rowsort
SELECT ALL 3 + col2 FROM tab2 cor0
----
29
30
41

query I rowsort
SELECT + col1 + + cor0.col0 AS col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT + - col0 + - col0 + 27 FROM tab1 AS cor0
----
-101
-133
21

query I rowsort
SELECT - - ( col2 ) * cor0.col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT col2 + + col0 * ( 51 ) AS col0 FROM tab1 AS cor0
----
207
3321
4176

query I rowsort
SELECT DISTINCT - 21 AS col2 FROM tab0 AS cor0
----
-21

query I rowsort
SELECT DISTINCT + 35 * - col2 FROM tab2 AS cor0
----
-1330
-910
-945

query I rowsort
SELECT ALL + col2 * col0 * + col0 AS col2 FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT + 40 + cor0.col2 + + col0 * - col0 AS col1 FROM tab2 AS cor0
----
-6018
-6163
18

query I rowsort
SELECT + + 83 * - col1 + - col1 FROM tab0 AS cor0
----
-7224
-7644
-8148

query I rowsort
SELECT tab2.col1 FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT DISTINCT col1 * 12 FROM tab0 AS cor0
----
1032
1092
1164

query I rowsort
SELECT ALL + col0 + + ( col0 * + col1 ) FROM tab1 AS cor0
----
1120
704
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2230
SELECT DISTINCT + col1 + - col2 * - col0 + CAST( ( - col1 ) AS SIGNED ) * col2 AS col1 FROM tab0 AS cor0
----
-1960
-73
35

skipif mysql # not compatible
query I rowsort label-2230
SELECT DISTINCT + col1 + - col2 * - col0 + CAST ( ( - col1 ) AS INTEGER ) * col2 AS col1 FROM tab0 AS cor0
----
-1960
-73
35

query I rowsort
SELECT ( col1 ) * + col2 AS col0 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2232
SELECT ALL - CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2232
SELECT ALL - CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + - col0 col1 FROM tab0 cor0
----
-178
-48
-70

query I rowsort
SELECT - 49 + col0 * col2 AS col0 FROM tab0
----
-14
7249
743

query I rowsort
SELECT - 39 + col2 * tab0.col1 FROM tab0
----
2799
58
7423

query I rowsort
SELECT cor0.col0 + - cor0.col0 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col1 col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT ALL - ( - col2 ) * + col2 AS col2 FROM tab0
----
1
1089
6724

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2239
SELECT col2 * col2 + + CAST( - col0 AS SIGNED ) + + col0 AS col1 FROM tab2
----
1444
676
729

skipif mysql # not compatible
query I rowsort label-2239
SELECT col2 * col2 + + CAST ( - col0 AS INTEGER ) + + col0 AS col1 FROM tab2
----
1444
676
729

query I rowsort
SELECT ALL col1 + + tab0.col1 * col2 FROM tab0
----
194
2924
7553

query I rowsort
SELECT - col1 + 26 * col0 * - cor0.col2 FROM tab0 AS cor0
----
-1007
-189839
-20678

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2242
SELECT - col2 + - CAST( 40 AS SIGNED ) FROM tab1 AS cor0
----
-136
-94
-97

skipif mysql # not compatible
query I rowsort label-2242
SELECT - col2 + - CAST ( 40 AS INTEGER ) FROM tab1 AS cor0
----
-136
-94
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col0 * 28 + 32 col2 FROM tab1
----
-102112
-215008
-4504

query I rowsort
SELECT ALL - col1 * + 37 + ( col1 ) * col2 FROM tab0 AS cor0
----
-344
-3492
4095

query I rowsort
SELECT DISTINCT - col1 * + 74 FROM tab0 AS cor0
----
-6364
-6734
-7178

onlyif mysql # use DIV operator for integer division
query I rowsort label-2246
SELECT DISTINCT cor0.col1 DIV col0 AS col0 FROM tab1 cor0
----
0
8

skipif mysql # not compatible
query I rowsort label-2246
SELECT DISTINCT cor0.col1 / col0 AS col0 FROM tab1 cor0
----
0
8

query I rowsort
SELECT ALL - - col2 - col1 FROM tab2 AS cor0
----
-33
-4
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + col1 + col1 col1 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT DISTINCT + - col2 - + 76 FROM tab0 AS cor0
----
-109
-158
-77

query I rowsort
SELECT ALL - + col0 * 72 FROM tab1 cor0
----
-216
-4608
-5760

query I rowsort
SELECT + col1 * 2 + + ( col0 ) * + ( col2 ) FROM tab1 AS cor0
----
214
3668
7706

skipif mysql # not compatible
query I rowsort
SELECT ALL - col2 + - CAST ( + col2 AS REAL ) * + cor0.col0 AS col0 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT - col1 * ( 82 ) FROM tab2 AS cor0
----
-1394
-2542
-4838

query I rowsort
SELECT DISTINCT + - col2 * - 70 AS col2 FROM tab2 cor0
----
1820
1890
2660

query I rowsort
SELECT DISTINCT + + cor0.col2 + ( col2 + + col1 ) AS col0 FROM tab1 cor0
----
124
134
205

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2256
SELECT + col0 * + CAST( - tab2.col2 AS SIGNED ) FROM tab2
----
-189
-2028
-3002

skipif mysql # not compatible
query I rowsort label-2256
SELECT + col0 * + CAST ( - tab2.col2 AS INTEGER ) FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT + col2 * 15 FROM tab0
----
1230
15
495

query I rowsort
SELECT DISTINCT + 64 + 68 FROM tab2 AS cor0
----
132

query I rowsort
SELECT DISTINCT + - 77 AS col0 FROM tab0 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( col2 AS REAL ) FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT col0 + - 21 AS col2 FROM tab2 AS cor0
----
-14
57
58

query I rowsort
SELECT DISTINCT col1 * 34 AS col2 FROM tab0
----
2924
3094
3298

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 78 * - 67 col1 FROM tab1 AS cor0
----
-5226
-5226
-5226

query I rowsort
SELECT 22 AS col1 FROM tab1, tab0, tab1 AS cor0, tab2
----
81 values hashing to c6f049334398e3533dd6996714479a2f

query I rowsort
SELECT + ( 5 ) FROM tab2, tab1 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d

query I rowsort
SELECT DISTINCT tab1.col2 * 89 AS col2 FROM tab1
----
4806
5073
8544

query I rowsort
SELECT - 38 - 97 FROM tab0, tab0 AS cor0
----
9 values hashing to 9398f9266f4394fd88a51789b552b6e1

query I rowsort
SELECT 54 + + col0 AS col2 FROM tab2 AS cor0
----
132
133
61

query I rowsort
SELECT - 0 * + col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2270
SELECT + 50 + col1 DIV + col1 FROM tab2 AS cor0
----
51
51
51

skipif mysql # not compatible
query I rowsort label-2270
SELECT + 50 + col1 / + col1 FROM tab2 AS cor0
----
51
51
51

query I rowsort
SELECT col0 * 36 + col1 AS col0 FROM tab0 AS cor0
----
1357
3295
950

query I rowsort
SELECT - 7 * + col2 * col2 AS col0 FROM tab2 AS cor0
----
-10108
-4732
-5103

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2273
SELECT + cor0.col1 * - CAST( - col0 AS SIGNED ) - col2 col1 FROM tab2 cor0
----
1305
190
4576

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2273
SELECT + cor0.col1 * - CAST ( - col0 AS INTEGER ) - col2 col1 FROM tab2 cor0
----
1305
190
4576

query I rowsort
SELECT - col0 + col1 * ( col0 ) * col2 AS col1 FROM tab1 AS cor0
----
36416
4209
99760

query I rowsort
SELECT DISTINCT - - cor0.col2 + cor0.col1 FROM tab2, tab1 AS cor0
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2276
SELECT + col0 DIV + col1 AS col0 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2276
SELECT + col0 / + col1 AS col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT + 9 + - 72 * - col0 AS col0 FROM tab0
----
1737
2529
6417

query I rowsort
SELECT DISTINCT - 31 * tab0.col0 AS col1 FROM tab0
----
-1085
-2759
-744

query I rowsort
SELECT + tab0.col0 + - col0 * + col1 AS col0 FROM tab0
----
-2040
-3360
-8010

query I rowsort
SELECT - col2 - ( col1 ) FROM tab2
----
-55
-58
-85

query I rowsort
SELECT ALL + 38 * col2 AS col2 FROM tab0
----
1254
3116
38

query I rowsort
SELECT DISTINCT - tab0.col0 * tab0.col1 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT + 29 * - col1 AS col0 FROM tab1
----
-290
-377
-754

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col0 col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT ( + ( tab2.col1 ) ) FROM tab2
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-2286
SELECT - 30 * - col1 + col2 DIV col1 AS col2 FROM tab1
----
305
397
782

skipif mysql # not compatible
query I rowsort label-2286
SELECT - 30 * - col1 + col2 / col1 AS col2 FROM tab1
----
305
397
782

query I rowsort
SELECT ALL 50 * - col2 FROM tab1 AS cor0
----
-2700
-2850
-4800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 57 * + col2 col0 FROM tab0 AS cor0
----
-1881
-4674
-57

query I rowsort
SELECT DISTINCT tab1.col1 + + col0 FROM tab1
----
29
74
93

query I rowsort
SELECT ALL cor0.col0 * col1 * ( + cor0.col2 * - col1 ) + + col2 AS col2 FROM tab2 AS cor0
----
-181602
-7059442
-867540

query I rowsort
SELECT ALL 77 + + col1 AS col0 FROM tab0 AS cor0
----
163
168
174

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 97 col0 FROM tab2 cor0
----
-97
-97
-97

query I rowsort
SELECT DISTINCT + - col0 * col2 * + 72 - ( cor0.col2 ) * 38 FROM tab1 AS cor0
----
-13716
-264822
-556608

query I rowsort
SELECT ALL - + col2 * - col0 AS col2 FROM tab2 AS cor0
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col2 col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT ALL - col0 + + col2 * col0 + col0 * - col1 AS col0 FROM tab0 AS cor0
----
-1296
-3395
-890

query I rowsort
SELECT DISTINCT - col1 - + col1 FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT + col0 + 10 AS col1 FROM tab2
----
17
88
89

query I rowsort
SELECT col0 * + cor0.col1 + + col1 + col0 FROM tab0 AS cor0
----
2174
3527
8279

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2300
SELECT col2 + CAST( 3 AS SIGNED ) * col2 * col1 + 70 AS col0 FROM tab2 cor0
----
2046
2608
4698

skipif mysql # not compatible
query I rowsort label-2300
SELECT col2 + CAST ( 3 AS INTEGER ) * col2 * col1 + 70 AS col0 FROM tab2 cor0
----
2046
2608
4698

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col1 + - 34 * col1 col2 FROM tab0 AS cor0
----
-3096
-3276
-3492

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 + + col2 col2 FROM tab2 AS cor0
----
-33
-4
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col0 * cor0.col1 col2 FROM tab2 AS cor0
----
119652
51034
5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-2304
SELECT ALL + col0 * - col0 + - 57 * col2 + cor0.col0 DIV - col1 FROM tab2 AS cor0
----
-1588
-7567
-8411

skipif mysql # not compatible
query I rowsort label-2304
SELECT ALL + col0 * - col0 + - 57 * col2 + cor0.col0 / - col1 FROM tab2 AS cor0
----
-1588
-7567
-8411

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * cor0.col1 + 40 col2 FROM tab1 AS cor0
----
-1208
-1364
-530

query I rowsort
SELECT ALL + - 97 FROM tab0 cor0
----
-97
-97
-97

query I rowsort
SELECT cor1.col1 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT + cor0.col2 * 43 FROM tab1 cor0
----
2322
2451
4128

query I rowsort
SELECT ALL + + ( ( + col0 ) ) FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT - col2 * 11 AS col1 FROM tab2 AS cor0
----
-286
-297
-418

onlyif mysql # use DIV operator for integer division
query I rowsort label-2311
SELECT - - cor0.col0 + col1 * col0 DIV - 60 FROM tab0 AS cor0
----
-10
-21
-45

skipif mysql # not compatible
query I rowsort label-2311
SELECT - - cor0.col0 + col1 * col0 / - 60 FROM tab0 AS cor0
----
-10
-21
-45

query I rowsort
SELECT + col0 * + 71 * - tab1.col0 FROM tab1
----
-290816
-454400
-639

query I rowsort
SELECT ALL 3 * + col2 FROM tab1 AS cor0
----
162
171
288

query I rowsort
SELECT DISTINCT + 5 + + col0 AS col2 FROM tab1 AS cor0
----
69
8
85

query I rowsort
SELECT - + 55 * 23 AS col0 FROM tab0 AS cor0
----
-1265
-1265
-1265

query I rowsort
SELECT ALL - 5 + + cor0.col1 FROM tab1 AS cor0
----
21
5
8

query I rowsort
SELECT DISTINCT - + 74 FROM tab2 AS cor0
----
-74

query I rowsort
SELECT - 39 + + col1 AS col1 FROM tab1 cor0
----
-13
-26
-29

query I rowsort
SELECT - ( 16 ) AS col1 FROM tab0 AS cor0
----
-16
-16
-16

query I rowsort
SELECT ALL - ( - col1 ) AS col2 FROM tab2
----
17
31
59

query I rowsort
SELECT ALL + ( 46 ) + cor0.col1 * col0 * + ( - col0 * + 64 ) AS col2 FROM tab0 AS cor0
----
-3170258
-46131858
-7604754

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2322
SELECT ALL + - 43 + - col2 * - col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2322
SELECT ALL + - 43 + - col2 * - col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + ( ( col2 ) ) AS col2 FROM tab2 AS cor0
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + cor0.col1 col0 FROM tab1 cor0
----
20
26
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-2325
SELECT ALL - col1 * + col2 + + col1 DIV col1 AS col2 FROM tab2 cor0
----
-1533
-645
-836

skipif mysql # not compatible
query I rowsort label-2325
SELECT ALL - col1 * + col2 + + col1 / col1 AS col2 FROM tab2 cor0
----
-1533
-645
-836

query I rowsort
SELECT ALL 78 * + col0 + - col2 * - col1 AS col0 FROM tab2 AS cor0
----
1383
6808
7618

query I rowsort
SELECT ALL + ( + col0 ) + col0 * - cor0.col1 * - col2 FROM tab2 AS cor0
----
119730
51113
5866

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( 49 AS REAL ) + col1 FROM tab1 cor0
----
-23
-36
-39

onlyif mysql # use DIV operator for integer division
query I rowsort label-2329
SELECT col1 + col1 DIV - col1 AS col2 FROM tab2 AS cor0
----
16
30
58

skipif mysql # not compatible
query I rowsort label-2329
SELECT col1 + col1 / - col1 AS col2 FROM tab2 AS cor0
----
16
30
58

query I rowsort
SELECT - + 89 AS col2 FROM tab2 cor0
----
-89
-89
-89

query I rowsort
SELECT - - 59 * col1 + col2 AS col2 FROM tab0 AS cor0
----
5107
5451
5724

onlyif mysql # use DIV operator for integer division
query I rowsort label-2332
SELECT 4 DIV + col1 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2332
SELECT 4 / + col1 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + ( col2 ) * - col1 + + col2 FROM tab2
----
-1508
-608
-810

query I rowsort
SELECT ALL - col0 + + col0 - + 71 AS col0 FROM tab0 AS cor0
----
-71
-71
-71

query I rowsort
SELECT DISTINCT + - col1 - + cor0.col2 AS col2 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT DISTINCT + + col0 * 82 FROM tab1 AS cor0
----
246
5248
6560

query I rowsort
SELECT - col2 * col1 * ( col2 ) - col1 AS col2 FROM tab0 AS cor0
----
-194
-611975
-93740

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor1.col1 col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
17
31
59

query I rowsort
SELECT DISTINCT - + col1 + col0 + ( + col1 ) * col2 AS col0 FROM tab1 AS cor0
----
1315
1381
624

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * + cor0.col0 col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 7 col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 82db7c0390abae7ccf4512b1302a6466

onlyif mysql # use DIV operator for integer division
query I rowsort label-2342
SELECT DISTINCT col0 + - col2 DIV 62 col0 FROM tab2
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2342
SELECT DISTINCT col0 + - col2 / 62 col0 FROM tab2
----
7
78
79

query I rowsort
SELECT - col1 + + col0 + col0 * 69 FROM tab1
----
184
4470
5587

query I rowsort
SELECT ALL - ( tab0.col0 ) - col2 FROM tab0
----
-171
-36
-57

query I rowsort
SELECT ALL + 97 * 60 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to c03b79b370c9ffe32d9280c80f356595

query I rowsort
SELECT + col0 + - ( - col0 ) AS col2 FROM tab1
----
128
160
6

query I rowsort
SELECT col0 + + ( col0 * tab0.col0 ) + 61 FROM tab0
----
1321
661
8071

query I rowsort
SELECT ALL - col2 + col2 * - 41 FROM tab0
----
-1386
-3444
-42

query I rowsort
SELECT ALL tab1.col1 + 60 FROM tab1
----
70
73
86

query I rowsort
SELECT ALL - col2 + + 3 FROM tab0
----
-30
-79
2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2351
SELECT ALL + - col0 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2351
SELECT ALL + - col0 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col0 * col1 + cor0.col2 FROM tab1 AS cor0
----
-24
-583
-944

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2353
SELECT - - col1 * - CAST( 99 * + col2 AS SIGNED ) + 11 col1 FROM tab0 AS cor0
----
-280951
-738727
-9592

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2353
SELECT - - col1 * - CAST ( 99 * + col2 AS INTEGER ) + 11 col1 FROM tab0 AS cor0
----
-280951
-738727
-9592

onlyif mysql # use DIV operator for integer division
query I rowsort label-2354
SELECT DISTINCT - col1 DIV - 46 + col0 FROM tab0 AS cor0
----
25
37
90

skipif mysql # not compatible
query I rowsort label-2354
SELECT DISTINCT - col1 / - 46 + col0 FROM tab0 AS cor0
----
25
37
90

query I rowsort
SELECT + - col1 + + col0 AS col1 FROM tab2 cor0
----
-24
19
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2356
SELECT ALL tab1.col2 + CAST( NULL AS SIGNED ) * - col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2356
SELECT ALL tab1.col2 + CAST ( NULL AS INTEGER ) * - col1 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT tab1.col0 * col1 + col0 + tab1.col1 FROM tab1
----
107
1133
714

query I rowsort
SELECT ALL - - 15 * cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 928aaf725c32823660515d7f1332f381

onlyif mysql # use DIV operator for integer division
query I rowsort label-2359
SELECT - + 25 DIV col1 + ( 8 ) * col2 AS col0 FROM tab2 cor0
----
208
216
303

skipif mysql # not compatible
query I rowsort label-2359
SELECT - + 25 / col1 + ( 8 ) * col2 AS col0 FROM tab2 cor0
----
208
216
303

query I rowsort
SELECT DISTINCT + 3 * - col0 FROM tab1 cor0
----
-192
-240
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 40 * col0 + 77 * + col0 * + col0 + + col0 col0 FROM tab0 AS cor0
----
45336
613566
95760

query I rowsort
SELECT - - col2 * col1 AS col1 FROM tab2 cor0
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 25 col1 FROM tab2 AS cor0
----
-25
-25
-25

query I rowsort
SELECT + col1 * col2 + + ( - 80 ) FROM tab0 AS cor0
----
17
2758
7382

onlyif mysql # use DIV operator for integer division
query I rowsort label-2365
SELECT 3 DIV + ( tab1.col1 ) FROM tab1, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-2365
SELECT 3 / + ( tab1.col1 ) FROM tab1, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2366
SELECT ALL col0 + - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2366
SELECT ALL col0 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * ( + col2 ) + col1 FROM tab0
----
194
2924
7553

query I rowsort
SELECT ALL - 69 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

query I rowsort
SELECT ALL - cor0.col1 + cor1.col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 79f1b3e85fe5920ef50ef4fba8457641

query I rowsort
SELECT ALL + col2 * - tab2.col0 AS col0 FROM tab2
----
-189
-2028
-3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2371
SELECT DISTINCT + - CAST( col0 AS SIGNED ) * + col2 + ( col0 ) FROM tab2 cor0
----
-182
-1950
-2923

skipif mysql # not compatible
query I rowsort label-2371
SELECT DISTINCT + - CAST ( col0 AS INTEGER ) * + col2 + ( col0 ) FROM tab2 cor0
----
-182
-1950
-2923

query I rowsort
SELECT - + 59 + col0 * col0 * - 40 FROM tab1 cor0
----
-163899
-256059
-419

query I rowsort
SELECT + + 0 * col2 - + col0 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT - ( col0 ) * - col0 AS col2 FROM tab1
----
4096
6400
9

query I rowsort
SELECT DISTINCT 42 AS col0 FROM tab1, tab0 AS cor0
----
42

query I rowsort
SELECT ALL - 15 + - 83 FROM tab2 AS cor0
----
-98
-98
-98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2377
SELECT + CAST( NULL AS SIGNED ) + - col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2377
SELECT + CAST ( NULL AS INTEGER ) + - col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2378
SELECT ( + ( col0 ) ) * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2378
SELECT ( + ( col0 ) ) * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2379
SELECT - CAST( col1 AS SIGNED ) + - col2 FROM tab0 AS cor0
----
-119
-173
-98

skipif mysql # not compatible
query I rowsort label-2379
SELECT - CAST ( col1 AS INTEGER ) + - col2 FROM tab0 AS cor0
----
-119
-173
-98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2380
SELECT + - CAST( NULL AS SIGNED ) - 44 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2380
SELECT + - CAST ( NULL AS INTEGER ) - 44 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 21 + + col1 AS col1 FROM tab2 AS cor0
----
-4
10
38

query I rowsort
SELECT + col0 + + col0 * 59 AS col1 FROM tab0 AS cor0
----
1440
2100
5340

query I rowsort
SELECT 17 - + col1 * - col2 FROM tab2 AS cor0
----
1551
663
854

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2384
SELECT - - 33 * - 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-2384
SELECT - - 33 * - col0 + CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 + col0 + col1 * - col2 FROM tab1
----
-1155
-1375
-496

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2386
SELECT DISTINCT - CAST( NULL AS SIGNED ) col0 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2386
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2387
SELECT DISTINCT tab0.col2 - cor0.col2 DIV - tab0.col2 FROM tab0, tab1, tab1 AS cor0
----
34
35
55
58
82
83
97

skipif mysql # not compatible
query I rowsort label-2387
SELECT DISTINCT tab0.col2 - cor0.col2 / - tab0.col2 FROM tab0, tab1, tab1 AS cor0
----
34
35
55
58
82
83
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2388
SELECT DISTINCT 43 DIV tab0.col0 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-2388
SELECT DISTINCT 43 / tab0.col0 FROM tab0
----
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2389
SELECT ALL + 3 DIV 2 + + tab1.col2 FROM tab1
----
55
58
97

skipif mysql # not compatible
query I rowsort label-2389
SELECT ALL + 3 / 2 + + tab1.col2 FROM tab1
----
55
58
97

query I rowsort
SELECT ALL col0 * col1 + + col1 + ( col2 ) AS col0 FROM tab1
----
1149
158
707

query I rowsort
SELECT - col0 * col2 - + col0 * + col0 FROM tab1 AS cor0
----
-14080
-171
-7744

query I rowsort
SELECT - + 94 AS col0 FROM tab1 cor0
----
-94
-94
-94

query I rowsort
SELECT + col0 + - col1 * + ( + col2 ) FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT DISTINCT + 65 * col1 + + cor0.col0 * - col2 AS col0 FROM tab1 AS cor0
----
-2998
-6835
1528

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col1 - col1 col1 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT DISTINCT ( + col2 ) + col2 AS col1 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT + ( + col2 ) * + 95 AS col1 FROM tab2
----
2470
2565
3610

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2398
SELECT + - col1 * + 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-2398
SELECT + - col1 * + CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * 34 + col0 FROM tab1 AS cor0
----
1839
2002
3344

query I rowsort
SELECT DISTINCT - + col2 * 75 FROM tab2 cor0
----
-1950
-2025
-2850

query I rowsort
SELECT 44 * + col1 AS col1 FROM tab2
----
1364
2596
748

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2402
SELECT DISTINCT CAST( cor1.col0 AS SIGNED ) col1 FROM tab0, tab2 AS cor0, tab1 cor1
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2402
SELECT DISTINCT CAST ( cor1.col0 AS INTEGER ) col1 FROM tab0, tab2 AS cor0, tab1 cor1
----
3
64
80

query I rowsort
SELECT DISTINCT - tab1.col2 - col1 * 38 FROM tab1
----
-1042
-437
-590

query I rowsort
SELECT ALL 10 - - col1 * + ( col1 ) * col2 FROM tab0
----
244078
679052
9419

onlyif mysql # use DIV operator for integer division
query I rowsort label-2405
SELECT ALL - + 55 DIV col2 + + col1 DIV ( 63 * - col1 ) FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2405
SELECT ALL - + 55 / col2 + + col1 / ( 63 * - col1 ) FROM tab1 AS cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col0 * col2 col1 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT + col2 + ( + tab1.col1 ) FROM tab1
----
109
67
80

query I rowsort
SELECT DISTINCT - col0 * - ( 39 ) AS col1 FROM tab2
----
273
3042
3081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 * col0 col1 FROM tab1 AS cor0
----
159
3392
4240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col1 + col2 col0 FROM tab0 cor0
----
-7363
-8199
-9408

query I rowsort
SELECT DISTINCT 30 * + ( + col1 + col2 ) AS col2 FROM tab0 AS cor0
----
2940
3570
5190

query I rowsort
SELECT + + col0 + 52 FROM tab1 AS cor0
----
116
132
55

query I rowsort
SELECT + + 48 AS col0 FROM tab0 AS cor0
----
48
48
48

query I rowsort
SELECT - 33 * - col2 FROM tab2 AS cor0
----
1254
858
891

query I rowsort
SELECT DISTINCT - + col0 * - 14 AS col1 FROM tab0 cor0
----
1246
336
490

query I rowsort
SELECT ALL - - col0 + + col0 AS col2 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT ALL col1 * - col1 * - col0 AS col1 FROM tab2 AS cor0
----
22831
271518
6727

query I rowsort
SELECT ALL cor0.col2 + + 92 AS col1 FROM tab2 AS cor0
----
118
119
130

query I rowsort
SELECT + col1 * - cor0.col2 + col1 FROM tab2 cor0
----
-1475
-629
-806

query I rowsort
SELECT ALL + col0 + ( col2 ) + - col1 AS col0 FROM tab0 AS cor0
----
-29
-61
80

query I rowsort
SELECT DISTINCT - cor0.col0 - + col1 FROM tab0 cor0
----
-110
-132
-180

query I rowsort
SELECT - + col2 * - ( - ( + col1 ) ) * - 73 AS col0 FROM tab0 AS cor0
----
207174
544726
7081

query I rowsort
SELECT ALL - col1 * + 30 + col1 FROM tab2 AS cor0
----
-1711
-493
-899

query I rowsort
SELECT ALL - 91 + tab0.col2 * col2 FROM tab0
----
-90
6633
998

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * tab0.col1 col1 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT tab2.col2 * col0 * + 12 FROM tab2
----
2268
24336
36024

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2427
SELECT ALL col0 + + col0 * + ( - ( + col1 ) ) * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2427
SELECT ALL col0 + + col0 * + ( - ( + 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 * ( cor0.col0 ) * cor0.col0 + - col1 col1 FROM tab2 AS cor0
----
1292
158125
237141

query I rowsort
SELECT ALL - + cor0.col0 * - col0 - + col1 AS col1 FROM tab1 AS cor0
----
-17
4086
6387

query I rowsort
SELECT DISTINCT - - col0 * - ( - 1 ) AS col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT + col2 * - col2 + + col2 * col0 * cor0.col2 FROM tab0 cor0
----
25047
34
591712

onlyif mysql # use DIV operator for integer division
query I rowsort label-2432
SELECT ALL - + col2 * col2 DIV 29 + + col0 - ( col0 ) col0 FROM tab1 AS cor0
----
-100
-112
-317

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2432
SELECT ALL - + col2 * col2 / 29 + + col0 - ( col0 ) col0 FROM tab1 AS cor0
----
-100
-112
-317

query I rowsort
SELECT ALL 33 - - col2 AS col2 FROM tab2
----
59
60
71

query I rowsort
SELECT ALL - col0 * 21 AS col1 FROM tab0
----
-1869
-504
-735

query I rowsort
SELECT 67 * - cor0.col2 + cor0.col2 AS col1 FROM tab2 AS cor0
----
-1716
-1782
-2508

query I rowsort
SELECT + col0 + + cor0.col0 * + col1 AS col1 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT - ( col2 ) * + col2 * - col2 FROM tab1 AS cor0
----
157464
185193
884736

query I rowsort
SELECT ALL - 61 * cor0.col1 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 279894020b0205c1e491a444893c80a9

query I rowsort
SELECT 66 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 897b6122ac98340b78905f39d81897fc

query I rowsort
SELECT DISTINCT + - ( col1 ) AS col1 FROM tab0 AS cor0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2441
SELECT DISTINCT + 35 DIV - col1 FROM tab2 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-2441
SELECT DISTINCT + 35 / - col1 FROM tab2 AS cor0
----
-1
-2
0

query I rowsort
SELECT ( 28 ) * tab0.col2 AS col2 FROM tab2, tab2 AS cor0 CROSS JOIN tab0
----
27 values hashing to de80fc70e79e9e7d591f8f9c82056ce5

query I rowsort
SELECT - - col2 * col0 + ( 43 ) FROM tab0 cor0
----
7341
78
835

query I rowsort
SELECT DISTINCT - - 89 * - col0 + + ( col2 * + col0 ) + + col1 FROM tab0 AS cor0
----
-1258
-2983
-532

query I rowsort
SELECT ALL 5 * col1 AS col1 FROM tab1 cor0
----
130
50
65

query I rowsort
SELECT DISTINCT + 99 * + 29 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
2871

onlyif mysql # use DIV operator for integer division
query I rowsort label-2447
SELECT DISTINCT col2 * col1 + - col2 DIV - 31 + col1 FROM tab1
----
1264
1431
581

skipif mysql # not compatible
query I rowsort label-2447
SELECT DISTINCT col2 * col1 + - col2 / - 31 + col1 FROM tab1
----
1264
1431
581

query I rowsort
SELECT DISTINCT + - 95 * cor0.col1 AS col2 FROM tab2 AS cor0
----
-1615
-2945
-5605

query I rowsort
SELECT ALL 0 + col2 + + 36 AS col0 FROM tab1
----
132
90
93

query I rowsort
SELECT 11 * col1 AS col1 FROM tab0
----
1001
1067
946

query I rowsort
SELECT 51 * col2 - - cor0.col1 AS col2 FROM tab0 AS cor0
----
148
1769
4273

query I rowsort
SELECT DISTINCT 72 + col2 FROM tab1 AS cor0
----
126
129
168

query I rowsort
SELECT DISTINCT + - 82 FROM tab0 AS cor0
----
-82

query I rowsort
SELECT ALL 50 FROM tab1 cor0
----
50
50
50

onlyif mysql # use DIV operator for integer division
query I rowsort label-2455
SELECT - + col0 + col1 DIV col1 FROM tab2 AS cor0
----
-6
-77
-78

skipif mysql # not compatible
query I rowsort label-2455
SELECT - + col0 + col1 / col1 FROM tab2 AS cor0
----
-6
-77
-78

query I rowsort
SELECT ALL 33 * col1 FROM tab1 AS cor0
----
330
429
858

query I rowsort
SELECT DISTINCT + col0 + cor0.col0 * - 89 AS col2 FROM tab1 AS cor0
----
-264
-5632
-7040

query I rowsort
SELECT DISTINCT + 96 * + col1 AS col1 FROM tab2 AS cor0
----
1632
2976
5664

query I rowsort
SELECT - 87 + - col1 FROM tab1 AS cor0
----
-100
-113
-97

query I rowsort
SELECT ALL + col1 * + ( cor0.col0 ) FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2461
SELECT DISTINCT col0 + + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2461
SELECT DISTINCT col0 + + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT col0 * + ( col1 * + col2 ) + col2 * + ( - col1 ) FROM tab2 cor0
----
118118
5022
50388

query I rowsort
SELECT DISTINCT ( - tab2.col0 ) + - 12 * 54 AS col0 FROM tab2
----
-655
-726
-727

onlyif mysql # use DIV operator for integer division
query I rowsort label-2464
SELECT DISTINCT 49 DIV + col1 + + col2 * + ( col2 ) FROM tab2
----
1446
676
730

skipif mysql # not compatible
query I rowsort label-2464
SELECT DISTINCT 49 / + col1 + + col2 * + ( col2 ) FROM tab2
----
1446
676
730

query I rowsort
SELECT DISTINCT - - col1 + 77 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
-1976
-760
-988

query I rowsort
SELECT - - 54 + + 91 FROM tab0 AS cor0
----
145
145
145

query I rowsort
SELECT - + 57 * - col0 AS col1 FROM tab1 AS cor0
----
171
3648
4560

query I rowsort
SELECT DISTINCT - cor0.col2 * - cor0.col1 + col2 AS col2 FROM tab1 AS cor0
----
1344
1458
627

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2469
SELECT DISTINCT CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-2469
SELECT DISTINCT CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ( - ( + col1 ) ) AS col0 FROM tab1 AS cor0
----
-10
-13
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-2471
SELECT ALL + 3 + + col1 DIV col2 AS col2 FROM tab1 AS cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-2471
SELECT ALL + 3 + + col1 / col2 AS col2 FROM tab1 AS cor0
----
3
3
3

query I rowsort
SELECT ALL ( - 77 ) * + col0 FROM tab0 AS cor0
----
-1848
-2695
-6853

query I rowsort
SELECT DISTINCT - 62 + 6 AS col1 FROM tab2, tab1 AS cor0
----
-56

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2474
SELECT - CAST( NULL AS SIGNED ) * 98 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2474
SELECT - CAST ( NULL AS INTEGER ) * 98 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2475
SELECT - - CAST( NULL AS SIGNED ) / - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2475
SELECT - - CAST ( NULL AS INTEGER ) / - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * ( col0 ) col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT + ( - col1 ) * col0 * - 51 AS col2 FROM tab1
----
32640
3978
53040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab0.col1 * 67 - col1 * col0 col1 FROM tab0
----
-2002
3104
3698

query I rowsort
SELECT DISTINCT - tab0.col1 FROM tab0, tab2, tab1 AS cor0
----
-86
-91
-97

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 cor0.col1 + + col2 + + col2 FROM tab1 AS cor0
----
124
134
205

query I rowsort
SELECT col2 + cor0.col2 * cor0.col1 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT - - 94 AS col0 FROM tab2 AS cor0
----
94
94
94

query I rowsort
SELECT + - col1 - + col2 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT 14 + + tab2.col1 + + col2 AS col2 FROM tab2
----
69
72
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-2486
SELECT DISTINCT col2 + tab2.col0 - + tab2.col0 DIV + col1 AS col1 FROM tab2
----
103
113
34

skipif mysql # not compatible
query I rowsort label-2486
SELECT DISTINCT col2 + tab2.col0 - + tab2.col0 / + col1 AS col1 FROM tab2
----
103
113
34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2487
SELECT CAST( col2 AS SIGNED ) AS col0 FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-2487
SELECT CAST ( col2 AS INTEGER ) AS col0 FROM tab2
----
26
27
38

query I rowsort
SELECT + ( + 43 ) + col2 * - col0 + ( col0 ) AS col2 FROM tab1
----
-116
-3541
-7557

query I rowsort
SELECT DISTINCT col2 * 10 AS col0 FROM tab0 AS cor0
----
10
330
820

query I rowsort
SELECT ALL - cor0.col0 * - col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT + ( 61 * + cor2.col1 ) + 26 FROM tab0, tab1 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to c88d3d1147d366e361efa896211e3a1c

query I rowsort
SELECT DISTINCT col1 * 92 FROM tab0 AS cor0
----
7912
8372
8924

skipif mysql # not compatible
query I rowsort
SELECT CAST ( - col0 AS REAL ) + col0 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - col2 * + 16 - + col1 * col1 * + ( - col1 + - ( + 97 ) ) AS col1 FROM tab0 AS cor0
----
1352940
1555516
1825330

query I rowsort
SELECT + + ( + cor0.col1 ) * col2 + + 5 AS col0 FROM tab1 AS cor0
----
1253
1409
575

query I rowsort
SELECT ALL 29 AS col2 FROM tab1 AS cor0
----
29
29
29

query I rowsort
SELECT DISTINCT + 4 + cor0.col2 FROM tab2 AS cor0
----
30
31
42

query I rowsort
SELECT DISTINCT 49 * col1 + col2 * - cor0.col0 AS col0 FROM tab0 cor0
----
-2839
3422
4718

query I rowsort
SELECT - col2 * col1 * + 97 FROM tab0 AS cor0
----
-275286
-723814
-9409

query I rowsort
SELECT ALL - cor0.col2 * 13 + col2 AS col2 FROM tab0 cor0
----
-12
-396
-984

query I rowsort
SELECT - + cor0.col2 * + col1 + + 42 - cor0.col2 FROM tab2 cor0
----
-1518
-642
-822

query I rowsort
SELECT DISTINCT cor0.col1 * 86 + + 27 FROM tab0 AS cor0
----
7423
7853
8369

query I rowsort
SELECT DISTINCT + col0 * - tab1.col1 AS col0 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT col1 * + 1 AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT cor0.col2 * 1 AS col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL col1 * - col2 + + col1 AS col2 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT col0 * + ( + 52 ) FROM tab0 AS cor0
----
1248
1820
4628

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2508
SELECT DISTINCT + col0 * cor0.col1 + cor0.col0 * CAST( col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
2686
434
9204

skipif mysql # not compatible
query I rowsort label-2508
SELECT DISTINCT + col0 * cor0.col1 + cor0.col0 * CAST ( col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
2686
434
9204

skipif mysql # not compatible
query I rowsort
SELECT CAST ( - col0 AS REAL ) AS col2 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT 10 * + col1 AS col1 FROM tab1 AS cor0
----
100
130
260

skipif mysql # not compatible
query I rowsort
SELECT - 0 - - col1 * cor0.col1 * - CAST ( ( col2 ) AS REAL ) AS col2 FROM tab2 AS cor0
----
-10982
-25947
-90506

query I rowsort
SELECT - 51 + - 17 * - cor0.col2 * col0 AS col1 FROM tab0 AS cor0
----
124015
13413
544

query I rowsort
SELECT ( - 77 ) + + col2 - - ( col1 + col2 ) FROM tab1 AS cor0
----
128
47
57

query I rowsort
SELECT - 8 * - 73 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to b5b3ec254da70c5b2e1cbeaee88e353a

query I rowsort
SELECT + 6 * col1 FROM tab1 cor0
----
156
60
78

query I rowsort
SELECT DISTINCT - ( + col1 ) AS col0 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT 48 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query I rowsort
SELECT + ( - 40 * - col0 ) FROM tab1
----
120
2560
3200

query I rowsort
SELECT DISTINCT - 6 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-6

query I rowsort
SELECT DISTINCT + col2 * + col1 + - col1 AS col2 FROM tab2
----
1475
629
806

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2521
SELECT + ( - col0 ) + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2521
SELECT + ( - col0 ) + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * cor0.col1 + - 16 FROM tab0 cor0
----
7380
8265
9393

query I rowsort
SELECT - cor0.col1 * - col0 - + col1 AS col2 FROM tab2 AS cor0
----
1326
186
4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-2524
SELECT ALL + col2 * tab2.col0 DIV + tab2.col1 FROM tab2
----
176
34
6

skipif mysql # not compatible
query I rowsort label-2524
SELECT ALL + col2 * tab2.col0 / + tab2.col1 FROM tab2
----
176
34
6

query I rowsort
SELECT ALL - + 23 * col2 + col2 FROM tab1 AS cor0
----
-1188
-1254
-2112

query I rowsort
SELECT DISTINCT + cor2.col1 AS col1 FROM tab0, tab2 cor0 CROSS JOIN tab2, tab0 AS cor1, tab2 cor2
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-2527
SELECT + + col2 DIV col0 + col1 AS col0 FROM tab2 AS cor0
----
17
34
59

skipif mysql # not compatible
query I rowsort label-2527
SELECT + + col2 / col0 + col1 AS col0 FROM tab2 AS cor0
----
17
34
59

query I rowsort
SELECT ALL - - col2 * - cor0.col2 + + col0 * - col1 FROM tab2 AS cor0
----
-2787
-5278
-946

query I rowsort
SELECT ALL + 5 + cor0.col2 FROM tab1 AS cor0
----
101
59
62

query I rowsort
SELECT ALL col2 + col2 * - 2 + col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + - col2 * - cor0.col0 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2532
SELECT - - cor0.col0 + - CAST( NULL AS DECIMAL ) * - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2532
SELECT - - cor0.col0 + - CAST ( NULL AS REAL ) * - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - cor0.col1 + - 18 * - 30 AS col0 FROM tab2 AS cor0
----
481
509
523

query I rowsort
SELECT DISTINCT col0 * col0 + col2 * - col2 AS col0 FROM tab1
----
-2816
-2907
847

query I rowsort
SELECT + cor0.col2 AS col1 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT ALL + 67 + col2 FROM tab2
----
105
93
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 24 + tab2.col1 col1 FROM tab2
----
41
55
83

query I rowsort
SELECT ALL + - 97 * + col1 * + col2 + - ( - col2 * - col0 ) AS col0 FROM tab1 AS cor0
----
-128736
-136350
-58938

query I rowsort
SELECT DISTINCT + ( 33 ) + - col2 FROM tab1 AS cor0
----
-21
-24
-63

query I rowsort
SELECT ALL + - col1 * - ( + col2 ) AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL + - col2 + + 94 AS col2 FROM tab2 AS cor0
----
56
67
68

query I rowsort
SELECT DISTINCT + 40 AS col0 FROM tab2 cor0
----
40

query I rowsort
SELECT ALL 90 * + col0 + col1 FROM tab1 AS cor0
----
296
5770
7213

query I rowsort
SELECT DISTINCT - - ( - cor0.col0 ) + col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT DISTINCT col0 * 57 FROM tab2 AS cor0
----
399
4446
4503

query I rowsort
SELECT ALL ( + cor0.col2 ) * col0 AS col1 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT + ( + 16 ) * cor0.col1 + col1 AS col0 FROM tab2 AS cor0
----
1003
289
527

query I rowsort
SELECT DISTINCT - 54 * + 41 AS col2 FROM tab0 AS cor0
----
-2214

query I rowsort
SELECT ALL col0 + cor0.col1 * + col2 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT - + 5 + + 60 FROM tab2 AS cor0
----
55
55
55

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2551
SELECT ALL + ( col0 ) + + col1 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2551
SELECT ALL + ( col0 ) + + col1 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 20 + col0 + + col2 FROM tab2
----
124
137
54

query I rowsort
SELECT - col1 * 76 + - col1 + col2 FROM tab2
----
-1271
-2360
-4517

query I rowsort
SELECT + ( - col0 ) + tab0.col0 + + col2 AS col1 FROM tab0
----
1
33
82

query I rowsort
SELECT DISTINCT 15 * 57 FROM tab2
----
855

query I rowsort
SELECT - + 94 + + col2 FROM tab2 AS cor0
----
-56
-67
-68

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2557
SELECT + cor0.col0 * col2 * CAST( NULL AS SIGNED ) + 92 / col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2557
SELECT + cor0.col0 * col2 * CAST ( NULL AS INTEGER ) + 92 / col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 45 col0 FROM tab1
----
45
45
45

query I rowsort
SELECT DISTINCT - 21 AS col0 FROM tab0, tab1 AS cor0
----
-21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 7 + col1 col2 FROM tab0
----
688
728
776

query I rowsort
SELECT - - col0 + col2 * + col0 AS col2 FROM tab0 cor0
----
70
7387
816

query I rowsort
SELECT 54 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a

query I rowsort
SELECT DISTINCT - cor0.col0 + - col1 + - 45 FROM tab2 AS cor0
----
-141
-182
-83

query I rowsort
SELECT ALL + - col1 * col2 + col0 * ( col0 ) + 38 AS col1 FROM tab1 AS cor0
----
-1357
3564
5190

query I rowsort
SELECT ALL + - col2 * + cor0.col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT + + col2 * col0 - 21 FROM tab0 AS cor0
----
14
7277
771

query I rowsort
SELECT - col0 + - col2 * + col2 AS col0 FROM tab1 AS cor0
----
-2919
-3313
-9296

query I rowsort
SELECT ALL col1 + - col2 AS col1 FROM tab2 cor0
----
-21
33
4

query I rowsort
SELECT DISTINCT + + col2 * - col1 - ( col1 * - col1 ) FROM tab2 AS cor0
----
-357
124
1947

query I rowsort
SELECT 40 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
1320
3280
40

query I rowsort
SELECT 39 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT ALL + - col1 + - cor0.col2 AS col2 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT - col1 + 96 AS col1 FROM tab1 AS cor0
----
70
83
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 * col0 col1 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-2575
SELECT ALL - cor0.col2 + - ( - cor0.col2 ) DIV + col2 AS col0 FROM tab0 AS cor0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-2575
SELECT ALL - cor0.col2 + - ( - cor0.col2 ) / + col2 AS col0 FROM tab0 AS cor0
----
-32
-81
0

query I rowsort
SELECT ALL col1 + 83 AS col2 FROM tab1 AS cor0
----
109
93
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col2 * col2 col1 FROM tab0 AS cor0
----
-96
1003
6633

query I rowsort
SELECT + col1 * 10 * col1 FROM tab2 AS cor0
----
2890
34810
9610

query I rowsort
SELECT DISTINCT + cor0.col1 + col1 - col1 FROM tab2 AS cor0
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-2580
SELECT ALL - col1 DIV - ( col2 ) + - col2 FROM tab0 AS cor0
----
-31
-81
96

skipif mysql # not compatible
query I rowsort label-2580
SELECT ALL - col1 / - ( col2 ) + - col2 FROM tab0 AS cor0
----
-31
-81
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2581
SELECT DISTINCT + cor0.col2 * + CAST( NULL AS SIGNED ) - - col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2581
SELECT DISTINCT + cor0.col2 * + CAST ( NULL AS INTEGER ) - - col2 FROM tab0 cor0
----
NULL

query I rowsort
SELECT col2 + 74 AS col2 FROM tab1 AS cor0
----
128
131
170

onlyif mysql # use DIV operator for integer division
query I rowsort label-2583
SELECT DISTINCT 59 DIV col2 + + col2 FROM tab1 AS cor0
----
55
58
96

skipif mysql # not compatible
query I rowsort label-2583
SELECT DISTINCT 59 / col2 + + col2 FROM tab1 AS cor0
----
55
58
96

query I rowsort
SELECT + 34 * + 63 AS col0 FROM tab1 AS cor0
----
2142
2142
2142

query I rowsort
SELECT - cor0.col2 + 98 FROM tab1 cor0
----
2
41
44

query I rowsort
SELECT DISTINCT - col0 * 42 FROM tab0 AS cor0
----
-1008
-1470
-3738

query I rowsort
SELECT ALL + - col1 * - cor0.col0 + col1 FROM tab0 AS cor0
----
2150
3492
8190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col1 col1 FROM tab2 AS cor0
----
-289
-3481
-961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + 38 col1 FROM tab0 AS cor0
----
127
62
73

query I rowsort
SELECT DISTINCT col0 + 52 AS col2 FROM tab1 AS cor0
----
116
132
55

query I rowsort
SELECT + + 79 FROM tab1 cor0
----
79
79
79

query I rowsort
SELECT - col1 + 12 FROM tab2 AS cor0
----
-19
-47
-5

onlyif mysql # use DIV operator for integer division
query I rowsort label-2593
SELECT - col1 + 68 DIV - col0 AS col1 FROM tab2 AS cor0
----
-17
-40
-59

skipif mysql # not compatible
query I rowsort label-2593
SELECT - col1 + 68 / - col0 AS col1 FROM tab2 AS cor0
----
-17
-40
-59

query I rowsort
SELECT - + col2 * - ( 37 + - col2 ) AS col2 FROM tab2 AS cor0
----
-38
270
286

query I rowsort
SELECT + 26 AS col0 FROM tab0
----
26
26
26

query I rowsort
SELECT cor0.col2 * + col2 * 24 FROM tab1 cor0
----
221184
69984
77976

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * 87 col0 FROM tab2 AS cor0
----
1479
2697
5133

query I rowsort
SELECT ALL + cor0.col0 * - ( - col0 ) FROM tab2 cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT + + 2 + - ( col2 ) * + 90 FROM tab0 AS cor0
----
-2968
-7378
-88

query I rowsort
SELECT 49 * - col2 FROM tab2 AS cor0
----
-1274
-1323
-1862

query I rowsort
SELECT col1 * 46 FROM tab0
----
3956
4186
4462

query I rowsort
SELECT - col2 * + 82 AS col0 FROM tab2
----
-2132
-2214
-3116

query I rowsort
SELECT tab2.col0 AS col2 FROM tab2 WHERE NULL NOT IN ( + col1 * - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <> NULL
----

query I rowsort
SELECT col2 * + col1 + cor0.col1 * - 50 FROM tab2 AS cor0
----
-1416
-204
-713

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND ( col1 * col0 * + col0 )
----

query I rowsort
SELECT DISTINCT + col0 - + col2 AS col1 FROM tab2
----
-20
41
52

query I rowsort
SELECT + col0 FROM tab2 WHERE NULL < col2
----

query I rowsort
SELECT - + 84 AS col2 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 02f1688b8610806ca28739b1735f6ae4

query I rowsort
SELECT 89 - 4 AS col0 FROM tab0, tab2 cor0, tab0 AS cor1
----
27 values hashing to e4cf94cf0cc632acff30ad1dac617cb7

query I rowsort
SELECT DISTINCT 91 * + 12 AS col2 FROM tab1, tab1 cor0, tab1 AS cor1
----
1092

onlyif mysql # use DIV operator for integer division
query I rowsort label-2612
SELECT ALL - col0 DIV col2 - - ( col1 ) FROM tab1 AS cor0
----
13
26
9

skipif mysql # not compatible
query I rowsort label-2612
SELECT ALL - col0 / col2 - - ( col1 ) FROM tab1 AS cor0
----
13
26
9

query I rowsort
SELECT DISTINCT 2 * - col1 AS col2 FROM tab1
----
-20
-26
-52

query I rowsort
SELECT ALL col1 + + tab1.col1 FROM tab1
----
20
26
52

query I rowsort
SELECT + 72 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7

query I rowsort
SELECT col0 + 96 AS col0 FROM tab1
----
160
176
99

query I rowsort
SELECT + - 91 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

query I rowsort
SELECT - col1 + + cor0.col2 AS col2 FROM tab1 AS cor0
----
28
47
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-2619
SELECT DISTINCT col2 - + ( + tab2.col2 ) DIV ( 75 ) col0 FROM tab2
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2619
SELECT DISTINCT col2 - + ( + tab2.col2 ) / ( 75 ) col0 FROM tab2
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 + + col0 * 20 col2 FROM tab1
----
222
4928
9280

query I rowsort
SELECT - col2 + + col0 * - col0 AS col0 FROM tab0 AS cor0
----
-1226
-609
-8003

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 49 * + col2 col2 FROM tab2
----
1274
1323
1862

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2623
SELECT CAST( - col2 AS SIGNED ) + - tab2.col1 AS col0 FROM tab2
----
-55
-58
-85

skipif mysql # not compatible
query I rowsort label-2623
SELECT CAST ( - col2 AS INTEGER ) + - tab2.col1 AS col0 FROM tab2
----
-55
-58
-85

query I rowsort
SELECT col0 + col0 * + col1 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT ALL - - col2 * col1 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT + ( col0 ) * - col2 + col1 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT + + cor0.col0 * col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2628
SELECT - 5 / + col0 + CAST( NULL AS SIGNED ) * col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2628
SELECT - 5 / + col0 + CAST ( NULL AS INTEGER ) * col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( - tab2.col2 * col0 ) FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT - - 99 FROM tab2 cor0
----
99

query I rowsort
SELECT ALL 77 AS col0 FROM tab1 AS cor0
----
77
77
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-2632
SELECT ALL - col2 DIV + col0 col2 FROM tab0 AS cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2632
SELECT ALL - col2 / + col0 col2 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2633
SELECT ALL - 36 + + col0 DIV col1 AS col1 FROM tab0 AS cor0
----
-36
-36
-36

skipif mysql # not compatible
query I rowsort label-2633
SELECT ALL - 36 + + col0 / col1 AS col1 FROM tab0 AS cor0
----
-36
-36
-36

query I rowsort
SELECT DISTINCT + 37 * col1 AS col1 FROM tab0 AS cor0
----
3182
3367
3589

query I rowsort
SELECT col1 + col0 * + col2 AS col0 FROM tab1
----
188
3658
7693

query I rowsort
SELECT col1 + - col1 - + col1 * + tab2.col1 * ( 27 * col2 ) AS col1 FROM tab2
----
-2443662
-296514
-700569

onlyif mysql # use DIV operator for integer division
query I rowsort label-2637
SELECT DISTINCT - col1 DIV - col0 - - 83 AS col0 FROM tab2
----
83
87

skipif mysql # not compatible
query I rowsort label-2637
SELECT DISTINCT - col1 / - col0 - - 83 AS col0 FROM tab2
----
83
87

query I rowsort
SELECT DISTINCT tab1.col0 + - 67 + 58 FROM tab1
----
-6
55
71

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 cor0, tab1 AS cor1, tab0 cor2
----
972 values hashing to b51b4342db121ebc2d3d353dcd8ed521

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 * - col1 col2 FROM tab0 cor0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-2641
SELECT DISTINCT + col2 + ( col1 ) DIV - col1 FROM tab2 AS cor0
----
25
26
37

skipif mysql # not compatible
query I rowsort label-2641
SELECT DISTINCT + col2 + ( col1 ) / - col1 FROM tab2 AS cor0
----
25
26
37

query I rowsort
SELECT + + ( - col2 ) + + col2 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 19 * col1 + col0 FROM tab0 AS cor0
----
-1610
-1640
-1808

query I rowsort
SELECT 13 + - col0 FROM tab2 AS cor0
----
-65
-66
6

query I rowsort
SELECT + col1 * + ( - cor0.col1 ) + cor0.col1 AS col1 FROM tab0 cor0
----
-7310
-8190
-9312

query I rowsort
SELECT DISTINCT + 88 + - col0 * - col1 AS col0 FROM tab0 cor0
----
2152
3483
8187

query I rowsort
SELECT cor0.col0 * col2 + col1 * - col1 AS col2 FROM tab1 cor0
----
-514
3548
7511

query I rowsort
SELECT DISTINCT - col2 + - cor0.col0 AS col1 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT col1 * 54 - cor0.col2 * col0 AS col0 FROM tab0 AS cor0
----
-2384
3852
5203

query I rowsort
SELECT DISTINCT + ( col2 ) * + col0 AS col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT + col1 - - tab0.col2 FROM tab0
----
119
173
98

query I rowsort
SELECT tab0.col1 * ( col2 ) + col0 + ( tab0.col2 * col0 ) FROM tab0
----
14849
167
3654

query I rowsort
SELECT + col0 + - 28 + + col2 FROM tab1
----
148
29
93

query I rowsort
SELECT DISTINCT col2 - 23 * + col2 FROM tab1
----
-1188
-1254
-2112

query I rowsort
SELECT ALL - 37 * + col2 * col1 FROM tab0 AS cor0
----
-105006
-276094
-3589

onlyif mysql # use DIV operator for integer division
query I rowsort label-2656
SELECT ALL - col2 DIV col1 + col0 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-2656
SELECT ALL - col2 / col1 + col0 FROM tab0 AS cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 + col2 col1 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT DISTINCT col1 - - 66 FROM tab2 AS cor0
----
125
83
97

query I rowsort
SELECT ALL + - col0 + - 45 * + col2 AS col2 FROM tab2 AS cor0
----
-1222
-1248
-1789

query I rowsort
SELECT ALL 2 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2661
SELECT DISTINCT - 5 * - col1 + CAST( - cor0.col2 AS SIGNED ) + col1 FROM tab0 AS cor0
----
464
483
581

skipif mysql # not compatible
query I rowsort label-2661
SELECT DISTINCT - 5 * - col1 + CAST ( - cor0.col2 AS INTEGER ) + col1 FROM tab0 AS cor0
----
464
483
581

query I rowsort
SELECT ALL - + 13 * col2 + - col0 AS col1 FROM tab1 AS cor0
----
-1328
-705
-805

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * cor0.col2 col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT ( col1 ) + ( col2 ) AS col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL - col2 + - col2 + 73 FROM tab2 cor0
----
-3
19
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-2666
SELECT DISTINCT ( col1 ) DIV ( ( cor0.col0 ) ) FROM tab1 AS cor0
----
0
8

skipif mysql # not compatible
query I rowsort label-2666
SELECT DISTINCT ( col1 ) / ( ( cor0.col0 ) ) FROM tab1 AS cor0
----
0
8

query I rowsort
SELECT ALL col0 * + col1 + + col2 AS col0 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT col2 * - cor0.col2 * - col0 AS col0 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT DISTINCT - - col1 * 98 * + col2 AS col2 FROM tab2 AS cor0
----
150332
63308
82026

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2670
SELECT ALL + + col2 + + CAST( NULL AS SIGNED ) * + col2 * - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2670
SELECT ALL + + col2 + + CAST ( NULL AS INTEGER ) * + col2 * - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 87 - 65 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 275a6c1b20c0fc55111ae949ef2a3e3d

query I rowsort
SELECT ALL - col1 + col0 * col2 AS col2 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT ALL - + col1 + ( - ( col0 ) + + col2 ) FROM tab1 AS cor0
----
-17
25
3

query I rowsort
SELECT DISTINCT col0 + + col0 - + cor0.col0 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort
SELECT col0 + CAST ( + ( col1 ) AS REAL ) FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT - col2 * 10 FROM tab2 AS cor0
----
-260
-270
-380

query I rowsort
SELECT - 96 + col1 AS col2 FROM tab1
----
-70
-83
-86

query I rowsort
SELECT + col0 * + col0 * cor0.col1 AS col2 FROM tab2 cor0
----
106097
1519
358956

query I rowsort
SELECT ALL + col1 + col0 + 44 * col1 FROM tab0 cor0
----
3894
4184
4400

query I rowsort
SELECT ALL - + col2 + - 87 + - cor0.col0 * - cor0.col2 * + col0 FROM tab1 AS cor0
----
233328
345
614217

query I rowsort
SELECT + col0 + 56 AS col0 FROM tab1
----
120
136
59

query I rowsort
SELECT DISTINCT + col2 + ( col0 ) * 16 FROM tab2
----
1274
1302
139

query I rowsort
SELECT 87 * - col1 FROM tab2
----
-1479
-2697
-5133

query I rowsort
SELECT + col0 + + cor0.col0 * - cor0.col2 AS col1 FROM tab1 cor0
----
-159
-3584
-7600

query I rowsort
SELECT DISTINCT + 24 * + col2 FROM tab0 AS cor0
----
1968
24
792

query I rowsort
SELECT ALL - - col0 - + cor0.col0 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - cor1.col0 AS col0 FROM tab2, tab2 cor0, tab0 AS cor1
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-2688
SELECT 92 * col1 + - col2 DIV + col2 + + col1 FROM tab1
----
1208
2417
929

skipif mysql # not compatible
query I rowsort label-2688
SELECT 92 * col1 + - col2 / + col2 + + col1 FROM tab1
----
1208
2417
929

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( + col1 AS REAL ) * + col2 + col2 AS col0 FROM tab2
----
1560
684
864

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2690
SELECT ALL CAST( NULL AS SIGNED ) + + 98 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2690
SELECT ALL CAST ( NULL AS INTEGER ) + + 98 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( col0 ) * ( - col2 ) FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT + 93 AS col0 FROM tab2
----
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col2 * + ( col0 + - col0 ) col0 FROM tab0 cor0
----
-86
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 25 col1 FROM tab1 cor0
----
25
25
25

query I rowsort
SELECT ALL - cor0.col0 * + col1 + - 56 FROM tab1 AS cor0
----
-1096
-134
-696

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 AS cor2
----
3645 values hashing to 655f6fd9cf6e184579b05940dc91f4cb

query I rowsort
SELECT - + ( + col1 ) + col2 AS col2 FROM tab2 AS cor0
----
-33
-4
21

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2698
SELECT + CAST( NULL AS SIGNED ) + col1 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2698
SELECT + CAST ( NULL AS INTEGER ) + col1 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * + ( - col2 ) FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT - 0 * - col1 * + col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2701
SELECT DISTINCT + col0 DIV col0 + col0 FROM tab2 AS cor0
----
79
8
80

skipif mysql # not compatible
query I rowsort label-2701
SELECT DISTINCT + col0 / col0 + col0 FROM tab2 AS cor0
----
79
8
80

query I rowsort
SELECT + - col1 * + 64 + - 72 AS col1 FROM tab2 AS cor0
----
-1160
-2056
-3848

query I rowsort
SELECT col2 * - col2 + + col0 AS col0 FROM tab1
----
-2913
-3185
-9136

query I rowsort
SELECT - 29 + col0 FROM tab2 AS cor0
----
-22
49
50

query I rowsort
SELECT - + ( 77 ) AS col2 FROM tab1 cor0
----
-77
-77
-77

query I rowsort
SELECT tab2.col0 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT col2 * - 37 + + cor0.col0 + col1 FROM tab1 AS cor0
----
-1969
-2035
-3459

query I rowsort
SELECT col2 * ( col1 ) + col0 + - col1 * col0 AS col2 FROM tab2 AS cor0
----
-2990
-618
627

query I rowsort
SELECT 44 + col2 AS col1 FROM tab2 AS cor0
----
70
71
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-2710
SELECT ALL + + ( - col1 ) + + cor0.col2 DIV cor0.col1 FROM tab1 AS cor0
----
-24
-5
-6

skipif mysql # not compatible
query I rowsort label-2710
SELECT ALL + + ( - col1 ) + + cor0.col2 / cor0.col1 FROM tab1 AS cor0
----
-24
-5
-6

query I rowsort
SELECT ( + cor0.col0 ) * - col1 * col0 AS col2 FROM tab1 cor0
----
-234
-40960
-83200

query I rowsort
SELECT ALL - 35 AS col0 FROM tab1 AS cor0
----
-35
-35
-35

query I rowsort
SELECT DISTINCT + 40 FROM tab0 cor0
----
40

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0, tab0 AS cor1, tab1, tab1 cor2
----
3645 values hashing to 51e2051aff75c58a5edaa314f1412983

query I rowsort
SELECT ALL 10 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query I rowsort
SELECT ( - 39 ) FROM tab2, tab0 AS cor0
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

query I rowsort
SELECT ALL tab1.col0 + col1 AS col2 FROM tab1
----
29
74
93

query I rowsort
SELECT ALL + col1 + 49 * col1 FROM tab2
----
1550
2950
850

query I rowsort
SELECT ALL ( + tab2.col0 ) + col1 AS col2 FROM tab2
----
137
38
96

query I rowsort
SELECT DISTINCT 32 AS col1 FROM tab1, tab0 AS cor0
----
32

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2721
SELECT CAST( col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-2721
SELECT CAST ( col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT - col1 * + cor0.col1 + col2 FROM tab1 cor0
----
-43
-622
-73

query I rowsort
SELECT 44 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT + ( - col0 ) * col0 * - tab2.col1 + 60 * + col2 FROM tab2
----
108377
3139
360516

query I rowsort
SELECT ALL - 15 FROM tab0, tab2, tab1 AS cor0, tab1
----
81 values hashing to af17c026b0658d7a3496b8b16be82ec5

query I rowsort
SELECT - 47 * 10 * cor0.col1 AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 77f901e20967f4d31cc55b883b29a3b7

query I rowsort
SELECT DISTINCT 75 FROM tab2, tab1 AS cor0, tab2 AS cor1, tab1 cor2
----
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-2728
SELECT + 74 * - tab0.col0 DIV tab0.col0 FROM tab0
----
-74
-74
-74

skipif mysql # not compatible
query I rowsort label-2728
SELECT + 74 * - tab0.col0 / tab0.col0 FROM tab0
----
-74
-74
-74

query I rowsort
SELECT - - tab1.col1 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + cor0.col2 col0 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT ALL + col0 - - 31 FROM tab0 AS cor0
----
120
55
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2732
SELECT DISTINCT col2 + CAST( + col2 AS SIGNED ) col2 FROM tab1 AS cor0
----
108
114
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2732
SELECT DISTINCT col2 + CAST ( + col2 AS INTEGER ) col2 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT + col0 * - col2 - col1 * - col1 FROM tab0 AS cor0
----
6604
9374
983

query I rowsort
SELECT ALL + col1 + - 94 FROM tab1 AS cor0
----
-68
-81
-84

query I rowsort
SELECT DISTINCT - col1 + cor0.col2 * 7 - - col1 FROM tab2 AS cor0
----
182
189
266

query I rowsort
SELECT col2 + - 51 FROM tab1 AS cor0
----
3
45
6

query I rowsort
SELECT ALL + - col0 * col2 + col1 * col2 AS col1 FROM tab0 cor0
----
164
2046
62

query I rowsort
SELECT - col0 + + col0 - cor0.col1 AS col2 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT + + col2 * + col1 + 59 AS col2 FROM tab0 AS cor0
----
156
2897
7521

query I rowsort
SELECT - cor0.col0 * - cor0.col2 FROM tab2, tab0 AS cor0
----
9 values hashing to e1120e7b687b32270ef70393236e7341

query I rowsort
SELECT - 87 + + cor0.col1 * col2 AS col2 FROM tab1 AS cor0
----
1161
1317
483

query I rowsort
SELECT 4 AS col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 730dff78e83112374961ea711f98ebaa

onlyif mysql # use DIV operator for integer division
query I rowsort label-2743
SELECT + col1 DIV 44 + col1 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-2743
SELECT + col1 / 44 + col1 FROM tab1
----
10
13
26

query I rowsort
SELECT - 41 * - 58 - col2 FROM tab0
----
2296
2345
2377

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2745
SELECT ALL col0 + - col0 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2745
SELECT ALL col0 + - col0 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 82 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT 28 * tab0.col0 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to f4214f62d23d35a931e32781b39b6311

query I rowsort
SELECT 89 + + col2 * + ( col0 ) FROM tab0
----
124
7387
881

query I rowsort
SELECT 99 * col1 FROM tab2
----
1683
3069
5841

query I rowsort
SELECT - 99 + + col2 * - 2 + col0 * col2 AS col0 FROM tab2
----
1877
2827
36

query I rowsort
SELECT DISTINCT + - col1 * cor0.col2 FROM tab2 AS cor0
----
-1534
-646
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) col2 FROM tab2 cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-2753
SELECT DISTINCT + + 93 DIV + cor0.col1 + - CAST( 54 AS SIGNED ) FROM tab0 AS cor0
----
-53
-54

skipif mysql # not compatible
query I rowsort label-2753
SELECT DISTINCT + + 93 / + cor0.col1 + - CAST ( 54 AS INTEGER ) FROM tab0 AS cor0
----
-53
-54

query I rowsort
SELECT DISTINCT + cor0.col2 * col1 * + 75 + col1 AS col0 FROM tab2 AS cor0
----
115109
48467
62806

query I rowsort
SELECT ALL 92 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT + col0 + ( col0 ) FROM tab0
----
178
48
70

query I rowsort
SELECT ALL col0 + ( - 10 ) AS col0 FROM tab0
----
14
25
79

query I rowsort
SELECT + tab1.col1 - ( col2 + col1 ) FROM tab1
----
-54
-57
-96

query I rowsort
SELECT DISTINCT + col2 + + col0 * - col0 FROM tab0
----
-1224
-543
-7839

query I rowsort
SELECT ALL + col1 - - ( + col2 ) FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL col0 * ( + col2 ) - - col1 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT ALL + cor0.col2 - col0 AS col2 FROM tab2 cor0
----
-41
-52
20

query I rowsort
SELECT DISTINCT - col1 + + col0 + 88 AS col2 FROM tab2
----
107
150
64

query I rowsort
SELECT - col0 + - col2 * col1 FROM tab1
----
-1328
-1407
-634

query I rowsort
SELECT + + 79 * 34 FROM tab2 AS cor0
----
2686
2686
2686

onlyif mysql # use DIV operator for integer division
query I rowsort label-2766
SELECT ALL + col1 + + col2 DIV + col1 FROM tab1 AS cor0
----
15
20
28

skipif mysql # not compatible
query I rowsort label-2766
SELECT ALL + col1 + + col2 / + col1 FROM tab1 AS cor0
----
15
20
28

query I rowsort
SELECT DISTINCT - 36 * - col1 - col1 AS col1 FROM tab2 cor0
----
1085
2065
595

query I rowsort
SELECT DISTINCT + - 10 * + 56 FROM tab0 AS cor0
----
-560

query I rowsort
SELECT DISTINCT + 23 * col0 AS col2 FROM tab1 AS cor0
----
1472
1840
69

query I rowsort
SELECT ALL - ( ( col1 ) ) + col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - - 91 FROM tab2 AS cor0
----
91

query I rowsort
SELECT ALL + + ( - cor0.col1 ) + - cor0.col0 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT ALL + 97 * + 54 AS col0 FROM tab2 AS cor0
----
5238
5238
5238

query I rowsort
SELECT DISTINCT col0 * + 16 AS col2 FROM tab2 cor0
----
112
1248
1264

query I rowsort
SELECT ALL - - col2 * - 71 + col2 + - 37 FROM tab0 AS cor0
----
-107
-2347
-5777

query I rowsort
SELECT ALL col0 + + 96 * 95 FROM tab0
----
9144
9155
9209

query I rowsort
SELECT ALL - - col1 * col2 + col0 AS col1 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT DISTINCT 32 AS col2 FROM tab0 AS cor0
----
32

query I rowsort
SELECT DISTINCT + col0 * 54 FROM tab0 AS cor0
----
1296
1890
4806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 90 col2 FROM tab2 AS cor0
----
90
90
90

query I rowsort
SELECT ALL - col0 * - 70 * col2 FROM tab1 cor0
----
11340
255360
537600

query I rowsort
SELECT ALL - - col0 + - col1 AS col2 FROM tab1 cor0
----
-23
54
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 69 col1 FROM tab1
----
69

query I rowsort
SELECT DISTINCT cor0.col1 * 79 AS col1 FROM tab0, tab2 AS cor0
----
1343
2449
4661

query I rowsort
SELECT + col0 * 18 * + col1 FROM tab1 AS cor0
----
11520
1404
18720

query I rowsort
SELECT - 4 * - col2 FROM tab2 AS cor0
----
104
108
152

query I rowsort
SELECT col0 * + col2 * cor0.col0 AS col0 FROM tab1 AS cor0
----
233472
486
614400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 35 col1 FROM tab0
----
35
35
35

query I rowsort
SELECT - 20 * col2 + col1 * 27 FROM tab0
----
1662
2599
817

query I rowsort
SELECT DISTINCT ( tab2.col2 ) AS col0 FROM tab2
----
26
27
38

query I rowsort
SELECT - - 41 + + col1 * ( + col0 * cor0.col1 + - col0 ) AS col0 FROM tab1 AS cor0
----
12521
1991
5801

query I rowsort
SELECT ALL 5 AS col2 FROM tab2, tab0 cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d

query I rowsort
SELECT + col1 - + ( + ( + col2 ) ) * 43 * 85 FROM tab1 AS cor0
----
-197344
-208325
-350867

query I rowsort
SELECT + + col2 * col0 + - col1 AS col1 FROM tab1 AS cor0
----
136
3638
7667

onlyif mysql # use DIV operator for integer division
query I rowsort label-2795
SELECT ALL col2 DIV 18 FROM tab0 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-2795
SELECT ALL col2 / 18 FROM tab0 AS cor0
----
0
1
4

query I rowsort
SELECT DISTINCT + + cor0.col2 * ( + col0 ) + + col0 AS col1 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT + col1 + 54 AS col1 FROM tab2 AS cor0
----
113
71
85

query I rowsort
SELECT + + col2 + col1 * - 88 AS col0 FROM tab0 cor0
----
-7535
-7926
-8535

onlyif mysql # use DIV operator for integer division
query I rowsort label-2799
SELECT col0 DIV + ( col1 ) FROM tab2 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-2799
SELECT col0 / + ( col1 ) FROM tab2 AS cor0
----
0
1
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-2800
SELECT ALL + col0 DIV - ( col2 ) AS col1 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2800
SELECT ALL + col0 / - ( col2 ) AS col1 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL + + cor0.col0 * + ( - cor0.col1 ) + + col2 * 14 FROM tab2 cor0
----
-4238
-811
161

query I rowsort
SELECT DISTINCT col0 + + col0 - - ( + col0 ) AS col0 FROM tab0
----
105
267
72

query I rowsort
SELECT DISTINCT - col1 + - col1 - + tab0.col0 FROM tab0
----
-196
-229
-271

query I rowsort
SELECT col1 + - col0 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT col1 * col1 * + col2 + - col1 FROM tab2
----
10965
25916
90447

query I rowsort
SELECT + - col2 + + 48 + - col2 AS col1 FROM tab0 cor0
----
-116
-18
46

query I rowsort
SELECT - col0 * tab1.col2 AS col0 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT col1 + 19 + + ( - col0 ) FROM tab1
----
-35
-48
42

query I rowsort
SELECT ALL cor0.col2 * - col0 * - col1 AS col1 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT DISTINCT + - col2 * ( col0 ) + + col1 AS col1 FROM tab2 cor0
----
-158
-1969
-2985

query I rowsort
SELECT ALL - - col2 + - col1 * col2 AS col2 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT DISTINCT - col0 - 42 * - 38 FROM tab1 AS cor0
----
1516
1532
1593

query I rowsort
SELECT DISTINCT + col1 * 43 + + col0 * col0 FROM tab0 AS cor0
----
11834
4274
5396

query I rowsort
SELECT ALL + 78 + - col0 AS col1 FROM tab1
----
-2
14
75

query I rowsort
SELECT ALL - col0 * col0 + + 83 AS col0 FROM tab1
----
-4013
-6317
74

query I rowsort
SELECT - 16 * + col0 + col0 AS col2 FROM tab2 AS cor0
----
-105
-1170
-1185

query I rowsort
SELECT DISTINCT - 40 FROM tab2, tab1 AS cor0, tab2 cor1
----
-40

query I rowsort
SELECT tab0.col0 * 16 * col1 - + col2 AS col2 FROM tab0
----
129502
32991
54319

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col2 * col1 + - 77 * col2 col2 FROM tab1 cor0
----
-4959
-5562
-8640

query I rowsort
SELECT + col0 + col1 * col2 AS col2 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT - - col1 * cor0.col0 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT ALL 47 * + 14 * + col1 FROM tab1
----
17108
6580
8554

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col0 ) * col1 col1 FROM tab2
----
1343
217
4602

query I rowsort
SELECT + + 24 * - col2 AS col0 FROM tab1 AS cor0
----
-1296
-1368
-2304

query I rowsort
SELECT col0 * 74 FROM tab1 AS cor0
----
222
4736
5920

query I rowsort
SELECT + col2 * cor0.col0 + col2 - 38 FROM tab1 AS cor0
----
178
3667
7738

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2827
SELECT ( - col1 ) * - col0 + CAST( NULL AS SIGNED ) - col2 * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2827
SELECT ( - col1 ) * - col0 + CAST ( NULL AS INTEGER ) - col2 * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 98 * col2 FROM tab2
----
2548
2646
3724

query I rowsort
SELECT - - cor0.col0 * - cor0.col2 * col0 AS col2 FROM tab1 AS cor0
----
-233472
-486
-614400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 35 + col1 col2 FROM tab1 AS cor0
----
45
48
61

query I rowsort
SELECT + 82 - - col0 AS col1 FROM tab1 AS cor0
----
146
162
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-2832
SELECT + col2 DIV col2 AS col2 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2832
SELECT + col2 / col2 AS col2 FROM tab0 cor0
----
1
1
1

query I rowsort
SELECT col2 * col2 + col2 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT + 99 * 36 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ff393261a85d4ec158a92fa151a2e634

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2835
SELECT ALL col2 + col0 / CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2835
SELECT ALL col2 + col0 / CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col2 * - col0 - col0 * col0 AS col0 FROM tab2 AS cor0
----
-238
-8112
-9243

query I rowsort
SELECT + - 4 + + col1 * 27 FROM tab0 AS cor0
----
2318
2453
2615

query I rowsort
SELECT ALL + 57 * - col1 FROM tab0 cor0
----
-4902
-5187
-5529

query I rowsort
SELECT + col1 * cor0.col2 + - col0 AS col0 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT DISTINCT + cor0.col1 * col2 FROM tab1 cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-2841
SELECT + + col2 DIV - cor0.col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2841
SELECT + + col2 / - cor0.col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + 8 AS col1 FROM tab0 AS cor0
----
-8

onlyif mysql # use DIV operator for integer division
query I rowsort label-2843
SELECT ALL - + col2 DIV + col0 + - col2 FROM tab0 AS cor0
----
-1
-34
-82

skipif mysql # not compatible
query I rowsort label-2843
SELECT ALL - + col2 / + col0 + - col2 FROM tab0 AS cor0
----
-1
-34
-82

query I rowsort
SELECT col0 + cor0.col0 + - col1 AS col2 FROM tab2 cor0
----
-17
141
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + ( cor0.col2 ) + + cor0.col0 col1 FROM tab1 AS cor0
----
1328
1407
634

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2846
SELECT - cor0.col0 * CAST( NULL AS SIGNED ) + + 36 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2846
SELECT - cor0.col0 * CAST ( NULL AS INTEGER ) + + 36 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 + + ( - 9 ) * - col2 FROM tab1 AS cor0
----
540
570
960

query I rowsort
SELECT ALL col1 - col1 * - ( - col0 ) FROM tab2
----
-1326
-186
-4543

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( + cor0.col1 ) col0 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT - - 38 AS col0 FROM tab0 AS cor0
----
38
38
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-2851
SELECT DISTINCT ( + cor0.col1 ) DIV - col1 + 65 * 96 col1 FROM tab0 AS cor0
----
6239

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2851
SELECT DISTINCT ( + cor0.col1 ) / - col1 + 65 * 96 col1 FROM tab0 AS cor0
----
6239

query I rowsort
SELECT DISTINCT cor1.col0 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
24
35
89

query I rowsort
SELECT ALL + + col2 + - col0 + + col1 AS col2 FROM tab2 AS cor0
----
-24
51
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-2854
SELECT ALL CAST( col2 + col0 AS SIGNED ) DIV - col0 FROM tab1
----
-1
-19
-2

skipif mysql # not compatible
query I rowsort label-2854
SELECT ALL CAST ( col2 + col0 AS INTEGER ) / - col0 FROM tab1
----
-1
-19
-2

onlyif mysql # use DIV operator for integer division
query I rowsort label-2855
SELECT ALL + 1 DIV - 52 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2855
SELECT ALL + 1 / - 52 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 34 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query I rowsort
SELECT 2 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT + ( 58 ) FROM tab0
----
58
58
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-2859
SELECT - ( - col2 ) DIV ( col2 * col1 ) + - col1 * 70 - cor0.col2 AS col0 FROM tab0 AS cor0
----
-6053
-6452
-6791

skipif mysql # not compatible
query I rowsort label-2859
SELECT - ( - col2 ) / ( col2 * col1 ) + - col1 * 70 - cor0.col2 AS col0 FROM tab0 AS cor0
----
-6053
-6452
-6791

query I rowsort
SELECT ALL col0 * + col1 FROM tab1 cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-2861
SELECT DISTINCT + 61 DIV + col0 AS col2 FROM tab2 AS cor0
----
0
8

skipif mysql # not compatible
query I rowsort label-2861
SELECT DISTINCT + 61 / + col0 AS col2 FROM tab2 AS cor0
----
0
8

query I rowsort
SELECT + 41 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT - ( + ( + col1 ) * - col1 ) + col0 FROM tab2
----
3559
368
968

query I rowsort
SELECT - col2 - col1 * col0 FROM tab1
----
-1136
-132
-697

query I rowsort
SELECT DISTINCT + - cor0.col2 * col1 * col1 + col0 FROM tab1 AS cor0
----
-16144
-36501
-5636

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + col2 * + col2 col1 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT ALL - col2 * cor0.col2 * - cor0.col1 + cor0.col1 FROM tab0 AS cor0
----
194
611975
93740

query I rowsort
SELECT ALL col2 * + col0 AS col2 FROM tab2 cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-2869
SELECT DISTINCT col2 * col1 DIV col1 AS col0 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-2869
SELECT DISTINCT col2 * col1 / col1 AS col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL 12 + + col2 + - col1 AS col1 FROM tab0
----
-41
-84
3

query I rowsort
SELECT 87 - + col1 AS col0 FROM tab2
----
28
56
70

query I rowsort
SELECT DISTINCT - 57 + col1 AS col1 FROM tab0
----
29
34
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col0 * + col0 col2 FROM tab1
----
-4153
-63
-6496

query I rowsort
SELECT - col0 + col1 * + col2 AS col2 FROM tab0
----
2814
62
7373

query I rowsort
SELECT col0 + + col2 * + col1 AS col2 FROM tab0
----
132
2862
7551

query I rowsort
SELECT ALL - 26 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 47d0574274146de273829785364ada39

query I rowsort
SELECT - col2 * tab2.col2 AS col1 FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT + 12 - col2 AS col1 FROM tab2
----
-14
-15
-26

query I rowsort
SELECT ( - 93 ) - tab2.col2 AS col1 FROM tab2
----
-119
-120
-131

query I rowsort
SELECT DISTINCT ( + tab0.col0 ) * col0 - tab0.col0 AS col1 FROM tab0
----
1190
552
7832

query I rowsort
SELECT - 65 - + col2 AS col2 FROM tab1
----
-119
-122
-161

query I rowsort
SELECT DISTINCT + col1 + col0 * col2 * - col2 - col2 * - col2 FROM tab1 AS cor0
----
-204677
-5806
-728051

query I rowsort
SELECT + 15 * col1 + - col2 FROM tab0 AS cor0
----
1257
1283
1454

query I rowsort
SELECT ALL - - 90 FROM tab0 AS cor0
----
90
90
90

query I rowsort
SELECT + ( col2 ) * - col1 FROM tab0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col0 + + cor0.col0 col0 FROM tab1 AS cor0
----
-4032
-6
-6320

query I rowsort
SELECT ALL - col2 + 46 AS col0 FROM tab1
----
-11
-50
-8

query I rowsort
SELECT DISTINCT 54 + - tab2.col2 AS col2 FROM tab2
----
16
27
28

onlyif mysql # use DIV operator for integer division
query I rowsort label-2889
SELECT col0 + - ( - col2 ) + - col2 DIV + tab2.col1 AS col0 FROM tab2
----
104
115
34

skipif mysql # not compatible
query I rowsort label-2889
SELECT col0 + - ( - col2 ) + - col2 / + tab2.col1 AS col0 FROM tab2
----
104
115
34

query I rowsort
SELECT - 59 * col2 + tab2.col2 + tab2.col2 * col0 AS col1 FROM tab2
----
-1377
520
798

onlyif mysql # use DIV operator for integer division
query I rowsort label-2891
SELECT DISTINCT - + cor0.col2 DIV col0 - - col1 AS col0 FROM tab2 AS cor0
----
17
28
59

skipif mysql # not compatible
query I rowsort label-2891
SELECT DISTINCT - + cor0.col2 / col0 - - col1 AS col0 FROM tab2 AS cor0
----
17
28
59

query I rowsort
SELECT ( + tab2.col2 ) * col0 FROM tab2
----
189
2028
3002

query I rowsort
SELECT DISTINCT + 1 * col1 * + col2 + col0 AS col1 FROM tab1
----
1328
1407
634

query I rowsort
SELECT DISTINCT + - 29 + - col0 + col2 AS col0 FROM tab2 AS cor0
----
-70
-81
-9

query I rowsort
SELECT ALL - 21 * col0 FROM tab2 AS cor0
----
-147
-1638
-1659

query I rowsort
SELECT ALL - - col0 + cor0.col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL - 25 + + cor0.col2 * col0 FROM tab1 AS cor0
----
137
3623
7655

query I rowsort
SELECT - - 35 * cor0.col0 + col2 AS col2 FROM tab1 AS cor0
----
159
2297
2896

query I rowsort
SELECT DISTINCT + + col0 + col2 * col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT DISTINCT + 76 * col1 + + col2 FROM tab2 AS cor0
----
1330
2383
4510

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + col1 col0 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT ALL - col2 * + col0 * + tab2.col0 FROM tab2
----
-1323
-158184
-237158

query I rowsort
SELECT col0 * - col0 - col1 * + col0 FROM tab0
----
-16020
-2640
-4620

query I rowsort
SELECT col2 - + tab2.col1 FROM tab2
----
-33
-4
21

query I rowsort
SELECT - tab2.col2 * + tab2.col0 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT col0 * + col0 + + col2 FROM tab2
----
6110
6279
76

query I rowsort
SELECT + col1 * col2 * + col1 + + col1 * tab2.col1 FROM tab2 WHERE - col1 + - col1 <= col2
----
11271
26908
93987

query I rowsort
SELECT + col1 * + col2 * + col0 AS col1 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT ALL + col0 + cor0.col2 * col1 FROM tab2 AS cor0
----
1612
725
844

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col1 + - cor0.col1 * - col1 col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2911
SELECT DISTINCT - col2 + - col0 DIV + col0 - col2 FROM tab0 AS cor0
----
-165
-3
-67

skipif mysql # not compatible
query I rowsort label-2911
SELECT DISTINCT - col2 + - col0 / + col0 - col2 FROM tab0 AS cor0
----
-165
-3
-67

query I rowsort
SELECT + col0 * - cor0.col1 - - col0 AS col0 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE NOT ( NULL ) BETWEEN col2 AND - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col0 * + tab0.col2 col0 FROM tab0
----
-34
-7216
-759

query I rowsort
SELECT DISTINCT col0 * col1 - col2 AS col0 FROM tab2
----
1305
190
4576

onlyif mysql # use DIV operator for integer division
query I rowsort label-2916
SELECT + tab2.col0 * + col0 + + col1 DIV tab2.col0 FROM tab2
----
53
6084
6241

skipif mysql # not compatible
query I rowsort label-2916
SELECT + tab2.col0 * + col0 + + col1 / tab2.col0 FROM tab2
----
53
6084
6241

query I rowsort
SELECT DISTINCT - col0 * + col0 + + col2 - + tab0.col0 FROM tab0
----
-1259
-567
-7928

query I rowsort
SELECT - col1 + col0 + + col1 FROM tab2
----
7
78
79

query III rowsort
SELECT * FROM tab1 WHERE + col2 = col2 - - col0
----

query I rowsort
SELECT ALL - col1 * + col0 + + tab1.col1 * tab1.col1 + + col1 FROM tab1
----
-530
-858
624

query I rowsort
SELECT DISTINCT + col2 * + col0 * col2 FROM tab1
----
207936
737280
8748

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 * + col0 + - col1 BETWEEN - col2 AND - col2 + col1
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT ALL + col0 AS col1 FROM tab0 WHERE ( NULL ) NOT IN ( col2 + - col2 )
----

query I rowsort
SELECT col1 + + col0 - col2 * col1 FROM tab1
----
-1155
-1375
-496

query I rowsort
SELECT ALL tab2.col1 * + col1 AS col1 FROM tab2 WHERE NULL NOT BETWEEN ( NULL ) AND col0 * - col1
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2926
SELECT DISTINCT - + col0 DIV - col2 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-2926
SELECT DISTINCT - + col0 / - col2 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT + col0 + col1 * cor0.col1 AS col0 FROM tab1 AS cor0
----
164
249
679

onlyif mysql # use DIV operator for integer division
query I rowsort label-2928
SELECT ALL - - col1 DIV + cor0.col0 + + cor0.col2 * col0 * + col1 FROM tab1 AS cor0
----
36480
4220
99840

skipif mysql # not compatible
query I rowsort label-2928
SELECT ALL - - col1 / + cor0.col0 + + cor0.col2 * col0 * + col1 FROM tab1 AS cor0
----
36480
4220
99840

query I rowsort
SELECT + col0 * + col1 * col0 FROM tab0 cor0
----
118825
49536
720811

query I rowsort
SELECT ALL col2 * col2 + + col1 AS col1 FROM tab2 WHERE NOT NULL = NULL
----

query I rowsort
SELECT + col0 * - cor0.col0 * col0 AS col1 FROM tab1 AS cor0
----
-262144
-27
-512000

query I rowsort
SELECT ALL - col0 * - cor0.col1 + - col2 * col1 AS col2 FROM tab0 AS cor0
----
-774
3298
637

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * + col2 + cor0.col0 + col2 * - col2 col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT - col2 * + cor0.col2 + - col1 * + col1 AS col2 FROM tab2 cor0
----
-1690
-1733
-4157

onlyif mysql # use DIV operator for integer division
query I rowsort label-2935
SELECT ALL - - col1 DIV cor0.col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2935
SELECT ALL - - col1 / cor0.col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT - - col2 + col0 * col1 AS col2 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT + col2 + + cor0.col1 * col1 AS col0 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT + col0 - cor0.col1 * - cor0.col0 AS col0 FROM tab2 cor0
----
1422
224
4680

query I rowsort
SELECT ALL col0 * col0 FROM tab0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT DISTINCT + + 26 - 21 AS col0 FROM tab0 AS cor0
----
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 31 col0 FROM tab1 AS cor0
----
-31
-31
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - cor0.col2 col1 FROM tab2 AS cor0
----
-20
41
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + 88 + col0 col0 FROM tab2 AS cor0
----
-2210
-2369
-3265

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 + 30 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 5771b90849dfeb38848b8becaa1541d8

query I rowsort
SELECT - 17 + cor0.col2 * - col2 AS col1 FROM tab2 AS cor0
----
-1461
-693
-746

query I rowsort
SELECT + - ( col0 ) + + col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT - - ( + col1 ) + + col2 * - 68 FROM tab0 AS cor0
----
-2158
-5485
29

query I rowsort
SELECT - cor1.col0 + - cor0.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f6d49ea50771002fc2a66dea87c38dd1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2949
SELECT - - CAST( NULL AS DECIMAL ) + + col2 + col1 col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2949
SELECT - - CAST ( NULL AS REAL ) + + col2 + col1 col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2950
SELECT + CAST( + col1 AS SIGNED ) + - col0 + - col2 * - col2 FROM tab2 AS cor0
----
1382
657
753

skipif mysql # not compatible
query I rowsort label-2950
SELECT + CAST ( + col1 AS INTEGER ) + - col0 + - col2 * - col2 FROM tab2 AS cor0
----
1382
657
753

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2951
SELECT - CAST( NULL AS SIGNED ) - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2951
SELECT - CAST ( NULL AS INTEGER ) - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( 50 ) * - cor0.col0 + + col1 + col2 AS col1 FROM tab0 cor0
----
-1081
-1652
-4277

query I rowsort
SELECT - ( col1 ) + col2 * - 46 * ( + col2 ) + col1 FROM tab0
----
-309304
-46
-50094

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * + col2 col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT + 98 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - col2 * + ( 89 ) col1 FROM tab1 AS cor0
----
-4752
-5016
-8448

query I rowsort
SELECT tab1.col0 * - col1 * + col2 AS col0 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT + - col1 * col2 * - col1 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT ALL - col2 * 76 * - col2 FROM tab0
----
511024
76
82764

query I rowsort
SELECT DISTINCT + cor0.col2 * - 50 AS col1 FROM tab0 AS cor0
----
-1650
-4100
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 15 col2 FROM tab0 AS cor0
----
1335
360
525

query IIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 WHERE NULL <= ( NULL )
----

query I rowsort
SELECT + - ( col0 ) - col1 AS col1 FROM tab1 cor0
----
-29
-74
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-2964
SELECT 22 + col1 DIV - cor0.col0 col0 FROM tab1 AS cor0
----
14
22
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2964
SELECT 22 + col1 / - cor0.col0 col0 FROM tab1 AS cor0
----
14
22
22

onlyif mysql # use DIV operator for integer division
query I rowsort label-2965
SELECT col1 * + cor0.col2 + col1 * - col2 DIV col2 AS col1 FROM tab0 cor0
----
0
2752
7371

skipif mysql # not compatible
query I rowsort label-2965
SELECT col1 * + cor0.col2 + col1 * - col2 / col2 AS col1 FROM tab0 cor0
----
0
2752
7371

query I rowsort
SELECT ALL cor1.col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT + 81 + 86 FROM tab2 AS cor0
----
167
167
167

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2968
SELECT CAST( NULL AS SIGNED ) + 0 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2968
SELECT CAST ( NULL AS INTEGER ) + 0 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + 93 FROM tab2, tab0 AS cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query I rowsort
SELECT + 35 - + 11 FROM tab0 cor0
----
24
24
24

query I rowsort
SELECT + + ( + col1 ) AS col0 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT DISTINCT + - 96 AS col2 FROM tab0 AS cor0
----
-96

query I rowsort
SELECT + 31 + cor0.col0 FROM tab0 AS cor0
----
120
55
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-2974
SELECT DISTINCT + ( - col1 ) * + tab0.col0 * - col2 + - col0 * - col1 + col1 DIV tab0.col0 AS col2 FROM tab0
----
672218
6792
70179

skipif mysql # not compatible
query I rowsort label-2974
SELECT DISTINCT + ( - col1 ) * + tab0.col0 * - col2 + - col0 * - col1 + col1 / tab0.col0 AS col2 FROM tab0
----
672218
6792
70179

onlyif mysql # use DIV operator for integer division
query I rowsort label-2975
SELECT + col0 + col1 DIV - col1 FROM tab1 AS cor0
----
2
63
79

skipif mysql # not compatible
query I rowsort label-2975
SELECT + col0 + col1 / - col1 FROM tab1 AS cor0
----
2
63
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 22 col1 FROM tab0 AS cor0
----
22
22
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * + ( + col2 ) col0 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL - tab2.col2 * + tab2.col0 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT ALL col0 * - col2 AS col0 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT - + cor0.col2 + + col1 FROM tab0 AS cor0
----
53
9
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2981
SELECT DISTINCT + + col0 DIV 82 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2981
SELECT DISTINCT + + col0 / 82 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT ALL col1 * - col0 + ( ( + col2 ) ) AS col1 FROM tab1
----
-24
-583
-944

onlyif mysql # use DIV operator for integer division
query I rowsort label-2983
SELECT DISTINCT + col1 + tab1.col0 DIV - 5 FROM tab1
----
-2
-3
26

skipif mysql # not compatible
query I rowsort label-2983
SELECT DISTINCT + col1 + tab1.col0 / - 5 FROM tab1
----
-2
-3
26

query I rowsort
SELECT ALL - 95 * col1 + - col1 - - ( col0 * ( 60 ) + - col2 * - col0 ) FROM tab2 AS cor0
----
-2367
1044
6110

query I rowsort
SELECT DISTINCT cor0.col0 * - col2 + col0 AS col1 FROM tab1 cor0
----
-159
-3584
-7600

query I rowsort
SELECT - + col0 * + cor0.col0 FROM tab2 cor0
----
-49
-6084
-6241

query I rowsort
SELECT ALL - 63 * + cor0.col2 FROM tab1 AS cor0
----
-3402
-3591
-6048

query I rowsort
SELECT + - col2 + - col2 * ( - 81 ) FROM tab2 AS cor0
----
2080
2160
3040

query I rowsort
SELECT DISTINCT + 65 AS col1 FROM tab1 AS cor0
----
65

query I rowsort
SELECT ALL - ( + cor0.col2 ) FROM tab0 cor0
----
-1
-33
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2991
SELECT + - 2 + col2 * CAST( NULL AS SIGNED ) * + 69 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2991
SELECT + - 2 + col2 * CAST ( NULL AS INTEGER ) * + 69 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * - 96 FROM tab2 AS cor0
----
-672
-7488
-7584

query I rowsort
SELECT DISTINCT + col0 + 43 AS col1 FROM tab2 AS cor0
----
121
122
50

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2994
SELECT - + col1 + CAST( NULL AS SIGNED ) * + col1 * + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2994
SELECT - + col1 + CAST ( NULL AS INTEGER ) * + col1 * + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 + col0 AS col2 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT ALL + 66 + + col2 * + col1 AS col0 FROM tab1 AS cor0
----
1314
1470
636

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2997
SELECT - + CAST( NULL AS DECIMAL ) * 9 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2997
SELECT - + CAST ( NULL AS REAL ) * 9 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 57 * col1 + cor0.col1 AS col2 FROM tab0 AS cor0
----
4988
5278
5626

query I rowsort
SELECT - 6 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

query I rowsort
SELECT DISTINCT - cor1.col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
-54
-57
-96

query I rowsort
SELECT ALL + + col2 + + col0 + + col2 AS col1 FROM tab0 AS cor0
----
253
37
90

query I rowsort
SELECT ALL - col0 * cor0.col2 + + col1 + - col0 AS col0 FROM tab1 AS cor0
----
-139
-3702
-7747

onlyif mysql # use DIV operator for integer division
query I rowsort label-3003
SELECT DISTINCT - col0 + - col1 DIV + col2 + - 3 FROM tab1 AS cor0
----
-6
-67
-83

skipif mysql # not compatible
query I rowsort label-3003
SELECT DISTINCT - col0 + - col1 / + col2 + - 3 FROM tab1 AS cor0
----
-6
-67
-83

query I rowsort
SELECT ALL + ( cor0.col2 ) FROM tab1, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

onlyif mysql # use DIV operator for integer division
query I rowsort label-3005
SELECT DISTINCT 3 DIV - col1 - - col2 AS col1 FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-3005
SELECT DISTINCT 3 / - col1 - - col2 AS col1 FROM tab2
----
26
27
38

query I rowsort
SELECT col2 * col2 * + col1 - - col1 AS col2 FROM tab1
----
119821
32500
75842

query I rowsort
SELECT ALL 81 - + col1 AS col1 FROM tab1
----
55
68
71

query I rowsort
SELECT DISTINCT + + 97 AS col2 FROM tab1 cor0
----
97

query I rowsort
SELECT + + col0 * col1 - col2 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT + + tab2.col1 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT - 7 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

query I rowsort
SELECT ALL col0 + 4 * col2 AS col0 FROM tab0
----
156
39
417

onlyif mysql # use DIV operator for integer division
query I rowsort label-3013
SELECT ( col1 ) + col2 * - col1 DIV col1 AS col1 FROM tab1
----
-28
-47
-83

skipif mysql # not compatible
query I rowsort label-3013
SELECT ( col1 ) + col2 * - col1 / col1 AS col1 FROM tab1
----
-28
-47
-83

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2, tab1 cor0, tab2 cor1
----
972 values hashing to 2507aa9f48c3db94de9fec065edf3731

onlyif mysql # use DIV operator for integer division
query I rowsort label-3015
SELECT DISTINCT 9 DIV 52 + - col1 AS col1 FROM tab0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-3015
SELECT DISTINCT 9 / 52 + - col1 AS col1 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT - ( - col1 ) * - 75 + + 88 FROM tab0 AS cor0
----
-6362
-6737
-7187

query I rowsort
SELECT DISTINCT 1 AS col2 FROM tab0
----
1

query I rowsort
SELECT ALL tab0.col1 * col2 + col0 FROM tab0
----
132
2862
7551

onlyif mysql # use DIV operator for integer division
query I rowsort label-3019
SELECT ALL - 16 DIV col1 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3019
SELECT ALL - 16 / col1 FROM tab1
----
-1
-1
0

query I rowsort
SELECT + - 81 + col0 FROM tab0 cor0
----
-46
-57
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-3021
SELECT tab0.col1 DIV + col0 AS col2 FROM tab0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-3021
SELECT tab0.col1 / + col0 AS col2 FROM tab0
----
1
2
3

query I rowsort
SELECT + 94 * col0 FROM tab1
----
282
6016
7520

query I rowsort
SELECT col2 * col0 + + col2 AS col0 FROM tab1
----
216
3705
7776

query I rowsort
SELECT col0 + ( - ( col0 ) ) AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT col1 + 67 * col1 FROM tab1
----
1768
680
884

query I rowsort
SELECT DISTINCT + col2 * tab1.col0 AS col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT col1 + 21 FROM tab1 AS cor0
----
31
34
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 99 col1 FROM tab1
----
297
6336
7920

onlyif mysql # use DIV operator for integer division
query I rowsort label-3029
SELECT + tab1.col1 DIV 38 FROM tab1, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-3029
SELECT + tab1.col1 / 38 FROM tab1, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT + col1 + 28 FROM tab0
----
114
119
125

query I rowsort
SELECT + cor0.col0 * + col2 AS col0 FROM tab2 cor0
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 32 + + ( + col2 ) * 57 col0 FROM tab0 cor0
----
1849
25
4642

query I rowsort
SELECT ALL 83 + + ( cor0.col2 ) AS col1 FROM tab2 AS cor0
----
109
110
121

query I rowsort
SELECT ALL - - col0 + col0 - - col0 * + col2 AS col1 FROM tab2 AS cor0
----
203
2184
3160

query I rowsort
SELECT DISTINCT - - col1 + + col2 AS col2 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT ALL 34 * col0 FROM tab0 AS cor0
----
1190
3026
816

query I rowsort
SELECT ALL - - 96 - - col2 AS col0 FROM tab1 AS cor0
----
150
153
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 90 + + ( - cor0.col1 ) col2 FROM tab0 AS cor0
----
-1
-7
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3039
SELECT + col1 + CAST( NULL AS SIGNED ) * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3039
SELECT + col1 + CAST ( NULL AS INTEGER ) * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + - ( - col1 * col2 ) FROM tab0
----
194
2924
7553

query I rowsort
SELECT col1 * 47 - 18 AS col0 FROM tab2
----
1439
2755
781

query I rowsort
SELECT - col1 - tab1.col1 * - col0 FROM tab1
----
1027
52
630

query I rowsort
SELECT - 36 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

onlyif mysql # use DIV operator for integer division
query I rowsort label-3044
SELECT + col0 DIV + col1 AS col1 FROM tab1 cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-3044
SELECT + col0 / + col1 AS col1 FROM tab1 cor0
----
0
6
6

query I rowsort
SELECT ALL cor0.col1 * col1 - - 79 FROM tab2 AS cor0
----
1040
3560
368

query I rowsort
SELECT + col2 * + 15 FROM tab2 AS cor0
----
390
405
570

query I rowsort
SELECT - ( + 33 ) + col0 * 24 AS col2 FROM tab0 AS cor0
----
2103
543
807

query I rowsort
SELECT ALL ( - col1 ) + col0 - col0 * + col1 FROM tab2 AS cor0
----
-1281
-241
-4583

query I rowsort
SELECT + + col0 * col2 + + col1 FROM tab2 cor0
----
2087
220
3019

query I rowsort
SELECT DISTINCT ( 72 ) * - col0 FROM tab1 cor0
----
-216
-4608
-5760

query I rowsort
SELECT ALL + ( - cor0.col1 ) * col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT 76 - 2 FROM tab2 cor0
----
74
74
74

query I rowsort
SELECT + col1 * col1 * + col2 + - 13 AS col1 FROM tab0 AS cor0
----
244055
679029
9396

query I rowsort
SELECT DISTINCT cor0.col2 - + col2 FROM tab2 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3055
SELECT - - col2 DIV - cor0.col1 + col0 AS col2 FROM tab2 cor0
----
7
77
78

skipif mysql # not compatible
query I rowsort label-3055
SELECT - - col2 / - cor0.col1 + col0 AS col2 FROM tab2 cor0
----
7
77
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3056
SELECT ALL + - CAST( cor0.col2 AS SIGNED ) FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-3056
SELECT ALL + - CAST ( cor0.col2 AS INTEGER ) FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT + + 28 + + 69 FROM tab1 cor0
----
97

query I rowsort
SELECT 33 AS col1 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + col0 col1 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT 42 * - col1 FROM tab0
----
-3612
-3822
-4074

query I rowsort
SELECT DISTINCT + + 33 * col0 FROM tab1 AS cor0
----
2112
2640
99

query I rowsort
SELECT DISTINCT col1 + col0 * + col2 * - col2 AS col1 FROM tab1 AS cor0
----
-207926
-737267
-8722

query I rowsort
SELECT 85 * + col1 * 12 FROM tab1 AS cor0
----
10200
13260
26520

query I rowsort
SELECT DISTINCT - 73 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-73

query I rowsort
SELECT ALL 76 AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

onlyif mysql # use DIV operator for integer division
query I rowsort label-3066
SELECT DISTINCT col2 DIV 86 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3066
SELECT DISTINCT col2 / 86 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - col1 * ( col2 ) * + col0 + - col2 AS col2 FROM tab0 AS cor0
----
-3396
-664200
-68145

query I rowsort
SELECT ALL col2 + - cor0.col2 AS col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 * col0 + - col1 * col0 * - col1 FROM tab1 AS cor0
----
10048
21200
2190

query I rowsort
SELECT ( - col2 ) * - ( + tab1.col0 ) AS col2 FROM tab1
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 31 + col1 col2 FROM tab2
----
-14
0
28

query I rowsort
SELECT - col1 + - 2 AS col0 FROM tab2
----
-19
-33
-61

query I rowsort
SELECT - 55 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to b90e74bece5521b514096c5b6e105fde

onlyif mysql # use DIV operator for integer division
query I rowsort label-3074
SELECT DISTINCT + col1 + - col2 DIV + col1 + - col2 FROM tab1 AS cor0
----
-30
-52
-90

skipif mysql # not compatible
query I rowsort label-3074
SELECT DISTINCT + col1 + - col2 / + col1 + - col2 FROM tab1 AS cor0
----
-30
-52
-90

query I rowsort
SELECT DISTINCT col2 * + ( col0 ) - + col2 AS col0 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT ALL + col0 + - col0 * col0 FROM tab1 cor0
----
-4032
-6
-6320

query I rowsort
SELECT DISTINCT - col2 + + 99 * col1 AS col2 FROM tab2 AS cor0
----
1645
3042
5815

query I rowsort
SELECT col0 * - 0 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3079
SELECT DISTINCT - col1 + CAST( NULL AS DECIMAL ) * - col1 AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3079
SELECT DISTINCT - col1 + CAST ( NULL AS REAL ) * - col1 AS col0 FROM tab0 cor0
----
NULL

query I rowsort
SELECT + + col2 * 96 + + col1 * 40 AS col0 FROM tab2 AS cor0
----
3832
4328
4856

query I rowsort
SELECT - + col0 * col1 - cor0.col1 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT DISTINCT - col2 + - col0 + col1 * col1 * col2 FROM tab0
----
244011
678871
9373

query I rowsort
SELECT ALL + cor0.col0 * 5 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to de286ddac87441782c31e5bb785e1506

query I rowsort
SELECT DISTINCT + 23 * + cor0.col2 FROM tab0 AS cor0
----
1886
23
759

query I rowsort
SELECT ALL col2 + + col2 AS col2 FROM tab0
----
164
2
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-3086
SELECT ALL col1 DIV col1 + + col1 AS col2 FROM tab1
----
11
14
27

skipif mysql # not compatible
query I rowsort label-3086
SELECT ALL col1 / col1 + + col1 AS col2 FROM tab1
----
11
14
27

query I rowsort
SELECT cor0.col0 * cor0.col0 + col2 * + col1 FROM tab2 AS cor0
----
6887
7618
886

query I rowsort
SELECT ALL + 8 FROM tab0, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af

query I rowsort
SELECT DISTINCT + 26 + col0 AS col2 FROM tab2 AS cor0
----
104
105
33

query I rowsort
SELECT + - 78 * + cor0.col2 FROM tab1 AS cor0
----
-4212
-4446
-7488

query I rowsort
SELECT - + 72 + cor0.col1 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to 1e89d4caac43c937412f6e8ceb08cffc

query I rowsort
SELECT DISTINCT col0 + col0 * - col1 AS col2 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT ALL - col2 * + col1 + col2 AS col1 FROM tab1 cor0
----
-1152
-1350
-513

query I rowsort
SELECT ALL - col2 * - col0 + - col1 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT ALL - col0 * - tab1.col0 - + 61 FROM tab1
----
-52
4035
6339

query I rowsort
SELECT ALL + tab1.col1 * col2 * + 98 - tab1.col1 FROM tab1
----
122291
137566
55850

query I rowsort
SELECT DISTINCT + cor0.col2 + - 16 * + col0 FROM tab2 AS cor0
----
-1222
-1226
-85

query I rowsort
SELECT ALL + col2 * col0 + + col2 * + col1 + - ( col1 * + col1 ) FROM tab0 AS cor0
----
-3766
-9277
6479

query I rowsort
SELECT ALL - cor0.col2 + cor0.col2 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3100
SELECT DISTINCT + col1 + - CAST( NULL AS SIGNED ) * 59 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3100
SELECT DISTINCT + col1 + - CAST ( NULL AS INTEGER ) * 59 FROM tab2
----
NULL

query I rowsort
SELECT ALL + - col2 - col1 * - col1 AS col2 FROM tab1 cor0
----
43
622
73

query I rowsort
SELECT - cor0.col1 - - cor0.col2 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT + - ( - col2 ) + + col2 * 2 - cor0.col2 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT - 9 * + col0 AS col2 FROM tab2
----
-63
-702
-711

query I rowsort
SELECT ALL col1 * + 69 + - col1 AS col0 FROM tab2 AS cor0
----
1156
2108
4012

query I rowsort
SELECT ALL + - col2 * 49 FROM tab2 AS cor0
----
-1274
-1323
-1862

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 cor0, tab0 cor1, tab1 AS cor2
----
972 values hashing to 0a9194f200a4220e419d35c461f9fcfe

query I rowsort
SELECT DISTINCT - col0 - + col2 * cor0.col0 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT + col1 * + col0 + col0 * ( + cor0.col2 ) FROM tab0 AS cor0
----
15397
2856
3430

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3110
SELECT - - CAST( + col0 AS SIGNED ) - cor0.col1 AS col2 FROM tab2 AS cor0
----
-24
19
62

skipif mysql # not compatible
query I rowsort label-3110
SELECT - - CAST ( + col0 AS INTEGER ) - cor0.col1 AS col2 FROM tab2 AS cor0
----
-24
19
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-3111
SELECT DISTINCT + - col0 * col2 DIV cor0.col2 AS col2 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-3111
SELECT DISTINCT + - col0 * col2 / cor0.col2 AS col2 FROM tab1 AS cor0
----
-3
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3112
SELECT + + 39 DIV col0 FROM tab2 AS cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-3112
SELECT + + 39 / col0 FROM tab2 AS cor0
----
0
0
5

onlyif mysql # use DIV operator for integer division
query I rowsort label-3113
SELECT - tab0.col2 + col2 DIV col2 FROM tab0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-3113
SELECT - tab0.col2 + col2 / col2 FROM tab0
----
-32
-81
0

query I rowsort
SELECT ALL + - cor0.col1 + - cor0.col0 AS col1 FROM tab1 cor0
----
-29
-74
-93

query I rowsort
SELECT + ( cor0.col2 ) * + ( cor0.col1 ) FROM tab1 AS cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col0 col2 FROM tab1 cor0
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT + col1 * cor0.col1 AS col0 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT - col2 * 45 AS col0 FROM tab2 AS cor0
----
-1170
-1215
-1710

query I rowsort
SELECT + col0 * - ( + 96 ) * col2 FROM tab2 cor0
----
-18144
-194688
-288192

query I rowsort
SELECT ALL + cor0.col1 + + col0 * + col2 AS col1 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT - col1 + + 79 AS col1 FROM tab1 AS cor0
----
53
66
69

query I rowsort
SELECT ALL + cor0.col0 - + col2 AS col0 FROM tab2 AS cor0
----
-20
41
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3123
SELECT DISTINCT + + col1 * CAST( 43 AS SIGNED ) + - col2 FROM tab2 cor0
----
1306
2511
693

skipif mysql # not compatible
query I rowsort label-3123
SELECT DISTINCT + + col1 * CAST ( 43 AS INTEGER ) + - col2 FROM tab2 cor0
----
1306
2511
693

query I rowsort
SELECT ALL 62 * - col1 AS col0 FROM tab1
----
-1612
-620
-806

query I rowsort
SELECT DISTINCT + + col2 + + col0 AS col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT - col0 * ( + col1 ) AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT + 24 * + col2 FROM tab2
----
624
648
912

query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab2, tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT + col0 * + 31 + - 27 * - col0 FROM tab0
----
1392
2030
5162

query I rowsort
SELECT + + col1 * 3 AS col0 FROM tab1 AS cor0
----
30
39
78

query I rowsort
SELECT - col2 * - 88 FROM tab2 AS cor0
----
2288
2376
3344

query I rowsort
SELECT 5 + 37 FROM tab1, tab1 AS cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query I rowsort
SELECT 85 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query I rowsort
SELECT ALL + col1 * 74 FROM tab1
----
1924
740
962

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 16 col1 FROM tab0 AS cor0
----
16
16
16

onlyif mysql # use DIV operator for integer division
query I rowsort label-3136
SELECT DISTINCT CAST( + 65 * + col2 AS SIGNED ) + + 35 DIV + 19 AS col0 FROM tab1
----
3511
3706
6241

skipif mysql # not compatible
query I rowsort label-3136
SELECT DISTINCT CAST ( + 65 * + col2 AS INTEGER ) + + 35 / + 19 AS col0 FROM tab1
----
3511
3706
6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-3137
SELECT ALL + 57 + col1 DIV tab0.col1 AS col2 FROM tab0
----
58
58
58

skipif mysql # not compatible
query I rowsort label-3137
SELECT ALL + 57 + col1 / tab0.col1 AS col2 FROM tab0
----
58
58
58

query I rowsort
SELECT DISTINCT - col2 * - col2 + ( 35 ) FROM tab0 AS cor0
----
1124
36
6759

onlyif mysql # use DIV operator for integer division
query I rowsort label-3139
SELECT ALL + 32 DIV col2 AS col2 FROM tab0 AS cor0
----
0
0
32

skipif mysql # not compatible
query I rowsort label-3139
SELECT ALL + 32 / col2 AS col2 FROM tab0 AS cor0
----
0
0
32

query I rowsort
SELECT - - 19 + col0 + + col0 AS col2 FROM tab2 AS cor0
----
175
177
33

query I rowsort
SELECT DISTINCT tab2.col0 FROM tab2, tab2 AS cor0, tab0 cor1
----
7
78
79

query I rowsort
SELECT ALL + + 71 * col2 FROM tab0 AS cor0
----
2343
5822
71

query I rowsort
SELECT DISTINCT - + ( cor0.col0 ) + col0 AS col1 FROM tab0 cor0
----
0

query I rowsort
SELECT ALL + ( cor0.col0 ) AS col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL - col1 + - col0 AS col0 FROM tab2 cor0
----
-137
-38
-96

query I rowsort
SELECT DISTINCT - 30 + + col0 * col1 FROM tab2 AS cor0
----
1313
187
4572

query I rowsort
SELECT DISTINCT + 6 * col2 + + col1 FROM tab2 AS cor0
----
193
215
245

query I rowsort
SELECT ALL + 32 FROM tab0 cor0
----
32
32
32

query I rowsort
SELECT ALL - ( 29 ) + col1 FROM tab2
----
-12
2
30

query I rowsort
SELECT + - 25 + col0 * cor0.col1 FROM tab1 AS cor0
----
1015
53
615

query I rowsort
SELECT 81 + col1 FROM tab2 cor0
----
112
140
98

query I rowsort
SELECT ALL ( cor0.col2 ) * col0 * - 33 FROM tab2 AS cor0
----
-6237
-66924
-99066

query I rowsort
SELECT + col0 + + cor0.col1 * cor0.col2 AS col0 FROM tab1 AS cor0
----
1328
1407
634

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - cor0.col2 * - col1 col0 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT - - col1 * col1 + - 43 FROM tab0 AS cor0
----
7353
8238
9366

query I rowsort
SELECT + - col0 * - ( col0 ) + - col0 FROM tab1 AS cor0
----
4032
6
6320

query I rowsort
SELECT + cor0.col2 + + ( - cor0.col1 ) + col2 * - cor0.col2 FROM tab1 AS cor0
----
-2888
-3202
-9133

onlyif mysql # use DIV operator for integer division
query I rowsort label-3158
SELECT + - col2 - col2 DIV - 34 AS col1 FROM tab1 cor0
----
-53
-56
-94

skipif mysql # not compatible
query I rowsort label-3158
SELECT + - col2 - col2 / - 34 AS col1 FROM tab1 cor0
----
-53
-56
-94

query I rowsort
SELECT col2 * ( ( col2 ) * - col2 + + col2 ) FROM tab1 AS cor0
----
-154548
-181944
-875520

query I rowsort
SELECT col2 + - 3 * + col1 AS col1 FROM tab1 AS cor0
----
-24
27
57

query I rowsort
SELECT - 35 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 6d967b3bac2e01a0318865f682f9a97b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3162
SELECT + cor0.col0 / - CAST( NULL AS SIGNED ) + - 34 / col2 + ( 97 + col1 ) * - CAST( cor0.col1 AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3162
SELECT + cor0.col0 / - CAST ( NULL AS INTEGER ) + - 34 / col2 + ( 97 + col1 ) * - CAST ( cor0.col1 AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + - cor0.col0 + col0 * - col1 FROM tab0 AS cor0
----
-2112
-3465
-8277

query I rowsort
SELECT ALL cor0.col2 * 88 FROM tab1 AS cor0
----
4752
5016
8448

query I rowsort
SELECT + 79 * 72 + cor0.col0 + + col1 * ( + col2 ) * - 95 AS col2 FROM tab0 AS cor0
----
-263898
-3492
-703113

query I rowsort
SELECT DISTINCT - ( col1 ) * cor0.col1 * col0 AS col2 FROM tab1 cor0
----
-13520
-2028
-6400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 83 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 60 ) - - cor0.col2 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to fc1ce2c9c126dba69f581ae7dde1f393

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col2 * + tab1.col0 col1 FROM tab1
----
36480
4212
99840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + 35 col2 FROM tab1
----
1890
1995
3360

query I rowsort
SELECT ALL ( 86 ) + col1 AS col0 FROM tab1 cor0
----
112
96
99

query I rowsort
SELECT + cor0.col0 + col0 + + col0 AS col0 FROM tab0 AS cor0
----
105
267
72

query I rowsort
SELECT ALL ( - col2 ) + col2 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT 53 + - col2 AS col0 FROM tab2 AS cor0
----
15
26
27

query I rowsort
SELECT ALL + 53 * - 21 + - cor0.col1 + + col2 AS col2 FROM tab0 cor0
----
-1122
-1166
-1209

onlyif mysql # use DIV operator for integer division
query I rowsort label-3176
SELECT DISTINCT + + 0 + col0 DIV + col1 + - ( col1 ) DIV col0 AS col2 FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-3176
SELECT DISTINCT + + 0 + col0 / + col1 + - ( col1 ) / col0 AS col2 FROM tab0 AS cor0
----
-1
-2
-3

query I rowsort
SELECT DISTINCT + + col2 + + 43 FROM tab1 AS cor0
----
100
139
97

query I rowsort
SELECT col2 * - ( col0 ) FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL 25 * - col1 FROM tab2 AS cor0
----
-1475
-425
-775

query I rowsort
SELECT ALL 26 + col2 + col2 FROM tab1 cor0
----
134
140
218

query I rowsort
SELECT DISTINCT - cor0.col2 + - 7 AS col1 FROM tab0 AS cor0
----
-40
-8
-89

query I rowsort
SELECT + + col0 + + 53 * col0 AS col1 FROM tab1 AS cor0
----
162
3456
4320

query I rowsort
SELECT - col1 * - 12 FROM tab0
----
1032
1092
1164

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3184
SELECT col2 * - CAST( 72 + col0 AS SIGNED ) FROM tab2
----
-2133
-3900
-5738

skipif mysql # not compatible
query I rowsort label-3184
SELECT col2 * - CAST ( 72 + col0 AS INTEGER ) FROM tab2
----
-2133
-3900
-5738

query I rowsort
SELECT ALL + tab0.col2 * + ( - tab0.col1 ) FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT - col2 * - 97 AS col0 FROM tab0
----
3201
7954
97

query I rowsort
SELECT DISTINCT ( col1 ) * + col0 + + ( col1 ) * + col2 FROM tab0 cor0
----
15561
3492
4902

query I rowsort
SELECT ALL + col1 * + col1 * col1 + col0 FROM tab1 AS cor0
----
1064
17579
2277

query I rowsort
SELECT - 51 + col0 AS col1 FROM tab0 AS cor0
----
-16
-27
38

query I rowsort
SELECT - col2 * - tab0.col0 * - col1 + + ( 65 + col2 ) FROM tab0
----
-3329
-663971
-68014

query I rowsort
SELECT DISTINCT col2 * - col0 + col1 + col2 * - col0 FROM tab1
----
-15347
-298
-7286

query I rowsort
SELECT DISTINCT - 56 AS col0 FROM tab2, tab1 cor0
----
-56

onlyif mysql # use DIV operator for integer division
query I rowsort label-3193
SELECT ALL + 34 + - ( col2 ) DIV - col1 col0 FROM tab1
----
36
39
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3193
SELECT ALL + 34 + - ( col2 ) / - col1 col0 FROM tab1
----
36
39
41

query I rowsort
SELECT - + ( - col1 ) FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT - ( col0 ) * col0 * + cor0.col0 + - col0 * + col2 + col1 FROM tab0 AS cor0
----
-14530
-42813
-712176

query I rowsort
SELECT DISTINCT + col1 + 56 + tab2.col0 FROM tab2
----
152
193
94

query I rowsort
SELECT ALL + - col2 + 36 * 58 AS col0 FROM tab1 AS cor0
----
1992
2031
2034

query I rowsort
SELECT ALL col2 * 23 + col2 FROM tab2 AS cor0
----
624
648
912

query I rowsort
SELECT col2 + + 83 * ( - col1 ) FROM tab0 AS cor0
----
-7105
-7471
-8050

query I rowsort
SELECT ALL + cor0.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT ALL + col2 + - 78 * col2 AS col2 FROM tab0
----
-2541
-6314
-77

onlyif mysql # use DIV operator for integer division
query I rowsort label-3202
SELECT - col1 + col0 DIV 60 - col2 FROM tab1
----
-108
-66
-80

skipif mysql # not compatible
query I rowsort label-3202
SELECT - col1 + col0 / 60 - col2 FROM tab1
----
-108
-66
-80

query I rowsort
SELECT DISTINCT col2 * ( col0 ) * tab2.col2 + + ( - 49 ) * - col1 * col2 - - col0 AS col0 FROM tab2
----
127972
145809
46123

query I rowsort
SELECT + col2 * - 78 AS col0 FROM tab1
----
-4212
-4446
-7488

onlyif mysql # use DIV operator for integer division
query I rowsort label-3205
SELECT + col1 + + 19 * + 84 + col1 DIV col0 FROM tab2
----
1613
1631
1655

skipif mysql # not compatible
query I rowsort label-3205
SELECT + col1 + + 19 * + 84 + col1 / col0 FROM tab2
----
1613
1631
1655

query I rowsort
SELECT - cor1.col1 AS col0 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT - + cor0.col1 - - ( cor0.col1 + col2 ) AS col0 FROM tab1 AS cor0
----
54
57
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3208
SELECT col0 + CAST( - col1 AS SIGNED ) * col1 AS col2 FROM tab0 AS cor0
----
-7372
-8192
-9374

skipif mysql # not compatible
query I rowsort label-3208
SELECT col0 + CAST ( - col1 AS INTEGER ) * col1 AS col2 FROM tab0 AS cor0
----
-7372
-8192
-9374

onlyif mysql # use DIV operator for integer division
query I rowsort label-3209
SELECT col2 DIV - col2 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3209
SELECT col2 / - col2 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3210
SELECT - - 98 + - col0 DIV col2 FROM tab1 cor0
----
97
98
98

skipif mysql # not compatible
query I rowsort label-3210
SELECT - - 98 + - col0 / col2 FROM tab1 cor0
----
97
98
98

query I rowsort
SELECT DISTINCT - 72 FROM tab1 cor0
----
-72

onlyif mysql # use DIV operator for integer division
query I rowsort label-3212
SELECT + cor0.col1 DIV + cor0.col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3212
SELECT + cor0.col1 / + cor0.col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + 20 * - col0 FROM tab2 AS cor0
----
-140
-1560
-1580

query I rowsort
SELECT DISTINCT ( - col2 * - col2 + col1 ) AS col2 FROM tab1
----
2942
3259
9229

query I rowsort
SELECT ALL - col2 * + col2 * - col1 FROM tab2
----
22599
24548
39884

query I rowsort
SELECT + 64 + - col0 AS col2 FROM tab0 AS cor0
----
-25
29
40

query I rowsort
SELECT DISTINCT + 68 + + col1 * - cor0.col2 FROM tab2 AS cor0
----
-1466
-578
-769

query I rowsort
SELECT ALL + col0 * cor0.col0 + col2 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT DISTINCT 66 * tab2.col0 FROM tab2
----
462
5148
5214

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - ( 27 + col0 ) col0 FROM tab0
----
-137
-159
-207

query I rowsort
SELECT - col0 * col0 * col2 AS col0 FROM tab1
----
-233472
-486
-614400

onlyif mysql # use DIV operator for integer division
query I rowsort label-3222
SELECT DISTINCT - cor0.col0 DIV + CAST( ( col1 ) AS SIGNED ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3222
SELECT DISTINCT - cor0.col0 / + CAST ( ( col1 ) AS INTEGER ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT tab0.col0 * - col1 + 61 + col1 * - tab0.col2 * - col1 AS col0 FROM tab0
----
242065
6075
671004

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3224
SELECT - + CAST( - col2 AS SIGNED ) FROM tab1 cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-3224
SELECT - + CAST ( - col2 AS INTEGER ) FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT ALL cor1.col2 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3226
SELECT CAST( NULL AS SIGNED ) * tab1.col1 + col0 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3226
SELECT CAST ( NULL AS INTEGER ) * tab1.col1 + col0 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - tab1.col1 FROM tab1, tab2, tab2 AS cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT 2 + col1 + col1 AS col0 FROM tab2 AS cor0
----
120
36
64

query I rowsort
SELECT DISTINCT - + 0 * - 76 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL col2 * col2 + + cor0.col1 * col0 + cor0.col2 FROM tab0 AS cor0
----
14905
3186
3397

query I rowsort
SELECT ALL + col0 / tab0.col1 FROM tab0 WHERE NOT NULL IN ( - col1 )
----

query I rowsort
SELECT - col2 * - col0 + - col2 * - col2 FROM tab0 AS cor0
----
14022
1881
36

query I rowsort
SELECT + col0 + + col1 * col2 AS col2 FROM tab2 AS cor0
----
1612
725
844

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <= - col0 * - col1
----

query I rowsort
SELECT col1 FROM tab0 WHERE NOT NULL NOT IN ( col2 * col2 * col1 + + tab0.col2 )
----

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE NOT col2 <> NULL
----

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NULL NOT IN ( + col0 * col0 - col0 )
----

query I rowsort
SELECT col0 - + col0 FROM tab2 cor0 WHERE NULL NOT IN ( - col1 + col0 * cor0.col1 )
----

query I rowsort
SELECT DISTINCT + + col1 + col1 * + col0 AS col0 FROM tab0 AS cor0
----
2150
3492
8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-3240
SELECT ALL + + col0 * col0 DIV cor0.col2 AS col1 FROM tab1 AS cor0
----
0
66
71

skipif mysql # not compatible
query I rowsort label-3240
SELECT ALL + + col0 * col0 / cor0.col2 AS col1 FROM tab1 AS cor0
----
0
66
71

query I rowsort
SELECT DISTINCT + tab0.col2 * col0 * - col0 FROM tab0
----
-1225
-19008
-649522

onlyif mysql # use DIV operator for integer division
query I rowsort label-3242
SELECT + col0 + + col0 DIV col1 - cor0.col2 FROM tab2 AS cor0
----
-20
45
53

skipif mysql # not compatible
query I rowsort label-3242
SELECT + col0 + + col0 / col1 - cor0.col2 FROM tab2 AS cor0
----
-20
45
53

query I rowsort
SELECT col1 + + cor0.col2 - + cor0.col2 AS col2 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT - + col0 * col2 + + col2 AS col0 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT - col2 * tab2.col0 + tab2.col2 + col2 FROM tab2
----
-135
-1976
-2926

query I rowsort
SELECT + - col2 + col0 * col1 AS col0 FROM tab0 AS cor0
----
2031
3394
8017

onlyif mysql # use DIV operator for integer division
query I rowsort label-3247
SELECT - col0 DIV col1 + - col2 AS col0 FROM tab2 AS cor0
----
-27
-27
-42

skipif mysql # not compatible
query I rowsort label-3247
SELECT - col0 / col1 + - col2 AS col0 FROM tab2 AS cor0
----
-27
-27
-42

query I rowsort
SELECT DISTINCT + col2 + - col2 AS col0 FROM tab2
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3249
SELECT ALL tab2.col0 + + col1 DIV col1 + tab2.col0 FROM tab2
----
15
157
159

skipif mysql # not compatible
query I rowsort label-3249
SELECT ALL tab2.col0 + + col1 / col1 + tab2.col0 FROM tab2
----
15
157
159

query I rowsort
SELECT - col0 + 58 AS col1 FROM tab1 AS cor0
----
-22
-6
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + col1 col2 FROM tab0 cor0
----
172
182
194

query I rowsort
SELECT ALL + 94 AS col1 FROM tab0
----
94
94
94

query I rowsort
SELECT ALL ( col0 * col2 ) FROM tab1
----
162
3648
7680

query I rowsort
SELECT 17 + + tab1.col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 02cfa9d89a68911da634f8751ac51edb

query I rowsort
SELECT ALL col1 + ( - 97 * + tab2.col2 ) AS col1 FROM tab2
----
-2463
-2588
-3669

query I rowsort
SELECT ALL + col0 * col2 + ( tab2.col0 ) * col1 FROM tab2
----
406
4345
6630

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3257
SELECT - col2 + CAST( NULL AS SIGNED ) * col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3257
SELECT - col2 + CAST ( NULL AS INTEGER ) * col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 31 - + col2 * col0 FROM tab1 cor0
----
-193
-3679
-7711

query I rowsort
SELECT - 73 + col1 * col1 AS col2 FROM tab1 AS cor0
----
27
603
96

query I rowsort
SELECT 5 FROM tab2, tab2 cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d

query I rowsort
SELECT ALL + ( + 0 + - col0 ) FROM tab1
----
-3
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3262
SELECT tab0.col2 DIV col1 col1 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3262
SELECT tab0.col2 / col1 col1 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3263
SELECT - col0 * col0 DIV col1 - tab2.col0 AS col2 FROM tab2
----
-181
-446
-8

skipif mysql # not compatible
query I rowsort label-3263
SELECT - col0 * col0 / col1 - tab2.col0 AS col2 FROM tab2
----
-181
-446
-8

query I rowsort
SELECT + col1 * + col1 - - ( + col2 ) AS col1 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT - 79 * + col1 FROM tab2 AS cor0
----
-1343
-2449
-4661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 41 * + col1 * - col1 + + col0 col2 FROM tab1 AS cor0
----
-27713
-4036
-6849

onlyif mysql # use DIV operator for integer division
query I rowsort label-3267
SELECT col2 * - col0 + col2 DIV col2 AS col1 FROM tab0 AS cor0
----
-34
-7297
-791

skipif mysql # not compatible
query I rowsort label-3267
SELECT col2 * - col0 + col2 / col2 AS col1 FROM tab0 AS cor0
----
-34
-7297
-791

query I rowsort
SELECT ALL col2 - - col1 AS col2 FROM tab1 AS cor0
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3269
SELECT ALL - - col0 DIV col2 + cor0.col1 + col1 FROM tab0 AS cor0
----
172
183
229

skipif mysql # not compatible
query I rowsort label-3269
SELECT ALL - - col0 / col2 + cor0.col1 + col1 FROM tab0 AS cor0
----
172
183
229

query I rowsort
SELECT 98 * + col2 AS col2 FROM tab1 AS cor0
----
5292
5586
9408

query I rowsort
SELECT + 39 - + col1 * - col2 FROM tab0 AS cor0
----
136
2877
7501

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3272
SELECT - - col2 - col1 * + CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
1560
684
864

skipif mysql # not compatible
query I rowsort label-3272
SELECT - - col2 - col1 * + CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
1560
684
864

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3273
SELECT - 46 * col1 + ( col0 ) * + col1 * CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3273
SELECT - 46 * col1 + ( col0 ) * + col1 * CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT tab2.col1 + + col2 FROM tab2
----
55
58
85

query I rowsort
SELECT - 19 * + cor0.col0 FROM tab0, tab1, tab1 cor0
----
27 values hashing to bd2cd9f460623492ec17a2e864ba380c

onlyif mysql # use DIV operator for integer division
query I rowsort label-3276
SELECT - 98 * col1 + col2 - col1 DIV col0 col0 FROM tab0 AS cor0
----
-8398
-8837
-9507

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3276
SELECT - 98 * col1 + col2 - col1 / col0 col0 FROM tab0 AS cor0
----
-8398
-8837
-9507

query I rowsort
SELECT DISTINCT col0 + col1 * - 68 * - col1 FROM tab2
----
19731
236786
65355

query I rowsort
SELECT col0 + + cor0.col0 - cor0.col0 AS col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT + col1 * + 35 AS col0 FROM tab0 AS cor0
----
3010
3185
3395

query I rowsort
SELECT + col2 * col1 * col2 + col1 * + col0 FROM tab1 AS cor0
----
120848
33130
75894

query I rowsort
SELECT ALL - cor0.col1 - + col0 * col2 AS col2 FROM tab1 AS cor0
----
-188
-3658
-7693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + 54 col1 FROM tab2 AS cor0
----
113
71
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-3283
SELECT DISTINCT - cor0.col1 DIV - 42 + cor0.col2 DIV col0 FROM tab0 AS cor0
----
2
3

skipif mysql # not compatible
query I rowsort label-3283
SELECT DISTINCT - cor0.col1 / - 42 + cor0.col2 / col0 FROM tab0 AS cor0
----
2
3

query I rowsort
SELECT - col1 * 92 + col0 AS col2 FROM tab0 AS cor0
----
-7888
-8283
-8889

query I rowsort
SELECT DISTINCT + cor0.col1 * + 40 FROM tab1 AS cor0
----
1040
400
520

query I rowsort
SELECT DISTINCT - cor0.col2 + + ( - col2 ) * col2 FROM tab0 AS cor0
----
-1122
-2
-6806

query I rowsort
SELECT DISTINCT 25 - + col0 * col1 FROM tab2
----
-1318
-192
-4577

query I rowsort
SELECT + col0 - - tab2.col1 * col1 FROM tab2
----
3559
368
968

query I rowsort
SELECT - col2 + col1 + tab0.col2 * ( + col0 + - col1 ) * col2 FROM tab0
----
-13439
-67465
34

query I rowsort
SELECT DISTINCT 62 * col1 + 8 - col2 FROM tab2
----
1024
1903
3640

query I rowsort
SELECT + col1 * 98 FROM tab2 AS cor0
----
1666
3038
5782

onlyif mysql # use DIV operator for integer division
query I rowsort label-3292
SELECT DISTINCT cor0.col1 DIV - col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3292
SELECT DISTINCT cor0.col1 / - col1 FROM tab0 AS cor0
----
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3293
SELECT ALL - - col0 * - CAST( NULL AS SIGNED ) * - col0 + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3293
SELECT ALL - - col0 * - CAST ( NULL AS INTEGER ) * - col0 + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + - 72 * col1 * col0 AS col0 FROM tab0 AS cor0
----
-148584
-244405
-583039

query I rowsort
SELECT - + col0 - col1 * - col2 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT + + col0 + col0 * - col2 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT ALL + + 68 AS col1 FROM tab2 AS cor0
----
68
68
68

onlyif mysql # use DIV operator for integer division
query I rowsort label-3298
SELECT ALL ( cor0.col0 ) DIV - col1 FROM tab2 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-3298
SELECT ALL ( cor0.col0 ) / - col1 FROM tab2 AS cor0
----
-1
-4
0

query I rowsort
SELECT col0 * cor0.col1 AS col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT - 53 + - col0 AS col1 FROM tab2 AS cor0
----
-131
-132
-60

query I rowsort
SELECT DISTINCT + col0 + col1 * + col2 FROM tab1 AS cor0
----
1328
1407
634

onlyif mysql # use DIV operator for integer division
query I rowsort label-3302
SELECT - - ( col1 ) DIV col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3302
SELECT - - ( col1 ) / col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT - - col0 * 6 AS col2 FROM tab2 AS cor0
----
42
468
474

query I rowsort
SELECT ALL 90 + col2 AS col2 FROM tab2 AS cor0
----
116
117
128

query I rowsort
SELECT DISTINCT - ( 88 ) + - col0 * col0 AS col0 FROM tab2 cor0
----
-137
-6172
-6329

query I rowsort
SELECT - - col2 + col2 * + col2 FROM tab1 cor0
----
2970
3306
9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( + ( - col2 ) ) col0 FROM tab2 AS cor0
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-3308
SELECT ALL 49 DIV - cor0.col0 FROM tab1 AS cor0
----
-16
0
0

skipif mysql # not compatible
query I rowsort label-3308
SELECT ALL 49 / - cor0.col0 FROM tab1 AS cor0
----
-16
0
0

query I rowsort
SELECT + + ( cor0.col0 ) * - col1 AS col1 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL + ( + ( + col1 ) ) + col1 AS col2 FROM tab2 cor0
----
118
34
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-3311
SELECT cor0.col0 DIV - 59 col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b2e225572af74ba853e10fb5414ea67f

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3311
SELECT cor0.col0 / - 59 col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b2e225572af74ba853e10fb5414ea67f

query I rowsort
SELECT DISTINCT + + col1 * + col1 + 99 * cor0.col0 AS col0 FROM tab2 AS cor0
----
11203
1654
8110

query I rowsort
SELECT - col2 + - col2 * col0 AS col1 FROM tab2 cor0
----
-2054
-216
-3040

query I rowsort
SELECT DISTINCT - + 19 + col0 - + cor0.col0 AS col1 FROM tab0 cor0
----
-19

query I rowsort
SELECT - 87 * 10 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 4609e67dba0568ce0bd06f1dc11c86ee

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 20 col1 FROM tab0, tab0 cor0
----
20

query I rowsort
SELECT DISTINCT 6 FROM tab1 cor0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 11 + + col2 + - col0 * + col1 col2 FROM tab2 AS cor0
----
-4290
-887
107

query I rowsort
SELECT ALL - + ( col0 ) * col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ( - 71 ) AS col0 FROM tab0 AS cor0
----
-71
-71
-71

query I rowsort
SELECT DISTINCT + - 68 AS col1 FROM tab0 AS cor0
----
-68

query I rowsort
SELECT ALL - ( 35 ) FROM tab1 AS cor0
----
-35
-35
-35

query I rowsort
SELECT ALL 7 * + col2 AS col1 FROM tab2 AS cor0
----
182
189
266

query I rowsort
SELECT + - col1 * - col0 + col1 AS col2 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT ALL + 0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT DISTINCT - ( col1 ) + col2 + 62 FROM tab2 AS cor0
----
29
58
83

query I rowsort
SELECT + 31 * - col0 * + col2 + cor0.col1 * - col2 + col2 AS col0 FROM tab1 cor0
----
-113601
-239232
-6372

query I rowsort
SELECT DISTINCT + cor0.col1 * 57 FROM tab0 AS cor0
----
4902
5187
5529

query I rowsort
SELECT col1 + + 87 + col1 AS col0 FROM tab2 AS cor0
----
121
149
205

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 34 * 16 col2 FROM tab1 AS cor0
----
544
544
544

query I rowsort
SELECT DISTINCT tab0.col1 * - col1 AS col1 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT + col2 + 34 FROM tab0 AS cor0
----
116
35
67

query I rowsort
SELECT DISTINCT + col2 * + col0 + col2 AS col0 FROM tab0 cor0
----
36
7380
825

query I rowsort
SELECT - col2 * + ( ( - col2 ) ) AS col1 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT col1 + col0 * 94 FROM tab0 cor0
----
2342
3387
8457

query I rowsort
SELECT cor1.col2 - - cor0.col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to a7182bf415215b07824744b782a00748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 59 ) * - cor0.col1 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 2902463fcf5fd2a1cbb58eebf96bd99d

query I rowsort
SELECT DISTINCT + col1 + + tab2.col0 + tab2.col0 * 4 FROM tab2
----
412
449
66

query I rowsort
SELECT cor0.col2 AS col0 FROM tab0, tab2 cor0, tab0 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT + col0 * col0 - 24 AS col2 FROM tab1
----
-15
4072
6376

query I rowsort
SELECT ALL + - col1 + + 71 AS col1 FROM tab2 cor0
----
12
40
54

query I rowsort
SELECT DISTINCT ( cor0.col0 ) AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
7
78
79

query I rowsort
SELECT - col0 + - 44 AS col2 FROM tab1 AS cor0
----
-108
-124
-47

query I rowsort
SELECT col2 * col0 + 76 FROM tab1 AS cor0
----
238
3724
7756

onlyif mysql # use DIV operator for integer division
query I rowsort label-3345
SELECT col1 + col1 DIV + col1 AS col1 FROM tab1
----
11
14
27

skipif mysql # not compatible
query I rowsort label-3345
SELECT col1 + col1 / + col1 AS col1 FROM tab1
----
11
14
27

query I rowsort
SELECT DISTINCT + col0 + ( col2 ) FROM tab2
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 35 * col2 col1 FROM tab0
----
-1225
-255430
-27720

query I rowsort
SELECT col2 * - 32 * - col0 FROM tab1
----
116736
245760
5184

query I rowsort
SELECT - 72 * + col2 FROM tab1
----
-3888
-4104
-6912

query I rowsort
SELECT col0 * - 99 AS col2 FROM tab1
----
-297
-6336
-7920

onlyif mysql # use DIV operator for integer division
query I rowsort label-3351
SELECT - - col1 * - col2 + + col0 DIV 9 - - ( - cor0.col2 + + col0 ) FROM tab2 AS cor0
----
-1474
-597
-857

skipif mysql # not compatible
query I rowsort label-3351
SELECT - - col1 * - col2 + + col0 / 9 - - ( - cor0.col2 + + col0 ) FROM tab2 AS cor0
----
-1474
-597
-857

query I rowsort
SELECT + col0 + - col2 * col2 FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT + + ( - col0 ) AS col1 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT tab0.col0 - tab0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT DISTINCT - col2 * + col2 AS col0 FROM tab2 cor0
----
-1444
-676
-729

query I rowsort
SELECT ALL - + col0 * + col0 + cor0.col2 FROM tab0 AS cor0
----
-1224
-543
-7839

query I rowsort
SELECT + col2 + 8 FROM tab2 cor0
----
34
35
46

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3358
SELECT DISTINCT - cor0.col1 * CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3358
SELECT DISTINCT - cor0.col1 * CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3359
SELECT DISTINCT - col2 * CAST( NULL AS SIGNED ) + col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3359
SELECT DISTINCT - col2 * CAST ( NULL AS INTEGER ) + col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + - col0 * 42 FROM tab0 AS cor0
----
-1008
-1470
-3738

query I rowsort
SELECT + + col0 * + ( col1 ) + col1 FROM tab2 cor0
----
1360
248
4661

query I rowsort
SELECT + col2 + ( + col2 ) AS col0 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT - cor0.col0 * col2 AS col1 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL + tab2.col2 - - cor0.col2 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to a451dbe509e87d1600234f39388c7bd3

query I rowsort
SELECT + col1 - col2 AS col2 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT col2 + col0 + col1 AS col0 FROM tab1 AS cor0
----
131
189
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-3367
SELECT DISTINCT + 99 DIV + 95 AS col2 FROM tab0, tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3367
SELECT DISTINCT + 99 / + 95 AS col2 FROM tab0, tab1 AS cor0
----
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3368
SELECT + ( col2 ) * - col0 - - col0 DIV + col0 AS col0 FROM tab1 AS cor0
----
-161
-3647
-7679

skipif mysql # not compatible
query I rowsort label-3368
SELECT + ( col2 ) * - col0 - - col0 / + col0 AS col0 FROM tab1 AS cor0
----
-161
-3647
-7679

query I rowsort
SELECT ALL - col2 - - col0 AS col2 FROM tab1
----
-16
-51
7

query I rowsort
SELECT + col2 * + tab2.col0 + - col2 FROM tab2
----
162
2002
2964

query I rowsort
SELECT DISTINCT + col2 + + col0 * col0 FROM tab0
----
1226
609
8003

query I rowsort
SELECT DISTINCT col1 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL + - 48 + col2 * + col1 AS col2 FROM tab2 AS cor0
----
1486
598
789

query I rowsort
SELECT ( + col0 ) * - ( col2 ) * + tab2.col1 AS col2 FROM tab2
----
-119652
-51034
-5859

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 35 col1 FROM tab1
----
35
35
35

query I rowsort
SELECT - col1 + ( + col1 ) AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 63 + + col1 + col1 AS col1 FROM tab1
----
115
83
89

query I rowsort
SELECT DISTINCT + col1 * - tab0.col2 + + col2 FROM tab0
----
-2805
-7380
-96

query I rowsort
SELECT + 60 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to 1d2ab302ae60f95b15e68cf89083b162

query I rowsort
SELECT DISTINCT + col0 - tab0.col1 * + 81 AS col2 FROM tab0
----
-6942
-7282
-7822

query I rowsort
SELECT + 59 * - tab2.col2 AS col1 FROM tab2
----
-1534
-1593
-2242

onlyif mysql # use DIV operator for integer division
query I rowsort label-3382
SELECT col2 DIV col0 - col2 FROM tab1
----
-36
-57
-95

skipif mysql # not compatible
query I rowsort label-3382
SELECT col2 / col0 - col2 FROM tab1
----
-36
-57
-95

query I rowsort
SELECT - tab2.col0 + col1 AS col1 FROM tab2
----
-19
-62
24

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) NOT IN ( + col1 )
----

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE NULL > NULL
----

query I rowsort
SELECT col1 + + col0 * + col1 AS col1 FROM tab1
----
104
1053
650

query I rowsort
SELECT ALL col2 + + tab2.col0 AS col0 FROM tab2
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-3388
SELECT ALL col1 * col0 + col0 DIV col1 FROM tab1
----
1046
646
78

skipif mysql # not compatible
query I rowsort label-3388
SELECT ALL col1 * col0 + col0 / col1 FROM tab1
----
1046
646
78

query I rowsort
SELECT DISTINCT + col0 + tab0.col1 * tab0.col2 FROM tab0
----
132
2862
7551

query I rowsort
SELECT col2 + - col2 + col1 * col0 FROM tab1
----
1040
640
78

query I rowsort
SELECT col2 + col0 * - col2 FROM tab0
----
-34
-7216
-759

onlyif mysql # use DIV operator for integer division
query I rowsort label-3392
SELECT DISTINCT tab0.col2 * col0 DIV col2 - col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3392
SELECT DISTINCT tab0.col2 * col0 / col2 - col0 FROM tab0
----
0

query I rowsort
SELECT - col2 + - col1 * - col1 AS col0 FROM tab2
----
251
3455
934

query I rowsort
SELECT ALL - col1 - tab0.col0 * + col0 FROM tab0
----
-1322
-662
-8012

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 + - col2 col2 FROM tab0 AS cor0
----
-9
34
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 61 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query I rowsort
SELECT + 34 + - 47 * - col2 AS col1 FROM tab1
----
2572
2713
4546

query I rowsort
SELECT ( + col1 ) - 32 FROM tab0 AS cor0
----
54
59
65

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + - cor0.col2 * + cor0.col0 / - CAST ( col0 AS REAL ) + + col0 * + col1 AS col1 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT + cor0.col2 - - col1 * 88 FROM tab1 AS cor0
----
1240
2342
937

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + col0 col1 FROM tab0 cor0
----
178
48
70

query I rowsort
SELECT DISTINCT + col0 * - col1 + ( 61 + col0 ) AS col0 FROM tab0 AS cor0
----
-1979
-3299
-7949

query I rowsort
SELECT 50 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query I rowsort
SELECT DISTINCT col2 + col2 * - ( + 93 ) FROM tab1 AS cor0
----
-4968
-5244
-8832

query I rowsort
SELECT + col1 + + col1 * col2 AS col0 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT ALL - 15 + + col0 + + 37 AS col0 FROM tab2 AS cor0
----
100
101
29

query I rowsort
SELECT ALL - col1 * col0 - col1 AS col1 FROM tab2 AS cor0
----
-1360
-248
-4661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 62 col2 FROM tab1 AS cor0
----
62

query I rowsort
SELECT ALL - + ( cor0.col2 ) FROM tab2 AS cor0
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-3410
SELECT + + col2 + + col1 * col1 DIV - cor0.col2 AS col0 FROM tab0 AS cor0
----
-18
-191
-9408

skipif mysql # not compatible
query I rowsort label-3410
SELECT + + col2 + + col1 * col1 / - cor0.col2 AS col0 FROM tab0 AS cor0
----
-18
-191
-9408

query I rowsort
SELECT DISTINCT cor0.col0 + col2 + - col2 AS col0 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT ALL - col0 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 + col1 * + col1 AS col2 FROM tab1 AS cor0
----
156
650
90

query I rowsort
SELECT DISTINCT - col1 * - col2 * + col1 + + col0 AS col2 FROM tab2 AS cor0
----
11061
25954
90584

query I rowsort
SELECT + ( 53 ) AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda

query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0, tab1 cor2, tab2
----
13122 values hashing to 8d1e3a4641368385de9280cb6d6a7538

query I rowsort
SELECT + col2 * ( - ( + col1 ) ) + 23 FROM tab2 AS cor0
----
-1511
-623
-814

query I rowsort
SELECT col0 + cor0.col2 * + 93 AS col2 FROM tab2 AS cor0
----
2496
2518
3613

query I rowsort
SELECT col1 + col1 + + 4 FROM tab2 AS cor0
----
122
38
66

query I rowsort
SELECT ALL + col2 + + col2 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT ALL + 10 * col1 + cor0.col1 * + ( - 94 ) AS col2 FROM tab0 cor0
----
-7224
-7644
-8148

query I rowsort
SELECT 94 + col1 * + cor0.col2 * ( - 65 + col1 ) FROM tab0 AS cor0
----
194106
3198
59692

query I rowsort
SELECT DISTINCT + cor0.col1 + + cor0.col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT - - ( ( col2 ) ) - 83 FROM tab2 AS cor0
----
-45
-56
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 + col0 col1 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT DISTINCT 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 DISTINCT - cor0.col0 col1 FROM tab2, tab2 AS cor0, tab1 cor1
----
-7
-78
-79

query I rowsort
SELECT 49 + ( col0 ) FROM tab2 AS cor0
----
127
128
56

query I rowsort
SELECT ALL 53 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda

query I rowsort
SELECT 7 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607

query I rowsort
SELECT DISTINCT + 98 * col1 + col1 AS col2 FROM tab2
----
1683
3069
5841

query I rowsort
SELECT ALL col1 + col1 * + ( + col1 ) FROM tab0
----
7482
8372
9506

query I rowsort
SELECT DISTINCT + ( col2 ) - 19 * col0 AS col2 FROM tab2 cor0
----
-106
-1456
-1463

query I rowsort
SELECT DISTINCT + ( col1 ) * + col0 + 7 AS col1 FROM tab0 AS cor0
----
2071
3402
8106

query I rowsort
SELECT ALL + - col2 + - col2 * ( cor0.col1 ) FROM tab1 AS cor0
----
-1344
-1458
-627

query I rowsort
SELECT ALL cor0.col2 + col1 * col0 FROM tab0 AS cor0
----
2097
3396
8181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 96 col0 FROM tab0 AS cor0
----
-10
-5
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3438
SELECT + col0 DIV ( + col2 ) FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3438
SELECT + col0 / ( + col2 ) FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT - col2 * - col0 + + col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT - col0 + 31 * 48 * col0 AS col0 FROM tab2 AS cor0
----
10409
115986
117473

query I rowsort
SELECT cor0.col2 + cor0.col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT - - col0 + 29 * + col0 FROM tab1 AS cor0
----
1920
2400
90

query I rowsort
SELECT + + col0 * col0 + col0 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT ALL cor0.col2 * cor0.col2 - + col0 * - col1 FROM tab2 AS cor0
----
2787
5278
946

onlyif mysql # use DIV operator for integer division
query I rowsort label-3445
SELECT ALL + 55 - 45 DIV col0 FROM tab0 cor0
----
54
54
55

skipif mysql # not compatible
query I rowsort label-3445
SELECT ALL + 55 - 45 / col0 FROM tab0 cor0
----
54
54
55

query I rowsort
SELECT DISTINCT - col0 * col2 + - col2 AS col0 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT 8 * - col1 + col0 AS col2 FROM tab0 AS cor0
----
-639
-664
-741

query I rowsort
SELECT ALL + col2 * 61 AS col2 FROM tab1 AS cor0
----
3294
3477
5856

query I rowsort
SELECT - + ( + col0 ) * cor0.col1 FROM tab0 cor0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( col2 ) * col1 col1 FROM tab1 cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 85 col1 FROM tab2 AS cor0
----
595
6630
6715

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 + - col1 * + col0 col0 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT - + col0 * - 9 FROM tab2 AS cor0
----
63
702
711

query I rowsort
SELECT ALL + 61 * col1 FROM tab0 AS cor0
----
5246
5551
5917

query I rowsort
SELECT DISTINCT + col2 + - col2 AS col1 FROM tab2 cor0
----
0

query I rowsort
SELECT - col1 * cor0.col1 + col0 AS col1 FROM tab1 AS cor0
----
-36
-673
-89

query I rowsort
SELECT ALL ( + cor0.col0 ) + + col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT + + col1 * - cor0.col1 - 41 AS col1 FROM tab1 cor0
----
-141
-210
-717

query I rowsort
SELECT DISTINCT - + col0 * - cor0.col2 + - col2 AS col0 FROM tab0 AS cor0
----
34
7216
759

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3460
SELECT ALL + CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3460
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col0 + + tab0.col1 col2 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT cor0.col0 + cor0.col1 * cor0.col2 FROM tab2 AS cor0
----
1612
725
844

onlyif mysql # use DIV operator for integer division
query I rowsort label-3463
SELECT 98 * - col2 * ( col0 ) - - col2 DIV - ( - col1 ) AS col0 FROM tab0 AS cor0
----
-3430
-715204
-77616

skipif mysql # not compatible
query I rowsort label-3463
SELECT 98 * - col2 * ( col0 ) - - col2 / - ( - col1 ) AS col0 FROM tab0 AS cor0
----
-3430
-715204
-77616

onlyif mysql # use DIV operator for integer division
query I rowsort label-3464
SELECT + 52 DIV col1 + + 32 * 93 AS col1 FROM tab2 AS cor0
----
2976
2977
2979

skipif mysql # not compatible
query I rowsort label-3464
SELECT + 52 / col1 + + 32 * 93 AS col1 FROM tab2 AS cor0
----
2976
2977
2979

query I rowsort
SELECT DISTINCT - + col0 * col2 * + col0 AS col1 FROM tab2 cor0
----
-1323
-158184
-237158

query I rowsort
SELECT DISTINCT 61 * cor0.col1 + - col0 * + 19 FROM tab2 AS cor0
----
-464
1758
2117

onlyif mysql # use DIV operator for integer division
query I rowsort label-3467
SELECT + col2 DIV - col1 AS col1 FROM tab1 cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-3467
SELECT + col2 / - col1 AS col1 FROM tab1 cor0
----
-2
-5
-7

onlyif mysql # use DIV operator for integer division
query I rowsort label-3468
SELECT + col0 DIV col2 FROM tab1 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3468
SELECT + col0 / col2 FROM tab1 cor0
----
0
0
1

query I rowsort
SELECT + ( 40 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT ALL col0 + cor0.col1 AS col0 FROM tab2 AS cor0
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3471
SELECT ALL - col2 DIV cor0.col0 AS col2 FROM tab2 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-3471
SELECT ALL - col2 / cor0.col0 AS col2 FROM tab2 AS cor0
----
-3
0
0

query I rowsort
SELECT 41 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT - 80 * - tab2.col2 FROM tab2
----
2080
2160
3040

query I rowsort
SELECT DISTINCT + 15 * col1 FROM tab0
----
1290
1365
1455

query I rowsort
SELECT DISTINCT + 97 FROM tab0, tab1 AS cor0, tab1 AS cor1, tab2 AS cor2
----
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3476
SELECT + cor1.col2 DIV + tab2.col0 AS col0 FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to 9047e9a8940f41053c77cf74c7b3c161

skipif mysql # not compatible
query I rowsort label-3476
SELECT + cor1.col2 / + tab2.col0 AS col0 FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to 9047e9a8940f41053c77cf74c7b3c161

query I rowsort
SELECT 96 - tab2.col2 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to 8aba8fd1b1e871111a09cd5809f5d6c6

query I rowsort
SELECT - 54 + col1 * - col0 FROM tab0 cor0
----
-2118
-3449
-8153

query I rowsort
SELECT ALL + - 88 FROM tab2 cor0
----
-88
-88
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + + ( + col0 ) * + col2 col1 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT - col1 * + 1 FROM tab0 AS cor0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3482
SELECT DISTINCT + - col1 DIV col0 FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-3482
SELECT DISTINCT + - col1 / col0 FROM tab0 AS cor0
----
-1
-2
-3

query I rowsort
SELECT DISTINCT - - col0 * + ( col0 ) AS col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT DISTINCT + ( - 53 ) * + cor0.col2 + col2 * + 31 AS col2 FROM tab2 cor0
----
-572
-594
-836

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3485
SELECT ALL CAST( - col0 AS SIGNED ) + col0 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3485
SELECT ALL CAST ( - col0 AS INTEGER ) + col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 85 + 88 FROM tab1 AS cor0
----
173

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3487
SELECT - CAST( NULL AS SIGNED ) - + col1 * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3487
SELECT - CAST ( NULL AS INTEGER ) - + col1 * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT cor0.col2 + - 88 FROM tab1, tab0 AS cor0, tab1 AS cor1, tab0 AS cor2
----
-55
-6
-87

query I rowsort
SELECT DISTINCT + col0 + - col0 * col2 FROM tab2 AS cor0
----
-182
-1950
-2923

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT 62 AS col0 FROM tab2, tab2 cor0
----
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 65 * 81 - - col0 col0 FROM tab1 AS cor0
----
5268
5329
5345

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3493
SELECT ALL CAST( NULL AS SIGNED ) + - col2 * col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3493
SELECT ALL CAST ( NULL AS INTEGER ) + - col2 * col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col0 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3495
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-3495
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # use DIV operator for integer division
query I rowsort label-3496
SELECT - 40 DIV + cor0.col2 + - col2 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-3496
SELECT - 40 / + cor0.col2 + - col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT + 55 * col2 AS col1 FROM tab0 AS cor0
----
1815
4510
55

query I rowsort
SELECT ALL cor0.col1 + 88 FROM tab2, tab1 AS cor0
----
9 values hashing to 04c32dfeb6584e905d02ba83a8cad72e

query I rowsort
SELECT ALL + col1 + - 97 FROM tab1 AS cor0
----
-71
-84
-87

query I rowsort
SELECT ALL 30 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 6c98840ed134c765d56389f4150075f0

query I rowsort
SELECT ALL + cor0.col1 * + 1 AS col0 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT - - col1 * - cor0.col1 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
-177504
-329315
-737009

query I rowsort
SELECT + col1 * ( 60 ) AS col0 FROM tab0 AS cor0
----
5160
5460
5820

query I rowsort
SELECT DISTINCT - col1 + 65 FROM tab1 AS cor0
----
39
52
55

onlyif mysql # use DIV operator for integer division
query I rowsort label-3505
SELECT ALL + col0 DIV col2 + - cor0.col2 AS col1 FROM tab1 AS cor0
----
-54
-56
-96

skipif mysql # not compatible
query I rowsort label-3505
SELECT ALL + col0 / col2 + - cor0.col2 AS col1 FROM tab1 AS cor0
----
-54
-56
-96

query I rowsort
SELECT ALL + col1 * col1 * col0 - cor0.col1 AS col0 FROM tab0 AS cor0
----
177418
329218
736918

query I rowsort
SELECT ALL - tab1.col1 * col0 AS col2 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT 48 * col2 FROM tab2
----
1248
1296
1824

query I rowsort
SELECT - - 85 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to e4cf94cf0cc632acff30ad1dac617cb7

onlyif mysql # use DIV operator for integer division
query I rowsort label-3510
SELECT DISTINCT col0 * 76 DIV cor0.col0 AS col2 FROM tab1 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-3510
SELECT DISTINCT col0 * 76 / cor0.col0 AS col2 FROM tab1 AS cor0
----
76

query I rowsort
SELECT ALL col0 * ( col1 ) AS col2 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-3512
SELECT ALL + col1 * 80 DIV + col1 AS col0 FROM tab2 AS cor0
----
80
80
80

skipif mysql # not compatible
query I rowsort label-3512
SELECT ALL + col1 * 80 / + col1 AS col0 FROM tab2 AS cor0
----
80
80
80

query I rowsort
SELECT ALL + + 67 FROM tab0, tab1 AS cor0, tab1 AS cor1, tab2, tab0 cor2
----
243 values hashing to d502cfec04c7f71d688175ee0de49a52

query I rowsort
SELECT - 13 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

query I rowsort
SELECT - 88 * col2 AS col1 FROM tab0 AS cor0
----
-2904
-7216
-88

query I rowsort
SELECT - col0 + - 75 * - col0 FROM tab1
----
222
4736
5920

query I rowsort
SELECT ALL - col2 * - 32 FROM tab2 AS cor0
----
1216
832
864

query I rowsort
SELECT - col2 * + ( col1 ) + - tab2.col0 * - 90 FROM tab2
----
-207
5486
6464

query I rowsort
SELECT col2 * + 99 + - tab0.col2 * + col2 * 52 AS col0 FROM tab0
----
-341530
-53361
47

query I rowsort
SELECT cor0.col2 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

onlyif mysql # use DIV operator for integer division
query I rowsort label-3521
SELECT ALL + ( 51 ) * col1 - col2 DIV - col1 AS col0 FROM tab2
----
1581
3009
869

skipif mysql # not compatible
query I rowsort label-3521
SELECT ALL + ( 51 ) * col1 - col2 / - col1 AS col0 FROM tab2
----
1581
3009
869

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3522
SELECT 85 * - col1 + + CAST( ( col1 ) AS SIGNED ) * 88 FROM tab0 AS cor0
----
258
273
291

skipif mysql # not compatible
query I rowsort label-3522
SELECT 85 * - col1 + + CAST ( ( col1 ) AS INTEGER ) * 88 FROM tab0 AS cor0
----
258
273
291

query I rowsort
SELECT DISTINCT + + ( + col1 ) FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT - 4 * - cor0.col1 * - col0 AS col0 FROM tab0 cor0
----
-13580
-32396
-8256

query I rowsort
SELECT DISTINCT tab0.col1 + + 1 FROM tab0
----
87
92
98

query I rowsort
SELECT DISTINCT tab1.col2 - + 10 FROM tab1
----
44
47
86

query I rowsort
SELECT + 58 + col0 + col1 FROM tab1
----
132
151
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-3528
SELECT ALL 79 DIV tab1.col0 + - ( 3 ) FROM tab1, tab2 AS cor0
----
9 values hashing to 32a7d0b16ee1a32b17579a54e31bc552

skipif mysql # not compatible
query I rowsort label-3528
SELECT ALL 79 / tab1.col0 + - ( 3 ) FROM tab1, tab2 AS cor0
----
9 values hashing to 32a7d0b16ee1a32b17579a54e31bc552

onlyif mysql # use DIV operator for integer division
query I rowsort label-3529
SELECT tab2.col0 DIV + 86 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3529
SELECT tab2.col0 / + 86 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 66 + - col0 + 46 col0 FROM tab2 AS cor0
----
105
33
34

query I rowsort
SELECT DISTINCT - + col1 + - cor0.col1 FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT ALL col1 + - col2 + + col0 * col1 FROM tab1 AS cor0
----
50
593
957

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3533
SELECT DISTINCT - ( - cor0.col1 ) * CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3533
SELECT DISTINCT - ( - cor0.col1 ) * CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + col2 * col0 + col0 * 72 AS col0 FROM tab2 AS cor0
----
693
7644
8690

onlyif mysql # use DIV operator for integer division
query I rowsort label-3535
SELECT DISTINCT - 18 DIV - col1 FROM tab2 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3535
SELECT DISTINCT - 18 / - col1 FROM tab2 cor0
----
0
1

query I rowsort
SELECT col2 * col0 + ( col1 ) * + col2 + - col2 AS col0 FROM tab1 AS cor0
----
1512
4161
8832

query I rowsort
SELECT - col1 * - col0 + - col0 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT DISTINCT - col2 * + col2 + - cor0.col2 FROM tab0 AS cor0
----
-1122
-2
-6806

query I rowsort
SELECT ALL + - col1 + col2 * - ( + ( - cor0.col1 ) ) FROM tab2 AS cor0
----
1475
629
806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + ( + col2 * - col1 ) col0 FROM tab1
----
-1261
-1430
-580

query I rowsort
SELECT - tab0.col2 + 91 * + 79 + + col2 AS col0 FROM tab0
----
7189
7189
7189

query I rowsort
SELECT + 0 + + col0 * + col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT - - col0 * col0 * col0 FROM tab2 AS cor0
----
343
474552
493039

onlyif mysql # use DIV operator for integer division
query I rowsort label-3544
SELECT 67 * 92 + col2 DIV ( + cor0.col0 ) + + cor0.col0 * + 65 AS col2 FROM tab0 AS cor0
----
11949
7725
8439

skipif mysql # not compatible
query I rowsort label-3544
SELECT 67 * 92 + col2 / ( + cor0.col0 ) + + cor0.col0 * + 65 AS col2 FROM tab0 AS cor0
----
11949
7725
8439

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3545
SELECT + + CAST( - col2 AS SIGNED ) * + col2 col2 FROM tab1 cor0
----
-2916
-3249
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3545
SELECT + + CAST ( - col2 AS INTEGER ) * + col2 col2 FROM tab1 cor0
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT - ( tab1.col2 ) * cor0.col2 FROM tab1, tab1 AS cor0
----
-2916
-3078
-3249
-5184
-5472
-9216

query I rowsort
SELECT - + cor0.col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT DISTINCT - tab0.col0 + + col0 AS col2 FROM tab0
----
0

query I rowsort
SELECT col2 + - col0 + + col0 AS col2 FROM tab2
----
26
27
38

query I rowsort
SELECT + 95 * - col1 FROM tab2
----
-1615
-2945
-5605

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3551
SELECT ALL CAST( NULL AS SIGNED ) * ( + col0 ) * ( + ( col2 ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3551
SELECT ALL CAST ( NULL AS INTEGER ) * ( + col0 ) * ( + ( col2 ) ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ( - col1 ) * col2 AS col0 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT + ( col0 ) * + col0 FROM tab2
----
49
6084
6241

query I rowsort
SELECT ALL + 39 + col2 AS col0 FROM tab0 AS cor0
----
121
40
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 17 ) + col1 * col0 col1 FROM tab1 AS cor0
----
1057
657
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 30 + col0 * + col1 col0 FROM tab0 AS cor0
----
2094
3425
8129

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3557
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + col1 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3557
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + col1 AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3558
SELECT DISTINCT 27 DIV 9 col0 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3558
SELECT DISTINCT 27 / 9 col0 FROM tab2 AS cor0
----
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3559
SELECT ALL + CAST( NULL AS SIGNED ) * - col0 col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3559
SELECT ALL + CAST ( NULL AS INTEGER ) * - col0 col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col2 ) * col2 col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT ALL col1 * + 17 + - col0 AS col1 FROM tab1 AS cor0
----
106
141
439

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( cor1.col2 ) * cor1.col0 col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f7e57a354e4e5925116b9650d1011609

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 DISTINCT + - 9 + - cor0.col0 FROM tab0 AS cor0
----
-33
-44
-98

query I rowsort
SELECT - + 50 + - col0 AS col1 FROM tab0 cor0
----
-139
-74
-85

query I rowsort
SELECT - + 52 * cor0.col2 FROM tab0 cor0
----
-1716
-4264
-52

query I rowsort
SELECT DISTINCT - 10 + + col0 * col0 AS col2 FROM tab0 AS cor0
----
1215
566
7911

query I rowsort
SELECT DISTINCT - + col1 + 49 FROM tab0 cor0
----
-37
-42
-48

query I rowsort
SELECT DISTINCT + col2 + - cor0.col0 * + 79 AS col0 FROM tab1 AS cor0
----
-183
-4999
-6224

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3570
SELECT ALL - + cor0.col2 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3570
SELECT ALL - + cor0.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 + col1 * + col0 * - cor0.col0 col0 FROM tab0 AS cor0
----
-118825
-49536
-720811

query I rowsort
SELECT ALL + - 14 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

query I rowsort
SELECT - col0 * 81 FROM tab0 AS cor0
----
-1944
-2835
-7209

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3574
SELECT + col0 + CAST( NULL AS DECIMAL ) * + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3574
SELECT + col0 + CAST ( NULL AS REAL ) * + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3575
SELECT - - col1 DIV + ( + col2 + - col0 ) FROM tab1 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3575
SELECT - - col1 / + ( + col2 + - col0 ) FROM tab1 cor0
----
-1
0
0

query I rowsort
SELECT col1 * 87 + + col1 FROM tab0 AS cor0
----
7568
8008
8536

query I rowsort
SELECT + col0 * - col2 * + col1 FROM tab2 AS cor0
----
-119652
-51034
-5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-3578
SELECT + col0 DIV + 28 FROM tab1 AS cor0
----
0
2
2

skipif mysql # not compatible
query I rowsort label-3578
SELECT + col0 / + 28 FROM tab1 AS cor0
----
0
2
2

query I rowsort
SELECT col0 * col0 AS col0 FROM tab0 cor0
----
1225
576
7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) * col1 col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3582
SELECT CAST( NULL AS SIGNED ) + - col1 * + col1 col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3582
SELECT CAST ( NULL AS INTEGER ) + - col1 * + col1 col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3583
SELECT DISTINCT - - CAST( + col1 AS SIGNED ) * col0 col0 FROM tab1 AS cor0
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3583
SELECT DISTINCT - - CAST ( + col1 AS INTEGER ) * col0 col0 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-3584
SELECT ALL - 6 DIV - cor0.col0 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-3584
SELECT ALL - 6 / - cor0.col0 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT DISTINCT - cor1.col0 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
-7
-78
-79

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 cor0 CROSS JOIN tab0, tab2 AS cor1
----
972 values hashing to 1e9d01970ae508486ddabec967bb176c

query I rowsort
SELECT - ( col0 ) * - col0 + + tab1.col2 AS col0 FROM tab1
----
4153
63
6496

query I rowsort
SELECT - + col2 * col1 + - 56 FROM tab1 AS cor0
----
-1304
-1460
-626

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 col0 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT DISTINCT - col1 + col0 * + 14 AS col0 FROM tab1 AS cor0
----
1107
16
886

onlyif mysql # use DIV operator for integer division
query I rowsort label-3591
SELECT DISTINCT 34 DIV + tab0.col0 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-3591
SELECT DISTINCT 34 / + tab0.col0 FROM tab0
----
0
1

query I rowsort
SELECT DISTINCT 52 * col0 AS col1 FROM tab1
----
156
3328
4160

query I rowsort
SELECT - cor0.col2 * - 88 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ab5619610da4d20b9373a629516ff9d8

query I rowsort
SELECT DISTINCT + 8 + cor1.col2 AS col0 FROM tab0, tab0 AS cor0 CROSS JOIN tab2, tab1, tab0 AS cor1
----
41
9
90

query I rowsort
SELECT tab0.col2 + tab0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 0a9ba7ddbb78279db2d78308414e03c9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3596
SELECT - CAST( NULL AS SIGNED ) * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3596
SELECT - CAST ( NULL AS INTEGER ) * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 67 + - col1 AS col0 FROM tab0 AS cor0
----
-153
-158
-164

query I rowsort
SELECT col0 + + tab1.col1 * - col0 FROM tab1
----
-576
-75
-960

query I rowsort
SELECT DISTINCT col0 + + 68 FROM tab1
----
132
148
71

query I rowsort
SELECT ( ( + col1 ) ) AS col2 FROM tab1
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-3601
SELECT DISTINCT - cor0.col2 * - col0 + col0 DIV + col1 FROM tab0 AS cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-3601
SELECT DISTINCT - cor0.col2 * - col0 + col0 / + col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT + col1 + + col1 + - col0 FROM tab0 AS cor0
----
148
159
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-3603
SELECT ALL + col1 + col1 * col0 + cor0.col2 DIV col0 FROM tab1 AS cor0
----
1054
122
650

skipif mysql # not compatible
query I rowsort label-3603
SELECT ALL + col1 + col1 * col0 + cor0.col2 / col0 FROM tab1 AS cor0
----
1054
122
650

query I rowsort
SELECT + 21 * - col1 FROM tab1 cor0
----
-210
-273
-546

query I rowsort
SELECT ALL + ( - cor0.col1 ) + 34 FROM tab0 AS cor0
----
-52
-57
-63

query I rowsort
SELECT col0 - 25 * - 76 FROM tab1
----
1903
1964
1980

query I rowsort
SELECT col1 * 87 FROM tab0
----
7482
7917
8439

query I rowsort
SELECT + col0 * col2 * ( col0 * - 90 + 75 ) FROM tab1 AS cor0
----
-20738880
-31590
-54720000

query I rowsort
SELECT + 60 * - cor0.col1 + - col0 * ( 98 ) AS col0 FROM tab2 AS cor0
----
-11184
-2546
-8762

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3610
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + + col2 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3610
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + + col2 AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3611
SELECT ALL + col1 DIV col0 - col1 FROM tab0 AS cor0
----
-83
-90
-95

skipif mysql # not compatible
query I rowsort label-3611
SELECT ALL + col1 / col0 - col1 FROM tab0 AS cor0
----
-83
-90
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * ( tab0.col2 ) col1 FROM tab0
----
1
1089
6724

query I rowsort
SELECT ALL col1 * + 99 AS col2 FROM tab0
----
8514
9009
9603

query I rowsort
SELECT DISTINCT + 87 * - col0 FROM tab0 AS cor0
----
-2088
-3045
-7743

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col1 + cor0.col2 col2 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT + ( - 85 ) FROM tab0 AS cor0
----
-85
-85
-85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3617
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 8 - col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3617
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 8 - col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL ( - col2 ) * + col2 + - col0 AS col2 FROM tab0 AS cor0
----
-1113
-36
-6813

query I rowsort
SELECT ALL - + 69 AS col1 FROM tab2 AS cor0
----
-69
-69
-69

skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( cor0.col2 AS REAL ) FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ( + col1 ) * - col2 * 69 AS col0 FROM tab0
----
-195822
-514878
-6693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 54 + - 77 col1 FROM tab2 AS cor0
----
-131
-131
-131

query I rowsort
SELECT DISTINCT - col1 * - 84 FROM tab0 AS cor0
----
7224
7644
8148

query I rowsort
SELECT DISTINCT + 70 AS col1 FROM tab2, tab1 cor0
----
70

query I rowsort
SELECT + - ( - 47 ) * col2 AS col2 FROM tab0 AS cor0
----
1551
3854
47

query I rowsort
SELECT ALL - col0 * + col1 * col1 AS col1 FROM tab2 cor0
----
-22831
-271518
-6727

query I rowsort
SELECT ALL - cor0.col1 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

query I rowsort
SELECT + 85 * col1 AS col1 FROM tab2 AS cor0
----
1445
2635
5015

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col0 * col0 col1 FROM tab0 AS cor0
----
118825
49536
720811

query I rowsort
SELECT ALL - - 30 AS col1 FROM tab2 cor0
----
30
30
30

query I rowsort
SELECT DISTINCT 54 FROM tab2, tab2 AS cor0, tab0 cor1, tab1 AS cor2
----
54

query I rowsort
SELECT DISTINCT + ( + 43 ) FROM tab2 AS cor0
----
43

query I rowsort
SELECT + col1 + - cor0.col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT col2 * col0 + col1 AS col0 FROM tab0 AS cor0
----
132
7389
878

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - tab1.col1 col2 FROM tab1
----
-29
-74
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col2 + col2 + - 90 col1 FROM tab2 AS cor0
----
-1496
-740
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-3637
SELECT + - col0 DIV - col0 + col1 * - col1 AS col0 FROM tab0 AS cor0
----
-7395
-8280
-9408

skipif mysql # not compatible
query I rowsort label-3637
SELECT + - col0 / - col0 + col1 * - col1 AS col0 FROM tab0 AS cor0
----
-7395
-8280
-9408

query I rowsort
SELECT ALL 82 * - col0 + ( col0 ) AS col2 FROM tab2 AS cor0
----
-567
-6318
-6399

query I rowsort
SELECT ALL - ( 53 * + col0 ) + - 63 FROM tab1
----
-222
-3455
-4303

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + 34 col2 FROM tab2 AS cor0
----
51
65
93

query I rowsort
SELECT ALL + - col2 + + ( - col0 ) * - col0 FROM tab1 AS cor0
----
-45
4039
6304

query I rowsort
SELECT + col1 * ( 94 * + col1 ) + col1 * col0 - col2 * 57 AS col2 FROM tab2 AS cor0
----
26343
330334
89012

query I rowsort
SELECT col2 * + 69 AS col0 FROM tab0 cor0
----
2277
5658
69

query I rowsort
SELECT DISTINCT - cor0.col0 * + cor0.col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT - col2 * - 66 FROM tab2 AS cor0
----
1716
1782
2508

query I rowsort
SELECT + col1 - col1 * 23 * col2 AS col1 FROM tab1 AS cor0
----
-13100
-28691
-32266

query I rowsort
SELECT DISTINCT col0 * 24 * - col2 FROM tab1 cor0
----
-184320
-3888
-87552

query I rowsort
SELECT col2 - - 11 FROM tab1 AS cor0
----
107
65
68

query I rowsort
SELECT ALL + col2 - + ( tab0.col0 ) * tab0.col2 AS col0 FROM tab0
----
-34
-7216
-759

query I rowsort
SELECT ALL - col2 + 34 FROM tab0
----
-48
1
33

onlyif mysql # use DIV operator for integer division
query I rowsort label-3651
SELECT DISTINCT + col1 - - col0 DIV - 91 AS col1 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-3651
SELECT DISTINCT + col1 - - col0 / - 91 AS col1 FROM tab1
----
10
13
26

query I rowsort
SELECT + col0 * + col1 - col1 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT ALL - - col0 * - 8 FROM tab1 AS cor0
----
-24
-512
-640

query I rowsort
SELECT DISTINCT + + col2 * ( + col1 ) + col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT - col0 + - ( - 91 ) * - col2 AS col1 FROM tab1 AS cor0
----
-4917
-5251
-8816

query I rowsort
SELECT ( - 20 ) AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

onlyif mysql # use DIV operator for integer division
query I rowsort label-3657
SELECT ALL - - col0 * col0 + col1 DIV col1 AS col1 FROM tab2 AS cor0
----
50
6085
6242

skipif mysql # not compatible
query I rowsort label-3657
SELECT ALL - - col0 * col0 + col1 / col1 AS col1 FROM tab2 AS cor0
----
50
6085
6242

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3658
SELECT ALL - col2 / CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3658
SELECT ALL - col2 / CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + cor0.col1 * - col1 AS col0 FROM tab1 cor0
----
-36
-673
-89

query I rowsort
SELECT - cor0.col1 * 4 AS col1 FROM tab0 cor0
----
-344
-364
-388

query I rowsort
SELECT - col0 * - cor0.col2 FROM tab0 cor0
----
35
7298
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3662
SELECT - - CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-3662
SELECT - - CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT col2 * + 95 * + col0 AS col1 FROM tab1 AS cor0
----
15390
346560
729600

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3664
SELECT + CAST( + 71 AS SIGNED ) * + col2 + + 82 FROM tab1 cor0
----
3916
4129
6898

skipif mysql # not compatible
query I rowsort label-3664
SELECT + CAST ( + 71 AS INTEGER ) * + col2 + + 82 FROM tab1 cor0
----
3916
4129
6898

query I rowsort
SELECT + 56 * - 54 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to b10046cee720f949add641cfdd5127db

query I rowsort
SELECT ALL - tab1.col0 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3667
SELECT DISTINCT 60 DIV 51 AS col0 FROM tab2, tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-3667
SELECT DISTINCT 60 / 51 AS col0 FROM tab2, tab0 cor0
----
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3668
SELECT - ( + col2 ) DIV col2 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3668
SELECT - ( + col2 ) / col2 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - 39 + col2 * col1 + col0 FROM tab2 AS cor0
----
1573
686
805

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3670
SELECT - col2 * + col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3670
SELECT - col2 * + col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 96 + - col1 * + col0 AS col0 FROM tab1 cor0
----
-544
-944
18

query I rowsort
SELECT ( - cor0.col0 + - cor0.col1 ) * 22 FROM tab1, tab1 AS cor0
----
9 values hashing to 96cef2e3435d3622896ce5a192103d6c

query I rowsort
SELECT ALL ( col2 ) + col0 AS col2 FROM tab1
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-3674
SELECT 6 DIV + col2 FROM tab0 cor0
----
0
0
6

skipif mysql # not compatible
query I rowsort label-3674
SELECT 6 / + col2 FROM tab0 cor0
----
0
0
6

query I rowsort
SELECT DISTINCT cor0.col1 * cor0.col0 + col0 + - cor0.col1 AS col2 FROM tab0 AS cor0
----
2002
3333
8097

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3676
SELECT DISTINCT CAST( NULL AS SIGNED ) - - 4 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3676
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - 4 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT - 25 + - col2 * col2 FROM tab0 AS cor0
----
-1114
-26
-6749

query I rowsort
SELECT DISTINCT + col2 + - col1 AS col1 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT DISTINCT 8 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
8

query I rowsort
SELECT col2 + 76 FROM tab1 AS cor0
----
130
133
172

onlyif mysql # use DIV operator for integer division
query I rowsort label-3681
SELECT DISTINCT - col0 DIV - 26 FROM tab0 cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-3681
SELECT DISTINCT - col0 / - 26 FROM tab0 cor0
----
0
1
3

query I rowsort
SELECT - - cor0.col1 AS col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT 43 - col0 * col0 * - col2 AS col2 FROM tab1
----
233515
529
614443

query I rowsort
SELECT DISTINCT cor0.col1 FROM tab0, tab1, tab0 cor0
----
86
91
97

query I rowsort
SELECT ALL + 97 AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c73fa6978df8525c99d6bc792bb27123

query I rowsort
SELECT ALL 64 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query I rowsort
SELECT + col1 * + ( + col2 ) FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-3688
SELECT - - cor0.col1 * - ( col0 ) DIV + col0 col2 FROM tab2 AS cor0
----
-17
-31
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3688
SELECT - - cor0.col1 * - ( col0 ) / + col0 col2 FROM tab2 AS cor0
----
-17
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-3689
SELECT - col2 * col0 + col0 DIV col1 FROM tab2 AS cor0
----
-189
-2027
-2998

skipif mysql # not compatible
query I rowsort label-3689
SELECT - col2 * col0 + col0 / col1 FROM tab2 AS cor0
----
-189
-2027
-2998

query I rowsort
SELECT - + col0 * + 60 AS col0 FROM tab1 AS cor0
----
-180
-3840
-4800

query I rowsort
SELECT + col0 + ( - 59 + - col1 ) * - col0 * - col0 AS col2 FROM tab2 AS cor0
----
-4403
-474237
-717834

onlyif mysql # use DIV operator for integer division
query I rowsort label-3692
SELECT - - col2 - - ( col1 ) DIV - col2 AS col1 FROM tab0 AS cor0
----
-96
31
81

skipif mysql # not compatible
query I rowsort label-3692
SELECT - - col2 - - ( col1 ) / - col2 AS col1 FROM tab0 AS cor0
----
-96
31
81

query I rowsort
SELECT - col1 * - ( - cor0.col1 ) - 37 * + col0 FROM tab1 AS cor0
----
-2468
-3129
-787

query I rowsort
SELECT + col0 * - col0 + + col0 AS col0 FROM tab1 AS cor0
----
-4032
-6
-6320

query I rowsort
SELECT 70 + - col1 AS col1 FROM tab1 AS cor0
----
44
57
60

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab1 AS cor1, tab1, tab2 cor2
----
3645 values hashing to dd5ce24448edb4b3ab62c251475d6548

query I rowsort
SELECT + 65 * + col1 * + col2 AS col0 FROM tab2
----
41990
54405
99710

query I rowsort
SELECT ALL + 82 + col1 FROM tab1 AS cor0
----
108
92
95

query I rowsort
SELECT + col1 * - col1 + col2 FROM tab1
----
-43
-622
-73

query I rowsort
SELECT col1 * col0 + col0 AS col1 FROM tab2
----
1422
224
4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-3701
SELECT col0 - - tab0.col2 DIV - col2 FROM tab0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-3701
SELECT col0 - - tab0.col2 / - col2 FROM tab0
----
23
34
88

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <= - col0
----

query I rowsort
SELECT col1 * col2 + - col2 * col1 FROM tab0 WHERE + col0 NOT BETWEEN ( + col2 + + col1 ) AND col0
----
0
0
0

query I rowsort
SELECT ALL col0 + col2 * col1 * - tab2.col1 - col0 FROM tab2 WHERE NOT NULL <= col0
----

query I rowsort
SELECT ALL + col1 * + col2 + + col1 + - col1 AS col1 FROM tab2
----
1534
646
837

query I rowsort
SELECT col1 * col0 - + col1 AS col1 FROM tab0
----
1978
3298
8008

query I rowsort
SELECT col2 * col2 AS col2 FROM tab0 WHERE NOT - col1 + + tab0.col2 < ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3708
SELECT tab2.col2 DIV col1 + + col1 + + col0 AS col0 FROM tab2
----
137
38
98

skipif mysql # not compatible
query I rowsort label-3708
SELECT tab2.col2 / col1 + + col1 + + col0 AS col0 FROM tab2
----
137
38
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab1.col0 col0 FROM tab1 WHERE NOT NULL IN ( col0 )
----

query I rowsort
SELECT DISTINCT tab2.col2 * - col2 * - tab2.col0 FROM tab2
----
114076
5103
52728

onlyif mysql # use DIV operator for integer division
query I rowsort label-3711
SELECT col1 DIV tab0.col1 col2 FROM tab0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3711
SELECT col1 / tab0.col1 col2 FROM tab0
----
1
1
1

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) NOT IN ( - col0 * col1 + - col0 )
----

query I rowsort
SELECT col2 + - col1 * col2 FROM tab1 AS cor0
----
-1152
-1350
-513

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 15 col2 FROM tab0 AS cor0
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 * col1 col0 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT tab0.col2 - + col0 AS col2 FROM tab0
----
-34
-7
9

query I rowsort
SELECT DISTINCT col2 + col0 * col1 AS col1 FROM tab1
----
1136
132
697

query I rowsort
SELECT col1 * - col1 + - col1 FROM tab1
----
-110
-182
-702

onlyif mysql # use DIV operator for integer division
query I rowsort label-3719
SELECT DISTINCT col0 DIV col1 + cor0.col0 AS col1 FROM tab2 AS cor0
----
7
79
83

skipif mysql # not compatible
query I rowsort label-3719
SELECT DISTINCT col0 / col1 + cor0.col0 AS col1 FROM tab2 AS cor0
----
7
79
83

query I rowsort
SELECT ALL + col0 * - col0 * cor0.col0 + + col2 FROM tab0 cor0
----
-13791
-42874
-704887

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - + col1 * col1 * col1 col2 FROM tab0
----
-635970
-753480
-912576

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NOT + col2 * col1 + col0 NOT BETWEEN NULL AND + col1 + col1 * col1
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3723
SELECT - col1 * - col1 DIV col1 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-3723
SELECT - col1 * - col1 / col1 FROM tab1
----
10
13
26

query I rowsort
SELECT DISTINCT - col2 * - col2 * - col1 FROM tab2
----
-22599
-24548
-39884

query I rowsort
SELECT DISTINCT col0 + col2 * col1 + col0 FROM tab0
----
167
2886
7640

query I rowsort
SELECT - col0 + col2 + col1 FROM tab1
----
29
3
77

query I rowsort
SELECT + col1 * tab0.col1 * tab0.col2 AS col2 FROM tab0
----
244068
679042
9409

query III rowsort
SELECT * FROM tab2 WHERE NULL <= ( + col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 + col0 * col1 NOT IN ( - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <> ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col1 * + cor0.col0 + col2 ) IN ( - col0 * + col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT ALL col1 + col1 + tab1.col2 FROM tab1
----
106
122
77

query I rowsort
SELECT ALL tab0.col2 + + 25 FROM tab0
----
107
26
58

query I rowsort
SELECT ALL + 64 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query I rowsort
SELECT ALL + col1 + ( - col1 ) AS col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + col1 * - ( col2 ) + cor0.col0 AS col1 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT - col2 * 69 FROM tab1 AS cor0
----
-3726
-3933
-6624

query I rowsort
SELECT - col0 * col1 + 64 * - col1 + + col1 * + col1 AS col0 FROM tab2
----
-1240
-2142
-4897

query I rowsort
SELECT DISTINCT 57 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
57

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 ALL + col1 + col1 * - col1 FROM tab2 AS cor0
----
-272
-3422
-930

query I rowsort
SELECT cor0.col2 + 92 AS col2 FROM tab2 AS cor0
----
118
119
130

query I rowsort
SELECT + cor0.col2 * - cor0.col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 309d8ba6d1ea89e6795c82dda466e1ce

query I rowsort
SELECT DISTINCT - ( - 38 ) + + col1 AS col2 FROM tab1 AS cor0
----
48
51
64

query I rowsort
SELECT - 51 - - col1 AS col1 FROM tab0 AS cor0
----
35
40
46

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3746
SELECT CAST( NULL AS SIGNED ) * ( - col1 ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3746
SELECT CAST ( NULL AS INTEGER ) * ( - col1 ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + ( col1 ) * - col2 + 18 FROM tab0 AS cor0
----
-2820
-7444
-79

query I rowsort
SELECT ALL + cor0.col0 + + col0 AS col2 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT + col0 - 32 AS col1 FROM tab0 cor0
----
-8
3
57

query I rowsort
SELECT ALL cor0.col2 + + col2 AS col1 FROM tab0 AS cor0
----
164
2
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3751
SELECT 19 + + col0 * + CAST( - 85 AS SIGNED ) FROM tab0
----
-2021
-2956
-7546

skipif mysql # not compatible
query I rowsort label-3751
SELECT 19 + + col0 * + CAST ( - 85 AS INTEGER ) FROM tab0
----
-2021
-2956
-7546

query I rowsort
SELECT DISTINCT - col0 + col2 * 96 FROM tab2 AS cor0
----
2418
2585
3569

query I rowsort
SELECT DISTINCT - + 16 + + col0 * ( col1 ) FROM tab1 cor0
----
1024
62
624

query I rowsort
SELECT DISTINCT - 55 + + col2 AS col2 FROM tab2 AS cor0
----
-17
-28
-29

onlyif mysql # use DIV operator for integer division
query I rowsort label-3755
SELECT ALL + 6 DIV col2 - + col1 * col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9403

skipif mysql # not compatible
query I rowsort label-3755
SELECT ALL + 6 / col2 - + col1 * col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9403

query I rowsort
SELECT ALL - col2 + + ( col2 ) * + col1 AS col1 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT DISTINCT col2 * + col2 AS col2 FROM tab1 cor0
----
2916
3249
9216

query I rowsort
SELECT ALL - + col1 * + cor0.col0 + col1 * col2 * + 39 AS col0 FROM tab2 AS cor0
----
23851
32426
55224

query I rowsort
SELECT ALL - col2 * - ( - 83 ) + + col1 + - col2 FROM tab1 AS cor0
----
-4510
-4778
-8051

query I rowsort
SELECT DISTINCT - col1 * - col2 - - 5 FROM tab2 AS cor0
----
1539
651
842

query I rowsort
SELECT DISTINCT - cor0.col2 - + col1 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT ALL + col1 * + ( + col0 ) FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT col0 * + ( cor0.col2 ) AS col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL - - col0 * ( - col1 ) * col0 + - col0 AS col0 FROM tab2 AS cor0
----
-106176
-1526
-359034

query I rowsort
SELECT ALL 77 * - col1 FROM tab1
----
-1001
-2002
-770

query I rowsort
SELECT ALL 49 AS col0 FROM tab2
----
49
49
49

query I rowsort
SELECT - tab0.col0 * ( 35 ) FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c96c366a51094cfa1fa0d86683841d60

query I rowsort
SELECT - 28 * 50 FROM tab0 cor0
----
-1400
-1400
-1400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - cor0.col2 + 38 ) col1 FROM tab2, tab2 cor0
----
9 values hashing to c4f66efd882996e9c47abed5a75b7150

query I rowsort
SELECT ALL cor0.col0 - + col1 AS col1 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT - 78 AS col1 FROM tab1 cor0
----
-78
-78
-78

query I rowsort
SELECT - - 10 + col2 FROM tab1 AS cor0
----
106
64
67

query I rowsort
SELECT 73 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
511
5694
5767

query I rowsort
SELECT DISTINCT 42 FROM tab1, tab2, tab1 AS cor0
----
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 48 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query I rowsort
SELECT DISTINCT 99 * col0 AS col0 FROM tab1
----
297
6336
7920

query I rowsort
SELECT + col2 * col0 + ( - col2 ) AS col0 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT ALL - - col1 * ( + col0 ) FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-3779
SELECT ALL - + col2 DIV + col1 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3779
SELECT ALL - + col2 / + col1 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - col0 + col2 * 31 FROM tab0 AS cor0
----
-4
2453
999

query I rowsort
SELECT + col0 * + cor0.col0 + + 64 FROM tab0 AS cor0
----
1289
640
7985

query I rowsort
SELECT DISTINCT + - col0 * + 41 FROM tab0 AS cor0
----
-1435
-3649
-984

query I rowsort
SELECT - col2 + - ( - 93 ) FROM tab1 AS cor0
----
-3
36
39

query I rowsort
SELECT ALL + col2 + col1 * 32 AS col2 FROM tab0 cor0
----
2785
2994
3105

query I rowsort
SELECT ALL - col2 * + 71 AS col0 FROM tab1 AS cor0
----
-3834
-4047
-6816

onlyif mysql # use DIV operator for integer division
query I rowsort label-3786
SELECT - col2 DIV - col0 - 50 AS col0 FROM tab0 AS cor0
----
-49
-50
-50

skipif mysql # not compatible
query I rowsort label-3786
SELECT - col2 / - col0 - 50 AS col0 FROM tab0 AS cor0
----
-49
-50
-50

query I rowsort
SELECT col2 * col2 - col0 * col0 FROM tab0 cor0
----
-1197
-1224
513

onlyif mysql # use DIV operator for integer division
query I rowsort label-3788
SELECT + - cor0.col1 DIV + cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-3788
SELECT + - cor0.col1 / + cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-2
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3789
SELECT - col2 DIV - col1 - col0 AS col1 FROM tab0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-3789
SELECT - col2 / - col1 - col0 AS col1 FROM tab0
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-3790
SELECT col1 + + col2 DIV - col0 FROM tab0 AS cor0
----
85
91
97

skipif mysql # not compatible
query I rowsort label-3790
SELECT col1 + + col2 / - col0 FROM tab0 AS cor0
----
85
91
97

query I rowsort
SELECT DISTINCT + col0 * - ( + ( col0 ) ) * - col1 + col1 FROM tab2
----
106114
1550
359015

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3792
SELECT ALL col0 + + CAST( + col2 AS SIGNED ) FROM tab0
----
171
36
57

skipif mysql # not compatible
query I rowsort label-3792
SELECT ALL col0 + + CAST ( + col2 AS INTEGER ) FROM tab0
----
171
36
57

query I rowsort
SELECT - col2 + + col0 * + col0 FROM tab0 AS cor0
----
1224
543
7839

query I rowsort
SELECT col1 * - 9 FROM tab0
----
-774
-819
-873

query I rowsort
SELECT - - ( + col0 ) * + col1 * ( col2 ) + - col2 FROM tab2 AS cor0
----
119626
50996
5832

query I rowsort
SELECT DISTINCT + col0 * + col0 + + col0 * + ( - col0 ) AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + + col2 + col2 + col2 AS col1 FROM tab2 AS cor0
----
114
78
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - col1 col0 FROM tab1 AS cor0
----
-29
-74
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-3799
SELECT DISTINCT + - col0 + cor0.col1 DIV + col2 AS col1 FROM tab0 AS cor0
----
-22
-88
62

skipif mysql # not compatible
query I rowsort label-3799
SELECT DISTINCT + - col0 + cor0.col1 / + col2 AS col1 FROM tab0 AS cor0
----
-22
-88
62

query I rowsort
SELECT ( col2 ) + col1 AS col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT + ( + col2 ) * col0 AS col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - 72 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

query I rowsort
SELECT ( 95 ) + col0 * col0 + 82 AS col1 FROM tab1 AS cor0
----
186
4273
6577

query I rowsort
SELECT 97 * + col1 FROM tab0 AS cor0
----
8342
8827
9409

query I rowsort
SELECT - 97 * - 48 * col2 AS col2 FROM tab2 AS cor0
----
121056
125712
176928

query I rowsort
SELECT + 13 FROM tab0 cor0
----
13
13
13

query I rowsort
SELECT DISTINCT - 3 - col2 AS col1 FROM tab1 cor0
----
-57
-60
-99

query I rowsort
SELECT + - 66 AS col0 FROM tab0 AS cor0
----
-66
-66
-66

query I rowsort
SELECT - - col1 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + 84 + - tab1.col1 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 07473b34633286566feeddad35114092

query I rowsort
SELECT DISTINCT ( col1 + 87 ) FROM tab2
----
104
118
146

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3812
SELECT col2 + CAST( col0 AS SIGNED ) * + col2 AS col1 FROM tab1
----
216
3705
7776

skipif mysql # not compatible
query I rowsort label-3812
SELECT col2 + CAST ( col0 AS INTEGER ) * + col2 AS col1 FROM tab1
----
216
3705
7776

query I rowsort
SELECT - cor0.col1 * col0 + 9 FROM tab1 AS cor0
----
-1031
-631
-69

query I rowsort
SELECT + + col0 - - 3 FROM tab2 AS cor0
----
10
81
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-3815
SELECT - col2 DIV + 29 FROM tab1
----
-1
-1
-3

skipif mysql # not compatible
query I rowsort label-3815
SELECT - col2 / + 29 FROM tab1
----
-1
-1
-3

query I rowsort
SELECT DISTINCT col0 * col1 * ( col0 ) FROM tab1
----
234
40960
83200

query I rowsort
SELECT DISTINCT 60 * cor1.col0 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
1440
2100
5340

onlyif mysql # use DIV operator for integer division
query I rowsort label-3818
SELECT - col0 + 41 DIV 17 FROM tab2 AS cor0
----
-5
-76
-77

skipif mysql # not compatible
query I rowsort label-3818
SELECT - col0 + 41 / 17 FROM tab2 AS cor0
----
-5
-76
-77

query I rowsort
SELECT - 55 * col0 - 63 AS col2 FROM tab0 AS cor0
----
-1383
-1988
-4958

query I rowsort
SELECT cor0.col2 * col2 + 91 FROM tab1 AS cor0
----
3007
3340
9307

query I rowsort
SELECT ALL - col2 + col1 * 83 + + col0 AS col2 FROM tab1
----
1063
2107
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col0 + col0 col2 FROM tab2
----
14
156
158

query I rowsort
SELECT DISTINCT - + cor0.col2 * col1 * - col0 AS col1 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT + col0 * - col1 - + col1 AS col0 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT - 37 + - col0 AS col0 FROM tab1 AS cor0
----
-101
-117
-40

query I rowsort
SELECT ALL 69 + col1 * col1 FROM tab1 cor0
----
169
238
745

query I rowsort
SELECT DISTINCT - - 23 AS col2 FROM tab1 AS cor0
----
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-3828
SELECT DISTINCT + col1 DIV - cor0.col2 col1 FROM tab0 AS cor0
----
-1
-2
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3828
SELECT DISTINCT + col1 / - cor0.col2 col1 FROM tab0 AS cor0
----
-1
-2
-97

query I rowsort
SELECT ALL - - cor0.col2 * - col2 * + 23 FROM tab0 AS cor0
----
-154652
-23
-25047

onlyif mysql # use DIV operator for integer division
query I rowsort label-3830
SELECT + col0 + - col1 DIV - col0 col1 FROM tab1 AS cor0
----
11
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3830
SELECT + col0 + - col1 / - col0 col1 FROM tab1 AS cor0
----
11
64
80

query I rowsort
SELECT + - 47 AS col0 FROM tab2 AS cor0
----
-47
-47
-47

query I rowsort
SELECT DISTINCT + + 81 * + col0 + + col0 AS col1 FROM tab1 AS cor0
----
246
5248
6560

query I rowsort
SELECT DISTINCT 28 * col1 + col0 AS col0 FROM tab1 AS cor0
----
344
444
731

onlyif mysql # use DIV operator for integer division
query I rowsort label-3834
SELECT 1 DIV + cor0.col1 - col2 * col2 FROM tab0 AS cor0
----
-1
-1089
-6724

skipif mysql # not compatible
query I rowsort label-3834
SELECT 1 / + cor0.col1 - col2 * col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL + - col0 + - cor0.col1 AS col2 FROM tab2 cor0
----
-137
-38
-96

query I rowsort
SELECT ALL - 54 * - col2 FROM tab0 AS cor0
----
1782
4428
54

query I rowsort
SELECT DISTINCT col0 + ( + 73 ) * col0 FROM tab0 AS cor0
----
1776
2590
6586

query I rowsort
SELECT ALL - - col1 * + 84 FROM tab0 AS cor0
----
7224
7644
8148

query I rowsort
SELECT col2 * - 64 * - col2 FROM tab0 cor0
----
430336
64
69696

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 * + col0 col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT - tab2.col2 * + col2 FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT + col2 * + 73 AS col2 FROM tab2 AS cor0
----
1898
1971
2774

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 73 ) + + cor0.col0 * col0 col0 FROM tab0 cor0
----
1152
503
7848

query I rowsort
SELECT cor1.col0 AS col2 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT ( cor0.col2 ) FROM tab1, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT + + 57 * + col0 FROM tab0 AS cor0
----
1368
1995
5073

query I rowsort
SELECT ALL 66 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 897b6122ac98340b78905f39d81897fc

query I rowsort
SELECT + ( + col0 ) * + cor0.col2 FROM tab0 AS cor0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - 93 * col1 col1 FROM tab0
----
-191952
-315735
-753207

query I rowsort
SELECT ALL - 34 + + 32 FROM tab2, tab1, tab0 cor0
----
27 values hashing to 20c9213316527d507e26425041e08387

query I rowsort
SELECT ALL + - cor0.col0 + - col0 + - 78 FROM tab1 AS cor0
----
-206
-238
-84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3852
SELECT DISTINCT col1 * - col0 + CAST( - col2 * - col1 AS SIGNED ) + - col0 AS col0 FROM tab2 AS cor0
----
-3146
-776
613

skipif mysql # not compatible
query I rowsort label-3852
SELECT DISTINCT col1 * - col0 + CAST ( - col2 * - col1 AS INTEGER ) + - col0 AS col0 FROM tab2 AS cor0
----
-3146
-776
613

query I rowsort
SELECT DISTINCT ( + 12 ) AS col0 FROM tab1
----
12

query I rowsort
SELECT DISTINCT - 7 + col1 * - tab2.col2 * 53 + + col0 * col0 AS col0 FROM tab2
----
-28004
-44319
-75225

query I rowsort
SELECT DISTINCT + col2 * - col1 + + 87 FROM tab0
----
-10
-2751
-7375

onlyif mysql # use DIV operator for integer division
query I rowsort label-3856
SELECT ALL 49 DIV - tab0.col2 + + ( + col0 ) col0 FROM tab0
----
-14
23
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3856
SELECT ALL 49 / - tab0.col2 + + ( + col0 ) col0 FROM tab0
----
-14
23
89

query I rowsort
SELECT - tab2.col0 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3858
SELECT col0 * + col0 / CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3858
SELECT col0 * + col0 / CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + - col0 + 44 * + 30 * + col2 AS col1 FROM tab0
----
108242
1382
43622

query I rowsort
SELECT + col1 + - col2 + - ( col0 ) FROM tab2
----
-100
-3
-45

query I rowsort
SELECT DISTINCT - - 77 * - col0 + - col1 AS col2 FROM tab2 AS cor0
----
-570
-6065
-6100

query I rowsort
SELECT ALL 9 AS col1 FROM tab0 AS cor0
----
9
9
9

query I rowsort
SELECT ALL - - cor0.col0 * - col1 + - col0 * 0 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT - col1 * col1 - col0 FROM tab1 AS cor0
----
-164
-249
-679

query I rowsort
SELECT ALL + cor0.col1 * - 47 AS col2 FROM tab1 AS cor0
----
-1222
-470
-611

query I rowsort
SELECT ALL + col0 * col0 + 86 AS col1 FROM tab2
----
135
6170
6327

query I rowsort
SELECT ALL + 50 AS col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 314aace40e704c20a6be06204a329f80

query I rowsort
SELECT ALL cor2.col1 FROM tab2, tab0 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c

query I rowsort
SELECT DISTINCT - 41 * + col2 * col0 + 96 AS col2 FROM tab2 cor0
----
-122986
-7653
-83052

query I rowsort
SELECT DISTINCT + ( 35 ) * + col2 FROM tab0 AS cor0
----
1155
2870
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-3871
SELECT ( col1 ) DIV col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3871
SELECT ( col1 ) / col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + + 84 AS col0 FROM tab0 cor0
----
84

query I rowsort
SELECT ALL + col0 * 82 AS col1 FROM tab1 AS cor0
----
246
5248
6560

onlyif mysql # use DIV operator for integer division
query I rowsort label-3874
SELECT DISTINCT + + cor0.col0 DIV 91 + - col0 FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-3874
SELECT DISTINCT + + cor0.col0 / 91 + - col0 FROM tab2 AS cor0
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-3875
SELECT - + col2 DIV col0 col2 FROM tab2 AS cor0
----
-3
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3875
SELECT - + col2 / col0 col2 FROM tab2 AS cor0
----
-3
0
0

query I rowsort
SELECT DISTINCT ( + col2 ) * + col0 + - 25 FROM tab1 AS cor0
----
137
3623
7655

query I rowsort
SELECT ALL - 62 FROM tab1 cor0
----
-62
-62
-62

query I rowsort
SELECT - + 7 * col0 + col2 AS col1 FROM tab1 AS cor0
----
-391
-464
33

query I rowsort
SELECT DISTINCT + - cor0.col0 + col0 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - col0 + + ( col2 ) FROM tab0
----
-34
-7
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 36 + - col0 col2 FROM tab2 AS cor0
----
-42
-43
29

onlyif mysql # use DIV operator for integer division
query I rowsort label-3882
SELECT tab1.col0 - col2 DIV + tab1.col2 FROM tab1
----
2
63
79

skipif mysql # not compatible
query I rowsort label-3882
SELECT tab1.col0 - col2 / + tab1.col2 FROM tab1
----
2
63
79

query I rowsort
SELECT ALL - 54 * col1 + + col2 FROM tab1 AS cor0
----
-1350
-483
-606

query I rowsort
SELECT DISTINCT + 92 + col0 FROM tab1 AS cor0
----
156
172
95

query I rowsort
SELECT DISTINCT + + ( - cor0.col0 ) * - col2 AS col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT + 63 AS col2 FROM tab1 cor0
----
63
63
63

query I rowsort
SELECT col1 * + col1 + col0 * - col2 * col1 AS col0 FROM tab2 AS cor0
----
-116171
-4898
-50745

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col2 ) - - col1 col2 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT 95 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query I rowsort
SELECT - col2 * col1 * - ( + tab0.col2 ) AS col1 FROM tab0
----
611884
93654
97

query I rowsort
SELECT DISTINCT 22 * + col0 * - ( + 29 * col0 + col0 ) FROM tab0
----
-380160
-5227860
-808500

onlyif mysql # use DIV operator for integer division
query I rowsort label-3892
SELECT col0 * col1 + 43 DIV - cor0.col2 FROM tab1 AS cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-3892
SELECT col0 * col1 + 43 / - cor0.col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT + + 33 + + 94 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
127

onlyif mysql # use DIV operator for integer division
query I rowsort label-3894
SELECT DISTINCT 94 DIV col0 AS col0 FROM tab2
----
1
13

skipif mysql # not compatible
query I rowsort label-3894
SELECT DISTINCT 94 / col0 AS col0 FROM tab2
----
1
13

query I rowsort
SELECT ALL + 98 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2

query I rowsort
SELECT DISTINCT - col2 * ( 82 ) FROM tab0
----
-2706
-6724
-82

query I rowsort
SELECT - + col2 + 28 FROM tab2 cor0
----
-10
1
2

query I rowsort
SELECT + col0 + + col2 + cor0.col2 AS col1 FROM tab1 AS cor0
----
111
178
272

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3899
SELECT - + col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3899
SELECT - + col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 * ( col0 ) AS col1 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT + ( ( + col2 ) ) + col2 FROM tab2
----
52
54
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 64 + ( col0 ) col2 FROM tab2 AS cor0
----
-57
14
15

query I rowsort
SELECT 27 FROM tab1, tab0 AS cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query I rowsort
SELECT DISTINCT + - 75 AS col2 FROM tab2 AS cor0
----
-75

query I rowsort
SELECT - col1 - cor0.col1 * - col1 AS col1 FROM tab0 AS cor0
----
7310
8190
9312

query I rowsort
SELECT - + 14 - - col2 AS col0 FROM tab2 AS cor0
----
12
13
24

query I rowsort
SELECT ALL - 54 + col1 + - col2 AS col1 FROM tab0 AS cor0
----
-1
-45
42

query I rowsort
SELECT + 34 - col0 * + 4 AS col0 FROM tab0 AS cor0
----
-106
-322
-62

query I rowsort
SELECT DISTINCT - col2 * - col1 + col0 AS col1 FROM tab0
----
132
2862
7551

onlyif mysql # use DIV operator for integer division
query I rowsort label-3910
SELECT ( ( + col2 ) + col2 ) DIV + 65 AS col1 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-3910
SELECT ( ( + col2 ) + col2 ) / + 65 AS col1 FROM tab0
----
0
1
2

query I rowsort
SELECT - col2 + col1 + col0 * 25 AS col2 FROM tab1
----
1553
1917
47

query I rowsort
SELECT DISTINCT - col2 + tab1.col2 AS col2 FROM tab1
----
0

query I rowsort
SELECT - + col0 * col0 - - 97 AS col1 FROM tab0 AS cor0
----
-1128
-479
-7824

query I rowsort
SELECT 17 * col2 + + ( col0 ) * - col2 AS col2 FROM tab0 AS cor0
----
-18
-231
-5904

query I rowsort
SELECT - - col0 + col2 * + col2 AS col1 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT + cor0.col0 * cor0.col2 + - 91 AS col0 FROM tab0 AS cor0
----
-56
701
7207

query I rowsort
SELECT DISTINCT cor1.col0 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
3
64
80

query I rowsort
SELECT DISTINCT + 75 - col2 FROM tab0
----
-7
42
74

query I rowsort
SELECT DISTINCT col2 * col2 * - ( tab0.col2 ) FROM tab0
----
-1
-35937
-551368

query I rowsort
SELECT ALL - - 84 AS col0 FROM tab1 cor0
----
84
84
84

query I rowsort
SELECT 20 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 0a35fe98f3e7d5fc8ff2ae815bd20ef4

query I rowsort
SELECT + ( col1 ) * - col0 + + col0 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT - cor0.col0 + 44 * + col1 FROM tab2 AS cor0
----
1357
2518
669

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + col0 + + col2 * col2 col0 FROM tab1 AS cor0
----
2973
3370
9392

query I rowsort
SELECT ALL + + col1 * col0 * - 79 + + col1 AS col0 FROM tab2 AS cor0
----
-106080
-17112
-363499

query I rowsort
SELECT ALL + - col1 * ( 43 * col1 ) + + col2 FROM tab0 AS cor0
----
-317995
-356001
-404586

query I rowsort
SELECT DISTINCT - col1 + - col2 * + ( + col1 ) FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT ALL col0 + ( + col2 ) * + col0 * - col0 AS col0 FROM tab1 AS cor0
----
-233408
-483
-614320

query I rowsort
SELECT ALL - col0 * + col1 + + col0 + col1 FROM tab0 AS cor0
----
-1954
-3263
-7919

query I rowsort
SELECT DISTINCT + cor0.col1 * - 26 - + col2 FROM tab1 AS cor0
----
-317
-434
-730

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * col0 - - col1 col2 FROM tab2 AS cor0
----
-18
-6025
-6224

query I rowsort
SELECT col2 * - col2 + 30 FROM tab2 AS cor0
----
-1414
-646
-699

query I rowsort
SELECT ALL - tab2.col1 AS col1 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT DISTINCT col2 + 55 * col1 * col0 FROM tab2 AS cor0
----
11962
253136
73903

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3935
SELECT ALL - cor0.col2 + CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3935
SELECT ALL - cor0.col2 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + - 14 * + 60 * col0 FROM tab1 AS cor0
----
-2520
-53760
-67200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 85 + col0 col2 FROM tab0 cor0
----
109
120
174

query I rowsort
SELECT + ( col2 ) * col1 * cor0.col2 AS col1 FROM tab2 AS cor0
----
22599
24548
39884

query I rowsort
SELECT col2 * - ( - cor0.col1 ) FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3940
SELECT - + CAST( + cor0.col0 AS SIGNED ) * - cor0.col2 AS col2 FROM tab1 AS cor0
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-3940
SELECT - + CAST ( + cor0.col0 AS INTEGER ) * - cor0.col2 AS col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL + 10 * ( - col1 ) FROM tab2 AS cor0
----
-170
-310
-590

query I rowsort
SELECT + + col0 + + col0 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT ALL + cor0.col1 * 34 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 415ebb5288da4ad39bce2a37614e97c7

query I rowsort
SELECT ALL - 46 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

query I rowsort
SELECT DISTINCT + + col2 * cor0.col2 * + col1 FROM tab2 AS cor0
----
22599
24548
39884

query I rowsort
SELECT + + 89 * + 42 FROM tab1 AS cor0
----
3738
3738
3738

query I rowsort
SELECT ALL + - col1 * 12 FROM tab0 cor0
----
-1032
-1092
-1164

query I rowsort
SELECT + tab0.col0 + ( col1 + + col2 ) FROM tab0
----
133
143
262

query I rowsort
SELECT ALL + cor0.col0 + + cor1.col0 AS col1 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to a5a6e23490efe08c31b2e8e8ce66d4e2

query I rowsort
SELECT DISTINCT - col2 * - ( - 50 ) AS col0 FROM tab0
----
-1650
-4100
-50

query I rowsort
SELECT ALL + + ( 84 ) * + col2 FROM tab0 AS cor0
----
2772
6888
84

query I rowsort
SELECT DISTINCT + 74 * + col1 AS col0 FROM tab0 AS cor0
----
6364
6734
7178

query I rowsort
SELECT 26 * col2 - - col2 FROM tab0 AS cor0
----
2214
27
891

query I rowsort
SELECT DISTINCT - - ( 92 ) FROM tab1 AS cor0
----
92

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3955
SELECT DISTINCT CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-3955
SELECT DISTINCT CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT 73 + col2 AS col0 FROM tab1 AS cor0
----
127
130
169

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * - cor0.col1 * + cor0.col2 col0 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT + 59 * ( col2 ) + + col1 * + col1 - + col0 * 74 * + col0 AS col0 FROM tab0 AS cor0
----
-33281
-573035
-81182

query I rowsort
SELECT cor0.col0 * 79 FROM tab2 AS cor0
----
553
6162
6241

query I rowsort
SELECT DISTINCT + col0 + - col2 * cor0.col0 * - 69 AS col0 FROM tab0 AS cor0
----
2450
503651
54672

query I rowsort
SELECT DISTINCT + col1 + + 61 FROM tab1 AS cor0
----
71
74
87

query I rowsort
SELECT ALL - ( cor0.col0 ) * - col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-3963
SELECT - col1 DIV + cor0.col1 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3963
SELECT - col1 / + cor0.col1 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - + col2 * 91 FROM tab2 AS cor0
----
-2366
-2457
-3458

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3965
SELECT ALL - CAST( NULL AS SIGNED ) + + ( col0 ) * - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3965
SELECT ALL - CAST ( NULL AS INTEGER ) + + ( col0 ) * - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3966
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * ( - cor0.col2 ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3966
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * ( - cor0.col2 ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3967
SELECT ALL - + CAST( + col2 AS SIGNED ) + cor0.col0 FROM tab1 AS cor0
----
-16
-51
7

skipif mysql # not compatible
query I rowsort label-3967
SELECT ALL - + CAST ( + col2 AS INTEGER ) + cor0.col0 FROM tab1 AS cor0
----
-16
-51
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-3968
SELECT col2 DIV col2 + + 59 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
1417
2066
5252

skipif mysql # not compatible
query I rowsort label-3968
SELECT col2 / col2 + + 59 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
1417
2066
5252

query I rowsort
SELECT DISTINCT 14 AS col2 FROM tab1 AS cor0
----
14

onlyif mysql # use DIV operator for integer division
query I rowsort label-3970
SELECT ALL + col1 * - col0 + - 81 DIV + col0 AS col0 FROM tab2 AS cor0
----
-1344
-228
-4603

skipif mysql # not compatible
query I rowsort label-3970
SELECT ALL + col1 * - col0 + - 81 / + col0 AS col0 FROM tab2 AS cor0
----
-1344
-228
-4603

query I rowsort
SELECT DISTINCT + - cor0.col2 - cor0.col2 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT DISTINCT - - col1 - cor0.col1 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT col2 + + col1 * + col0 AS col2 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT ALL - ( + col2 ) * + ( 42 ) AS col0 FROM tab0 AS cor0
----
-1386
-3444
-42

query I rowsort
SELECT 21 + - col0 FROM tab2 AS cor0
----
-57
-58
14

query I rowsort
SELECT ALL - + 5 * col0 AS col1 FROM tab2 AS cor0
----
-35
-390
-395

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3977
SELECT + col2 / + CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3977
SELECT + col2 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * ( - col1 ) AS col1 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT 99 * cor0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 3587ed66d17f1b4e9ff1c73ae5bd2da4

query I rowsort
SELECT ALL - col0 * - cor0.col2 + col2 + - col2 AS col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT + cor0.col2 + + cor0.col0 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT DISTINCT - col2 * + col2 + + col2 * cor0.col0 FROM tab0 AS cor0
----
-297
34
574

onlyif mysql # use DIV operator for integer division
query I rowsort label-3983
SELECT DISTINCT + col0 * col1 + 39 DIV + col0 col2 FROM tab0 AS cor0
----
2065
3396
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3983
SELECT DISTINCT + col0 * col1 + 39 / + col0 col2 FROM tab0 AS cor0
----
2065
3396
8099

query I rowsort
SELECT DISTINCT col0 + - ( 7 ) * + col0 + cor0.col2 FROM tab2 AS cor0
----
-15
-436
-442

query I rowsort
SELECT ALL col2 * cor0.col0 + col1 AS col2 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT - col0 + 37 * - cor0.col2 FROM tab1 AS cor0
----
-2001
-2173
-3632

query I rowsort
SELECT ALL - + col2 * - 24 FROM tab1 AS cor0
----
1296
1368
2304

query I rowsort
SELECT - col2 * - cor0.col1 + col2 AS col1 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT ALL - col0 * + 12 + col1 AS col0 FROM tab0 AS cor0
----
-202
-323
-977

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3990
SELECT ALL + col1 * + CAST( NULL AS SIGNED ) - col1 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3990
SELECT ALL + col1 * + CAST ( NULL AS INTEGER ) - col1 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + + 62 AS col2 FROM tab2 cor0
----
100
88
89

query I rowsort
SELECT col1 * + ( 29 ) + tab1.col0 FROM tab1
----
354
457
757

query I rowsort
SELECT - cor0.col2 + + cor0.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 0bd022e691ee49f12c598975818ed537

query I rowsort
SELECT + 15 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3995
SELECT ALL + CAST( NULL AS DECIMAL ) AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3995
SELECT ALL + CAST ( NULL AS REAL ) AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 69 * col1 - - col0 col2 FROM tab0 AS cor0
----
5958
6368
6728

query I rowsort
SELECT ALL + + 53 FROM tab0 AS cor0
----
53
53
53

onlyif mysql # use DIV operator for integer division
query I rowsort label-3998
SELECT ALL col2 DIV + col2 + - 20 col1 FROM tab0
----
-19
-19
-19

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3998
SELECT ALL col2 / + col2 + - 20 col1 FROM tab0
----
-19
-19
-19

query I rowsort
SELECT ALL - 94 AS col0 FROM tab1
----
-94
-94
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col1 + ( 66 ) col2 FROM tab1 cor0
----
-12
-574
-974

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 12 * cor0.col0 col0 FROM tab1 AS cor0
----
36
768
960

query I rowsort
SELECT 90 + col0 * + cor0.col2 FROM tab1 cor0
----
252
3738
7770

query I rowsort
SELECT ( - 27 ) * col1 - + col2 AS col1 FROM tab0 AS cor0
----
-2355
-2539
-2620

query I rowsort
SELECT - ( cor0.col2 ) * + cor0.col1 - + col2 FROM tab0 AS cor0
----
-2871
-7544
-98

query I rowsort
SELECT ALL col2 * + 10 * col2 AS col2 FROM tab2
----
14440
6760
7290

query I rowsort
SELECT DISTINCT col1 + 4 FROM tab2
----
21
35
63

query I rowsort
SELECT ALL + ( col1 ) + col0 AS col1 FROM tab1
----
29
74
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4008
SELECT - CAST( NULL AS DECIMAL ) * col2 + - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4008
SELECT - CAST ( NULL AS REAL ) * col2 + - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4009
SELECT - - CAST( NULL AS SIGNED ) / + col1 - + col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4009
SELECT - - CAST ( NULL AS INTEGER ) / + col1 - + col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( - cor0.col2 ) * + col2 + cor0.col0 * col2 FROM tab1 AS cor0
----
-1536
-2754
399

query I rowsort
SELECT - 68 * - col2 AS col2 FROM tab0
----
2244
5576
68

query I rowsort
SELECT DISTINCT ( 77 ) * - col2 FROM tab2
----
-2002
-2079
-2926

query I rowsort
SELECT - 59 + col0 AS col1 FROM tab1
----
-56
21
5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4014
SELECT CAST( NULL AS SIGNED ) + - 1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-4014
SELECT CAST ( NULL AS INTEGER ) + - 1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT + col0 + 61 * - cor0.col2 FROM tab2 AS cor0
----
-1508
-1640
-2239

query I rowsort
SELECT DISTINCT - col2 * ( 51 ) FROM tab2 AS cor0
----
-1326
-1377
-1938

query I rowsort
SELECT - col0 + col2 * - ( + col0 ) AS col2 FROM tab0 AS cor0
----
-70
-7387
-816

query I rowsort
SELECT - - col0 + + cor0.col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT + col2 * col1 * col2 AS col1 FROM tab2 cor0
----
22599
24548
39884

query I rowsort
SELECT ALL + col1 * - col2 + - col2 * - cor0.col0 FROM tab2 AS cor0
----
-648
2356
494

query I rowsort
SELECT DISTINCT col2 - col0 AS col0 FROM tab0 cor0
----
-34
-7
9

query I rowsort
SELECT DISTINCT + + cor0.col0 + + col0 * col0 FROM tab1 cor0
----
12
4160
6480

query I rowsort
SELECT ALL - + cor0.col0 * - col2 + col1 FROM tab2 AS cor0
----
2087
220
3019

onlyif mysql # use DIV operator for integer division
query I rowsort label-4024
SELECT DISTINCT cor0.col1 DIV col2 AS col2 FROM tab0 cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-4024
SELECT DISTINCT cor0.col1 / col2 AS col2 FROM tab0 cor0
----
1
2
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + cor0.col1 col1 FROM tab2 cor0
----
-21
33
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-4026
SELECT + 56 + - cor0.col1 DIV col2 FROM tab0 AS cor0
----
-41
54
55

skipif mysql # not compatible
query I rowsort label-4026
SELECT + 56 + - cor0.col1 / col2 FROM tab0 AS cor0
----
-41
54
55

query I rowsort
SELECT + ( - cor0.col0 ) * + col1 + col1 FROM tab2 cor0
----
-1326
-186
-4543

query I rowsort
SELECT DISTINCT cor1.col0 + cor0.col2 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f2656d9e76ae2d6dc568bba21c85e398

query I rowsort
SELECT - - col1 * col0 AS col1 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT + 28 * - col1 * col2 FROM tab1 AS cor0
----
-15960
-34944
-39312

query I rowsort
SELECT + 68 + col1 AS col2 FROM tab1 AS cor0
----
78
81
94

query I rowsort
SELECT - - 98 * col1 * + col0 FROM tab1 AS cor0
----
101920
62720
7644

query I rowsort
SELECT + 87 + + col2 * col2 AS col1 FROM tab0 AS cor0
----
1176
6811
88

query I rowsort
SELECT ALL + - col1 * + col1 + - col1 + - col0 FROM tab1 AS cor0
----
-174
-262
-705

query I rowsort
SELECT DISTINCT col1 + col1 * - col1 AS col0 FROM tab2 AS cor0
----
-272
-3422
-930

query I rowsort
SELECT + col2 * col0 + col2 AS col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT col0 * + cor0.col1 + cor0.col0 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT DISTINCT ( + tab0.col2 + col0 ) AS col0 FROM tab0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col0 col2 FROM tab2
----
1343
217
4602

query I rowsort
SELECT DISTINCT 17 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
442
459
646

query I rowsort
SELECT ALL 64 * col1 + + 80 AS col2 FROM tab0 AS cor0
----
5584
5904
6288

query I rowsort
SELECT ALL 71 + - col2 FROM tab2 AS cor0
----
33
44
45

query I rowsort
SELECT DISTINCT - - 97 * - col0 + cor0.col2 * + 7 FROM tab0 AS cor0
----
-2097
-3388
-8059

query I rowsort
SELECT - + col0 + - col2 FROM tab2 cor0
----
-104
-117
-34

query I rowsort
SELECT ALL - 28 + - col1 FROM tab0 cor0
----
-114
-119
-125

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col2 ) * col2 + - col1 col2 FROM tab0
----
-96
1003
6633

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - tab0.col2 col1 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT col0 - - col0 * tab0.col0 * ( 28 ) AS col2 FROM tab0
----
16152
221877
34335

query I rowsort
SELECT ALL col2 + 45 AS col0 FROM tab2
----
71
72
83

query I rowsort
SELECT DISTINCT 19 * 48 + - col0 + + col2 AS col1 FROM tab1
----
905
928
963

query I rowsort
SELECT DISTINCT + 4 AS col1 FROM tab0 AS cor0
----
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 75 * + col2 col0 FROM tab0 AS cor0
----
-2475
-6150
-75

onlyif mysql # use DIV operator for integer division
query I rowsort label-4053
SELECT - - col0 DIV - cor0.col1 FROM tab1 AS cor0
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-4053
SELECT - - col0 / - cor0.col1 FROM tab1 AS cor0
----
-6
-6
0

query I rowsort
SELECT ALL col0 + col1 * ( + col0 ) + - 9 FROM tab0
----
2079
3421
8179

query I rowsort
SELECT + 3 * - 70 - + cor2.col1 FROM tab0 AS cor0 CROSS JOIN tab1, tab0 cor1, tab1 AS cor2
----
81 values hashing to 57a4c75cf218f20da57643b15b642887

onlyif mysql # use DIV operator for integer division
query I rowsort label-4056
SELECT - col0 + ( - cor0.col1 ) DIV + col0 AS col1 FROM tab2 cor0
----
-11
-78
-79

skipif mysql # not compatible
query I rowsort label-4056
SELECT - col0 + ( - cor0.col1 ) / + col0 AS col1 FROM tab2 cor0
----
-11
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-4057
SELECT - + col1 + col0 DIV cor0.col2 FROM tab1 AS cor0
----
-13
-26
-9

skipif mysql # not compatible
query I rowsort label-4057
SELECT - + col1 + col0 / cor0.col2 FROM tab1 AS cor0
----
-13
-26
-9

query I rowsort
SELECT + col0 * ( + col2 ) AS col1 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-4059
SELECT ( col2 ) DIV col0 FROM tab0 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4059
SELECT ( col2 ) / col0 FROM tab0 cor0
----
0
0
1

query I rowsort
SELECT DISTINCT + + cor0.col0 FROM tab1, tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ( - ( + col1 ) ) * col1 + + 78 AS col1 FROM tab1 AS cor0
----
-22
-598
-91

query I rowsort
SELECT ALL col2 + - col1 * col0 AS col2 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT DISTINCT - ( - 68 ) + col0 * col1 * + col2 FROM tab0 cor0
----
3463
664186
68180

query I rowsort
SELECT + + cor0.col2 * cor0.col1 + - col0 FROM tab2 cor0
----
1456
567
830

onlyif mysql # use DIV operator for integer division
query I rowsort label-4065
SELECT + col1 DIV - col1 col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4065
SELECT + col1 / - col1 col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 71 col2 FROM tab0 AS cor0
----
-71
-71
-71

onlyif mysql # use DIV operator for integer division
query I rowsort label-4067
SELECT DISTINCT col2 - 84 DIV + col2 FROM tab1 cor0
----
53
56
96

skipif mysql # not compatible
query I rowsort label-4067
SELECT DISTINCT col2 - 84 / + col2 FROM tab1 cor0
----
53
56
96

query I rowsort
SELECT DISTINCT + 63 + + col0 * + col1 AS col2 FROM tab0 AS cor0
----
2127
3458
8162

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4069
SELECT DISTINCT - CAST( 43 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-4069
SELECT DISTINCT - CAST ( 43 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-43

onlyif mysql # use DIV operator for integer division
query I rowsort label-4070
SELECT ALL + col2 DIV ( col2 ) FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4070
SELECT ALL + col2 / ( col2 ) FROM tab1 AS cor0
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4071
SELECT ALL + CAST( - col0 AS SIGNED ) + col0 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4071
SELECT ALL + CAST ( - col0 AS INTEGER ) + col0 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - ( + col2 ) AS col0 FROM tab2 AS cor0
----
-26
-27
-38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4073
SELECT DISTINCT - CAST( - 71 AS SIGNED ) - - col0 * + 72 AS col0 FROM tab1 AS cor0
----
287
4679
5831

skipif mysql # not compatible
query I rowsort label-4073
SELECT DISTINCT - CAST ( - 71 AS INTEGER ) - - col0 * + 72 AS col0 FROM tab1 AS cor0
----
287
4679
5831

query I rowsort
SELECT - 29 * 76 FROM tab2 cor0
----
-2204
-2204
-2204

query I rowsort
SELECT ALL 26 * - col1 + col2 AS col2 FROM tab1 AS cor0
----
-203
-242
-622

onlyif mysql # use DIV operator for integer division
query I rowsort label-4076
SELECT DISTINCT - + ( col1 ) + col0 DIV + col0 FROM tab2 AS cor0
----
-16
-30
-58

skipif mysql # not compatible
query I rowsort label-4076
SELECT DISTINCT - + ( col1 ) + col0 / + col0 FROM tab2 AS cor0
----
-16
-30
-58

query I rowsort
SELECT ALL + col0 * col1 + + col1 AS col2 FROM tab2 AS cor0
----
1360
248
4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-4078
SELECT cor0.col2 DIV - col1 AS col0 FROM tab2 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-4078
SELECT cor0.col2 / - col1 AS col0 FROM tab2 AS cor0
----
-2
0
0

query I rowsort
SELECT DISTINCT + 49 + - col1 + - col1 * + 56 FROM tab0 AS cor0
----
-4853
-5138
-5480

onlyif mysql # use DIV operator for integer division
query I rowsort label-4080
SELECT ALL - ( col2 ) DIV col0 AS col0 FROM tab2 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-4080
SELECT ALL - ( col2 ) / col0 AS col0 FROM tab2 AS cor0
----
-3
0
0

query I rowsort
SELECT DISTINCT - col1 + col0 * col1 AS col0 FROM tab1
----
1027
52
630

query I rowsort
SELECT ALL cor0.col2 * + 82 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6d35e55bc3186575ba271da96a17f626

query I rowsort
SELECT - 18 * + tab1.col2 AS col1 FROM tab1
----
-1026
-1728
-972

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col2 ) + + col1 col1 FROM tab1
----
109
67
80

query I rowsort
SELECT ALL col0 * col0 + col2 - col2 * - 53 FROM tab0 AS cor0
----
12349
1279
2358

query I rowsort
SELECT ALL + - col1 * - col2 - - 68 * - col1 FROM tab0 AS cor0
----
-3010
-6499
1274

query I rowsort
SELECT ALL + col1 * col1 + 75 AS col0 FROM tab1
----
175
244
751

query I rowsort
SELECT ALL - col1 + 52 + - col1 * col0 * + col1 FROM tab1
----
-13481
-2002
-6358

onlyif mysql # use DIV operator for integer division
query I rowsort label-4089
SELECT ALL + col2 + cor0.col2 DIV + col0 FROM tab2 AS cor0
----
26
30
38

skipif mysql # not compatible
query I rowsort label-4089
SELECT ALL + col2 + cor0.col2 / + col0 FROM tab2 AS cor0
----
26
30
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-4090
SELECT + + cor0.col1 DIV 50 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4090
SELECT + + cor0.col1 / 50 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4091
SELECT + col1 + tab1.col0 DIV 60 FROM tab1
----
11
14
26

skipif mysql # not compatible
query I rowsort label-4091
SELECT + col1 + tab1.col0 / 60 FROM tab1
----
11
14
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-4092
SELECT DISTINCT + - col2 DIV cor0.col0 AS col2 FROM tab1 AS cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-4092
SELECT DISTINCT + - col2 / cor0.col0 AS col2 FROM tab1 AS cor0
----
-1
-18
0

query I rowsort
SELECT DISTINCT + col1 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL - col0 - - col1 * col0 AS col1 FROM tab1
----
576
75
960

query I rowsort
SELECT DISTINCT + col0 - 31 AS col0 FROM tab2
----
-24
47
48

onlyif mysql # use DIV operator for integer division
query I rowsort label-4096
SELECT + col0 * col1 DIV col1 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-4096
SELECT + col0 * col1 / col1 FROM tab1
----
3
64
80

query I rowsort
SELECT + col1 * + col0 + col0 + col0 AS col0 FROM tab1
----
1200
768
84

query I rowsort
SELECT ALL - 68 + - col2 FROM tab2 AS cor0
----
-106
-94
-95

onlyif mysql # use DIV operator for integer division
query I rowsort label-4099
SELECT + col0 * + col1 + col0 DIV 65 AS col2 FROM tab1 AS cor0
----
1041
640
78

skipif mysql # not compatible
query I rowsort label-4099
SELECT + col0 * + col1 + col0 / 65 AS col2 FROM tab1 AS cor0
----
1041
640
78

query I rowsort
SELECT DISTINCT + col0 + 44 AS col0 FROM tab1
----
108
124
47

onlyif mysql # use DIV operator for integer division
query I rowsort label-4101
SELECT DISTINCT + col2 + col1 DIV 38 FROM tab0
----
3
35
84

skipif mysql # not compatible
query I rowsort label-4101
SELECT DISTINCT + col2 + col1 / 38 FROM tab0
----
3
35
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-4102
SELECT + col2 DIV col2 + - col0 FROM tab1
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-4102
SELECT + col2 / col2 + - col0 FROM tab1
----
-2
-63
-79

query I rowsort
SELECT tab2.col0 + + 21 + 24 FROM tab2
----
123
124
52

query I rowsort
SELECT DISTINCT col2 + + col1 * 74 AS col1 FROM tab0
----
6397
6816
7179

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + 91 * - col2 * col0 col0 FROM tab2
----
-17206
-184626
-273261

query I rowsort
SELECT + - col1 + 16 FROM tab1 cor0
----
-10
3
6

query I rowsort
SELECT col2 * + ( 25 ) FROM tab0 AS cor0
----
2050
25
825

query I rowsort
SELECT - cor0.col0 * - col2 AS col0 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT - col0 + + 81 FROM tab1 cor0
----
1
17
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4110
SELECT + + CAST( - col2 AS SIGNED ) + + col1 AS col1 FROM tab2 cor0
----
-21
33
4

skipif mysql # not compatible
query I rowsort label-4110
SELECT + + CAST ( - col2 AS INTEGER ) + + col1 AS col1 FROM tab2 cor0
----
-21
33
4

query I rowsort
SELECT + 20 * + col1 FROM tab2 AS cor0
----
1180
340
620

query I rowsort
SELECT ALL 5 * col0 AS col2 FROM tab2 AS cor0
----
35
390
395

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4113
SELECT + CAST( NULL AS SIGNED ) - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4113
SELECT + CAST ( NULL AS INTEGER ) - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 28 * col0 AS col1 FROM tab0 AS cor0
----
-2492
-672
-980

query I rowsort
SELECT DISTINCT - 89 * col2 * col1 + + ( col1 + col1 ) * col2 FROM tab0 AS cor0
----
-246906
-649194
-8439

query I rowsort
SELECT ALL + + ( col1 ) AS col2 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT DISTINCT + - cor0.col1 * + 86 AS col0 FROM tab1, tab0 AS cor0
----
-7396
-7826
-8342

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to 460ecaf0151851c22525e8eac77a0a82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 21 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT + - col2 * + col1 * ( + 69 * + col2 ) AS col0 FROM tab0 AS cor0
----
-42219996
-6462126
-6693

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4121
SELECT + col0 + cor0.col1 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4121
SELECT + col0 + cor0.col1 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( - cor0.col2 ) FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT DISTINCT + 72 FROM tab1, tab0 AS cor0
----
72

query I rowsort
SELECT - 66 FROM tab0, tab2 AS cor0
----
9 values hashing to a408108d423d7784b7d610cb779e515a

query I rowsort
SELECT 53 * col2 * 65 FROM tab0 AS cor0
----
113685
282490
3445

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4126
SELECT ALL CAST( NULL AS SIGNED ) * cor0.col0 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4126
SELECT ALL CAST ( NULL AS INTEGER ) * cor0.col0 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT - + ( cor0.col2 ) AS col1 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT + 57 * - col0 AS col0 FROM tab1
----
-171
-3648
-4560

query I rowsort
SELECT cor0.col0 + - col0 * 84 FROM tab2 AS cor0
----
-581
-6474
-6557

query I rowsort
SELECT ALL col1 * 7 FROM tab1 AS cor0
----
182
70
91

query I rowsort
SELECT ALL 94 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089

onlyif mysql # use DIV operator for integer division
query I rowsort label-4132
SELECT ALL + 27 DIV tab2.col0 + col1 * 66 + + col1 FROM tab2
----
1139
2080
3953

skipif mysql # not compatible
query I rowsort label-4132
SELECT ALL + 27 / tab2.col0 + col1 * 66 + + col1 FROM tab2
----
1139
2080
3953

query I rowsort
SELECT ALL - 67 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

query I rowsort
SELECT DISTINCT tab0.col1 * - col2 AS col0 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT + col2 * tab0.col1 AS col0 FROM tab0
----
2838
7462
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4136
SELECT + + col2 * CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4136
SELECT + + col2 * CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - tab1.col0 * - col0 * col2 AS col0 FROM tab1
----
233472
486
614400

query I rowsort
SELECT - cor0.col1 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT ALL 10 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

onlyif mysql # use DIV operator for integer division
query I rowsort label-4140
SELECT + ( - col0 ) DIV col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4140
SELECT + ( - col0 ) / col0 FROM tab0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col2 ) col0 FROM tab1
----
-54
-57
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4142
SELECT + CAST( - col2 AS SIGNED ) * tab0.col1 FROM tab0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-4142
SELECT + CAST ( - col2 AS INTEGER ) * tab0.col1 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT ( 17 ) * col2 - ( ( + col1 ) + - 49 ) FROM tab2
----
432
477
678

query I rowsort
SELECT - 36 * col2 + - col1 AS col2 FROM tab2 AS cor0
----
-1003
-1385
-995

query I rowsort
SELECT col0 * + col0 + col0 + col1 FROM tab0 AS cor0
----
1357
686
8101

query I rowsort
SELECT - + col0 + - col0 AS col2 FROM tab2 cor0
----
-14
-156
-158

query I rowsort
SELECT DISTINCT cor0.col1 * - col0 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT + 54 * col1 FROM tab1 AS cor0
----
1404
540
702

query I rowsort
SELECT - - col1 - - col0 * ( - col1 + col0 ) FROM tab0 AS cor0
----
-1402
-2073
-87

onlyif mysql # use DIV operator for integer division
query I rowsort label-4150
SELECT ALL 76 + col0 DIV col2 AS col2 FROM tab1 AS cor0
----
76
76
77

skipif mysql # not compatible
query I rowsort label-4150
SELECT ALL 76 + col0 / col2 AS col2 FROM tab1 AS cor0
----
76
76
77

query I rowsort
SELECT DISTINCT 99 + col0 FROM tab1 AS cor0
----
102
163
179

query I rowsort
SELECT DISTINCT - - ( + col0 ) + cor0.col2 * 13 FROM tab0 AS cor0
----
1155
453
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 + - col2 col2 FROM tab0 cor0
----
-164
-2
-66

query I rowsort
SELECT + + col1 + + col0 + col1 * col2 FROM tab0 AS cor0
----
229
2948
7642

query I rowsort
SELECT + col0 + - col2 + col1 * 6 FROM tab2 cor0
----
143
166
406

query I rowsort
SELECT cor0.col1 * + col1 + ( - cor0.col1 ) * cor0.col2 * 88 + col0 FROM tab0 AS cor0
----
-242324
-648286
908

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 55 col1 FROM tab2 AS cor0
----
55
55
55

query I rowsort
SELECT + col0 * ( + col0 ) AS col2 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT DISTINCT - col1 * - 70 FROM tab1 AS cor0
----
1820
700
910

query I rowsort
SELECT - cor0.col0 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT DISTINCT + col2 * cor0.col1 AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL + ( col1 ) * + col2 AS col2 FROM tab1
----
1248
1404
570

query I rowsort
SELECT ALL + 34 AS col1 FROM tab0
----
34
34
34

query I rowsort
SELECT DISTINCT - 14 AS col1 FROM tab1 AS cor0
----
-14

onlyif mysql # use DIV operator for integer division
query I rowsort label-4165
SELECT ALL - col0 DIV 73 + + col2 * cor0.col0 FROM tab0 AS cor0
----
35
7297
792

skipif mysql # not compatible
query I rowsort label-4165
SELECT ALL - col0 / 73 + + col2 * cor0.col0 FROM tab0 AS cor0
----
35
7297
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 32 + + ( cor0.col1 ) + - col0 col2 FROM tab2 AS cor0
----
-51
-8
-94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4167
SELECT ALL CAST( ( col0 ) AS SIGNED ) FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-4167
SELECT ALL CAST ( ( col0 ) AS INTEGER ) FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL col0 * + col0 * - col1 AS col1 FROM tab2 AS cor0
----
-106097
-1519
-358956

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 92 ) col0 FROM tab2 AS cor0
----
-92

query I rowsort
SELECT DISTINCT col0 * - 34 FROM tab1 AS cor0
----
-102
-2176
-2720

query I rowsort
SELECT col0 * - 0 + - cor0.col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT col0 + + col1 * + 57 AS col1 FROM tab0 AS cor0
----
4926
5276
5564

query I rowsort
SELECT ALL + 15 AS col2 FROM tab2 cor0
----
15
15
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - cor0.col2 ) + + ( + col2 ) * - col1 col1 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT ALL + col0 - + cor0.col1 FROM tab0 AS cor0
----
-2
-62
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 18 col0 FROM tab2 AS cor0
----
18
18
18

query I rowsort
SELECT DISTINCT - - 91 * - col0 + ( col2 ) + - col2 FROM tab2 AS cor0
----
-637
-7098
-7189

query I rowsort
SELECT ALL - 64 - - col1 AS col0 FROM tab2 cor0
----
-33
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab2.col2 + + col1 * col2 col0 FROM tab2
----
1560
684
864

query I rowsort
SELECT ALL 45 + col2 FROM tab0
----
127
46
78

query I rowsort
SELECT DISTINCT + col0 * 4 + - col2 AS col0 FROM tab1
----
-42
199
224

query I rowsort
SELECT + + col1 + cor0.col1 - cor0.col0 FROM tab0 cor0
----
148
159
93

query I rowsort
SELECT - col1 * 79 + ( col2 ) AS col1 FROM tab2 AS cor0
----
-1305
-2422
-4635

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 + - col0 * col0 col0 FROM tab2 AS cor0
----
-18
-6025
-6224

query I rowsort
SELECT col1 * col0 + - col1 AS col1 FROM tab1 cor0
----
1027
52
630

query I rowsort
SELECT ALL - col1 * ( - 18 ) AS col0 FROM tab1 AS cor0
----
180
234
468

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4187
SELECT DISTINCT col1 * + CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4187
SELECT DISTINCT col1 * + CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col2 + 31 FROM tab1 AS cor0
----
127
85
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-4189
SELECT DISTINCT col1 DIV + 10 AS col2 FROM tab2 cor0
----
1
3
5

skipif mysql # not compatible
query I rowsort label-4189
SELECT DISTINCT col1 / + 10 AS col2 FROM tab2 cor0
----
1
3
5

query I rowsort
SELECT 12 FROM tab1, tab2, tab0 cor0
----
27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6

query I rowsort
SELECT ALL - + col1 + + col1 * cor0.col2 FROM tab0 cor0
----
0
2752
7371

query I rowsort
SELECT DISTINCT - - col1 + - ( cor0.col0 ) AS col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT ALL tab2.col0 * - tab2.col0 * + col1 FROM tab2
----
-106097
-1519
-358956

query IIIIIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0, tab2 AS cor2, tab2
----
13122 values hashing to 4b4dcc3a0a61c87a1bed2f95374a735e

query I rowsort
SELECT col2 * + ( 11 ) - - col2 AS col0 FROM tab2 AS cor0
----
312
324
456

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4196
SELECT ALL CAST( - 68 AS SIGNED ) FROM tab0, tab2 AS cor0
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

skipif mysql # not compatible
query I rowsort label-4196
SELECT ALL CAST ( - 68 AS INTEGER ) FROM tab0, tab2 AS cor0
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

query I rowsort
SELECT DISTINCT col0 * 0 + - col2 AS col1 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT ALL col1 + 77 * - 64 * col1 AS col1 FROM tab2 AS cor0
----
-152737
-290693
-83759

query I rowsort
SELECT + + cor0.col1 + + col0 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT - - col2 * cor0.col0 + col0 FROM tab2 AS cor0
----
196
2106
3081

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab2, tab0 cor1, tab0 AS cor2, tab2 AS cor3
----
3645 values hashing to 61c64d7c972af4105004f57e1913df08

query I rowsort
SELECT ALL col2 + tab1.col1 AS col1 FROM tab1
----
109
67
80

query I rowsort
SELECT + 20 * + col0 + - col0 FROM tab2 AS cor0
----
133
1482
1501

query I rowsort
SELECT - 17 + + cor0.col1 FROM tab1 AS cor0
----
-4
-7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-4205
SELECT 58 * col2 DIV + col1 AS col0 FROM tab1 AS cor0
----
120
330
428

skipif mysql # not compatible
query I rowsort label-4205
SELECT 58 * col2 / + col1 AS col0 FROM tab1 AS cor0
----
120
330
428

query I rowsort
SELECT DISTINCT tab0.col2 * 12 + - col2 FROM tab0
----
11
363
902

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 35 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

onlyif mysql # use DIV operator for integer division
query I rowsort label-4208
SELECT col0 DIV 67 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4208
SELECT col0 / 67 FROM tab1
----
0
0
1

query I rowsort
SELECT col2 + 59 AS col2 FROM tab2
----
85
86
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4210
SELECT + col2 DIV tab0.col2 col0 FROM tab0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4210
SELECT + col2 / tab0.col2 col0 FROM tab0
----
1
1
1

query I rowsort
SELECT ALL - + tab0.col2 + 4 * + 23 AS col1 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to d725d6da22f312e7217a5fd6fed9b480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 82 * + 34 col0 FROM tab1
----
2762
2775
2778

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4213
SELECT ALL CAST( NULL AS SIGNED ) / - col0 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4213
SELECT ALL CAST ( NULL AS INTEGER ) / - col0 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4214
SELECT - tab0.col1 + 58 DIV - col0 FROM tab0
----
-88
-91
-98

skipif mysql # not compatible
query I rowsort label-4214
SELECT - tab0.col1 + 58 / - col0 FROM tab0
----
-88
-91
-98

query I rowsort
SELECT + 44 * + cor0.col2 * - col2 AS col2 FROM tab1 cor0
----
-128304
-142956
-405504

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4216
SELECT CAST( NULL AS SIGNED ) + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4216
SELECT CAST ( NULL AS INTEGER ) + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 - + col0 * + cor0.col1 * - 34 FROM tab2 AS cor0
----
156409
45645
7347

query I rowsort
SELECT ALL + 85 + 81 AS col1 FROM tab1 AS cor0
----
166
166
166

query I rowsort
SELECT DISTINCT + col0 * 55 FROM tab1
----
165
3520
4400

query I rowsort
SELECT DISTINCT + cor0.col1 + + cor0.col2 * cor0.col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT ALL + + 38 + 5 AS col1 FROM tab1 AS cor0
----
43
43
43

query I rowsort
SELECT ALL cor0.col0 * - ( col1 ) AS col2 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT + 51 * col2 + col1 AS col2 FROM tab1 AS cor0
----
2780
2917
4909

query I rowsort
SELECT DISTINCT + + col1 * - cor0.col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT - + col0 * - col1 * col2 - + col1 * - cor0.col0 * col1 FROM tab0 AS cor0
----
1401127
245616
332710

query I rowsort
SELECT DISTINCT + col2 + + cor0.col0 * - col0 * + cor0.col0 + - col1 AS col2 FROM tab0 AS cor0
----
-13877
-42971
-704978

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col0 + - ( col2 ) col1 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT - - 98 * col2 FROM tab1 AS cor0
----
5292
5586
9408

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4229
SELECT ALL col1 + - CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
2
62
62

skipif mysql # not compatible
query I rowsort label-4229
SELECT ALL col1 + - CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
2
62
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-4230
SELECT ALL + col2 DIV col0 AS col2 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4230
SELECT ALL + col2 / col0 AS col2 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT - col2 * ( + 35 ) + - col0 FROM tab0 AS cor0
----
-1179
-2959
-70

onlyif mysql # use DIV operator for integer division
query I rowsort label-4232
SELECT - - col1 DIV 36 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4232
SELECT - - col1 / 36 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor1.col2 col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
54
57
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4234
SELECT ALL - CAST( NULL AS DECIMAL ) / - col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4234
SELECT ALL - CAST ( NULL AS REAL ) / - col1 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - + col0 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT + - col0 + 61 FROM tab0 AS cor0
----
-28
26
37

query I rowsort
SELECT DISTINCT - cor1.col1 FROM tab0, tab0 cor0, tab1 AS cor1
----
-10
-13
-26

query I rowsort
SELECT 47 FROM tab0, tab2 cor0, tab1 AS cor1
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d

query I rowsort
SELECT DISTINCT 98 + - col2 * + 70 AS col0 FROM tab2 AS cor0
----
-1722
-1792
-2562

onlyif mysql # use DIV operator for integer division
query I rowsort label-4240
SELECT DISTINCT + col0 DIV col0 + col1 * col1 AS col1 FROM tab1 AS cor0
----
101
170
677

skipif mysql # not compatible
query I rowsort label-4240
SELECT DISTINCT + col0 / col0 + col1 * col1 AS col1 FROM tab1 AS cor0
----
101
170
677

query I rowsort
SELECT + - 44 AS col0 FROM tab0 AS cor0
----
-44
-44
-44

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4242
SELECT ALL - col1 * CAST( col2 AS SIGNED ) + col1 FROM tab1 cor0
----
-1235
-1378
-560

skipif mysql # not compatible
query I rowsort label-4242
SELECT ALL - col1 * CAST ( col2 AS INTEGER ) + col1 FROM tab1 cor0
----
-1235
-1378
-560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 71 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT ALL - + col1 * col0 + cor0.col2 + + col0 * - ( cor0.col0 ) AS col2 FROM tab2 AS cor0
----
-10660
-239
-7546

query I rowsort
SELECT + cor0.col0 * col0 * - cor0.col1 - - col1 AS col0 FROM tab2 AS cor0
----
-106080
-1488
-358897

query I rowsort
SELECT + - col1 * + 74 AS col1 FROM tab1 AS cor0
----
-1924
-740
-962

query I rowsort
SELECT - col1 - col0 * col0 FROM tab2 AS cor0
----
-6143
-6258
-80

query I rowsort
SELECT + - col0 + - cor0.col2 * col0 AS col1 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT + 90 * - cor0.col1 + + col0 AS col2 FROM tab1 AS cor0
----
-1090
-2337
-836

query I rowsort
SELECT - 7 * col1 + + col2 AS col2 FROM tab1 AS cor0
----
-128
-13
5

query I rowsort
SELECT + + ( ( - col2 ) ) * - 74 FROM tab2 AS cor0
----
1924
1998
2812

query I rowsort
SELECT - + 21 * + col1 AS col1 FROM tab0 AS cor0
----
-1806
-1911
-2037

query I rowsort
SELECT + - col0 * 91 AS col0 FROM tab2 AS cor0
----
-637
-7098
-7189

query I rowsort
SELECT + 23 * col1 FROM tab1 cor0
----
230
299
598

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4255
SELECT DISTINCT col0 * - CAST( NULL AS SIGNED ) + ( col1 * 57 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4255
SELECT DISTINCT col0 * - CAST ( NULL AS INTEGER ) + ( col1 * 57 ) FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) + - col1 col1 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT ALL + 8 * + 48 FROM tab1 AS cor0
----
384
384
384

query I rowsort
SELECT - - cor0.col1 + + 27 FROM tab2 AS cor0
----
44
58
86

query I rowsort
SELECT DISTINCT - col2 * 73 FROM tab0 AS cor0
----
-2409
-5986
-73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4260
SELECT ALL CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4260
SELECT ALL CAST ( NULL AS REAL ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 col0 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-4262
SELECT DISTINCT col1 + - 1 * col1 DIV - cor0.col2 FROM tab0 AS cor0
----
194
88
92

skipif mysql # not compatible
query I rowsort label-4262
SELECT DISTINCT col1 + - 1 * col1 / - cor0.col2 FROM tab0 AS cor0
----
194
88
92

query I rowsort
SELECT + 8 * 2 FROM tab1
----
16
16
16

query I rowsort
SELECT - + col2 * + cor0.col2 + col0 AS col0 FROM tab2 AS cor0
----
-1365
-598
-722

query I rowsort
SELECT DISTINCT - + ( + col1 ) FROM tab1 cor0
----
-10
-13
-26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4266
SELECT ALL 76 + - col1 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4266
SELECT ALL 76 + - col1 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + cor0.col2 col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT ALL + ( col1 ) * col1 FROM tab2
----
289
3481
961

skipif mysql # not compatible
query I rowsort
SELECT CAST ( - col1 * col0 AS REAL ) FROM tab0
----
-2064
-3395
-8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4270
SELECT ALL - ( 48 ) + col2 * - CAST( - col0 AS SIGNED ) AS col0 FROM tab1
----
114
3600
7632

skipif mysql # not compatible
query I rowsort label-4270
SELECT ALL - ( 48 ) + col2 * - CAST ( - col0 AS INTEGER ) AS col0 FROM tab1
----
114
3600
7632

query I rowsort
SELECT + - 28 AS col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to eac00a95d734c7071360ed392c3f39bc

query I rowsort
SELECT DISTINCT + col2 * + col0 + - col0 * - 69 FROM tab2
----
672
7410
8453

query I rowsort
SELECT tab0.col1 AS col2 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT ALL cor0.col0 + + ( - ( col0 ) ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + - col0 * 59 FROM tab1 AS cor0
----
-177
-3776
-4720

query I rowsort
SELECT ALL + col0 * col1 + ( col2 + 19 ) * + col1 AS col1 FROM tab1 AS cor0
----
1400
1976
2535

query I rowsort
SELECT ALL col1 + col0 AS col2 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT + ( + tab0.col0 + - tab0.col2 ) AS col2 FROM tab0
----
-9
34
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-4279
SELECT DISTINCT + tab1.col0 DIV + col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4279
SELECT DISTINCT + tab1.col0 / + col0 FROM tab1
----
1

query I rowsort
SELECT ALL - col2 * - 22 - 68 FROM tab1
----
1120
1186
2044

query I rowsort
SELECT DISTINCT tab2.col0 * 78 AS col2 FROM tab2
----
546
6084
6162

query I rowsort
SELECT - col1 * 6 * 96 AS col0 FROM tab0 AS cor0
----
-49536
-52416
-55872

query I rowsort
SELECT col1 * ( col0 ) FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-4284
SELECT - col1 DIV cor0.col2 col0 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4284
SELECT - col1 / cor0.col2 col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 * col2 + col2 FROM tab1
----
-108
-3591
-7584

query I rowsort
SELECT - col1 + + col1 - + col0 AS col2 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT + ( col0 ) - 6 AS col1 FROM tab2
----
1
72
73

query I rowsort
SELECT ALL 15 + + col1 AS col0 FROM tab0
----
101
106
112

query I rowsort
SELECT - 1 + tab2.col0 - tab2.col0 AS col0 FROM tab2, tab1 cor0, tab1 cor1
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9

query I rowsort
SELECT ALL 16 - + col1 * col0 FROM tab0 AS cor0
----
-2048
-3379
-8083

query I rowsort
SELECT + col2 - col0 AS col1 FROM tab2 cor0
----
-41
-52
20

query I rowsort
SELECT ALL 8 + + col2 * 79 FROM tab0 AS cor0
----
2615
6486
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( col0 ) * col2 + + col0 * cor0.col1 col2 FROM tab0 AS cor0
----
15397
2856
3430

query I rowsort
SELECT - - col0 + col2 AS col1 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT + col0 + 23 FROM tab0 cor0
----
112
47
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col0 * col0 * col0 col2 FROM tab0 cor0
----
13857
42876
705051

query I rowsort
SELECT ALL + - col2 * - ( 67 + col1 ) FROM tab0 AS cor0
----
12956
164
5049

query I rowsort
SELECT ALL + + col0 * + col2 + col0 FROM tab1 AS cor0
----
165
3712
7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * + col2 + col1 col1 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT ALL - - col2 + - cor0.col2 AS col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT + cor0.col0 * - col2 + - col0 * - col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT 87 + - col0 - ( - tab2.col1 ) FROM tab2
----
111
25
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col1 * 53 - col1 col0 FROM tab0
----
109306
179838
429156

query I rowsort
SELECT DISTINCT - tab1.col2 - - col0 AS col2 FROM tab1
----
-16
-51
7

query I rowsort
SELECT DISTINCT + 92 + + col0 * 71 AS col0 FROM tab2
----
5630
5701
589

onlyif mysql # use DIV operator for integer division
query I rowsort label-4306
SELECT col0 DIV 43 AS col0 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-4306
SELECT col0 / 43 AS col0 FROM tab0 AS cor0
----
0
0
2

query I rowsort
SELECT + - col2 * col0 + - col0 * col2 FROM tab2 AS cor0
----
-378
-4056
-6004

onlyif mysql # use DIV operator for integer division
query I rowsort label-4308
SELECT DISTINCT + col0 + ( 67 ) * col1 DIV col1 AS col1 FROM tab0 AS cor0
----
102
156
91

skipif mysql # not compatible
query I rowsort label-4308
SELECT DISTINCT + col0 + ( 67 ) * col1 / col1 AS col1 FROM tab0 AS cor0
----
102
156
91

query I rowsort
SELECT + col2 + - ( ( + col0 ) ) AS col0 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT ALL - col1 + col0 * + cor0.col1 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
-119711
-51051
-5890

query I rowsort
SELECT DISTINCT col0 * col0 - - col1 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT DISTINCT + 77 AS col1 FROM tab2 AS cor0
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col2 + col1 col0 FROM tab2 AS cor0
----
-1427
-617
-698

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * 78 + cor0.col2 * col1 col0 FROM tab1 AS cor0
----
1350
2262
3432

query I rowsort
SELECT DISTINCT - - cor0.col2 * - 48 FROM tab0 AS cor0
----
-1584
-3936
-48

query I rowsort
SELECT DISTINCT cor1.col2 * + cor0.col0 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3fba72e8a114fbf2ddc05893592ee7f8

onlyif mysql # use DIV operator for integer division
query I rowsort label-4317
SELECT ALL - col1 DIV + col1 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4317
SELECT ALL - col1 / + col1 FROM tab0 cor0
----
-1
-1
-1

query I rowsort
SELECT 68 * 35 FROM tab2 AS cor0
----
2380
2380
2380

query I rowsort
SELECT ALL col0 + col0 * col1 AS col2 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT DISTINCT col2 - 19 FROM tab2 AS cor0
----
19
7
8

query I rowsort
SELECT DISTINCT - col0 + + 11 AS col1 FROM tab1 AS cor0
----
-53
-69
8

query I rowsort
SELECT ALL - - col2 + 99 FROM tab0 cor0
----
100
132
181

query I rowsort
SELECT ALL + col2 * col0 * + col0 FROM tab2 AS cor0
----
1323
158184
237158

query I rowsort
SELECT DISTINCT + - 95 * 1 + cor0.col0 * - 65 AS col1 FROM tab2 AS cor0
----
-5165
-5230
-550

query I rowsort
SELECT 9 - - col2 FROM tab2 AS cor0
----
35
36
47

query I rowsort
SELECT DISTINCT + col1 - + col1 * col2 AS col0 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT ALL + 84 + + col0 * cor0.col1 AS col1 FROM tab2 cor0
----
1427
301
4686

query I rowsort
SELECT - col2 * - col2 - ( - 92 + - col0 ) FROM tab1 AS cor0
----
3011
3405
9388

query I rowsort
SELECT - 68 + + col1 AS col0 FROM tab2
----
-37
-51
-9

query I rowsort
SELECT + 35 * col1 FROM tab1 AS cor0
----
350
455
910

query I rowsort
SELECT ALL + 28 * cor0.col0 FROM tab1 AS cor0
----
1792
2240
84

query I rowsort
SELECT + col0 * col2 * + col0 AS col1 FROM tab0 AS cor0
----
1225
19008
649522

query I rowsort
SELECT DISTINCT - 9 FROM tab2 cor0
----
-9

query I rowsort
SELECT DISTINCT - 33 + + col2 AS col1 FROM tab1 AS cor0
----
21
24
63

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4335
SELECT ALL CAST( - col0 AS SIGNED ) * col0 AS col0 FROM tab2
----
-49
-6084
-6241

skipif mysql # not compatible
query I rowsort label-4335
SELECT ALL CAST ( - col0 AS INTEGER ) * col0 AS col0 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT 46 + tab1.col0 FROM tab1
----
110
126
49

query I rowsort
SELECT + 65 + - cor0.col2 FROM tab1 AS cor0
----
-31
11
8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4338
SELECT ALL CAST( + 40 AS SIGNED ) * + tab0.col0 FROM tab0
----
1400
3560
960

skipif mysql # not compatible
query I rowsort label-4338
SELECT ALL CAST ( + 40 AS INTEGER ) * + tab0.col0 FROM tab0
----
1400
3560
960

query I rowsort
SELECT ALL col1 * col2 * 73 + + tab1.col2 * col0 FROM tab1
----
102654
45258
98784

query I rowsort
SELECT - + cor0.col0 * col1 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ( + col1 ) * col2 AS col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT + - 75 * - col0 AS col1 FROM tab1 cor0
----
225
4800
6000

query I rowsort
SELECT DISTINCT + col1 * + col1 AS col2 FROM tab0
----
7396
8281
9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4344
SELECT col1 * - CAST( NULL AS SIGNED ) + col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4344
SELECT col1 * - CAST ( NULL AS INTEGER ) + col1 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - ( col1 ) * col1 + 9 * col0 AS col2 FROM tab1 cor0
----
-649
476
551

query I rowsort
SELECT col2 * - 20 AS col2 FROM tab0
----
-1640
-20
-660

query I rowsort
SELECT DISTINCT col2 * + 88 * + col0 AS col2 FROM tab0 AS cor0
----
3080
642224
69696

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0 cor2
----
972 values hashing to 95de14c88adc44eda4adb5267fe9ebd1

query I rowsort
SELECT col0 + + ( - 91 ) * + col1 AS col2 FROM tab1
----
-1103
-2363
-846

query I rowsort
SELECT ALL + cor0.col2 * + cor1.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 21856088ba874ad1439062daed37ef79

query I rowsort
SELECT ALL 44 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT - 73 + col1 * col2 * col2 AS col0 FROM tab1
----
119735
32417
75743

query I rowsort
SELECT ALL + col1 * - cor0.col0 * col2 FROM tab2 AS cor0
----
-119652
-51034
-5859

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4354
SELECT CAST( NULL AS SIGNED ) * + col0 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4354
SELECT CAST ( NULL AS INTEGER ) * + col0 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 20 * + cor0.col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 7c9c3e0d5466b072c8b1e09f0514ac02

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0, tab2 cor1, tab1, tab0 AS cor2
----
3645 values hashing to 825c5bff5308aeedb3a0a28713da0683

query I rowsort
SELECT ALL + 82 * - 52 AS col2 FROM tab0 AS cor0
----
-4264
-4264
-4264

onlyif mysql # use DIV operator for integer division
query I rowsort label-4358
SELECT DISTINCT - cor0.col1 DIV 44 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4358
SELECT DISTINCT - cor0.col1 / 44 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT + 36 AS col0 FROM tab1, tab0 AS cor0, tab2 cor1, tab2 AS cor2
----
81 values hashing to e09b197365a04fabbaaf0718d2ae88c5

query I rowsort
SELECT ALL - - col2 + + 64 * col2 FROM tab2 AS cor0
----
1690
1755
2470

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * 68 col2 FROM tab1 AS cor0
----
-204
-4352
-5440

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4363
SELECT + col1 + + CAST( NULL AS SIGNED ) + + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4363
SELECT + col1 + + CAST ( NULL AS INTEGER ) + + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4364
SELECT DISTINCT - - col1 DIV 32 + - ( - col2 + col0 ) FROM tab0 AS cor0
----
-31
-5
11

skipif mysql # not compatible
query I rowsort label-4364
SELECT DISTINCT - - col1 / 32 + - ( - col2 + col0 ) FROM tab0 AS cor0
----
-31
-5
11

query I rowsort
SELECT - col2 * 26 - - col0 AS col0 FROM tab2 cor0
----
-598
-695
-909

query I rowsort
SELECT - + col0 + cor0.col1 + + col1 FROM tab2 AS cor0
----
-45
40
55

query I rowsort
SELECT + cor0.col1 * col2 + 55 FROM tab2 AS cor0
----
1589
701
892

query I rowsort
SELECT + col2 * 61 FROM tab2 AS cor0
----
1586
1647
2318

query I rowsort
SELECT ALL + col2 * + col2 * - 21 AS col0 FROM tab0
----
-141204
-21
-22869

query I rowsort
SELECT DISTINCT + col0 * ( - col0 ) * cor0.col1 AS col1 FROM tab0 AS cor0
----
-118825
-49536
-720811

query I rowsort
SELECT DISTINCT - col2 + - col2 * col0 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT + - col0 + 57 * 94 FROM tab2 AS cor0
----
5279
5280
5351

query I rowsort
SELECT - col0 * + tab2.col0 * col0 FROM tab2
----
-343
-474552
-493039

query I rowsort
SELECT + 94 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089

query I rowsort
SELECT 84 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

onlyif mysql # use DIV operator for integer division
query I rowsort label-4376
SELECT + col1 DIV + CAST( + 40 AS SIGNED ) + + col0 AS col0 FROM tab0 cor0
----
26
37
91

skipif mysql # not compatible
query I rowsort label-4376
SELECT + col1 / + CAST ( + 40 AS INTEGER ) + + col0 AS col0 FROM tab0 cor0
----
26
37
91

query I rowsort
SELECT - - col2 * - col1 + + col2 FROM tab1 AS cor0
----
-1152
-1350
-513

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col0 col2 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT col2 * cor0.col1 * + col2 + col2 FROM tab0 AS cor0
----
611966
93687
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-4380
SELECT - + 9 DIV col1 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4380
SELECT - + 9 / col1 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 * + tab0.col0 FROM tab0
----
1225
576
7921

query I rowsort
SELECT - col1 + col2 + 25 * 19 FROM tab1
----
503
522
558

onlyif mysql # use DIV operator for integer division
query I rowsort label-4383
SELECT - col0 + col1 DIV + cor0.col0 FROM tab2 AS cor0
----
-3
-78
-79

skipif mysql # not compatible
query I rowsort label-4383
SELECT - col0 + col1 / + cor0.col0 FROM tab2 AS cor0
----
-3
-78
-79

query I rowsort
SELECT col1 + - col2 * col2 FROM tab1 AS cor0
----
-2890
-3239
-9203

query I rowsort
SELECT - 0 + col2 AS col0 FROM tab1
----
54
57
96

query I rowsort
SELECT + col0 - - tab2.col0 AS col0 FROM tab2
----
14
156
158

query I rowsort
SELECT DISTINCT - col1 + + col1 * + col1 AS col1 FROM tab1 AS cor0
----
156
650
90

query I rowsort
SELECT ALL + ( - col1 ) AS col1 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT ALL 88 + col2 FROM tab2 AS cor0
----
114
115
126

onlyif mysql # use DIV operator for integer division
query I rowsort label-4390
SELECT - 69 + col0 DIV col1 AS col2 FROM tab1 AS cor0
----
-63
-63
-69

skipif mysql # not compatible
query I rowsort label-4390
SELECT - 69 + col0 / col1 AS col2 FROM tab1 AS cor0
----
-63
-63
-69

query I rowsort
SELECT ALL - col2 * cor0.col1 + col1 * - col0 FROM tab1 AS cor0
----
-1210
-1482
-2288

query I rowsort
SELECT DISTINCT + + col2 * col1 + col0 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT ALL - col1 * col2 * col1 + col0 AS col1 FROM tab1 AS cor0
----
-16144
-36501
-5636

onlyif mysql # use DIV operator for integer division
query I rowsort label-4394
SELECT + col2 DIV col1 - col1 * - col0 FROM tab0 AS cor0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-4394
SELECT + col2 / col1 - col1 * - col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL + 66 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88

query I rowsort
SELECT 11 - col2 AS col2 FROM tab0
----
-22
-71
10

query I rowsort
SELECT + - ( col2 ) AS col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ALL col2 + col2 * col1 AS col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT DISTINCT 74 * col2 AS col0 FROM tab0 AS cor0
----
2442
6068
74

query I rowsort
SELECT ALL + - col2 * + 63 + col2 FROM tab2 AS cor0
----
-1612
-1674
-2356

query I rowsort
SELECT ALL - col2 * col1 + + col0 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT cor0.col1 * + col1 AS col0 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT ALL + + col2 - - col1 * col1 AS col0 FROM tab1 cor0
----
157
265
730

onlyif mysql # use DIV operator for integer division
query I rowsort label-4404
SELECT DISTINCT + + 78 + + col2 DIV col2 FROM tab1 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-4404
SELECT DISTINCT + + 78 + + col2 / col2 FROM tab1 AS cor0
----
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-4405
SELECT ALL + + col0 DIV col1 - + col1 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-4405
SELECT ALL + + col0 / col1 - + col1 FROM tab0 AS cor0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4406
SELECT DISTINCT + ( col0 ) DIV + col0 AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4406
SELECT DISTINCT + ( col0 ) / + col0 AS col0 FROM tab0 AS cor0
----
1

query I rowsort
SELECT - ( + ( col1 ) ) FROM tab0
----
-86
-91
-97

query I rowsort
SELECT ALL - 47 + col0 FROM tab0 AS cor0
----
-12
-23
42

query I rowsort
SELECT 20 * col1 AS col0 FROM tab2 AS cor0
----
1180
340
620

query I rowsort
SELECT DISTINCT - - 63 * col2 + cor0.col0 AS col1 FROM tab2 AS cor0
----
1708
1716
2473

query I rowsort
SELECT + 73 + + col0 FROM tab1 AS cor0
----
137
153
76

query I rowsort
SELECT DISTINCT + + col0 + + col2 AS col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL - 74 * + col1 - col0 AS col0 FROM tab0 AS cor0
----
-6388
-6823
-7213

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4414
SELECT + CAST( 46 AS SIGNED ) AS col1 FROM tab0
----
46
46
46

skipif mysql # not compatible
query I rowsort label-4414
SELECT + CAST ( 46 AS INTEGER ) AS col1 FROM tab0
----
46
46
46

query I rowsort
SELECT DISTINCT cor0.col0 * tab0.col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 9f4d33c2594156f40c1a77ce18b06bc3

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col1 AS REAL ) AS col1 FROM tab1
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 87 col1 FROM tab1
----
87

query I rowsort
SELECT DISTINCT + ( 98 * - col0 ) AS col2 FROM tab1
----
-294
-6272
-7840

query I rowsort
SELECT ALL 51 FROM tab1, tab2 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query I rowsort
SELECT 36 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4421
SELECT + CAST( NULL AS SIGNED ) + col0 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4421
SELECT + CAST ( NULL AS INTEGER ) + col0 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 48 * 54 + col1 + + 70 * col0 FROM tab2
----
3113
8111
8139

query I rowsort
SELECT 80 * + col1 AS col1 FROM tab1
----
1040
2080
800

query I rowsort
SELECT DISTINCT 80 + + 34 * col2 AS col2 FROM tab2
----
1372
964
998

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4425
SELECT - ( - ( col0 ) + CAST( NULL AS SIGNED ) ) * - col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4425
SELECT - ( - ( col0 ) + CAST ( NULL AS INTEGER ) ) * - col1 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + ( col0 ) AS col0 FROM tab2
----
14
156
158

query I rowsort
SELECT + + ( 52 ) * col2 AS col2 FROM tab0 AS cor0
----
1716
4264
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT DISTINCT - ( + ( - col1 ) ) * + col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT + cor0.col0 - cor0.col0 * col2 FROM tab2 AS cor0
----
-182
-1950
-2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-4431
SELECT - col1 - - ( col1 ) DIV col0 FROM tab2 AS cor0
----
-17
-27
-59

skipif mysql # not compatible
query I rowsort label-4431
SELECT - col1 - - ( col1 ) / col0 FROM tab2 AS cor0
----
-17
-27
-59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4432
SELECT ALL - CAST( NULL AS SIGNED ) * + ( col1 ) * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4432
SELECT ALL - CAST ( NULL AS INTEGER ) * + ( col1 ) * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4433
SELECT - col2 + - col0 DIV tab2.col1 FROM tab2
----
-27
-27
-42

skipif mysql # not compatible
query I rowsort label-4433
SELECT - col2 + - col0 / tab2.col1 FROM tab2
----
-27
-27
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 63 col1 FROM tab1
----
63
63
63

query I rowsort
SELECT ALL col0 * col1 + + ( col1 ) AS col1 FROM tab1
----
104
1053
650

query I rowsort
SELECT - cor0.col0 + - cor0.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to f8529b710dc613df309e90c94e8a2770

query I rowsort
SELECT ALL + 45 + col0 AS col2 FROM tab1 cor0
----
109
125
48

onlyif mysql # use DIV operator for integer division
query I rowsort label-4438
SELECT ALL 68 DIV + col0 AS col1 FROM tab2
----
0
0
9

skipif mysql # not compatible
query I rowsort label-4438
SELECT ALL 68 / + col0 AS col1 FROM tab2
----
0
0
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-4439
SELECT ALL cor0.col1 DIV - ( col1 ) + + col1 * + 97 FROM tab0 AS cor0
----
8341
8826
9408

skipif mysql # not compatible
query I rowsort label-4439
SELECT ALL cor0.col1 / - ( col1 ) + + col1 * + 97 FROM tab0 AS cor0
----
8341
8826
9408

query I rowsort
SELECT DISTINCT + cor0.col0 * - ( - 24 ) AS col0 FROM tab2 cor0
----
168
1872
1896

query I rowsort
SELECT DISTINCT + - col0 + - 11 AS col0 FROM tab0 AS cor0
----
-100
-35
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 * 58 col1 FROM tab2 AS cor0
----
-1798
-3422
-986

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4443
SELECT DISTINCT + col1 + + CAST( 6 AS SIGNED ) + col0 AS col2 FROM tab2 AS cor0
----
102
143
44

skipif mysql # not compatible
query I rowsort label-4443
SELECT DISTINCT + col1 + + CAST ( 6 AS INTEGER ) + col0 AS col2 FROM tab2 AS cor0
----
102
143
44

onlyif mysql # use DIV operator for integer division
query I rowsort label-4444
SELECT ALL - + col0 DIV col1 + + col0 AS col1 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-4444
SELECT ALL - + col0 / col1 + + col0 AS col1 FROM tab0 AS cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-4445
SELECT ALL - col1 + cor0.col2 DIV col1 FROM tab1 AS cor0
----
-24
-5
-6

skipif mysql # not compatible
query I rowsort label-4445
SELECT ALL - col1 + cor0.col2 / col1 FROM tab1 AS cor0
----
-24
-5
-6

query I rowsort
SELECT + - col2 * - col2 FROM tab0 cor0
----
1
1089
6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-4447
SELECT + + col0 DIV + cor0.col0 AS col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4447
SELECT + + col0 / + cor0.col0 AS col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT - cor0.col1 * + col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676

onlyif mysql # use DIV operator for integer division
query I rowsort label-4449
SELECT ALL - col0 DIV 20 AS col2 FROM tab1 AS cor0
----
-3
-4
0

skipif mysql # not compatible
query I rowsort label-4449
SELECT ALL - col0 / 20 AS col2 FROM tab1 AS cor0
----
-3
-4
0

query I rowsort
SELECT + cor0.col1 + col0 * cor0.col0 AS col1 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT DISTINCT + cor0.col0 + - 91 * col2 AS col0 FROM tab1 AS cor0
----
-4911
-5123
-8656

query I rowsort
SELECT - 41 AS col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 47b9ef972839428f4f71d9f5b0944edf

query I rowsort
SELECT col0 * - 80 AS col0 FROM tab2
----
-560
-6240
-6320

query I rowsort
SELECT ALL 0 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT - + cor0.col2 + col1 AS col2 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT + + ( 80 ) + col0 * ( + col0 * col2 ) FROM tab1 cor0
----
233552
566
614480

query I rowsort
SELECT + + ( - 69 ) FROM tab2 AS cor0
----
-69
-69
-69

query I rowsort
SELECT col2 * 92 AS col2 FROM tab1 AS cor0
----
4968
5244
8832

query I rowsort
SELECT DISTINCT + col0 + - col0 * col0 FROM tab0 AS cor0
----
-1190
-552
-7832

query I rowsort
SELECT + + 69 * + col2 * + col0 + col1 * + col1 AS col1 FROM tab0 AS cor0
----
11824
511843
62044

onlyif mysql # use DIV operator for integer division
query I rowsort label-4461
SELECT - 51 + col1 DIV + col0 FROM tab0 AS cor0
----
-48
-49
-50

skipif mysql # not compatible
query I rowsort label-4461
SELECT - 51 + col1 / + col0 FROM tab0 AS cor0
----
-48
-49
-50

query I rowsort
SELECT + - col2 * col0 * col0 FROM tab0 cor0
----
-1225
-19008
-649522

query I rowsort
SELECT ALL - col1 - + col1 AS col2 FROM tab1 cor0
----
-20
-26
-52

onlyif mysql # use DIV operator for integer division
query I rowsort label-4464
SELECT ALL - + col0 - col2 DIV + 29 FROM tab0 AS cor0
----
-25
-35
-91

skipif mysql # not compatible
query I rowsort label-4464
SELECT ALL - + col0 - col2 / + 29 FROM tab0 AS cor0
----
-25
-35
-91

onlyif mysql # use DIV operator for integer division
query I rowsort label-4465
SELECT ALL + - col1 DIV col0 AS col2 FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-4465
SELECT ALL + - col1 / col0 AS col2 FROM tab0 AS cor0
----
-1
-2
-3

query I rowsort
SELECT DISTINCT - 4 AS col0 FROM tab0 AS cor0
----
-4

query I rowsort
SELECT ALL + col0 * col1 AS col2 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT ( tab1.col1 ) + + col2 * 51 + 68 FROM tab1
----
2848
2985
4977

onlyif mysql # use DIV operator for integer division
query I rowsort label-4469
SELECT DISTINCT + tab1.col1 DIV + tab1.col2 + col0 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-4469
SELECT DISTINCT + tab1.col1 / + tab1.col2 + col0 FROM tab1
----
3
64
80

query I rowsort
SELECT DISTINCT + - ( 10 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-10

onlyif mysql # use DIV operator for integer division
query I rowsort label-4471
SELECT + tab1.col2 + - col1 DIV 97 + - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4471
SELECT + tab1.col2 + - col1 / 97 + - col2 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * + cor0.col1 - col2 * col0 col0 FROM tab2 AS cor0
----
-2356
-494
648

query I rowsort
SELECT ALL + 8 - + col1 * + ( cor0.col2 ) FROM tab1 AS cor0
----
-1240
-1396
-562

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4474
SELECT ALL col1 * + col0 * - CAST( 83 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-53120
-6474
-86320

skipif mysql # not compatible
query I rowsort label-4474
SELECT ALL col1 * + col0 * - CAST ( 83 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-53120
-6474
-86320

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0, tab2 AS cor1, tab0, tab0 cor2
----
3645 values hashing to 1713adaf687595322d888d4eeefdbbc8

query I rowsort
SELECT ALL col0 * 86 * - cor0.col1 - - cor0.col0 FROM tab0 AS cor0
----
-177480
-291935
-696425

query I rowsort
SELECT DISTINCT col0 + - cor0.col0 * col0 FROM tab2 cor0
----
-42
-6006
-6162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 1 col0 FROM tab0 cor0
----
2
34
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4479
SELECT DISTINCT col0 + + CAST( NULL AS SIGNED ) * col0 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4479
SELECT DISTINCT col0 + + CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + + col2 * + 18 AS col1 FROM tab2 AS cor0
----
468
486
684

query I rowsort
SELECT + 57 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 220a93709e207779b34ef74b544764a5

query I rowsort
SELECT col1 + - col1 + - 99 * - tab2.col2 * col1 FROM tab2
----
151866
63954
82863

query I rowsort
SELECT 53 * col0 FROM tab0
----
1272
1855
4717

query I rowsort
SELECT DISTINCT 9 AS col2 FROM tab0, tab0 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + cor0.col2 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 00ff93cbcc751be1393f9e1fd72170f8

onlyif mysql # use DIV operator for integer division
query I rowsort label-4486
SELECT DISTINCT col1 DIV - tab0.col0 AS col1 FROM tab0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-4486
SELECT DISTINCT col1 / - tab0.col0 AS col1 FROM tab0
----
-1
-2
-3

query I rowsort
SELECT DISTINCT - col2 * - tab2.col2 AS col1 FROM tab2
----
1444
676
729

query I rowsort
SELECT + 98 * + 21 + - col1 FROM tab2 AS cor0
----
1999
2027
2041

query I rowsort
SELECT 40 * + 30 + + col1 FROM tab1 AS cor0
----
1210
1213
1226

onlyif mysql # use DIV operator for integer division
query I rowsort label-4490
SELECT ALL - col0 + + col0 DIV col2 AS col2 FROM tab1 AS cor0
----
-3
-63
-80

skipif mysql # not compatible
query I rowsort label-4490
SELECT ALL - col0 + + col0 / col2 AS col2 FROM tab1 AS cor0
----
-3
-63
-80

query I rowsort
SELECT DISTINCT - - 56 * - col2 AS col1 FROM tab1 AS cor0
----
-3024
-3192
-5376

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0, tab0 cor1, tab1 AS cor2
----
972 values hashing to 5621675b1bd32b061d284d0444c76601

query I rowsort
SELECT ALL 81 + + cor0.col1 AS col2 FROM tab2 AS cor0
----
112
140
98

query I rowsort
SELECT + col0 + col0 * col2 * cor0.col1 AS col1 FROM tab1 AS cor0
----
36544
4215
99920

query I rowsort
SELECT DISTINCT + - 10 FROM tab1, tab0, tab2 AS cor0
----
-10

onlyif mysql # use DIV operator for integer division
query I rowsort label-4496
SELECT - 20 DIV + col1 + 6 FROM tab1
----
4
5
6

skipif mysql # not compatible
query I rowsort label-4496
SELECT - 20 / + col1 + 6 FROM tab1
----
4
5
6

query I rowsort
SELECT - + cor0.col1 + col0 * - col0 FROM tab1 cor0
----
-35
-4106
-6413

query I rowsort
SELECT DISTINCT + + 20 * - col0 AS col0 FROM tab0 AS cor0
----
-1780
-480
-700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 35 col0 FROM tab2 AS cor0
----
-35

query I rowsort
SELECT DISTINCT + + cor0.col0 + cor0.col1 AS col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT + 75 AS col2 FROM tab1, tab0 AS cor0, tab2 cor1
----
75

query I rowsort
SELECT 3 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 61 col1 FROM tab2 AS cor0
----
-61
-61
-61

query I rowsort
SELECT ALL - 77 + + cor0.col0 AS col1 FROM tab1 AS cor0
----
-13
-74
3

query I rowsort
SELECT DISTINCT col2 + 75 AS col2 FROM tab1
----
129
132
171

query I rowsort
SELECT DISTINCT + col0 + 54 * tab1.col0 * col1 FROM tab1
----
34624
4215
56240

skipif mysql # not compatible
query I rowsort
SELECT + col1 - CAST ( col0 AS REAL ) * col1 AS col0 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT + col2 + - 38 AS col2 FROM tab1 cor0
----
16
19
58

query I rowsort
SELECT col2 * col1 + col1 * col2 AS col2 FROM tab1 AS cor0
----
1140
2496
2808

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 + - col0 * cor0.col2 col2 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT + col2 * - col0 * + col0 + 95 AS col0 FROM tab0 AS cor0
----
-1130
-18913
-649427

query I rowsort
SELECT ALL 25 AS col1 FROM tab1 cor0
----
25
25
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * ( + col1 ) col2 FROM tab1
----
1248
1404
570

query I rowsort
SELECT DISTINCT col1 * col2 + col0 * 95 FROM tab0 AS cor0
----
15917
3422
5118

query I rowsort
SELECT DISTINCT - + 29 + - col0 FROM tab0 cor0
----
-118
-53
-64

query I rowsort
SELECT ALL + ( + col0 ) * col2 * col2 AS col1 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT DISTINCT - - cor0.col2 + + col2 * col0 AS col1 FROM tab2 AS cor0
----
2054
216
3040

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4518
SELECT + CAST( col2 AS SIGNED ) + cor0.col1 AS col2 FROM tab1 AS cor0
----
109
67
80

skipif mysql # not compatible
query I rowsort label-4518
SELECT + CAST ( col2 AS INTEGER ) + cor0.col1 AS col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT col2 * + col0 - col2 * + col2 AS col1 FROM tab2 AS cor0
----
-540
1352
1558

onlyif mysql # use DIV operator for integer division
query I rowsort label-4520
SELECT ALL + col0 DIV + col1 + col0 col0 FROM tab2 AS cor0
----
7
79
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4520
SELECT ALL + col0 / + col1 + col0 col0 FROM tab2 AS cor0
----
7
79
83

query I rowsort
SELECT ALL + col1 * col1 + tab2.col1 + tab2.col0 * + col2 AS col2 FROM tab2
----
1181
3308
5568

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN + col1 AND NULL
----

query I rowsort
SELECT DISTINCT + col2 * col1 + col0 FROM tab2
----
1612
725
844

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - col1 col1 FROM tab0
----
-2
-62

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= col1 * + col0
----

query I rowsort
SELECT + col0 + col1 + - col1 * - col0 * + col0 FROM tab0
----
118957
49646
720991

query I rowsort
SELECT DISTINCT col2 + - col2 * - col2 AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + col2
----

query I rowsort
SELECT ALL + col0 * col1 + - col2 AS col0 FROM tab0
----
2031
3394
8017

query I rowsort
SELECT ALL + col0 * + col2 + + col1 FROM tab0
----
132
7389
878

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col2 ) IN ( + col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT col2 * + col2 + col1 + col2 FROM tab2
----
1499
761
787

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col2 + - col1 col2 FROM tab2
----
-1593
-663
-868

query I rowsort
SELECT - col1 + + cor0.col2 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT + col1 * col2 + + col0 + col2 FROM tab2 AS cor0
----
1638
763
871

query I rowsort
SELECT DISTINCT - col2 * tab2.col0 * col1 + - col1 FROM tab2
----
-119711
-51051
-5890

query I rowsort
SELECT DISTINCT + col0 + col1 * col0 AS col2 FROM tab1
----
1120
704
81

query I rowsort
SELECT tab2.col2 * + col1 + - col1 + col0 * col2 FROM tab2
----
3503
3631
995

onlyif mysql # use DIV operator for integer division
query I rowsort label-4538
SELECT DISTINCT - col2 * col2 + + col0 DIV col1 + - col0 * + col1 FROM tab0
----
-14823
-3153
-3396

skipif mysql # not compatible
query I rowsort label-4538
SELECT DISTINCT - col2 * col2 + + col0 / col1 + - col0 * + col1 FROM tab0
----
-14823
-3153
-3396

query I rowsort
SELECT DISTINCT col2 * + tab1.col0 + col2 FROM tab1
----
216
3705
7776

query I rowsort
SELECT tab1.col1 + - col0 - col1 * + col1 FROM tab1
----
-154
-236
-653

onlyif mysql # use DIV operator for integer division
query I rowsort label-4541
SELECT + col0 DIV col1 AS col2 FROM tab1
----
0
6
6

skipif mysql # not compatible
query I rowsort label-4541
SELECT + col0 / col1 AS col2 FROM tab1
----
0
6
6

query I rowsort
SELECT + tab2.col1 * - col0 + tab2.col0 * - col0 FROM tab2
----
-10686
-266
-7584

query I rowsort
SELECT DISTINCT col2 + col0 * - col2 + + col2 * col1 AS col0 FROM tab0
----
2079
246
63

query I rowsort
SELECT col2 + + tab0.col2 * - col0 AS col2 FROM tab0
----
-34
-7216
-759

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col1 * col2 * - col1 col2 FROM tab1
----
-16320
-36558
-5757

query I rowsort
SELECT - tab0.col2 * - col1 * + col1 FROM tab0
----
244068
679042
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 * + col1 col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - + col1 * - col0 * cor0.col1 FROM tab2 AS cor0
----
22831
271518
6727

query I rowsort
SELECT DISTINCT + cor0.col0 * cor0.col2 AS col2 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT + col2 * + col2 + - col0 FROM tab2 AS cor0
----
1365
598
722

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col2 * + col1 * col2 col0 FROM tab1 AS cor0
----
119795
32480
75790

query I rowsort
SELECT DISTINCT - cor0.col1 + col1 * - col1 AS col2 FROM tab0 AS cor0
----
-7482
-8372
-9506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 * col1 + + col0 * + col1 col2 FROM tab1 AS cor0
----
1280
156
2080

query I rowsort
SELECT - + col2 * - cor0.col1 + + col1 AS col2 FROM tab1 AS cor0
----
1261
1430
580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col1 col0 FROM tab1 AS cor0
----
100
169
676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 23 * col2 + ( - 78 ) col2 FROM tab2
----
-676
-699
-952

onlyif mysql # use DIV operator for integer division
query I rowsort label-4557
SELECT ALL - - col2 DIV + cor0.col0 + ( col2 ) + col2 FROM tab1 AS cor0
----
114
126
193

skipif mysql # not compatible
query I rowsort label-4557
SELECT ALL - - col2 / + cor0.col0 + ( col2 ) + col2 FROM tab1 AS cor0
----
114
126
193

query I rowsort
SELECT ALL - + col2 + cor0.col0 AS col1 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT DISTINCT - + cor0.col2 + + col0 AS col1 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT + col1 + + 69 AS col1 FROM tab0 AS cor0
----
155
160
166

query I rowsort
SELECT cor0.col1 + - ( - 11 + - col2 * ( col1 ) ) FROM tab1 AS cor0
----
1272
1441
591

query I rowsort
SELECT - col1 * 63 AS col1 FROM tab0 AS cor0
----
-5418
-5733
-6111

query I rowsort
SELECT - col1 + ( 55 ) AS col0 FROM tab1 cor0
----
29
42
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-4564
SELECT + - col2 * col2 + - col0 * cor0.col2 DIV col1 col0 FROM tab2 AS cor0
----
-1620
-710
-735

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4564
SELECT + - col2 * col2 + - col0 * cor0.col2 / col1 col0 FROM tab2 AS cor0
----
-1620
-710
-735

query I rowsort
SELECT DISTINCT - col0 * col0 - - col1 FROM tab2
----
-18
-6025
-6224

onlyif mysql # use DIV operator for integer division
query I rowsort label-4566
SELECT col1 - col1 DIV col0 FROM tab1
----
10
13
18

skipif mysql # not compatible
query I rowsort label-4566
SELECT col1 - col1 / col0 FROM tab1
----
10
13
18

query I rowsort
SELECT DISTINCT - col1 - + col0 * - col1 FROM tab0
----
1978
3298
8008

query I rowsort
SELECT ALL col2 * + col2 * - col0 FROM tab0
----
-26136
-35
-598436

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 * - col2 col2 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT - tab2.col2 - + col2 * + col1 * + col1 AS col0 FROM tab2
----
-11020
-25974
-90532

query I rowsort
SELECT ALL tab2.col2 * col2 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - col1 + - col2 * col0 * - col1 FROM tab0 WHERE + col0 IN ( + tab0.col1 )
----

query I rowsort
SELECT DISTINCT + + col1 * col0 + col2 + - col2 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT + cor0.col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT DISTINCT + + col1 + col0 * + 92 FROM tab0 AS cor0
----
2294
3317
8279

query I rowsort
SELECT - 51 * + col2 AS col1 FROM tab1 AS cor0
----
-2754
-2907
-4896

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NULL NOT BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT col2 * col2 * col1 AS col2 FROM tab2
----
22599
24548
39884

query I rowsort
SELECT DISTINCT + tab1.col2 * + col1 * col1 FROM tab1
----
16224
36504
5700

query I rowsort
SELECT - cor1.col2 FROM tab0, tab1 cor0, tab0 cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col0 * - 7 * 86 col1 FROM tab2 AS cor0
----
-4214
-46956
-47558

onlyif mysql # use DIV operator for integer division
query I rowsort label-4582
SELECT + 88 DIV col1 FROM tab2 cor0
----
1
2
5

skipif mysql # not compatible
query I rowsort label-4582
SELECT + 88 / col1 FROM tab2 cor0
----
1
2
5

query I rowsort
SELECT + ( 40 ) AS col1 FROM tab2 AS cor0
----
40
40
40

query I rowsort
SELECT DISTINCT col2 + + ( col0 ) + 12 * 46 * col0 AS col2 FROM tab1 cor0
----
1713
35449
44336

query I rowsort
SELECT ALL - - 2 * cor0.col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT + 88 * + col1 * - col1 FROM tab2 AS cor0
----
-25432
-306328
-84568

onlyif mysql # use DIV operator for integer division
query I rowsort label-4587
SELECT DISTINCT col2 DIV ( col2 + col1 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4587
SELECT DISTINCT col2 / ( col2 + col1 ) FROM tab2
----
0

query I rowsort
SELECT ALL - - 26 * col1 FROM tab0 AS cor0
----
2236
2366
2522

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 28 col2 FROM tab1 AS cor0
----
28
28
28

query I rowsort
SELECT ALL - col2 + - col0 * + col2 AS col2 FROM tab2 cor0
----
-2054
-216
-3040

query I rowsort
SELECT - 35 * + col2 + - 19 FROM tab0 AS cor0
----
-1174
-2889
-54

query I rowsort
SELECT + col0 + col2 * 61 * 95 AS col0 FROM tab1 AS cor0
----
312933
330379
556400

query I rowsort
SELECT + 79 * 15 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c2a76c0102a55efcdeefaecff0a2dc97

query I rowsort
SELECT + - col0 + col1 * - 34 FROM tab0 AS cor0
----
-2948
-3183
-3333

query I rowsort
SELECT + - col0 * col2 + + 9 FROM tab1 AS cor0
----
-153
-3639
-7671

query I rowsort
SELECT DISTINCT col2 * + cor0.col1 + ( 8 ) AS col2 FROM tab1 cor0
----
1256
1412
578

query I rowsort
SELECT ALL + col2 + + cor0.col0 * col0 FROM tab1 cor0
----
4153
63
6496

query I rowsort
SELECT - col1 * - cor0.col2 + - ( col1 ) FROM tab2 cor0
----
1475
629
806

query I rowsort
SELECT col2 + - cor0.col2 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + 71 + + cor0.col2 AS col0 FROM tab1 AS cor0
----
125
128
167

query I rowsort
SELECT ALL col0 + - col1 + col1 * - col2 FROM tab2 AS cor0
----
-1515
-584
-861

query I rowsort
SELECT ALL - col1 + - ( - col0 ) AS col2 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT + col2 + - col1 * - col1 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT DISTINCT + cor0.col1 + 74 + + 10 AS col1 FROM tab0 AS cor0
----
170
175
181

query I rowsort
SELECT ALL + - col0 - col0 AS col0 FROM tab0 AS cor0
----
-178
-48
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - + col1 * col1 col0 FROM tab2 AS cor0
----
-306
-3540
-992

query I rowsort
SELECT cor0.col2 + + col1 * 97 AS col2 FROM tab0 AS cor0
----
8375
8909
9410

query I rowsort
SELECT DISTINCT col2 + - col2 + - col1 AS col2 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT + col1 + - ( + 22 ) * - col0 AS col1 FROM tab1 AS cor0
----
1418
1773
92

query I rowsort
SELECT ALL col1 + + 66 AS col1 FROM tab0 AS cor0
----
152
157
163

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4611
SELECT col2 + - CAST( col0 + - cor0.col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
63
84
95

skipif mysql # not compatible
query I rowsort label-4611
SELECT col2 + - CAST ( col0 + - cor0.col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
63
84
95

query I rowsort
SELECT DISTINCT - + col2 * - ( col0 ) + col1 AS col0 FROM tab2 cor0
----
2087
220
3019

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + ( col1 + col2 ) * col2 col2 FROM tab1 cor0
----
10477
3829
4346

onlyif mysql # use DIV operator for integer division
query I rowsort label-4614
SELECT ALL col2 + 24 DIV + col2 AS col1 FROM tab0 AS cor0
----
25
33
82

skipif mysql # not compatible
query I rowsort label-4614
SELECT ALL col2 + 24 / + col2 AS col1 FROM tab0 AS cor0
----
25
33
82

query I rowsort
SELECT DISTINCT - col1 * + 36 - - 91 * col0 * + col2 AS col1 FROM tab0 AS cor0
----
-307
660842
68976

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 80 col0 FROM tab2 AS cor0
----
80
80
80

query I rowsort
SELECT DISTINCT 20 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab2 AS cor2
----
20

query I rowsort
SELECT DISTINCT + - 58 * col2 + col2 AS col1 FROM tab0 AS cor0
----
-1881
-4674
-57

query I rowsort
SELECT - col1 * ( col0 ) + - col0 AS col2 FROM tab0 AS cor0
----
-2088
-3430
-8188

query I rowsort
SELECT col0 + 85 AS col2 FROM tab2
----
163
164
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-4621
SELECT ALL - cor0.col1 DIV + col0 FROM tab1 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-4621
SELECT ALL - cor0.col1 / + col0 FROM tab1 AS cor0
----
-8
0
0

query I rowsort
SELECT ALL - 84 * + col0 AS col1 FROM tab1 AS cor0
----
-252
-5376
-6720

query I rowsort
SELECT 78 FROM tab0, tab2 cor0, tab0 AS cor1
----
27 values hashing to d8e5ef4db3419fc251e82c50ba04e048

query I rowsort
SELECT - col0 - 5 AS col2 FROM tab2
----
-12
-83
-84

query I rowsort
SELECT + ( 58 ) * + col0 FROM tab2
----
406
4524
4582

query I rowsort
SELECT ALL - ( + col1 ) * - col1 AS col2 FROM tab2
----
289
3481
961

query I rowsort
SELECT 5 + + col2 - col0 AS col1 FROM tab0
----
-2
-29
14

query I rowsort
SELECT col1 - - tab0.col2 * - col1 AS col0 FROM tab0
----
-2752
-7371
0

query I rowsort
SELECT 81 * - col0 FROM tab2
----
-567
-6318
-6399

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 40 + col1 * - 98 col1 FROM tab1
----
-1234
-2508
-940

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab0.col0 col1 FROM tab0, tab2 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT - col2 + col2 * col1 FROM tab2
----
1508
608
810

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4633
SELECT DISTINCT col2 * + tab0.col1 + - CAST( NULL AS SIGNED ) * - col0 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4633
SELECT DISTINCT col2 * + tab0.col1 + - CAST ( NULL AS INTEGER ) * - col0 AS col0 FROM tab0
----
NULL

query I rowsort
SELECT ALL ( 94 ) AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089

query I rowsort
SELECT + col0 * col0 - - col2 FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT - col1 + col2 * cor0.col2 * col2 FROM tab0 AS cor0
----
-96
35851
551277

query I rowsort
SELECT ALL - 23 AS col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 9bd721f99d79dce21b1de2860fd51ed5

query I rowsort
SELECT + ( - cor0.col0 ) * cor0.col1 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT + ( ( col2 ) ) AS col2 FROM tab1
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 91 col0 FROM tab0
----
-91

query I rowsort
SELECT + col1 + 29 + col2 * + col2 FROM tab1 AS cor0
----
2971
3288
9258

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 3 * - col2 + - col0 + + col2 col0 FROM tab1 AS cor0
----
164
213
304

query I rowsort
SELECT DISTINCT + col1 * - col1 + - col0 AS col0 FROM tab2 AS cor0
----
-3559
-368
-968

query I rowsort
SELECT DISTINCT + ( - col2 ) * + col2 AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * 91 col2 FROM tab0 AS cor0
----
2184
3185
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - 79 + - col2 col2 FROM tab1 cor0
----
4212
4446
7488

query I rowsort
SELECT DISTINCT - - col1 + col2 AS col0 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL - 7 AS col1 FROM tab1 cor0
----
-7
-7
-7

query I rowsort
SELECT DISTINCT - + cor0.col1 * 44 FROM tab0 AS cor0
----
-3784
-4004
-4268

query I rowsort
SELECT DISTINCT + col0 * + col0 + col2 * col2 AS col2 FROM tab2 AS cor0
----
6760
7685
778

query I rowsort
SELECT - ( + col2 ) * - col1 * ( - 0 * + col2 ) AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 14 * + col0 + col1 AS col0 FROM tab0 cor0
----
1337
422
587

query I rowsort
SELECT DISTINCT - - 92 AS col2 FROM tab0 AS cor0
----
92

query I rowsort
SELECT DISTINCT tab2.col1 + + 76 + col0 AS col2 FROM tab2
----
114
172
213

query I rowsort
SELECT - col2 + - col1 * - 54 AS col2 FROM tab0 AS cor0
----
4611
4832
5237

query I rowsort
SELECT + 93 AS col2 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7

query I rowsort
SELECT DISTINCT + - col2 * + cor0.col0 + - col1 + col0 AS col1 FROM tab1 cor0
----
-185
-3594
-7613

query I rowsort
SELECT - + cor0.col0 - col1 FROM tab1 AS cor0
----
-29
-74
-93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4659
SELECT DISTINCT - col0 * + 63 / + col2 - col0 * + CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4659
SELECT DISTINCT - col0 * + 63 / + col2 - col0 * + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT cor0.col2 * - cor0.col2 + - col1 * - col1 AS col2 FROM tab0 AS cor0
----
1557
6307
9408

query I rowsort
SELECT + col2 * - col1 * col1 FROM tab2
----
-10982
-25947
-90506

query I rowsort
SELECT ALL - tab1.col1 + + tab1.col1 FROM tab1
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4663
SELECT ALL col0 + CAST( NULL AS SIGNED ) * - col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4663
SELECT ALL col0 + CAST ( NULL AS INTEGER ) * - col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4664
SELECT - - 51 DIV - 56 + col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-4664
SELECT - - 51 / - 56 + col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT + col2 + ( col1 ) AS col1 FROM tab0
----
119
173
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4666
SELECT + col2 * CAST( NULL AS SIGNED ) / + col2 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4666
SELECT + col2 * CAST ( NULL AS INTEGER ) / + col2 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 49 * col1 + col0 FROM tab1 AS cor0
----
1277
554
717

query I rowsort
SELECT - ( 43 ) FROM tab2 AS cor0
----
-43
-43
-43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 76 * + ( - cor0.col0 ) - - col2 * cor0.col0 * + cor0.col1 col0 FROM tab1 AS cor0
----
31616
3984
93760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4670
SELECT - CAST( NULL AS SIGNED ) * + col1 - col1 / - col1 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4670
SELECT - CAST ( NULL AS INTEGER ) * + col1 - col1 / - col1 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 + 33 AS col0 FROM tab1
----
20
23
7

query I rowsort
SELECT DISTINCT - col0 * ( tab2.col1 ) + - col2 AS col1 FROM tab2
----
-1381
-244
-4628

query I rowsort
SELECT - col1 + ( 43 ) FROM tab2
----
-16
12
26

query I rowsort
SELECT + - 10 * col1 + cor0.col1 - 27 FROM tab0 AS cor0
----
-801
-846
-900

query I rowsort
SELECT - + col2 * col2 + col2 - - col2 FROM tab1 AS cor0
----
-2808
-3135
-9024

query I rowsort
SELECT + ( - 91 ) FROM tab1, tab0 AS cor0
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

query I rowsort
SELECT ALL + col1 * + 46 * col2 AS col0 FROM tab0
----
130548
343252
4462

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab1.col0 * + tab1.col2 * - tab1.col2 col2 FROM tab1
----
-207936
-737280
-8748

onlyif mysql # use DIV operator for integer division
query I rowsort label-4679
SELECT 28 DIV 19 + col0 col0 FROM tab1
----
4
65
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4679
SELECT 28 / 19 + col0 col0 FROM tab1
----
4
65
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-4680
SELECT - col2 - - col0 DIV col2 FROM tab1 AS cor0
----
-54
-56
-96

skipif mysql # not compatible
query I rowsort label-4680
SELECT - col2 - - col0 / col2 FROM tab1 AS cor0
----
-54
-56
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4681
SELECT - CAST( - ( col1 ) AS SIGNED ) + 60 AS col0 FROM tab0 AS cor0
----
146
151
157

skipif mysql # not compatible
query I rowsort label-4681
SELECT - CAST ( - ( col1 ) AS INTEGER ) + 60 AS col0 FROM tab0 AS cor0
----
146
151
157

query I rowsort
SELECT - 40 FROM tab1, tab2 AS cor0
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4683
SELECT DISTINCT CAST( col1 AS SIGNED ) FROM tab2
----
17
31
59

skipif mysql # not compatible
query I rowsort label-4683
SELECT DISTINCT CAST ( col1 AS INTEGER ) FROM tab2
----
17
31
59

query I rowsort
SELECT ALL - 32 * col2 FROM tab2
----
-1216
-832
-864

query I rowsort
SELECT - tab1.col0 * - tab1.col2 AS col1 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 02081120b66025475df9f31f465bcbe4

query I rowsort
SELECT + - col1 * + ( - col2 ) AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT + tab0.col2 * tab0.col1 AS col1 FROM tab0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4688
SELECT ALL + 66 DIV + col2 FROM tab0
----
0
2
66

skipif mysql # not compatible
query I rowsort label-4688
SELECT ALL + 66 / + col2 FROM tab0
----
0
2
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-4689
SELECT DISTINCT - ( col0 ) DIV - CAST( - 85 + tab1.col2 AS SIGNED ) col1 FROM tab1
----
-2
0
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4689
SELECT DISTINCT - ( col0 ) / - CAST ( - 85 + tab1.col2 AS INTEGER ) col1 FROM tab1
----
-2
0
7

query I rowsort
SELECT + col2 + - col0 * col2 AS col1 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT DISTINCT - col1 * 17 + - col2 AS col0 FROM tab1 AS cor0
----
-227
-317
-496

onlyif mysql # use DIV operator for integer division
query I rowsort label-4692
SELECT + cor0.col0 + col1 DIV col0 FROM tab0 AS cor0
----
27
37
90

skipif mysql # not compatible
query I rowsort label-4692
SELECT + cor0.col0 + col1 / col0 FROM tab0 AS cor0
----
27
37
90

query I rowsort
SELECT ALL - - cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT ALL - cor1.col2 FROM tab2 cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT + - col0 + ( col0 ) FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4696
SELECT + - col1 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4696
SELECT + - col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4697
SELECT DISTINCT col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4697
SELECT DISTINCT col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + - col0 + - cor0.col2 AS col1 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT - - col0 * ( - ( col1 ) ) AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT + - col2 * - 20 AS col0 FROM tab1 AS cor0
----
1080
1140
1920

onlyif mysql # use DIV operator for integer division
query I rowsort label-4701
SELECT DISTINCT tab1.col1 DIV - col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-4701
SELECT DISTINCT tab1.col1 / - col1 FROM tab1
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 + - col2 * - col1 * + col1 + + col0 col1 FROM tab1 AS cor0
----
16473
37183
5864

onlyif mysql # use DIV operator for integer division
query I rowsort label-4703
SELECT + col0 + col2 DIV + 72 AS col2 FROM tab0 AS cor0
----
24
35
90

skipif mysql # not compatible
query I rowsort label-4703
SELECT + col0 + col2 / + 72 AS col2 FROM tab0 AS cor0
----
24
35
90

query I rowsort
SELECT DISTINCT - 36 * col1 * col0 AS col1 FROM tab2 AS cor0
----
-165672
-48348
-7812

query I rowsort
SELECT DISTINCT - + 28 * - col1 + 66 FROM tab0 AS cor0
----
2474
2614
2782

query I rowsort
SELECT 33 + + col2 + cor0.col0 AS col2 FROM tab2 AS cor0
----
137
150
67

query I rowsort
SELECT ALL - col1 + col2 AS col2 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT ( col2 ) * - col2 AS col1 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT col2 + - tab0.col1 + - col1 * + ( - 18 * col0 ) FROM tab0
----
145773
37099
61014

onlyif mysql # use DIV operator for integer division
query I rowsort label-4710
SELECT DISTINCT col0 DIV 6 + col1 FROM tab0
----
102
105
90

skipif mysql # not compatible
query I rowsort label-4710
SELECT DISTINCT col0 / 6 + col1 FROM tab0
----
102
105
90

query I rowsort
SELECT - col0 + - tab1.col2 * tab1.col2 FROM tab1
----
-2919
-3313
-9296

query I rowsort
SELECT DISTINCT - ( col1 * col2 ) + 25 AS col2 FROM tab1
----
-1223
-1379
-545

query I rowsort
SELECT - col1 - - 29 AS col1 FROM tab1
----
16
19
3

query I rowsort
SELECT - ( col1 ) * + col1 FROM tab1
----
-100
-169
-676

query I rowsort
SELECT + + 58 + col1 FROM tab0 AS cor0
----
144
149
155

query I rowsort
SELECT + 49 + col2 AS col1 FROM tab1
----
103
106
145

query I rowsort
SELECT DISTINCT + 14 * col2 * col0 AS col0 FROM tab0 AS cor0
----
102172
11088
490

query I rowsort
SELECT + 36 + cor0.col2 AS col2 FROM tab2 AS cor0
----
62
63
74

query I rowsort
SELECT DISTINCT 3 FROM tab1, tab1 AS cor0
----
3

query I rowsort
SELECT - tab1.col1 * 75 AS col2 FROM tab1
----
-1950
-750
-975

query I rowsort
SELECT ALL + cor0.col1 * cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to 2e5239e07239fc5e8b7ad998a3c285e1

query I rowsort
SELECT - tab0.col1 * col0 * col0 AS col1 FROM tab0
----
-118825
-49536
-720811

query I rowsort
SELECT - col1 + - ( col0 ) * col2 FROM tab1 AS cor0
----
-188
-3658
-7693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * - col0 + col1 col0 FROM tab1 AS cor0
----
-136
-3638
-7667

onlyif mysql # use DIV operator for integer division
query I rowsort label-4725
SELECT - + col2 + col0 DIV col2 FROM tab1 cor0
----
-54
-56
-96

skipif mysql # not compatible
query I rowsort label-4725
SELECT - + col2 + col0 / col2 FROM tab1 cor0
----
-54
-56
-96

query I rowsort
SELECT - col0 + 94 * col2 + - col0 FROM tab1 cor0
----
5070
5230
8864

onlyif mysql # use DIV operator for integer division
query I rowsort label-4727
SELECT - + col2 DIV + col2 + cor0.col1 DIV - col1 + - 61 FROM tab0 cor0
----
-63
-63
-63

skipif mysql # not compatible
query I rowsort label-4727
SELECT - + col2 / + col2 + cor0.col1 / - col1 + - 61 FROM tab0 cor0
----
-63
-63
-63

query I rowsort
SELECT + - cor0.col2 + col1 + + col1 AS col1 FROM tab1 AS cor0
----
-2
-37
-70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4729
SELECT + + CAST( NULL AS SIGNED ) * + cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4729
SELECT + + CAST ( NULL AS INTEGER ) * + cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * 40 + - col0 AS col1 FROM tab0 AS cor0
----
3416
3551
3845

query I rowsort
SELECT DISTINCT ( - col2 ) + col1 FROM tab1 AS cor0
----
-28
-47
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - + 99 col1 FROM tab1 AS cor0
----
-102
-163
-179

query I rowsort
SELECT + - col1 * col0 * col0 + - col1 AS col2 FROM tab2 AS cor0
----
-106114
-1550
-359015

onlyif mysql # use DIV operator for integer division
query I rowsort label-4734
SELECT ALL - 84 DIV - col1 + - col2 FROM tab1
----
-49
-51
-90

skipif mysql # not compatible
query I rowsort label-4734
SELECT ALL - 84 / - col1 + - col2 FROM tab1
----
-49
-51
-90

query I rowsort
SELECT + + col2 * + 57 + - col1 FROM tab2 AS cor0
----
1423
1508
2149

query I rowsort
SELECT ALL + col1 * + col1 + - col0 AS col0 FROM tab1 cor0
----
36
673
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-4737
SELECT col0 * col1 DIV - col1 + cor0.col1 col1 FROM tab0 AS cor0
----
2
62
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4737
SELECT col0 * col1 / - col1 + cor0.col1 col1 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT ALL + ( - col2 ) * + cor0.col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT + col1 + ( col2 * - 41 ) AS col2 FROM tab0 AS cor0
----
-1267
-3271
56

query I rowsort
SELECT ALL + + col1 - ( col1 ) AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + - cor0.col1 + 95 FROM tab2 AS cor0
----
36
64
78

query I rowsort
SELECT ALL + col1 * + ( col1 ) + col1 FROM tab2 AS cor0
----
306
3540
992

query I rowsort
SELECT - 40 - col2 AS col0 FROM tab2 cor0
----
-66
-67
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + cor0.col1 col0 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT DISTINCT - 4 + col1 FROM tab0 AS cor0
----
82
87
93

query I rowsort
SELECT DISTINCT - col0 + - 31 + col0 AS col2 FROM tab1 AS cor0
----
-31

query I rowsort
SELECT ALL 0 + - col2 * + ( + col0 ) FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT + cor0.col2 * + col0 + cor0.col1 FROM tab2 cor0
----
2087
220
3019

query I rowsort
SELECT DISTINCT - + 59 + - col2 AS col2 FROM tab1 AS cor0
----
-113
-116
-155

query I rowsort
SELECT ALL - + 13 * col2 AS col2 FROM tab0 AS cor0
----
-1066
-13
-429

query I rowsort
SELECT 30 * col0 AS col1 FROM tab1 AS cor0
----
1920
2400
90

query I rowsort
SELECT 4 AS col0 FROM tab0 cor0
----
4
4
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-4753
SELECT DISTINCT 59 DIV + cor0.col0 FROM tab1 AS cor0
----
0
19

skipif mysql # not compatible
query I rowsort label-4753
SELECT DISTINCT 59 / + cor0.col0 FROM tab1 AS cor0
----
0
19

query I rowsort
SELECT ALL - col1 + 62 FROM tab1
----
36
49
52

query I rowsort
SELECT col0 + - tab0.col0 - tab0.col1 * col0 FROM tab0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col0 col0 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT cor0.col2 * - ( - 61 ) FROM tab2 AS cor0
----
1586
1647
2318

query I rowsort
SELECT DISTINCT - col2 * - col1 + cor0.col2 * col2 FROM tab1 AS cor0
----
10464
3819
4320

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4759
SELECT ALL col1 * + CAST( ( col0 ) AS DECIMAL ) * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4759
SELECT ALL col1 * + CAST ( ( col0 ) AS REAL ) * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 - - 11 FROM tab0
----
-22
-71
10

query I rowsort
SELECT DISTINCT - cor1.col0 AS col2 FROM tab0, tab0 cor0, tab1 AS cor1
----
-3
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-4762
SELECT ALL - - col0 DIV col1 + col0 FROM tab1 cor0
----
3
70
86

skipif mysql # not compatible
query I rowsort label-4762
SELECT ALL - - col0 / col1 + col0 FROM tab1 cor0
----
3
70
86

query I rowsort
SELECT + + ( cor0.col1 ) AS col1 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT col2 + 30 * + tab0.col0 AS col2 FROM tab0
----
1051
2752
753

query I rowsort
SELECT - col1 * ( + col2 ) AS col2 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT col2 * + tab2.col1 + - 42 * 14 FROM tab2
----
249
58
946

query I rowsort
SELECT DISTINCT 36 + + col1 + col0 * - col0 FROM tab0
----
-1092
-454
-7794

onlyif mysql # use DIV operator for integer division
query I rowsort label-4768
SELECT + 75 - - col2 DIV - col1 FROM tab1 cor0
----
68
70
73

skipif mysql # not compatible
query I rowsort label-4768
SELECT + 75 - - col2 / - col1 FROM tab1 cor0
----
68
70
73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4769
SELECT DISTINCT - - ( - col2 ) * + CAST( NULL AS SIGNED ) + 82 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4769
SELECT DISTINCT - - ( - col2 ) * + CAST ( NULL AS INTEGER ) + 82 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + col2 + col0 * + 86 AS col2 FROM tab1 AS cor0
----
312
5561
6976

query I rowsort
SELECT DISTINCT + - col2 + col1 * - 1 FROM tab2 cor0
----
-55
-58
-85

query I rowsort
SELECT ALL + col1 * ( - 69 ) + cor0.col1 FROM tab0 cor0
----
-5848
-6188
-6596

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4773
SELECT + col1 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4773
SELECT + col1 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 * col0 + - col0 * col2 AS col0 FROM tab2 AS cor0
----
-238
-8112
-9243

query I rowsort
SELECT + 60 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT - - col2 * 46 AS col2 FROM tab2 AS cor0
----
1196
1242
1748

query I rowsort
SELECT ALL + + col1 + + 91 AS col1 FROM tab0 AS cor0
----
177
182
188

query I rowsort
SELECT + cor0.col2 FROM tab2, tab1, tab0 cor0, tab0
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05

onlyif mysql # use DIV operator for integer division
query I rowsort label-4779
SELECT col2 + col1 DIV + col2 AS col2 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-4779
SELECT col2 + col1 / + col2 AS col2 FROM tab1
----
54
57
96

query I rowsort
SELECT 12 + 70 FROM tab1
----
82
82
82

query I rowsort
SELECT + col1 + ( + col1 ) FROM tab0
----
172
182
194

query I rowsort
SELECT DISTINCT - ( 36 + + col2 ) FROM tab2
----
-62
-63
-74

query I rowsort
SELECT ALL col1 * - 22 + col0 AS col1 FROM tab0 AS cor0
----
-1868
-1913
-2099

query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab0, tab0 cor0, tab2 AS cor1
----
24
35
89

query I rowsort
SELECT DISTINCT + col0 + col0 * col2 + 47 * 80 AS col0 FROM tab0 AS cor0
----
11147
3830
4576

query I rowsort
SELECT ALL ( + 23 ) * + cor0.col0 + 8 FROM tab0 AS cor0
----
2055
560
813

query I rowsort
SELECT ALL 46 * col0 + - col0 + 95 FROM tab1 AS cor0
----
230
2975
3695

query I rowsort
SELECT - + ( + ( col0 ) ) AS col2 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT + - 37 + cor0.col2 AS col1 FROM tab1 cor0
----
17
20
59

query I rowsort
SELECT DISTINCT - col2 * - col0 + col1 * - cor0.col0 AS col1 FROM tab0 cor0
----
-1272
-3360
-801

query I rowsort
SELECT 21 * - col1 FROM tab2 cor0
----
-1239
-357
-651

query I rowsort
SELECT ALL + + col2 * cor0.col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-4793
SELECT ALL col2 + - col2 DIV ( - 38 + + col1 * ( col0 ) ) AS col2 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-4793
SELECT ALL col2 + - col2 / ( - 38 + + col1 * ( col0 ) ) AS col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL - - col1 * col0 * + ( 69 ) + - col0 AS col1 FROM tab0 AS cor0
----
142392
234220
558742

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * col2 col1 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT + col2 - + col0 AS col1 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT + + 2 - col2 AS col1 FROM tab2 cor0
----
-24
-25
-36

query I rowsort
SELECT DISTINCT - + col0 * cor0.col1 AS col0 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT + + col1 * col0 + col0 AS col0 FROM tab1 cor0
----
1120
704
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 55 + - col0 col0 FROM tab2 AS cor0
----
-23
-24
48

query I rowsort
SELECT DISTINCT - ( - tab0.col2 ) AS col1 FROM tab0
----
1
33
82

query I rowsort
SELECT + + 68 + col2 * - col2 FROM tab0 AS cor0
----
-1021
-6656
67

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4803
SELECT - col2 * col2 + CAST( 15 AS SIGNED ) * col1 col1 FROM tab0 AS cor0
----
-5359
1454
201

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4803
SELECT - col2 * col2 + CAST ( 15 AS INTEGER ) * col1 col1 FROM tab0 AS cor0
----
-5359
1454
201

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4804
SELECT ALL CAST( NULL AS DECIMAL ) * ( + col0 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4804
SELECT ALL CAST ( NULL AS REAL ) * ( + col0 ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + + ( col0 ) + - col1 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT - - 85 * col2 FROM tab1 AS cor0
----
4590
4845
8160

query I rowsort
SELECT ALL + tab2.col0 AS col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT tab1.col1 * 73 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 0949a6717a5a974cf810e495176c0516

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 cor0, tab2 AS cor1, tab2 cor2
----
972 values hashing to 163d7732097d78f1cda7f65c2cea5a08

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4810
SELECT DISTINCT + + cor0.col1 + col0 * + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4810
SELECT DISTINCT + + cor0.col1 + col0 * + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT ( - col1 ) + col0 AS col0 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT col2 + 2 AS col0 FROM tab1 AS cor0
----
56
59
98

query I rowsort
SELECT DISTINCT 49 * - col1 AS col2 FROM tab2
----
-1519
-2891
-833

query I rowsort
SELECT col1 * - col0 + col2 FROM tab2
----
-1305
-190
-4576

skipif mysql # not compatible
query I rowsort
SELECT - col0 * CAST ( + cor0.col0 AS REAL ) - - col0 AS col0 FROM tab0 cor0
----
-1190
-552
-7832

query I rowsort
SELECT + + col1 * col0 - col0 FROM tab0 cor0
----
2040
3360
8010

query I rowsort
SELECT 3 + + col0 FROM tab2
----
10
81
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 21 col0 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 312c166f4dc412730c43555105b1f44b

query I rowsort
SELECT ALL ( + col1 + ( - 41 ) ) AS col1 FROM tab0
----
45
50
56

query I rowsort
SELECT - - col0 * col0 + col1 + + cor0.col0 FROM tab1 AS cor0
----
38
4170
6493

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 21 * + col0 col0 FROM tab2 AS cor0
----
-147
-1638
-1659

query I rowsort
SELECT + - 43 * col1 AS col2 FROM tab2 AS cor0
----
-1333
-2537
-731

query I rowsort
SELECT - 69 + + 66 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

query I rowsort
SELECT DISTINCT - col0 + + col0 + - col1 AS col2 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT DISTINCT 64 + cor1.col0 * 59 AS col1 FROM tab0, tab0 AS cor0, tab2 cor1
----
4666
4725
477

query I rowsort
SELECT ALL + col2 * - col2 * col2 FROM tab0
----
-1
-35937
-551368

query I rowsort
SELECT DISTINCT 26 * 48 FROM tab0
----
1248

query I rowsort
SELECT DISTINCT - ( + 62 ) AS col0 FROM tab1
----
-62

query I rowsort
SELECT DISTINCT - col0 * + col1 + + col1 AS col1 FROM tab2 AS cor0
----
-1326
-186
-4543

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col0 col2 FROM tab0 AS cor0
----
1225
576
7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 69 col1 FROM tab2 AS cor0
----
69
69
69

query I rowsort
SELECT ALL + ( col2 ) * + cor0.col2 - col1 * col1 FROM tab0 AS cor0
----
-1557
-6307
-9408

query I rowsort
SELECT DISTINCT col2 * - col1 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT + col2 * ( col0 ) + 37 AS col1 FROM tab0 AS cor0
----
72
7335
829

query I rowsort
SELECT + + 62 AS col2 FROM tab1, tab1 cor0 CROSS JOIN tab1 AS cor1
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b

query I rowsort
SELECT + - ( - col1 ) + col1 * cor0.col2 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT - 54 + - cor0.col2 * - cor0.col2 FROM tab1 AS cor0
----
2862
3195
9162

query I rowsort
SELECT DISTINCT - - col0 - - col0 AS col1 FROM tab1 AS cor0
----
128
160
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4839
SELECT + CAST( - col0 * col0 AS SIGNED ) + col0 FROM tab2
----
-42
-6006
-6162

skipif mysql # not compatible
query I rowsort label-4839
SELECT + CAST ( - col0 * col0 AS INTEGER ) + col0 FROM tab2
----
-42
-6006
-6162

query I rowsort
SELECT ALL - 87 + - 46 FROM tab1
----
-133
-133
-133

query I rowsort
SELECT ALL + - col0 * col2 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL 85 + - col0 FROM tab1 cor0
----
21
5
82

query I rowsort
SELECT ALL + - ( - col1 ) * cor0.col1 + + col1 * col1 FROM tab2 AS cor0
----
1922
578
6962

query I rowsort
SELECT DISTINCT - col1 + col1 * col2 AS col0 FROM tab2 AS cor0
----
1475
629
806

onlyif mysql # use DIV operator for integer division
query I rowsort label-4845
SELECT + col2 DIV cor0.col1 + + ( + 0 ) * col2 AS col0 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-4845
SELECT + col2 / cor0.col1 + + ( + 0 ) * col2 AS col0 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT ALL - col1 * col0 + + col1 AS col2 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT - 86 * - 31 + tab1.col2 + ( 99 ) FROM tab1
----
2819
2822
2861

query I rowsort
SELECT 2 * tab0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to e205c60b0806256e15ecb6a115a429b3

query I rowsort
SELECT DISTINCT - ( tab1.col2 ) * - col2 + col2 FROM tab1
----
2970
3306
9312

query I rowsort
SELECT DISTINCT tab0.col2 * + 23 + col1 AS col1 FROM tab0
----
120
1977
845

query I rowsort
SELECT - 15 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 91b10a00c89b36b5bf0bed723e656ccc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 46 * tab1.col2 col0 FROM tab1
----
2484
2622
4416

onlyif mysql # use DIV operator for integer division
query I rowsort label-4853
SELECT DISTINCT + col2 * col1 DIV + col1 + col0 AS col1 FROM tab1
----
121
176
57

skipif mysql # not compatible
query I rowsort label-4853
SELECT DISTINCT + col2 * col1 / + col1 + col0 AS col1 FROM tab1
----
121
176
57

query I rowsort
SELECT + col2 * + ( 38 ) AS col2 FROM tab1 cor0
----
2052
2166
3648

query I rowsort
SELECT ALL cor0.col1 * + 72 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to f118b603cf3ca0c11299a09cd9993ba9

query I rowsort
SELECT + col0 * ( cor0.col1 ) FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT + col2 - - col0 AS col2 FROM tab2
----
104
117
34

query I rowsort
SELECT + col0 * + cor0.col2 * + 19 + col2 FROM tab1 AS cor0
----
146016
3132
69369

query I rowsort
SELECT ALL - 66 * + 18 + + cor0.col2 FROM tab1, tab2, tab1 AS cor0, tab0
----
81 values hashing to 0ff0a49443d83eecd836dd5e47b6293e

query I rowsort
SELECT + col1 + ( col2 * col1 ) AS col1 FROM tab0
----
194
2924
7553

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4861
SELECT DISTINCT col1 * + CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-4861
SELECT DISTINCT col1 * + CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL + - col0 + cor0.col2 * col1 AS col0 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT ALL - tab0.col0 * - col0 AS col0 FROM tab0
----
1225
576
7921

query I rowsort
SELECT DISTINCT + + col2 + + 92 * cor0.col2 AS col2 FROM tab1 AS cor0
----
5022
5301
8928

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4865
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) + 96 / col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4865
SELECT DISTINCT - + CAST ( NULL AS REAL ) + 96 / col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col1 + - col1 - - col0 AS col2 FROM tab1 AS cor0
----
-49
44
54

onlyif mysql # use DIV operator for integer division
query I rowsort label-4867
SELECT DISTINCT - 45 DIV ( col0 ) FROM tab1 cor0
----
-15
0

skipif mysql # not compatible
query I rowsort label-4867
SELECT DISTINCT - 45 / ( col0 ) FROM tab1 cor0
----
-15
0

query I rowsort
SELECT + + col1 + col1 * + col2 AS col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT DISTINCT - - 71 * + col1 AS col0 FROM tab1 AS cor0
----
1846
710
923

query I rowsort
SELECT - col0 + - 36 AS col1 FROM tab0 AS cor0
----
-125
-60
-71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 + col2 col2 FROM tab1 AS cor0
----
109
67
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4872
SELECT - CAST( + col2 AS SIGNED ) * cor0.col1 + + col0 - - col1 FROM tab1 AS cor0
----
-1155
-1375
-496

skipif mysql # not compatible
query I rowsort label-4872
SELECT - CAST ( + col2 AS INTEGER ) * cor0.col1 + + col0 - - col1 FROM tab1 AS cor0
----
-1155
-1375
-496

query I rowsort
SELECT - - col2 + 83 * col2 * - col1 FROM tab0 cor0
----
-235521
-619264
-8050

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4874
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4874
SELECT DISTINCT - + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + ( ( + col0 ) ) + ( 58 ) + + cor0.col2 FROM tab0 AS cor0
----
115
229
94

query I rowsort
SELECT ALL - 40 + - col1 * - col0 AS col2 FROM tab2 AS cor0
----
1303
177
4562

query I rowsort
SELECT 93 * col2 - + col0 FROM tab2 AS cor0
----
2340
2504
3455

query I rowsort
SELECT ALL + + ( + 62 ) AS col2 FROM tab0 AS cor0
----
62
62
62

query I rowsort
SELECT DISTINCT - - col0 * 49 - + col0 * cor0.col0 FROM tab0 AS cor0
----
-3560
490
600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 29 + - col0 * - 81 col0 FROM tab2
----
596
6347
6428

query I rowsort
SELECT ALL col2 + - col0 * col1 AS col2 FROM tab1 cor0
----
-24
-583
-944

query I rowsort
SELECT + 53 + + col1 * col2 FROM tab2 AS cor0
----
1587
699
890

onlyif mysql # use DIV operator for integer division
query I rowsort label-4883
SELECT + col2 DIV + cor0.col2 AS col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4883
SELECT + col2 / + cor0.col2 AS col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - 5 * col2 FROM tab2 AS cor0
----
-130
-135
-190

query I rowsort
SELECT + ( + col1 ) + + col2 AS col0 FROM tab0 AS cor0
----
119
173
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-4886
SELECT DISTINCT col1 + - cor0.col1 DIV col2 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-4886
SELECT DISTINCT col1 + - cor0.col1 / col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL - col1 * + col1 + - ( + col0 ) * col0 AS col1 FROM tab0 AS cor0
----
-10634
-16202
-7972

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 9 col1 FROM tab1 cor0
----
-9
-9
-9

query I rowsort
SELECT - col2 * + col0 + col2 AS col0 FROM tab1 AS cor0
----
-108
-3591
-7584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 44 col0 FROM tab2 AS cor0
----
44
44
44

onlyif mysql # use DIV operator for integer division
query I rowsort label-4891
SELECT ALL col1 DIV col0 AS col2 FROM tab1 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-4891
SELECT ALL col1 / col0 AS col2 FROM tab1 AS cor0
----
0
0
8

query I rowsort
SELECT DISTINCT + - col0 + ( - 7 ) * + col0 FROM tab0 AS cor0
----
-192
-280
-712

onlyif mysql # use DIV operator for integer division
query I rowsort label-4893
SELECT DISTINCT - col0 DIV col0 AS col2 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4893
SELECT DISTINCT - col0 / col0 AS col2 FROM tab0 cor0
----
-1

query I rowsort
SELECT + cor0.col2 * 31 FROM tab2 AS cor0
----
1178
806
837

query I rowsort
SELECT DISTINCT - col2 + - col0 + col2 FROM tab0 AS cor0
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-4896
SELECT DISTINCT + col1 * cor0.col0 + + col0 DIV col1 AS col2 FROM tab2 AS cor0
----
1347
217
4603

skipif mysql # not compatible
query I rowsort label-4896
SELECT DISTINCT + col1 * cor0.col0 + + col0 / col1 AS col2 FROM tab2 AS cor0
----
1347
217
4603

onlyif mysql # use DIV operator for integer division
query I rowsort label-4897
SELECT ALL - 14 DIV + col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4897
SELECT ALL - 14 / + col1 FROM tab0
----
0
0
0

query I rowsort
SELECT col0 + col0 * col1 FROM tab2 cor0
----
1422
224
4680

query I rowsort
SELECT ALL + cor0.col1 + + col0 * + col1 AS col2 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT DISTINCT - + col0 * col2 * + col2 AS col1 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT + - col0 + - cor0.col2 * + col1 FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT ALL + col1 * col0 + - col2 AS col1 FROM tab2
----
1305
190
4576

query I rowsort
SELECT DISTINCT - + col1 + - cor0.col1 + - col1 * col0 AS col2 FROM tab1 AS cor0
----
-1066
-130
-660

query I rowsort
SELECT ALL + col0 + - col1 * col2 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT ALL - col1 * + col1 + + col2 FROM tab1
----
-43
-622
-73

query I rowsort
SELECT ALL col0 FROM tab2 WHERE ( col0 / + col0 ) BETWEEN col2 * tab2.col1 AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4907
SELECT ALL - tab0.col0 * - tab0.col0 + + col2 DIV col2 + - col0 * - col1 AS col2 FROM tab0
----
16021
2641
4621

skipif mysql # not compatible
query I rowsort label-4907
SELECT ALL - tab0.col0 * - tab0.col0 + + col2 / col2 + - col0 * - col1 AS col2 FROM tab0
----
16021
2641
4621

query I rowsort
SELECT + 85 * col2 AS col2 FROM tab0
----
2805
6970
85

query I rowsort
SELECT DISTINCT 30 FROM tab1
----
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col0 * - col0 col0 FROM tab1
----
233472
486
614400

query I rowsort
SELECT cor0.col2 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT DISTINCT + col1 * cor0.col1 + - cor0.col1 FROM tab1 AS cor0
----
156
650
90

query I rowsort
SELECT ALL + - col2 + cor0.col2 AS col0 FROM tab1 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4914
SELECT DISTINCT col1 + col0 DIV cor0.col0 AS col1 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-4914
SELECT DISTINCT col1 + col0 / cor0.col0 AS col1 FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT ALL - col0 * col0 + - col1 * cor0.col0 AS col0 FROM tab0 AS cor0
----
-16020
-2640
-4620

query I rowsort
SELECT DISTINCT col0 - col1 * col1 FROM tab2
----
-210
-3403
-954

query III rowsort
SELECT * FROM tab0 WHERE + col1 / - col1 > NULL
----

query I rowsort
SELECT + col1 + tab1.col0 AS col1 FROM tab1
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - + col2 * - col1 col0 FROM tab0
----
2871
7544
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-4920
SELECT tab0.col0 + col0 DIV col2 FROM tab0
----
24
70
90

skipif mysql # not compatible
query I rowsort label-4920
SELECT tab0.col0 + col0 / col2 FROM tab0
----
24
70
90

query I rowsort
SELECT - col1 * tab2.col0 FROM tab2 WHERE NOT NULL NOT IN ( + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col0 FROM tab0 WHERE NOT col2 + col2 * col2 = NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4923
SELECT DISTINCT col2 DIV - col0 col2 FROM tab1 WHERE ( col1 + + col1 + + col1 ) >= ( col1 + + col2 + + col1 * - col2 )
----
-1
-18
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4923
SELECT DISTINCT col2 / - col0 col2 FROM tab1 WHERE ( col1 + + col1 + + col1 ) >= ( col1 + + col2 + + col1 * - col2 )
----
-1
-18
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4924
SELECT ALL col0 * - col2 + col0 DIV + col1 FROM tab2
----
-189
-2027
-2998

skipif mysql # not compatible
query I rowsort label-4924
SELECT ALL col0 * - col2 + col0 / + col1 FROM tab2
----
-189
-2027
-2998

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN + col1 - + col0 AND + col1
----

query I rowsort
SELECT ALL col1 - col0 * + col2 AS col1 FROM tab1
----
-136
-3638
-7667

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL < - col0
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4928
SELECT tab1.col0 DIV + tab1.col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4928
SELECT tab1.col0 / + tab1.col0 FROM tab1
----
1
1
1

query I rowsort
SELECT - 27 AS col1 FROM tab1 cor0
----
-27
-27
-27

query I rowsort
SELECT + - col2 + col0 * + col2 AS col1 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT cor0.col0 + - col2 * 56 AS col2 FROM tab0 AS cor0
----
-1824
-21
-4503

query I rowsort
SELECT ALL col0 + cor0.col2 * - ( - col2 ) FROM tab0 AS cor0
----
1113
36
6813

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 10 col1 FROM tab2 AS cor0
----
-10
-10
-10

query I rowsort
SELECT tab0.col2 * col0 + - col1 FROM tab0
----
-62
706
7207

query I rowsort
SELECT cor0.col0 + col1 * col0 * col1 FROM tab1 AS cor0
----
13600
2031
6464

query I rowsort
SELECT cor0.col2 * cor0.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to cf1383d310e5e3e19470e0b8dc064d0c

query I rowsort
SELECT + col2 * col1 + + col0 * - col0 FROM tab0
----
-1128
-459
2262

query I rowsort
SELECT ALL col2 * - tab2.col2 AS col0 FROM tab2
----
-1444
-676
-729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col2 - col2 col0 FROM tab0
----
-1122
-2
-6806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col2 * + col0 col0 FROM tab2
----
-1323
-158184
-237158

query I rowsort
SELECT DISTINCT - col2 * + col2 * - col2 AS col2 FROM tab0
----
1
35937
551368

query I rowsort
SELECT ALL - col0 * tab2.col1 * + col1 AS col1 FROM tab2
----
-22831
-271518
-6727

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE NOT ( - col0 + + col1 * col0 ) < NULL
----

query I rowsort
SELECT col1 + - col1 * col1 AS col0 FROM tab1
----
-156
-650
-90

query I rowsort
SELECT + tab1.col2 * tab1.col1 * col0 - tab1.col1 AS col2 FROM tab1
----
36470
4186
99827

query I rowsort
SELECT DISTINCT - col0 + - tab0.col1 FROM tab0
----
-110
-132
-180

onlyif mysql # use DIV operator for integer division
query I rowsort label-4947
SELECT ALL tab0.col2 - + col0 DIV - col0 AS col0 FROM tab0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-4947
SELECT ALL tab0.col2 - + col0 / - col0 AS col0 FROM tab0
----
2
34
83

query I rowsort
SELECT DISTINCT 9 AS col2 FROM tab0, tab2 cor0, tab0 AS cor1
----
9

query I rowsort
SELECT - col2 + - cor0.col2 * ( + cor0.col1 ) FROM tab0 AS cor0
----
-2871
-7544
-98

query I rowsort
SELECT - 32 AS col0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 7106326ae056e78044adc0aef747ef08

query I rowsort
SELECT DISTINCT 45 AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
45

query I rowsort
SELECT ALL + - col1 * + cor0.col0 + col1 AS col0 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT DISTINCT + col1 + + 85 * col0 * cor0.col2 + col2 FROM tab2 AS cor0
----
16123
172465
255225

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + 99 * col2 col2 FROM tab1 AS cor0
----
5400
5700
9600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col1 + + 64 col1 FROM tab1 AS cor0
----
1104
142
704

query I rowsort
SELECT DISTINCT + + col2 * col0 + 69 * - col2 FROM tab2 AS cor0
----
-1674
234
380

query I rowsort
SELECT col0 * 25 FROM tab1 AS cor0
----
1600
2000
75

query I rowsort
SELECT - col0 * + col0 + - col0 * col1 FROM tab0 AS cor0
----
-16020
-2640
-4620

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col1 + + col2 * - col0 col1 FROM tab0 AS cor0
----
-7296
-730
27

onlyif mysql # use DIV operator for integer division
query I rowsort label-4960
SELECT DISTINCT - col0 DIV ( - 40 ) + col2 col2 FROM tab2 AS cor0
----
27
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4960
SELECT DISTINCT - col0 / ( - 40 ) + col2 col2 FROM tab2 AS cor0
----
27
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 + col1 * + col0 col2 FROM tab1 cor0
----
1027
52
630

query I rowsort
SELECT DISTINCT + col2 * 32 + + col0 FROM tab1 AS cor0
----
1731
1888
3152

query I rowsort
SELECT + + col2 * cor0.col2 + - col0 AS col2 FROM tab2 cor0
----
1365
598
722

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4964
SELECT + col1 - CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
118
34
62

skipif mysql # not compatible
query I rowsort label-4964
SELECT + col1 - CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT ALL + col2 - 71 AS col2 FROM tab0 cor0
----
-38
-70
11

query I rowsort
SELECT + cor0.col0 AS col0 FROM tab1, tab0, tab2 cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT + 25 * - col1 + - cor0.col0 * + 5 FROM tab0 AS cor0
----
-2270
-2600
-2720

query I rowsort
SELECT ( 98 ) + - col2 FROM tab1 AS cor0
----
2
41
44

query I rowsort
SELECT 45 * + ( col0 ) AS col1 FROM tab1 AS cor0
----
135
2880
3600

query I rowsort
SELECT + + col2 * 6 FROM tab2 AS cor0
----
156
162
228

query I rowsort
SELECT DISTINCT + col0 * - cor0.col2 + col1 * col1 FROM tab0 AS cor0
----
6604
9374
983

query I rowsort
SELECT - ( - 99 ) FROM tab2 cor0
----
99
99
99

query I rowsort
SELECT DISTINCT + 14 FROM tab2, tab0 AS cor0 CROSS JOIN tab0, tab2 cor1
----
14

query I rowsort
SELECT ( tab0.col1 ) - tab0.col0 FROM tab0
----
2
62
62

query I rowsort
SELECT ALL - 88 * col2 FROM tab2 AS cor0
----
-2288
-2376
-3344

onlyif mysql # use DIV operator for integer division
query I rowsort label-4976
SELECT 39 DIV - col1 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4976
SELECT 39 / - col1 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + 90 * cor0.col0 FROM tab2 AS cor0
----
630
7020
7110

query I rowsort
SELECT ALL - + 46 * col2 FROM tab0 cor0
----
-1518
-3772
-46

query I rowsort
SELECT DISTINCT + cor0.col0 * col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL ( - 57 ) FROM tab2
----
-57
-57
-57

query I rowsort
SELECT ALL + ( col1 * - col1 ) AS col2 FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT col2 * + ( - col1 ) - col2 FROM tab2
----
-1560
-684
-864

query I rowsort
SELECT - - 85 AS col0 FROM tab0, tab2, tab1 AS cor0, tab1
----
81 values hashing to 5e8deeabad7bbbaf313fcdcb4adc75eb

query I rowsort
SELECT - 51 * tab0.col0 * + col1 - 20 AS col0 FROM tab0
----
-105284
-173165
-413069

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 2 col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + cor0.col1 * + col0 col2 FROM tab2 AS cor0
----
-22831
-271518
-6727

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4987
SELECT ALL + + 58 * + col1 - CAST( cor0.col2 + cor0.col0 AS SIGNED ) FROM tab2 AS cor0
----
1764
3318
869

skipif mysql # not compatible
query I rowsort label-4987
SELECT ALL + + 58 * + col1 - CAST ( cor0.col2 + cor0.col0 AS INTEGER ) FROM tab2 AS cor0
----
1764
3318
869

onlyif mysql # use DIV operator for integer division
query I rowsort label-4988
SELECT ALL + + col0 DIV col2 - col1 AS col2 FROM tab0 AS cor0
----
-62
-86
-90

skipif mysql # not compatible
query I rowsort label-4988
SELECT ALL + + col0 / col2 - col1 AS col2 FROM tab0 AS cor0
----
-62
-86
-90

query I rowsort
SELECT ALL - 43 AS col1 FROM tab1
----
-43
-43
-43

onlyif mysql # use DIV operator for integer division
query I rowsort label-4990
SELECT ALL + cor0.col0 DIV col0 AS col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4990
SELECT ALL + cor0.col0 / col0 AS col2 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT ALL col2 * - col2 + col2 FROM tab2
----
-1406
-650
-702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 57 col1 FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 AS cor2
----
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4993
SELECT DISTINCT + col2 * + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4993
SELECT DISTINCT + col2 * + CAST ( NULL AS REAL ) FROM tab1
----
NULL

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 AS cor2
----
972 values hashing to 43f0c51511c8642d19190fd4dfcf905a

query I rowsort
SELECT + col0 - ( col1 + + col0 ) AS col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT + - cor0.col0 * 38 AS col1 FROM tab1 AS cor0
----
-114
-2432
-3040

query I rowsort
SELECT ALL - col2 * + col0 + - col0 + - col1 FROM tab2
----
-2165
-227
-3098

query I rowsort
SELECT ALL - ( + col1 ) * - cor0.col2 * 40 FROM tab2 AS cor0
----
25840
33480
61360

query I rowsort
SELECT DISTINCT + + ( + 37 ) + + cor0.col0 AS col0 FROM tab2 AS cor0
----
115
116
44

query I rowsort
SELECT ALL + col2 * 34 AS col1 FROM tab0 AS cor0
----
1122
2788
34

query I rowsort
SELECT DISTINCT - + ( + col2 ) * - col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL - col0 + col1 * - col2 + col1 FROM tab1 AS cor0
----
-1315
-1381
-624

query I rowsort
SELECT ALL + - cor0.col2 - col1 AS col1 FROM tab0 AS cor0
----
-119
-173
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-5004
SELECT ALL col2 * + cor0.col1 + ( col1 ) * col2 DIV col1 AS col2 FROM tab2 AS cor0
----
1560
684
864

skipif mysql # not compatible
query I rowsort label-5004
SELECT ALL col2 * + cor0.col1 + ( col1 ) * col2 / col1 AS col2 FROM tab2 AS cor0
----
1560
684
864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + 51 col2 FROM tab1 AS cor0
----
105
108
147

query I rowsort
SELECT ALL col0 * col1 + 0 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-5007
SELECT + col2 DIV col0 + + 39 AS col1 FROM tab1 AS cor0
----
39
40
57

skipif mysql # not compatible
query I rowsort label-5007
SELECT + col2 / col0 + + 39 AS col1 FROM tab1 AS cor0
----
39
40
57

query I rowsort
SELECT - col1 * + ( 47 ) + + cor0.col0 FROM tab0 AS cor0
----
-4018
-4188
-4524

query I rowsort
SELECT DISTINCT col0 - + 35 AS col2 FROM tab1 AS cor0
----
-32
29
45

query I rowsort
SELECT col2 + 71 FROM tab1 cor0
----
125
128
167

query I rowsort
SELECT + col2 * + col0 + - col1 AS col1 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT DISTINCT 67 + col2 * 87 AS col2 FROM tab2 AS cor0
----
2329
2416
3373

query I rowsort
SELECT - + col2 * + col2 * 23 AS col2 FROM tab1 AS cor0
----
-211968
-67068
-74727

query I rowsort
SELECT + col1 + col2 * - col0 AS col0 FROM tab1 AS cor0
----
-136
-3638
-7667

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5015
SELECT ALL + ( col0 ) + CAST( 57 AS SIGNED ) * - col0 col2 FROM tab0 cor0
----
-1344
-1960
-4984

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5015
SELECT ALL + ( col0 ) + CAST ( 57 AS INTEGER ) * - col0 col2 FROM tab0 cor0
----
-1344
-1960
-4984

query I rowsort
SELECT - 65 * cor0.col0 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to 8331886af9b10effd9cfe299f4aa1fcf

onlyif mysql # use DIV operator for integer division
query I rowsort label-5017
SELECT ALL 46 + 14 DIV col1 FROM tab1
----
46
47
47

skipif mysql # not compatible
query I rowsort label-5017
SELECT ALL 46 + 14 / col1 FROM tab1
----
46
47
47

onlyif mysql # use DIV operator for integer division
query I rowsort label-5018
SELECT ALL tab0.col2 * col0 DIV + col0 + + 92 FROM tab0
----
125
174
93

skipif mysql # not compatible
query I rowsort label-5018
SELECT ALL tab0.col2 * col0 / + col0 + + 92 FROM tab0
----
125
174
93

query I rowsort
SELECT + 63 * col0 + - tab2.col2 FROM tab2
----
414
4888
4939

query I rowsort
SELECT ALL cor0.col0 * - col2 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5021
SELECT DISTINCT - 32 / col2 - - CAST( NULL AS SIGNED ) * - cor0.col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5021
SELECT DISTINCT - 32 / col2 - - CAST ( NULL AS INTEGER ) * - cor0.col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + - 25 + col2 AS col2 FROM tab0 AS cor0
----
-24
57
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col0 col1 FROM tab2
----
14
156
158

query I rowsort
SELECT 73 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 3933a906d17a820ccf95467e2206df8f

query I rowsort
SELECT DISTINCT - 41 * col2 * col1 FROM tab1
----
-23370
-51168
-57564

query I rowsort
SELECT col0 * - 55 AS col1 FROM tab1 AS cor0
----
-165
-3520
-4400

query I rowsort
SELECT DISTINCT + 7 FROM tab0, tab2 AS cor0, tab0 cor1
----
7

query I rowsort
SELECT DISTINCT col1 * ( col2 ) AS col0 FROM tab2
----
1534
646
837

query I rowsort
SELECT DISTINCT + col0 + 69 FROM tab0
----
104
158
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 75 col1 FROM tab1
----
-225
-4800
-6000

query I rowsort
SELECT + 43 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4

query I rowsort
SELECT + - col0 + 89 FROM tab0 AS cor0
----
0
54
65

query I rowsort
SELECT - col2 + 57 FROM tab0 AS cor0
----
-25
24
56

query I rowsort
SELECT DISTINCT ( - col0 ) AS col0 FROM tab0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( + 50 AS REAL ) FROM tab0
----
-50
-50
-50

query I rowsort
SELECT col0 + col1 + col1 FROM tab1
----
106
55
84

query I rowsort
SELECT 2 * col0 AS col2 FROM tab0
----
178
48
70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5038
SELECT CAST( + 2 AS SIGNED ) FROM tab2
----
2
2
2

skipif mysql # not compatible
query I rowsort label-5038
SELECT CAST ( + 2 AS INTEGER ) FROM tab2
----
2
2
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-5039
SELECT 14 DIV + col0 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5039
SELECT 14 / + col0 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL cor0.col1 + 49 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 1c402767518a65e5f38ab99fe5f1219d

query I rowsort
SELECT ALL col2 * + 89 FROM tab1 AS cor0
----
4806
5073
8544

query I rowsort
SELECT DISTINCT + ( col2 + + col0 * + col1 ) AS col2 FROM tab1
----
1136
132
697

query I rowsort
SELECT DISTINCT + - col0 + cor0.col2 AS col1 FROM tab0 AS cor0
----
-34
-7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-5044
SELECT - col2 + col1 DIV col0 AS col1 FROM tab0 AS cor0
----
-30
-81
1

skipif mysql # not compatible
query I rowsort label-5044
SELECT - col2 + col1 / col0 AS col1 FROM tab0 AS cor0
----
-30
-81
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5045
SELECT + col0 DIV - col2 + + 65 * + col2 AS col0 FROM tab0 AS cor0
----
2145
30
5329

skipif mysql # not compatible
query I rowsort label-5045
SELECT + col0 / - col2 + + 65 * + col2 AS col0 FROM tab0 AS cor0
----
2145
30
5329

query I rowsort
SELECT DISTINCT - 55 * col1 FROM tab0 AS cor0
----
-4730
-5005
-5335

query I rowsort
SELECT + 88 + + col0 FROM tab2 AS cor0
----
166
167
95

query I rowsort
SELECT - 9 * col0 * - col2 - + col1 FROM tab2 AS cor0
----
1670
18193
27001

query I rowsort
SELECT + col2 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT - col2 + - cor0.col0 + + cor0.col2 * - ( col1 ) FROM tab2 AS cor0
----
-1638
-763
-871

query I rowsort
SELECT + + cor0.col0 * + col2 AS col1 FROM tab0 AS cor0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - + col0 col2 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT - 80 * col2 FROM tab2 AS cor0
----
-2080
-2160
-3040

query I rowsort
SELECT ALL - ( col1 ) - col1 * - 90 AS col1 FROM tab2 cor0
----
1513
2759
5251

query I rowsort
SELECT DISTINCT + + 85 * col2 AS col1 FROM tab1 AS cor0
----
4590
4845
8160

onlyif mysql # use DIV operator for integer division
query I rowsort label-5056
SELECT col1 - col2 DIV col1 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-5056
SELECT col1 - col2 / col1 FROM tab0
----
86
91
97

query I rowsort
SELECT - - col2 + col0 * col2 AS col0 FROM tab1 cor0
----
216
3705
7776

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5058
SELECT - CAST( NULL AS SIGNED ) + - 4 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5058
SELECT - CAST ( NULL AS INTEGER ) + - 4 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + - col2 * col2 * col2 AS col2 FROM tab1 AS cor0
----
-157464
-185193
-884736

query I rowsort
SELECT ALL + col2 + col1 * col0 FROM tab2 AS cor0
----
1381
244
4628

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 + col1 * col0 col1 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT DISTINCT cor0.col1 * col1 + col2 AS col2 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT ALL col0 * - cor0.col2 - cor0.col0 AS col1 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT ALL + - col0 - + col1 AS col0 FROM tab1 AS cor0
----
-29
-74
-93

skipif mysql # not compatible
query I rowsort
SELECT CAST ( - 58 AS REAL ) * - col2 FROM tab0 AS cor0
----
1914
4756
58

query IIIIII rowsort
SELECT * FROM tab1, tab2 cor0 WHERE NULL <= ( NULL )
----

query I rowsort
SELECT DISTINCT 38 AS col1 FROM tab1, tab0 AS cor0
----
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-5068
SELECT DISTINCT + + col0 DIV col1 AS col2 FROM tab2 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-5068
SELECT DISTINCT + + col0 / col1 AS col2 FROM tab2 AS cor0
----
0
1
4

query I rowsort
SELECT DISTINCT - col2 * cor0.col0 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT col1 * col0 + - 3 + + 77 AS col2 FROM tab1
----
1114
152
714

query I rowsort
SELECT - 57 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 0b74bbd7631afe9b2eeb9f18b9dc6505

query I rowsort
SELECT DISTINCT - 68 * + col1 + 11 + + 73 * + col1 AS col1 FROM tab2
----
166
306
96

query I rowsort
SELECT 86 + - tab2.col0 + + 63 * col2 * + col1 AS col1 FROM tab2
----
40705
52810
96650

query I rowsort
SELECT + ( col2 ) * col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT DISTINCT 60 + 22 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-5076
SELECT DISTINCT col2 + col2 DIV 10 AS col1 FROM tab2
----
28
29
41

skipif mysql # not compatible
query I rowsort label-5076
SELECT DISTINCT col2 + col2 / 10 AS col1 FROM tab2
----
28
29
41

query I rowsort
SELECT + + cor0.col2 + + col2 AS col1 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT DISTINCT + col0 * - 13 AS col2 FROM tab1 AS cor0
----
-1040
-39
-832

query I rowsort
SELECT + col1 * col1 * 18 AS col1 FROM tab0 AS cor0
----
133128
149058
169362

query I rowsort
SELECT + col0 * 64 FROM tab1 cor0
----
192
4096
5120

query I rowsort
SELECT DISTINCT - 23 AS col0 FROM tab1
----
-23

query I rowsort
SELECT ALL 57 * + col1 AS col2 FROM tab1
----
1482
570
741

query I rowsort
SELECT ALL - col0 + - col1 * col0 + col1 AS col0 FROM tab0 AS cor0
----
-2002
-3333
-8097

query I rowsort
SELECT ALL - col2 * - 70 FROM tab0 AS cor0
----
2310
5740
70

query I rowsort
SELECT ALL + - cor0.col1 * ( + col2 ) + col0 AS col1 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT - + col0 * ( cor0.col1 ) FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT - - cor0.col2 + + ( - col0 ) FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT ALL - col0 + - 33 FROM tab0 AS cor0
----
-122
-57
-68

query I rowsort
SELECT DISTINCT - col1 + ( col2 + + col0 ) FROM tab1 AS cor0
----
111
163
31

query I rowsort
SELECT ALL + col0 * ( col0 ) FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT ALL + col2 * - ( 19 ) * - col1 FROM tab2 AS cor0
----
12274
15903
29146

query I rowsort
SELECT + col0 + col0 * 64 AS col0 FROM tab2 AS cor0
----
455
5070
5135

query I rowsort
SELECT + 82 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT + col0 + ( col0 ) AS col2 FROM tab0 AS cor0
----
178
48
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-5095
SELECT ALL + - col0 DIV + 10 AS col0 FROM tab2 AS cor0
----
-7
-7
0

skipif mysql # not compatible
query I rowsort label-5095
SELECT ALL + - col0 / + 10 AS col0 FROM tab2 AS cor0
----
-7
-7
0

query I rowsort
SELECT col1 * + col2 * - col0 AS col1 FROM tab2 AS cor0
----
-119652
-51034
-5859

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5097
SELECT + CAST( col0 AS SIGNED ) col1 FROM tab2 AS cor0
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5097
SELECT + CAST ( col0 AS INTEGER ) col1 FROM tab2 AS cor0
----
7
78
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5098
SELECT CAST( ( - col0 ) AS SIGNED ) * col0 + - col1 col0 FROM tab0 AS cor0
----
-1322
-662
-8012

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5098
SELECT CAST ( ( - col0 ) AS INTEGER ) * col0 + - col1 col0 FROM tab0 AS cor0
----
-1322
-662
-8012

query I rowsort
SELECT - col0 * 75 AS col2 FROM tab2
----
-525
-5850
-5925

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 13 * cor0.col1 col1 FROM tab1 AS cor0
----
130
169
338

query I rowsort
SELECT ALL + + cor0.col2 * - col1 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT - col2 * - 10 FROM tab0 AS cor0
----
10
330
820

query I rowsort
SELECT DISTINCT col2 + + col1 * + tab0.col0 AS col1 FROM tab0
----
2097
3396
8181

onlyif mysql # use DIV operator for integer division
query I rowsort label-5104
SELECT - + col2 DIV - col1 - col2 FROM tab0 cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-5104
SELECT - + col2 / - col1 - col2 FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT col1 - - cor0.col0 * - 6 FROM tab2 cor0
----
-11
-409
-457

query I rowsort
SELECT DISTINCT + + 83 * col2 + col1 FROM tab1 AS cor0
----
4508
4741
7981

query I rowsort
SELECT DISTINCT - + col0 - cor0.col2 AS col2 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT + + col0 * col2 + ( - 33 ) * col2 FROM tab0 cor0
----
-297
2
4592

query I rowsort
SELECT DISTINCT - ( col2 ) * + col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT + + 20 * + col0 FROM tab2 AS cor0
----
140
1560
1580

onlyif mysql # use DIV operator for integer division
query I rowsort label-5111
SELECT ALL - col1 + - col0 DIV col0 FROM tab1 cor0
----
-11
-14
-27

skipif mysql # not compatible
query I rowsort label-5111
SELECT ALL - col1 + - col0 / col0 FROM tab1 cor0
----
-11
-14
-27

query I rowsort
SELECT DISTINCT cor0.col1 + + col1 * col2 - cor0.col2 AS col0 FROM tab2 cor0
----
1567
625
841

query I rowsort
SELECT ALL - 29 * + col1 * + col2 + + col0 AS col0 FROM tab2 AS cor0
----
-18655
-24266
-44408

query I rowsort
SELECT ALL - + 83 + col0 AS col1 FROM tab1 AS cor0
----
-19
-3
-80

query I rowsort
SELECT ALL 52 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 59 - col2 col1 FROM tab1
----
-37
2
5

query I rowsort
SELECT - ( + col2 ) * col2 * col1 - col1 * + col0 AS col0 FROM tab2 AS cor0
----
-22816
-25891
-44486

query I rowsort
SELECT DISTINCT + + 60 * col1 + + col1 * 32 AS col1 FROM tab0 AS cor0
----
7912
8372
8924

onlyif mysql # use DIV operator for integer division
query I rowsort label-5119
SELECT ALL col1 DIV + cor0.col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5119
SELECT ALL col1 / + cor0.col1 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5120
SELECT ALL + - 46 + - col2 DIV col1 FROM tab2 AS cor0
----
-46
-46
-48

skipif mysql # not compatible
query I rowsort label-5120
SELECT ALL + - 46 + - col2 / col1 FROM tab2 AS cor0
----
-46
-46
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 79 * + col2 * - 22 + - col1 col0 FROM tab1 AS cor0
----
166835
93826
99056

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 69 col0 FROM tab2 AS cor0
----
69
69
69

query I rowsort
SELECT ALL tab0.col0 * tab0.col0 AS col0 FROM tab0
----
1225
576
7921

query I rowsort
SELECT col2 * - 49 FROM tab0
----
-1617
-4018
-49

query I rowsort
SELECT DISTINCT + col1 + col0 * 35 AS col1 FROM tab1 AS cor0
----
131
2250
2813

query I rowsort
SELECT + col0 * + col2 + col1 AS col1 FROM tab2 AS cor0
----
2087
220
3019

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * + col0 col2 FROM tab1 AS cor0
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 col1 FROM tab0, tab0 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT + - cor0.col1 * + cor0.col2 + col0 + + col2 * + cor0.col1 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT - + ( + col1 ) AS col0 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT col0 + col2 * ( col2 ) FROM tab0 cor0
----
1113
36
6813

query I rowsort
SELECT - cor0.col2 * col0 + - col0 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT DISTINCT col0 * - 6 FROM tab0 AS cor0
----
-144
-210
-534

query I rowsort
SELECT - cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT ALL + col2 + - col2 + + tab2.col2 * col0 * ( 88 * + col2 ) AS col1 FROM tab2
----
10038688
449064
4640064

onlyif mysql # use DIV operator for integer division
query I rowsort label-5136
SELECT DISTINCT - - col0 DIV + col0 - col1 * col2 col1 FROM tab0 AS cor0
----
-2837
-7461
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5136
SELECT DISTINCT - - col0 / + col0 - col1 * col2 col1 FROM tab0 AS cor0
----
-2837
-7461
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + 28 col1 FROM tab1 cor0
----
-26
-29
-68

query I rowsort
SELECT DISTINCT + - col2 * col1 - 37 FROM tab0 AS cor0
----
-134
-2875
-7499

query I rowsort
SELECT DISTINCT + col0 * cor0.col2 + 12 AS col1 FROM tab1 AS cor0
----
174
3660
7692

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 + 48 col2 FROM tab0, tab0 AS cor0
----
137
72
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5141
SELECT + - CAST( col1 AS SIGNED ) * + col2 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-5141
SELECT + - CAST ( col1 AS INTEGER ) * + col2 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5142
SELECT 85 DIV + col2 AS col2 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5142
SELECT 85 / + col2 AS col2 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT col1 + - col1 * cor0.col1 FROM tab0 AS cor0
----
-7310
-8190
-9312

query I rowsort
SELECT + col2 * - 30 * col0 FROM tab0
----
-1050
-218940
-23760

query I rowsort
SELECT + 19 + + col2 AS col2 FROM tab0 AS cor0
----
101
20
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5146
SELECT col2 * CAST( NULL AS SIGNED ) * + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5146
SELECT col2 * CAST ( NULL AS INTEGER ) * + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( + col1 AS REAL ) - col0 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT - col1 * - 40 + col0 FROM tab2 AS cor0
----
1247
2438
759

query I rowsort
SELECT ( - col2 ) + + col1 * col0 AS col1 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT col1 - col1 * + col1 FROM tab0 AS cor0
----
-7310
-8190
-9312

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5151
SELECT CAST( 57 AS SIGNED ) FROM tab2 AS cor0
----
57
57
57

skipif mysql # not compatible
query I rowsort label-5151
SELECT CAST ( 57 AS INTEGER ) FROM tab2 AS cor0
----
57
57
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-5152
SELECT + - ( - 97 ) * + col0 + - 7 DIV - col1 FROM tab2 AS cor0
----
679
7566
7663

skipif mysql # not compatible
query I rowsort label-5152
SELECT + - ( - 97 ) * + col0 + - 7 / - col1 FROM tab2 AS cor0
----
679
7566
7663

query I rowsort
SELECT + ( 48 ) FROM tab2 AS cor0
----
48
48
48

onlyif mysql # use DIV operator for integer division
query I rowsort label-5154
SELECT ALL - col1 + col1 DIV - col0 AS col0 FROM tab0 AS cor0
----
-89
-92
-99

skipif mysql # not compatible
query I rowsort label-5154
SELECT ALL - col1 + col1 / - col0 AS col0 FROM tab0 AS cor0
----
-89
-92
-99

query I rowsort
SELECT - - 54 + col1 FROM tab2 AS cor0
----
113
71
85

query I rowsort
SELECT DISTINCT - 11 - + col2 AS col0 FROM tab0 AS cor0
----
-12
-44
-93

query I rowsort
SELECT cor0.col1 + + ( 65 ) AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 63d332deded81ac96250857249312dd8

query I rowsort
SELECT - ( ( - tab0.col2 ) ) + - col0 + col0 FROM tab0
----
1
33
82

query I rowsort
SELECT DISTINCT + ( + 11 ) * col1 + 49 * 59 - col2 AS col2 FROM tab2
----
3040
3205
3514

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 35 * col0 col1 FROM tab2
----
245
2730
2765

query I rowsort
SELECT DISTINCT 78 AS col1 FROM tab0, tab0 AS cor0
----
78

query I rowsort
SELECT ALL - col2 + col1 * col2 AS col2 FROM tab2 cor0
----
1508
608
810

query I rowsort
SELECT DISTINCT - ( col1 ) * - 23 AS col0 FROM tab0 AS cor0
----
1978
2093
2231

query I rowsort
SELECT ALL - - col2 * + col1 AS col0 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT ALL - 69 + - col1 FROM tab1 AS cor0
----
-79
-82
-95

query I rowsort
SELECT ALL - + cor0.col0 * - col0 + 94 FROM tab2 cor0
----
143
6178
6335

query I rowsort
SELECT DISTINCT col2 + col0 * - col2 * col2 FROM tab0 AS cor0
----
-26103
-34
-598354

query I rowsort
SELECT DISTINCT 95 * + col2 + + col0 * + cor0.col0 FROM tab1 AS cor0
----
15520
5139
9511

query I rowsort
SELECT ( 98 ) * + col1 AS col2 FROM tab1
----
1274
2548
980

query I rowsort
SELECT 46 AS col2 FROM tab2
----
46
46
46

onlyif mysql # use DIV operator for integer division
query I rowsort label-5171
SELECT + 85 DIV col2 + - ( col2 ) DIV tab1.col0 AS col1 FROM tab1
----
-1
-17
1

skipif mysql # not compatible
query I rowsort label-5171
SELECT + 85 / col2 + - ( col2 ) / tab1.col0 AS col1 FROM tab1
----
-1
-17
1

query I rowsort
SELECT ALL ( - col1 * - col0 ) AS col1 FROM tab1
----
1040
640
78

query I rowsort
SELECT ALL tab0.col2 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT + tab0.col2 * 72 FROM tab0, tab0 cor0
----
9 values hashing to 923ce748554f5aa7535b233559d7d16a

query I rowsort
SELECT ALL + + 70 * - col1 AS col2 FROM tab0 AS cor0
----
-6020
-6370
-6790

onlyif mysql # use DIV operator for integer division
query I rowsort label-5176
SELECT ALL - - 31 DIV col2 FROM tab0 AS cor0
----
0
0
31

skipif mysql # not compatible
query I rowsort label-5176
SELECT ALL - - 31 / col2 FROM tab0 AS cor0
----
0
0
31

query I rowsort
SELECT - col2 * - 69 AS col0 FROM tab2
----
1794
1863
2622

query I rowsort
SELECT col2 - cor0.col0 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT ALL + tab0.col2 * ( col1 ) - + col0 FROM tab0
----
2814
62
7373

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5180
SELECT + col0 * col0 + + col1 - - col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5180
SELECT + col0 * col0 + + col1 - - col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT tab0.col0 + + tab0.col0 - + tab0.col0 * col1 AS col0 FROM tab0
----
-2016
-3325
-7921

query I rowsort
SELECT - ( col2 ) * col2 AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ALL 21 + 26 FROM tab0
----
47
47
47

query I rowsort
SELECT ALL col2 + + tab1.col1 * col2 + - col0 * col2 FROM tab1
----
-3021
-6336
1296

query I rowsort
SELECT + 28 FROM tab2, tab0 cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5186
SELECT ALL col2 * col0 + col2 + col0 DIV + col1 AS col2 FROM tab1 AS cor0
----
216
3711
7782

skipif mysql # not compatible
query I rowsort label-5186
SELECT ALL col2 * col0 + col2 + col0 / + col1 AS col2 FROM tab1 AS cor0
----
216
3711
7782

query I rowsort
SELECT ALL - col2 * + col0 - + col0 * - 30 AS col0 FROM tab1 AS cor0
----
-1728
-5280
-72

query I rowsort
SELECT - cor0.col2 - - col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT cor0.col1 * - col1 * + col0 FROM tab1 AS cor0
----
-13520
-2028
-6400

query I rowsort
SELECT - 34 * cor0.col2 + + cor0.col1 * - 78 * 76 FROM tab0 cor0
----
-510930
-542236
-575050

query I rowsort
SELECT ALL + 69 + cor0.col0 * col0 AS col2 FROM tab1 AS cor0
----
4165
6469
78

query I rowsort
SELECT + col2 - - 53 FROM tab1 AS cor0
----
107
110
149

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + + cor0.col1 col0 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT ALL - - 87 AS col1 FROM tab1 AS cor0
----
87
87
87

query I rowsort
SELECT DISTINCT + col2 + - col0 + - col1 AS col0 FROM tab1
----
-17
25
3

query I rowsort
SELECT col2 * - 85 * + col2 FROM tab0
----
-571540
-85
-92565

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5197
SELECT + CAST( NULL AS SIGNED ) + + 55 + - tab1.col0 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5197
SELECT + CAST ( NULL AS INTEGER ) + + 55 + - tab1.col0 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + ( - col0 ) * - col2 + tab1.col1 AS col2 FROM tab1
----
188
3658
7693

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5199
SELECT DISTINCT CAST( 48 AS SIGNED ) + col1 AS col2 FROM tab1
----
58
61
74

skipif mysql # not compatible
query I rowsort label-5199
SELECT DISTINCT CAST ( 48 AS INTEGER ) + col1 AS col2 FROM tab1
----
58
61
74

query I rowsort
SELECT DISTINCT + col2 * - col1 + - col0 FROM tab2
----
-1612
-725
-844

query I rowsort
SELECT - tab0.col0 + + ( col1 ) + + col0 FROM tab0
----
86
91
97

query I rowsort
SELECT DISTINCT + 55 + col1 + col1 FROM tab1
----
107
75
81

query I rowsort
SELECT + 97 FROM tab1, tab2 AS cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query I rowsort
SELECT ALL + col2 + col1 * - col2 AS col1 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT - ( ( - col0 ) ) * col0 - cor0.col1 * + col0 FROM tab1 cor0
----
-69
3456
5360

query I rowsort
SELECT DISTINCT + - cor0.col2 * + col0 + col2 FROM tab0 cor0
----
-34
-7216
-759

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5207
SELECT + + CAST( + cor0.col1 AS SIGNED ) - + col0 AS col2 FROM tab0 AS cor0
----
2
62
62

skipif mysql # not compatible
query I rowsort label-5207
SELECT + + CAST ( + cor0.col1 AS INTEGER ) - + col0 AS col2 FROM tab0 AS cor0
----
2
62
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-5208
SELECT ALL + - ( col1 ) DIV col1 + + col0 + + cor0.col2 FROM tab2 cor0
----
103
116
33

skipif mysql # not compatible
query I rowsort label-5208
SELECT ALL + - ( col1 ) / col1 + + col0 + + cor0.col2 FROM tab2 cor0
----
103
116
33

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5209
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col2 / col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5209
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col2 / col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + - col2 + + ( + cor0.col1 ) FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT DISTINCT - 14 AS col0 FROM tab1 AS cor0
----
-14

query I rowsort
SELECT + + ( col1 ) + col1 + + cor0.col2 FROM tab0 AS cor0
----
195
205
264

query I rowsort
SELECT ALL + col0 * + col1 + - col2 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT + col0 + col0 + + cor0.col0 FROM tab0 AS cor0
----
105
267
72

query I rowsort
SELECT DISTINCT - 34 AS col1 FROM tab0 AS cor0
----
-34

query I rowsort
SELECT ALL - - 53 FROM tab0 cor0
----
53
53
53

query I rowsort
SELECT - 11 + + col0 + col1 * col2 AS col0 FROM tab0 AS cor0
----
121
2851
7540

query I rowsort
SELECT col2 + - col1 * - col1 AS col1 FROM tab1 cor0
----
157
265
730

query I rowsort
SELECT ALL col2 + tab2.col1 AS col1 FROM tab2
----
55
58
85

query I rowsort
SELECT - ( tab2.col0 ) + tab2.col1 * col0 - col1 AS col1 FROM tab2
----
1247
179
4465

query I rowsort
SELECT ALL - ( tab0.col2 ) + col2 * + col0 AS col0 FROM tab0
----
34
7216
759

query I rowsort
SELECT DISTINCT col0 * col2 + tab1.col0 FROM tab1
----
165
3712
7760

query I rowsort
SELECT ALL col0 + + cor0.col2 * + col2 * + col1 AS col2 FROM tab0 AS cor0
----
132
611973
93678

query I rowsort
SELECT ALL - + col0 + + 86 FROM tab0 AS cor0
----
-3
51
62

query I rowsort
SELECT ALL + cor0.col2 * + col2 * - col0 + col0 AS col2 FROM tab0 AS cor0
----
-26112
-598347
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 70 col2 FROM tab1 AS cor0
----
1820
700
910

query I rowsort
SELECT DISTINCT col2 * cor0.col0 + cor0.col2 FROM tab0 AS cor0
----
36
7380
825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * ( col0 ) + col0 col1 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT ALL + col2 + + 76 * col1 AS col1 FROM tab1 cor0
----
1084
2030
817

query I rowsort
SELECT + 50 AS col2 FROM tab2
----
50
50
50

query I rowsort
SELECT ALL - col0 * 53 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
-340
-4075
-4170

query I rowsort
SELECT - cor0.col2 * 67 AS col1 FROM tab0 cor0
----
-2211
-5494
-67

query I rowsort
SELECT - + col0 * 8 FROM tab2 AS cor0
----
-56
-624
-632

query I rowsort
SELECT DISTINCT col1 - + 7 * - col1 AS col1 FROM tab1 AS cor0
----
104
208
80

query I rowsort
SELECT ALL + + cor0.col0 + ( - col1 ) AS col0 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT ALL + + col1 * 13 + col0 * + col2 FROM tab1 cor0
----
3778
500
7849

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5237
SELECT - - cor0.col2 + - CAST( - col1 AS SIGNED ) * col1 * col1 FROM tab0 cor0
----
636089
753653
912674

skipif mysql # not compatible
query I rowsort label-5237
SELECT - - cor0.col2 + - CAST ( - col1 AS INTEGER ) * col1 * col1 FROM tab0 cor0
----
636089
753653
912674

query I rowsort
SELECT DISTINCT col1 + - cor0.col0 FROM tab2 cor0
----
-19
-62
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + tab0.col2 * - col2 col0 FROM tab0
----
-1056
-6642
0

query I rowsort
SELECT DISTINCT col2 + col2 * cor0.col1 AS col1 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT + ( - col0 ) + + cor0.col1 * col0 AS col2 FROM tab0 AS cor0
----
2040
3360
8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-5242
SELECT DISTINCT - col2 DIV + 33 + + col1 AS col1 FROM tab0 AS cor0
----
85
89
97

skipif mysql # not compatible
query I rowsort label-5242
SELECT DISTINCT - col2 / + 33 + + col1 AS col1 FROM tab0 AS cor0
----
85
89
97

query I rowsort
SELECT ALL + - ( col1 ) * + cor0.col1 + + col2 * col0 FROM tab2 AS cor0
----
-1453
-772
2713

query I rowsort
SELECT ALL col1 * - ( col2 ) AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT - cor0.col2 - col0 * - col2 AS col0 FROM tab0 AS cor0
----
34
7216
759

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 28 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT col0 * col0 + - col2 FROM tab1 AS cor0
----
-45
4039
6304

query I rowsort
SELECT - - col0 + 70 AS col0 FROM tab2 AS cor0
----
148
149
77

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT 59 * tab0.col1 + CAST ( col2 AS REAL ) * col1 * - 44 AS col2 FROM tab0
----
-119798
-322959
1455

query I rowsort
SELECT ( col1 + + col2 ) FROM tab1
----
109
67
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 12 * + col1 col2 FROM tab0
----
1032
1092
1164

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 80 col0 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 6dd5038be71dffa82f5ceba787caab91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 90 col1 FROM tab1
----
4860
5130
8640

query I rowsort
SELECT + col0 * 51 + - col2 AS col0 FROM tab2 AS cor0
----
330
3952
3991

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5255
SELECT - - col1 + CAST( - col0 + - col0 AS SIGNED ) FROM tab0 AS cor0
----
-87
27
38

skipif mysql # not compatible
query I rowsort label-5255
SELECT - - col1 + CAST ( - col0 + - col0 AS INTEGER ) FROM tab0 AS cor0
----
-87
27
38

query I rowsort
SELECT + col2 * + col0 + + cor0.col2 AS col0 FROM tab1 cor0
----
216
3705
7776

query I rowsort
SELECT DISTINCT + cor0.col2 + + 47 AS col0 FROM tab2 cor0
----
73
74
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * + cor0.col1 + col2 * + col1 col2 FROM tab1 AS cor0
----
1079
470
728

query I rowsort
SELECT ALL ( col0 + + col1 ) AS col2 FROM tab2
----
137
38
96

query I rowsort
SELECT ALL col2 * 30 AS col2 FROM tab0 AS cor0
----
2460
30
990

query I rowsort
SELECT ( 50 ) AS col0 FROM tab1 AS cor0
----
50
50
50

onlyif mysql # use DIV operator for integer division
query I rowsort label-5262
SELECT ALL - - col0 * col0 DIV + cor0.col2 AS col2 FROM tab0 AS cor0
----
1225
17
96

skipif mysql # not compatible
query I rowsort label-5262
SELECT ALL - - col0 * col0 / + cor0.col2 AS col2 FROM tab0 AS cor0
----
1225
17
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 30 + + col0 * col0 col0 FROM tab0 AS cor0
----
1255
606
7951

query I rowsort
SELECT DISTINCT - 10 * ( col0 ) FROM tab0 AS cor0
----
-240
-350
-890

query I rowsort
SELECT ALL 94 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query I rowsort
SELECT ALL + col1 * - 26 AS col1 FROM tab0 AS cor0
----
-2236
-2366
-2522

query I rowsort
SELECT ALL + 62 + - col0 * - ( + cor0.col1 ) * + col2 FROM tab0 cor0
----
3457
664180
68174

query I rowsort
SELECT ALL - 56 * + cor0.col2 FROM tab1 AS cor0
----
-3024
-3192
-5376

query I rowsort
SELECT + 91 * col0 FROM tab0 AS cor0
----
2184
3185
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-5270
SELECT 53 DIV col1 AS col1 FROM tab2
----
0
1
3

skipif mysql # not compatible
query I rowsort label-5270
SELECT 53 / col1 AS col1 FROM tab2
----
0
1
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + col2 col2 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-5272
SELECT + - 11 DIV col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5272
SELECT + - 11 / col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + 17 AS col2 FROM tab0 AS cor0
----
17
17
17

onlyif mysql # use DIV operator for integer division
query I rowsort label-5274
SELECT - - col0 DIV - 70 - col2 col0 FROM tab1 AS cor0
----
-54
-57
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5274
SELECT - - col0 / - 70 - col2 col0 FROM tab1 AS cor0
----
-54
-57
-97

query I rowsort
SELECT ALL 80 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query I rowsort
SELECT DISTINCT - col2 + ( col2 ) + - col0 AS col2 FROM tab0 AS cor0
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-5277
SELECT DISTINCT + - col2 * col0 DIV - col0 AS col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-5277
SELECT DISTINCT + - col2 * col0 / - col0 AS col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT - cor0.col0 * col1 + 59 FROM tab1 AS cor0
----
-19
-581
-981

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5279
SELECT - + CAST( NULL AS DECIMAL ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5279
SELECT - + CAST ( NULL AS REAL ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # use DIV operator for integer division
query I rowsort label-5280
SELECT ALL 32 DIV cor0.col0 FROM tab2, tab2 AS cor0
----
9 values hashing to d7f03813050fab0932763694116f69ed

skipif mysql # not compatible
query I rowsort label-5280
SELECT ALL 32 / cor0.col0 FROM tab2, tab2 AS cor0
----
9 values hashing to d7f03813050fab0932763694116f69ed

query I rowsort
SELECT + ( + col0 ) * - cor0.col2 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL 20 FROM tab2, tab2 cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT DISTINCT col1 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL - 4 + col0 AS col1 FROM tab2 AS cor0
----
3
74
75

query I rowsort
SELECT ALL - 42 * - tab2.col2 FROM tab2
----
1092
1134
1596

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 12 col1 FROM tab2
----
-12

query I rowsort
SELECT DISTINCT - 68 AS col0 FROM tab0
----
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col0 col1 FROM tab0
----
1225
576
7921

query I rowsort
SELECT 61 * col1 AS col2 FROM tab2
----
1037
1891
3599

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5290
SELECT CAST( NULL AS SIGNED ) + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5290
SELECT CAST ( NULL AS INTEGER ) + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5291
SELECT ALL cor0.col0 DIV col1 + - col2 + + col1 * 49 AS col0 FROM tab2 cor0
----
1492
2866
799

skipif mysql # not compatible
query I rowsort label-5291
SELECT ALL cor0.col0 / col1 + - col2 + + col1 * 49 AS col0 FROM tab2 cor0
----
1492
2866
799

query I rowsort
SELECT DISTINCT + cor0.col1 * col1 * col1 FROM tab1 AS cor0
----
1000
17576
2197

query I rowsort
SELECT - - ( col1 ) * col0 + ( cor0.col2 + col2 ) AS col1 FROM tab0 AS cor0
----
2130
3397
8263

query I rowsort
SELECT ALL + col1 + 24 FROM tab2 AS cor0
----
41
55
83

query I rowsort
SELECT - + 27 AS col0 FROM tab0 cor0
----
-27
-27
-27

query I rowsort
SELECT ALL + col1 + - 15 AS col0 FROM tab1 AS cor0
----
-2
-5
11

query I rowsort
SELECT col2 + col0 * col2 AS col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT + - cor0.col1 * col1 - col0 AS col1 FROM tab1 cor0
----
-164
-249
-679

query I rowsort
SELECT + 35 * col1 AS col2 FROM tab1 AS cor0
----
350
455
910

query I rowsort
SELECT ALL + cor0.col1 * col1 + col1 AS col0 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT 13 AS col1 FROM tab0 cor0
----
13
13
13

query I rowsort
SELECT ALL - 11 + + col0 AS col2 FROM tab2 AS cor0
----
-4
67
68

query I rowsort
SELECT ALL col2 + + col2 * + col0 * + col1 AS col1 FROM tab0 AS cor0
----
3396
664200
68145

query I rowsort
SELECT ALL + col2 + + 53 * + col0 + col2 AS col0 FROM tab0 AS cor0
----
1338
1857
4881

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col0 * col0 col2 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT ALL 92 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817

query I rowsort
SELECT + 69 * + col2 FROM tab1 AS cor0
----
3726
3933
6624

query I rowsort
SELECT col2 + - col0 + - col0 * + 27 AS col0 FROM tab2 AS cor0
----
-169
-2158
-2174

query I rowsort
SELECT + 77 FROM tab2, tab1 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to 38f487c2147ee2fe05527e38c5e0503b

query I rowsort
SELECT DISTINCT 14 + col1 FROM tab1 AS cor0
----
24
27
40

query I rowsort
SELECT DISTINCT - col1 * cor0.col1 * + cor0.col1 FROM tab1 AS cor0
----
-1000
-17576
-2197

query I rowsort
SELECT 32 AS col2 FROM tab2, tab2 AS cor0 CROSS JOIN tab0
----
27 values hashing to cf4f01ac97eb83445b1721f3ae28961a

query I rowsort
SELECT - 7 - 25 * col1 * - col2 FROM tab1
----
14243
31193
35093

query I rowsort
SELECT + col0 * - ( - col1 ) AS col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT + cor0.col1 * - col0 * - col1 + + col1 FROM tab0 AS cor0
----
177590
329412
737100

query I rowsort
SELECT ALL + col1 * - col0 - ( col2 ) AS col0 FROM tab2 AS cor0
----
-1381
-244
-4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-5317
SELECT ALL col0 DIV - ( - 82 ) + - col2 AS col0 FROM tab0 AS cor0
----
-1
-33
-81

skipif mysql # not compatible
query I rowsort label-5317
SELECT ALL col0 / - ( - 82 ) + - col2 AS col0 FROM tab0 AS cor0
----
-1
-33
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - col2 col1 FROM tab2 cor0
----
-104
-117
-34

query I rowsort
SELECT DISTINCT - - col0 * col0 AS col2 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT ALL - + col0 * col0 - + col0 FROM tab2 AS cor0
----
-56
-6162
-6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-5321
SELECT DISTINCT cor0.col2 DIV ( cor0.col0 ) AS col0 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-5321
SELECT DISTINCT cor0.col2 / ( cor0.col0 ) AS col0 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT ALL col1 - 36 AS col0 FROM tab2
----
-19
-5
23

query I rowsort
SELECT + 62 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b

query I rowsort
SELECT ALL 20 * - 14 FROM tab1 AS cor0
----
-280
-280
-280

query I rowsort
SELECT - col2 * 62 AS col1 FROM tab0 AS cor0
----
-2046
-5084
-62

query I rowsort
SELECT ALL + col0 + + 45 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
-1167
-386
-505

query I rowsort
SELECT 67 FROM tab1, tab1 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col0 * - ( - 10 + + col0 ) col2 FROM tab0
----
-336
-7031
-875

query I rowsort
SELECT ALL col1 - - 57 AS col2 FROM tab1
----
67
70
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + tab2.col0 - col0 col2 FROM tab2
----
-1422
-224
-4680

query I rowsort
SELECT DISTINCT + - cor0.col1 FROM tab2, tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL - - col1 * ( - col0 ) + col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT + ( col0 ) + col1 AS col0 FROM tab0 cor0
----
110
132
180

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5334
SELECT CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-5334
SELECT CAST ( NULL AS REAL ) FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT - tab0.col2 + + col2 AS col1 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 99 col2 FROM tab0
----
8514
9009
9603

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5337
SELECT CAST( NULL AS SIGNED ) + col0 + - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5337
SELECT CAST ( NULL AS INTEGER ) + col0 + - col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5338
SELECT DISTINCT CAST( col1 AS SIGNED ) * + tab0.col1 + + col0 FROM tab0
----
7420
8370
9444

skipif mysql # not compatible
query I rowsort label-5338
SELECT DISTINCT CAST ( col1 AS INTEGER ) * + tab0.col1 + + col0 FROM tab0
----
7420
8370
9444

query I rowsort
SELECT DISTINCT 70 + col0 AS col2 FROM tab1
----
134
150
73

query I rowsort
SELECT tab0.col2 * + 12 * tab0.col2 FROM tab0
----
12
13068
80688

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 80 + col0 col1 FROM tab0
----
104
115
169

query I rowsort
SELECT ALL - cor0.col0 * + cor0.col0 * 3 + 7 FROM tab0, tab1 cor0
----
9 values hashing to 6cc7b29796f1952e41005140b0ad3b46

query I rowsort
SELECT ALL ( 35 ) FROM tab0 AS cor0
----
35
35
35

query I rowsort
SELECT ALL + 45 FROM tab0, tab0 AS cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT ALL - + 27 + + 23 * - col1 AS col2 FROM tab2 AS cor0
----
-1384
-418
-740

query I rowsort
SELECT 24 + + col1 * ( 71 ) * col2 FROM tab2
----
108938
45890
59451

query I rowsort
SELECT + 23 - + col0 AS col0 FROM tab2
----
-55
-56
16

query I rowsort
SELECT DISTINCT - + col0 * - col0 AS col1 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT cor0.col1 + - col0 * - 27 FROM tab1 AS cor0
----
107
1738
2173

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col2 + + 38 * col0 col1 FROM tab1 AS cor0
----
168
2489
3136

query I rowsort
SELECT ALL + + cor0.col2 * 50 AS col0 FROM tab2 AS cor0
----
1300
1350
1900

query I rowsort
SELECT ALL 62 FROM tab0, tab0 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query I rowsort
SELECT + cor0.col1 + ( - col1 ) AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col0 + - 66 FROM tab1 AS cor0
----
-2
-63
14

query I rowsort
SELECT DISTINCT + col1 * - cor0.col1 + + 32 AS col1 FROM tab1 cor0
----
-137
-644
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + 71 * ( col1 ) col2 FROM tab0 AS cor0
----
6192
6552
6984

query I rowsort
SELECT DISTINCT - 47 * - tab2.col2 FROM tab2
----
1222
1269
1786

query I rowsort
SELECT DISTINCT col0 * - 38 FROM tab1 cor0
----
-114
-2432
-3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-5359
SELECT - + cor0.col0 + col2 DIV - col0 FROM tab2 AS cor0
----
-10
-78
-79

skipif mysql # not compatible
query I rowsort label-5359
SELECT - + cor0.col0 + col2 / - col0 FROM tab2 AS cor0
----
-10
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - ( col1 * col1 ) col0 FROM tab1 AS cor0
----
1000
17576
2197

query I rowsort
SELECT - - 35 + + col1 FROM tab1 AS cor0
----
45
48
61

query I rowsort
SELECT - 47 * col2 AS col1 FROM tab0 AS cor0
----
-1551
-3854
-47

query I rowsort
SELECT - 47 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to a4d3a02c376c52ddb0a38a801f7b50d5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5364
SELECT - col2 + - CAST( + ( col1 ) AS SIGNED ) FROM tab2 AS cor0
----
-55
-58
-85

skipif mysql # not compatible
query I rowsort label-5364
SELECT - col2 + - CAST ( + ( col1 ) AS INTEGER ) FROM tab2 AS cor0
----
-55
-58
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-5365
SELECT - cor0.col1 + ( + 20 ) DIV cor0.col1 AS col0 FROM tab1 AS cor0
----
-12
-26
-8

skipif mysql # not compatible
query I rowsort label-5365
SELECT - cor0.col1 + ( + 20 ) / cor0.col1 AS col0 FROM tab1 AS cor0
----
-12
-26
-8

query I rowsort
SELECT ALL col1 * ( col0 ) + col0 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT DISTINCT col0 + + col2 + col1 * - 42 FROM tab2
----
-1268
-2374
-597

query I rowsort
SELECT col1 - - ( cor0.col2 ) FROM tab1 AS cor0
----
109
67
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5369
SELECT - - col2 + + CAST( NULL AS SIGNED ) * 27 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5369
SELECT - - col2 + + CAST ( NULL AS INTEGER ) * 27 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - tab1.col0 + tab1.col0 AS col1 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT DISTINCT ( - 86 ) FROM tab2
----
-86

query I rowsort
SELECT DISTINCT - ( col1 ) + - cor0.col1 - + 70 FROM tab2 AS cor0
----
-104
-132
-188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 52 + - cor0.col2 col0 FROM tab0 AS cor0
----
-30
19
51

query I rowsort
SELECT DISTINCT cor0.col2 + 64 AS col0 FROM tab0 AS cor0
----
146
65
97

query I rowsort
SELECT ALL 2 * - col2 FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT + 17 AS col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to e0dd9155e4d67132637a04c18ef46b2a

query I rowsort
SELECT DISTINCT + ( col0 ) - + ( + 25 * col2 ) AS col1 FROM tab0 AS cor0
----
-1961
-801
10

onlyif mysql # use DIV operator for integer division
query I rowsort label-5378
SELECT ALL + col1 DIV col0 + + cor0.col0 * col2 DIV col0 FROM tab2 AS cor0
----
26
31
38

skipif mysql # not compatible
query I rowsort label-5378
SELECT ALL + col1 / col0 + + cor0.col0 * col2 / col0 FROM tab2 AS cor0
----
26
31
38

query I rowsort
SELECT ( + cor0.col1 ) AS col1 FROM tab2, tab2 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT ( col1 ) + - col1 AS col1 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 89 col0 FROM tab0, tab1 cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query I rowsort
SELECT - ( - col2 ) + + col0 AS col1 FROM tab2
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col0 * col2 + - col1 col1 FROM tab1
----
136
3638
7667

query I rowsort
SELECT DISTINCT + ( col0 ) + + col2 * + col2 AS col2 FROM tab1
----
2919
3313
9296

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 71 col1 FROM tab1
----
-71
-71
-71

query I rowsort
SELECT + col1 + - col0 * col2 * + col1 + + col2 AS col2 FROM tab0 AS cor0
----
-3297
-663945
-67993

query I rowsort
SELECT - - 77 + + col0 FROM tab2 AS cor0
----
155
156
84

query I rowsort
SELECT ALL + - col2 + + col2 * col1 AS col0 FROM tab2 cor0
----
1508
608
810

query I rowsort
SELECT ALL - col0 * col0 + - 22 * col1 FROM tab2 AS cor0
----
-6615
-731
-7382

query I rowsort
SELECT + col1 * - col2 * col2 AS col1 FROM tab0 AS cor0
----
-611884
-93654
-97

query I rowsort
SELECT + col0 + col1 * + col2 - - tab1.col1 AS col0 FROM tab1
----
1341
1433
644

query I rowsort
SELECT ALL - cor1.col0 + 30 AS col0 FROM tab1 cor0 CROSS JOIN tab0, tab2 cor1
----
27 values hashing to a0a4873a43ed9de0d2a30d47a328ae56

query I rowsort
SELECT + - col2 + + 20 AS col0 FROM tab1 AS cor0
----
-34
-37
-76

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 + col0 * - 65 FROM tab2
----
-455
-5070
-5135

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - - ( - 60 ) * + col1 col1 FROM tab0 cor0
----
-5184
-5549
-5855

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5397
SELECT + - CAST( NULL AS SIGNED ) + + col1 * + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5397
SELECT + - CAST ( NULL AS INTEGER ) + + col1 * + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( col1 ) * col2 AS col1 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT - + col0 * + 21 + + col0 AS col2 FROM tab2 AS cor0
----
-140
-1560
-1580

query I rowsort
SELECT ALL + 45 + ( + col0 ) FROM tab2 AS cor0
----
123
124
52

query I rowsort
SELECT ALL col2 * - 99 * - col1 AS col0 FROM tab2
----
151866
63954
82863

query I rowsort
SELECT ALL - col0 + - col1 * - cor0.col0 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT ALL col2 + + col0 * + col0 FROM tab0 cor0
----
1226
609
8003

query I rowsort
SELECT DISTINCT - 72 - + col0 AS col2 FROM tab1
----
-136
-152
-75

query I rowsort
SELECT DISTINCT + - 26 + col0 AS col1 FROM tab1 AS cor0
----
-23
38
54

query I rowsort
SELECT DISTINCT + ( col2 ) * - 5 FROM tab1 AS cor0
----
-270
-285
-480

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5407
SELECT tab1.col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5407
SELECT tab1.col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + - cor0.col2 * + 29 AS col2 FROM tab0 AS cor0
----
-2378
-29
-957

query I rowsort
SELECT DISTINCT + - col1 * 66 FROM tab1 AS cor0
----
-1716
-660
-858

query I rowsort
SELECT + cor0.col2 - + 89 * - ( cor0.col0 ) FROM tab1 AS cor0
----
321
5753
7216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 82 col1 FROM tab2
----
574
6396
6478

query I rowsort
SELECT - 80 FROM tab0, tab2 AS cor0
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5413
SELECT ALL - col2 * + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5413
SELECT ALL - col2 * + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col0 * ( col1 ) - col1 FROM tab2 AS cor0
----
1326
186
4543

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 + + ( + 96 ) col1 FROM tab1 AS cor0
----
70
83
86

query I rowsort
SELECT cor0.col1 + 33 * - col0 AS col1 FROM tab0 cor0
----
-1058
-2846
-706

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * tab1.col1 + col1 col1 FROM tab1
----
104
1053
650

onlyif mysql # use DIV operator for integer division
query I rowsort label-5418
SELECT DISTINCT + col2 + ( col1 * - 90 ) + + cor0.col1 DIV col1 AS col2 FROM tab1 cor0
----
-1073
-2285
-842

skipif mysql # not compatible
query I rowsort label-5418
SELECT DISTINCT + col2 + ( col1 * - 90 ) + + cor0.col1 / col1 AS col2 FROM tab1 cor0
----
-1073
-2285
-842

query I rowsort
SELECT ALL ( + 63 ) * col1 FROM tab0 AS cor0
----
5418
5733
6111

onlyif mysql # use DIV operator for integer division
query I rowsort label-5420
SELECT + + col0 + - ( - col0 ) DIV col0 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-5420
SELECT + + col0 + - ( - col0 ) / col0 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT DISTINCT col2 + + cor0.col2 + - col1 FROM tab0 AS cor0
----
-20
-95
73

query I rowsort
SELECT 45 + ( cor0.col0 ) FROM tab2 AS cor0
----
123
124
52

query I rowsort
SELECT DISTINCT 31 AS col1 FROM tab1, tab1 cor0
----
31

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5424
SELECT ALL col2 * col1 + CAST( NULL AS SIGNED ) * 77 + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5424
SELECT ALL col2 * col1 + CAST ( NULL AS INTEGER ) * 77 + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 * - col1 + + col0 + - col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL ( col0 ) * - col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT - + 56 * + col1 FROM tab0 AS cor0
----
-4816
-5096
-5432

query I rowsort
SELECT ALL 32 AS col0 FROM tab2 AS cor0
----
32
32
32

query I rowsort
SELECT DISTINCT + - col2 * - col0 * - cor0.col2 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT 58 - + col0 * col0 AS col1 FROM tab1
----
-4038
-6342
49

query I rowsort
SELECT col0 * col1 - col1 FROM tab0
----
1978
3298
8008

query I rowsort
SELECT tab2.col1 + + 67 FROM tab2
----
126
84
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5433
SELECT - CAST( - col2 + col0 AS SIGNED ) FROM tab0
----
-34
-7
9

skipif mysql # not compatible
query I rowsort label-5433
SELECT - CAST ( - col2 + col0 AS INTEGER ) FROM tab0
----
-34
-7
9

query I rowsort
SELECT ALL + + 12 + - col1 + 60 FROM tab1 AS cor0
----
46
59
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5435
SELECT ALL - + col1 * col2 + CAST( ( col1 ) AS SIGNED ) FROM tab2 AS cor0
----
-1475
-629
-806

skipif mysql # not compatible
query I rowsort label-5435
SELECT ALL - + col1 * col2 + CAST ( ( col1 ) AS INTEGER ) FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT ALL 68 + - col2 * + 79 FROM tab0 AS cor0
----
-11
-2539
-6410

query I rowsort
SELECT DISTINCT - col1 + - col1 + - col0 * - col0 * col0 FROM tab2 cor0
----
281
474434
493005

query I rowsort
SELECT DISTINCT + - ( - cor0.col0 ) + 79 * 6 FROM tab0 AS cor0
----
498
509
563

query I rowsort
SELECT ALL - col2 * + 50 FROM tab1
----
-2700
-2850
-4800

query I rowsort
SELECT - col1 * + cor0.col0 * + col0 FROM tab2 cor0
----
-106097
-1519
-358956

query I rowsort
SELECT DISTINCT 80 AS col1 FROM tab2
----
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col0 * - col1 ) + col1 col0 FROM tab2
----
1360
248
4661

query I rowsort
SELECT ALL 24 AS col2 FROM tab0
----
24
24
24

query I rowsort
SELECT - - cor0.col2 FROM tab0, tab1, tab2 AS cor0, tab2
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9

query I rowsort
SELECT ( 87 ) * - cor0.col1 AS col1 FROM tab2 AS cor0
----
-1479
-2697
-5133

query I rowsort
SELECT + col0 + - 75 FROM tab1
----
-11
-72
5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5447
SELECT ( + col0 ) * col1 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5447
SELECT ( + col0 ) * col1 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + 28 * + col0 * col1 + ( col1 ) AS col2 FROM tab2 cor0
----
-128797
-37587
-6045

query I rowsort
SELECT DISTINCT - 47 + 8 * cor0.col0 AS col0 FROM tab1 AS cor0
----
-23
465
593

query I rowsort
SELECT ALL col2 * 23 AS col0 FROM tab1 AS cor0
----
1242
1311
2208

query I rowsort
SELECT - 1 + - 20 * - col2 AS col2 FROM tab2 AS cor0
----
519
539
759

query I rowsort
SELECT DISTINCT col1 * + 84 + + cor0.col0 + + col2 AS col2 FROM tab2 AS cor0
----
1545
2638
5060

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - cor0.col2 col0 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT - + 0 * col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col0 + - 42 * - 54 FROM tab0
----
2292
2303
2357

query I rowsort
SELECT + col1 + col0 * col0 + - col0 FROM tab2
----
6065
6179
73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5457
SELECT DISTINCT tab0.col2 + CAST( NULL AS SIGNED ) * + col2 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5457
SELECT DISTINCT tab0.col2 + CAST ( NULL AS INTEGER ) * + col2 AS col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - col1 + - 83 * 13 + col0 AS col2 FROM tab2
----
-1017
-1060
-1103

query I rowsort
SELECT 37 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query I rowsort
SELECT DISTINCT 76 AS col1 FROM tab1
----
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5461
SELECT DISTINCT CAST( + 7 AS SIGNED ) FROM tab2 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-5461
SELECT DISTINCT CAST ( + 7 AS INTEGER ) FROM tab2 AS cor0
----
7

query I rowsort
SELECT ALL - col0 + col0 + + col2 FROM tab1 AS cor0
----
54
57
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5463
SELECT + CAST( 90 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
90
90
90

skipif mysql # not compatible
query I rowsort label-5463
SELECT + CAST ( 90 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
90
90
90

query I rowsort
SELECT DISTINCT 65 - col1 AS col2 FROM tab1 AS cor0
----
39
52
55

query I rowsort
SELECT ALL 89 * + cor0.col2 FROM tab1 AS cor0
----
4806
5073
8544

query I rowsort
SELECT - 60 + - 83 + + col2 AS col0 FROM tab1 cor0
----
-47
-86
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 78 * - col0 col1 FROM tab2 AS cor0
----
546
6084
6162

query I rowsort
SELECT ( col2 ) * col2 AS col2 FROM tab1 AS cor0
----
2916
3249
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 * col0 + - col2 col0 FROM tab2 AS cor0
----
190
2392
2411

query I rowsort
SELECT + + col1 * ( + col1 ) FROM tab1 cor0
----
100
169
676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5471
SELECT - col0 * - CAST( col2 AS SIGNED ) col2 FROM tab1 AS cor0
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5471
SELECT - col0 * - CAST ( col2 AS INTEGER ) col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT - + col1 + 18 * - col0 FROM tab0 AS cor0
----
-1693
-518
-727

query I rowsort
SELECT DISTINCT cor0.col0 * - ( + cor0.col0 + col1 ) * 94 AS col0 FROM tab0 AS cor0
----
-1505880
-248160
-434280

query I rowsort
SELECT - + ( 83 ) FROM tab0 AS cor0
----
-83
-83
-83

skipif mysql # not compatible
query I rowsort
SELECT - - CAST ( + col0 AS REAL ) / col0 AS col0 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT 69 + cor0.col1 * col0 FROM tab1 AS cor0
----
1109
147
709

onlyif mysql # use DIV operator for integer division
query I rowsort label-5477
SELECT ( + col2 ) DIV col0 FROM tab2 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-5477
SELECT ( + col2 ) / col0 FROM tab2 AS cor0
----
0
0
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-5478
SELECT - 1 DIV + col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5478
SELECT - 1 / + col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + + col2 * - 80 * + col0 AS col1 FROM tab1 AS cor0
----
-12960
-291840
-614400

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5480
SELECT DISTINCT + + ( col1 ) + CAST( NULL AS DECIMAL ) + + col2 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5480
SELECT DISTINCT + + ( col1 ) + CAST ( NULL AS REAL ) + + col2 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + - col2 * col2 + 94 FROM tab2 AS cor0
----
-1350
-582
-635

query I rowsort
SELECT DISTINCT + ( + col0 ) * 59 + - col2 AS col1 FROM tab0 AS cor0
----
1383
2064
5169

query I rowsort
SELECT col2 * + col2 + - col1 FROM tab0 AS cor0
----
-96
1003
6633

onlyif mysql # use DIV operator for integer division
query I rowsort label-5484
SELECT - col0 DIV col0 + - 56 * 59 * col2 AS col1 FROM tab0 AS cor0
----
-109033
-270929
-3305

skipif mysql # not compatible
query I rowsort label-5484
SELECT - col0 / col0 + - 56 * 59 * col2 AS col1 FROM tab0 AS cor0
----
-109033
-270929
-3305

query I rowsort
SELECT - - 25 * + col2 FROM tab0 AS cor0
----
2050
25
825

query I rowsort
SELECT - col2 + cor0.col2 * - col0 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT ALL + col1 + cor0.col0 * ( 82 ) * - col0 AS col1 FROM tab0 AS cor0
----
-100353
-47146
-649431

query I rowsort
SELECT ALL 50 + + col0 AS col2 FROM tab1 AS cor0
----
114
130
53

query I rowsort
SELECT - col0 + col2 * col0 + - col1 AS col2 FROM tab2
----
151
1891
2906

query I rowsort
SELECT 48 * col2 + col0 AS col0 FROM tab2 AS cor0
----
1303
1326
1903

onlyif mysql # use DIV operator for integer division
query I rowsort label-5491
SELECT ALL - col2 * col2 DIV - col1 + col0 AS col1 FROM tab1 AS cor0
----
115
388
788

skipif mysql # not compatible
query I rowsort label-5491
SELECT ALL - col2 * col2 / - col1 + col0 AS col1 FROM tab1 AS cor0
----
115
388
788

onlyif mysql # use DIV operator for integer division
query I rowsort label-5492
SELECT - + col0 * col1 + col2 DIV col2 AS col0 FROM tab1 AS cor0
----
-1039
-639
-77

skipif mysql # not compatible
query I rowsort label-5492
SELECT - + col0 * col1 + col2 / col2 AS col0 FROM tab1 AS cor0
----
-1039
-639
-77

query I rowsort
SELECT - col0 + ( - ( col0 ) ) * + 52 FROM tab0 AS cor0
----
-1272
-1855
-4717

query I rowsort
SELECT DISTINCT col0 - - 10 FROM tab0 AS cor0
----
34
45
99

query I rowsort
SELECT + col2 * - 0 + col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT col0 * col1 * + tab1.col2 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT - - 91 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe

query I rowsort
SELECT 59 * col0 FROM tab2
----
413
4602
4661

query I rowsort
SELECT ALL + 72 * col0 FROM tab1
----
216
4608
5760

skipif mysql # not compatible
query I rowsort
SELECT col1 * - CAST ( 48 * - col0 AS REAL ) FROM tab2
----
10416
220896
64464

query I rowsort
SELECT ALL 55 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3

query I rowsort
SELECT ALL + + 67 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to eea8a0738728ea55e4e7ba1506c9905a

query I rowsort
SELECT + col0 + col0 * - 91 AS col2 FROM tab0 AS cor0
----
-2160
-3150
-8010

query I rowsort
SELECT + 8 * + cor0.col2 FROM tab1 AS cor0
----
432
456
768

query I rowsort
SELECT ALL - 39 * - col0 FROM tab1
----
117
2496
3120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + cor0.col1 col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - cor0.col2 * col1 * col0 - cor0.col0 FROM tab2 AS cor0
----
-119730
-51113
-5866

onlyif mysql # use DIV operator for integer division
query I rowsort label-5508
SELECT + ( + col2 ) DIV + 21 - + col0 AS col2 FROM tab2 AS cor0
----
-6
-77
-78

skipif mysql # not compatible
query I rowsort label-5508
SELECT + ( + col2 ) / + 21 - + col0 AS col2 FROM tab2 AS cor0
----
-6
-77
-78

query I rowsort
SELECT + - col0 - col2 * + col1 FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT ALL - col1 - col2 AS col1 FROM tab1 AS cor0
----
-109
-67
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5511
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + col2 * - col1 * + 52 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5511
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + col2 * - col1 * + 52 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL col2 + ( + cor0.col2 ) - - 96 * - col0 FROM tab0 AS cor0
----
-2238
-3358
-8380

query I rowsort
SELECT + ( - cor0.col1 ) + col2 FROM tab2 AS cor0
----
-33
-4
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 65 * 88 col0 FROM tab0 AS cor0
----
-5720
-5720
-5720

query I rowsort
SELECT ( - 31 ) AS col0 FROM tab2 AS cor0
----
-31
-31
-31

query I rowsort
SELECT DISTINCT - col1 + col2 * + col1 AS col0 FROM tab1 cor0
----
1235
1378
560

query I rowsort
SELECT 25 + + col2 * col2 FROM tab0 cor0
----
1114
26
6749

query I rowsort
SELECT ALL - 38 * ( - col2 ) AS col2 FROM tab2 AS cor0
----
1026
1444
988

query I rowsort
SELECT + - cor0.col2 * + 80 AS col2 FROM tab2 AS cor0
----
-2080
-2160
-3040

query I rowsort
SELECT DISTINCT + - 75 + + 78 * col1 FROM tab0 AS cor0
----
6633
7023
7491

query I rowsort
SELECT ALL tab2.col2 * + 4 AS col0 FROM tab2
----
104
108
152

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5522
SELECT CAST( + col1 AS SIGNED ) * - col0 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5522
SELECT CAST ( + col1 AS INTEGER ) * - col0 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5523
SELECT DISTINCT cor0.col1 DIV - col1 - col1 * + 38 * 84 FROM tab0 AS cor0
----
-274513
-290473
-309625

skipif mysql # not compatible
query I rowsort label-5523
SELECT DISTINCT cor0.col1 / - col1 - col1 * + 38 * 84 FROM tab0 AS cor0
----
-274513
-290473
-309625

onlyif mysql # use DIV operator for integer division
query I rowsort label-5524
SELECT ALL 36 + - ( cor0.col1 ) DIV + col1 FROM tab0 AS cor0
----
35
35
35

skipif mysql # not compatible
query I rowsort label-5524
SELECT ALL 36 + - ( cor0.col1 ) / + col1 FROM tab0 AS cor0
----
35
35
35

query I rowsort
SELECT 34 AS col0 FROM tab1 AS cor0
----
34
34
34

query I rowsort
SELECT ALL + col2 + 0 * + col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT 63 - - 66 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
261
4287
5343

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 23 * - col0 + - col0 * cor0.col1 col1 FROM tab1 AS cor0
----
-147
-2112
-2880

query I rowsort
SELECT DISTINCT 92 * 75 - + col2 * col1 FROM tab1 AS cor0
----
5496
5652
6330

onlyif mysql # use DIV operator for integer division
query I rowsort label-5530
SELECT ALL tab1.col1 DIV - col2 + + col0 * col0 + - col0 * + 13 FROM tab1
----
-30
3264
5360

skipif mysql # not compatible
query I rowsort label-5530
SELECT ALL tab1.col1 / - col2 + + col0 * col0 + - col0 * + 13 FROM tab1
----
-30
3264
5360

query I rowsort
SELECT + col2 * col2 + col1 AS col1 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT col0 + + col2 * + cor0.col2 + 10 FROM tab1 AS cor0
----
2929
3323
9306

query I rowsort
SELECT DISTINCT + col1 + + 75 AS col2 FROM tab0 cor0
----
161
166
172

query I rowsort
SELECT - + cor0.col1 * col0 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5535
SELECT DISTINCT + - col0 * CAST( NULL AS SIGNED ) col0 FROM tab0 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5535
SELECT DISTINCT + - col0 * CAST ( NULL AS INTEGER ) col0 FROM tab0 cor0
----
NULL

query I rowsort
SELECT + col0 * cor0.col1 + 57 + - col2 FROM tab2 AS cor0
----
1362
247
4633

query I rowsort
SELECT DISTINCT col1 + - ( + 39 * col0 ) - col0 * ( - col2 ) FROM tab1 AS cor0
----
1162
4573
71

query I rowsort
SELECT DISTINCT 52 FROM tab0, tab1 AS cor0
----
52

query I rowsort
SELECT ALL col1 * - 53 * - col0 FROM tab2 AS cor0
----
11501
243906
71179

query I rowsort
SELECT + col1 * + 35 * + tab2.col2 AS col1 FROM tab2
----
22610
29295
53690

query I rowsort
SELECT ALL - col1 * tab0.col0 * col1 AS col2 FROM tab0
----
-177504
-329315
-737009

query I rowsort
SELECT ALL + 64 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query I rowsort
SELECT + - col1 * - col1 + col1 * - col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col0 + + col1 + + 83 FROM tab0 AS cor0
----
193
215
263

query I rowsort
SELECT ALL + cor0.col2 * + ( - col0 ) + col2 * - cor0.col2 + col2 * cor0.col0 FROM tab0 cor0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT + - col0 + ( - col1 * + col1 ) FROM tab0 AS cor0
----
-7420
-8370
-9444

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col1 ) col2 FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT ALL + + cor0.col1 + cor0.col0 AS col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT col1 * col1 * col0 FROM tab1 AS cor0
----
13520
2028
6400

query I rowsort
SELECT - col1 * col0 * - col0 AS col1 FROM tab1
----
234
40960
83200

query I rowsort
SELECT cor0.col0 FROM tab1, tab2 cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

onlyif mysql # use DIV operator for integer division
query I rowsort label-5552
SELECT ALL ( cor0.col2 ) + + col1 DIV col2 FROM tab0 AS cor0
----
35
83
98

skipif mysql # not compatible
query I rowsort label-5552
SELECT ALL ( cor0.col2 ) + + col1 / col2 FROM tab0 AS cor0
----
35
83
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 97 - col0 col1 FROM tab1 AS cor0
----
17
33
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-5554
SELECT col2 DIV col2 col0 FROM tab1
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5554
SELECT col2 / col2 col0 FROM tab1
----
1
1
1

query I rowsort
SELECT DISTINCT + 65 * col0 + col0 FROM tab1 AS cor0
----
198
4224
5280

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 + - col0 col2 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT 34 * cor0.col0 - + ( + 66 ) AS col0 FROM tab1 AS cor0
----
2110
2654
36

onlyif mysql # use DIV operator for integer division
query I rowsort label-5558
SELECT - cor0.col2 + + col0 + col0 DIV + col0 col1 FROM tab1 AS cor0
----
-15
-50
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5558
SELECT - cor0.col2 + + col0 + col0 / + col0 col1 FROM tab1 AS cor0
----
-15
-50
8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5559
SELECT DISTINCT - col0 + + col1 * - CAST( col1 AS SIGNED ) + col2 AS col0 FROM tab2
----
-330
-3533
-941

skipif mysql # not compatible
query I rowsort label-5559
SELECT DISTINCT - col0 + + col1 * - CAST ( col1 AS INTEGER ) + col2 AS col0 FROM tab2
----
-330
-3533
-941

query I rowsort
SELECT + col1 * - col2 + col0 * + col0 + - col2 AS col0 FROM tab2 AS cor0
----
-815
4524
5557

query I rowsort
SELECT col1 * col2 + col0 + - col2 FROM tab1 AS cor0
----
1232
1353
577

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5562
SELECT - col0 + + CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5562
SELECT - col0 + + CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - tab1.col0 * col0 * col2 AS col1 FROM tab1
----
-233472
-486
-614400

query I rowsort
SELECT DISTINCT 40 + tab1.col0 AS col0 FROM tab1
----
104
120
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col2 ) + - tab2.col0 * - tab2.col1 * col2 col1 FROM tab2
----
119678
51072
5886

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5566
SELECT CAST( col0 AS SIGNED ) * - col1 FROM tab2
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort label-5566
SELECT CAST ( col0 AS INTEGER ) * - col1 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab1, tab0 AS cor0 CROSS JOIN tab2 cor1
----
-1
-33
-82

query I rowsort
SELECT DISTINCT + ( col0 ) AS col2 FROM tab1
----
3
64
80

query I rowsort
SELECT DISTINCT - - 15 AS col0 FROM tab2, tab1, tab0 AS cor0
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 65 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

onlyif mysql # use DIV operator for integer division
query I rowsort label-5571
SELECT col0 DIV + 39 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-5571
SELECT col0 / + 39 FROM tab0
----
0
0
2

query I rowsort
SELECT col0 + + col2 + 78 FROM tab2
----
112
182
195

query I rowsort
SELECT DISTINCT col2 * ( tab1.col2 ) FROM tab1
----
2916
3249
9216

query I rowsort
SELECT DISTINCT - col0 * 21 AS col1 FROM tab1
----
-1344
-1680
-63

query I rowsort
SELECT - - col0 * + 3 FROM tab2 cor0
----
21
234
237

onlyif mysql # use DIV operator for integer division
query I rowsort label-5576
SELECT ALL + col1 DIV - tab1.col0 FROM tab1
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-5576
SELECT ALL + col1 / - tab1.col0 FROM tab1
----
-8
0
0

query I rowsort
SELECT cor0.col2 * col2 * 59 FROM tab0 AS cor0
----
396716
59
64251

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 * col1 col2 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT - - ( + col1 ) * col2 + - col0 AS col1 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT ( + 81 ) * + col0 * col0 FROM tab1 AS cor0
----
331776
518400
729

query I rowsort
SELECT - col1 + + 69 FROM tab2 AS cor0
----
10
38
52

query I rowsort
SELECT + cor0.col0 * col1 + col2 AS col0 FROM tab0 cor0
----
2097
3396
8181

onlyif mysql # use DIV operator for integer division
query I rowsort label-5583
SELECT 83 DIV col1 + col2 AS col2 FROM tab1 AS cor0
----
102
57
65

skipif mysql # not compatible
query I rowsort label-5583
SELECT 83 / col1 + col2 AS col2 FROM tab1 AS cor0
----
102
57
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * col0 + cor0.col0 * 27 col2 FROM tab2 AS cor0
----
-2496
-28
790

onlyif mysql # use DIV operator for integer division
query I rowsort label-5585
SELECT DISTINCT - tab1.col2 DIV + col0 + + ( col2 ) + ( + ( + col2 ) + - 14 ) FROM tab1
----
100
177
76

skipif mysql # not compatible
query I rowsort label-5585
SELECT DISTINCT - tab1.col2 / + col0 + + ( col2 ) + ( + ( + col2 ) + - 14 ) FROM tab1
----
100
177
76

query I rowsort
SELECT + - 77 - + col2 AS col0 FROM tab1 AS cor0
----
-131
-134
-173

query I rowsort
SELECT col2 - ( + col0 ) AS col2 FROM tab1 AS cor0
----
-7
16
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5588
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + col2 - + col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5588
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + col2 - + col1 FROM tab0
----
NULL

query I rowsort
SELECT ALL col1 + col2 - col2 AS col0 FROM tab2
----
17
31
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5590
SELECT ALL + CAST( NULL AS SIGNED ) * + col0 - - col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5590
SELECT ALL + CAST ( NULL AS INTEGER ) * + col0 - - col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col0 * cor0.col0 + - col0 FROM tab2 AS cor0
----
42
6006
6162

query I rowsort
SELECT ALL 86 + cor0.col2 AS col2 FROM tab2 AS cor0
----
112
113
124

query I rowsort
SELECT ALL + col2 + 51 FROM tab1 cor0
----
105
108
147

query I rowsort
SELECT - ( + col0 ) - col2 AS col2 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT col0 + - col1 * ( col2 ) FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT - ( - col1 ) * 90 AS col0 FROM tab0 AS cor0
----
7740
8190
8730

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5597
SELECT - 39 * + cor0.col0 * CAST( + col0 AS SIGNED ) + + cor0.col0 + - col0 FROM tab2 AS cor0
----
-1911
-237276
-243399

skipif mysql # not compatible
query I rowsort label-5597
SELECT - 39 * + cor0.col0 * CAST ( + col0 AS INTEGER ) + + cor0.col0 + - col0 FROM tab2 AS cor0
----
-1911
-237276
-243399

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5598
SELECT ALL - - cor0.col2 + + col0 / - CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5598
SELECT ALL - - cor0.col2 + + col0 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 94 * + col1 AS col2 FROM tab1 AS cor0
----
-1222
-2444
-940

query I rowsort
SELECT - col0 + col1 * ( col2 * col2 ) AS col2 FROM tab0 cor0
----
611795
62
93630

onlyif mysql # use DIV operator for integer division
query I rowsort label-5601
SELECT DISTINCT cor0.col0 DIV + col1 AS col2 FROM tab2 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-5601
SELECT DISTINCT cor0.col0 / + col1 AS col2 FROM tab2 AS cor0
----
0
1
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5602
SELECT - CAST( NULL AS SIGNED ) col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5602
SELECT - CAST ( NULL AS INTEGER ) col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL + ( - 77 ) - - col1 * col1 FROM tab2
----
212
3404
884

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - cor0.col0 ) col2 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ( col1 ) * + 19 - + 13 AS col0 FROM tab1 AS cor0
----
177
234
481

query I rowsort
SELECT 20 FROM tab1, tab2 cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT - - col1 * - 61 FROM tab0 AS cor0
----
-5246
-5551
-5917

onlyif mysql # use DIV operator for integer division
query I rowsort label-5608
SELECT + - col2 DIV CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-5608
SELECT + - col2 / CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
-1
-18
0

query I rowsort
SELECT - cor0.col0 * + 80 AS col2 FROM tab0 AS cor0
----
-1920
-2800
-7120

query I rowsort
SELECT + col1 * 52 AS col1 FROM tab1 AS cor0
----
1352
520
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-5611
SELECT ALL + + col2 + ( + col1 ) * col1 DIV col1 FROM tab1 AS cor0
----
109
67
80

skipif mysql # not compatible
query I rowsort label-5611
SELECT ALL + + col2 + ( + col1 ) * col1 / col1 FROM tab1 AS cor0
----
109
67
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5612
SELECT ALL - + col0 * - CAST( NULL AS SIGNED ) * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5612
SELECT ALL - + col0 * - CAST ( NULL AS INTEGER ) * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * col1 - col2 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT ALL - col2 * 38 FROM tab0
----
-1254
-3116
-38

query I rowsort
SELECT DISTINCT cor0.col2 * - 24 * col0 AS col2 FROM tab1 cor0
----
-184320
-3888
-87552

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5616
SELECT ALL + - CAST( NULL AS SIGNED ) / + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5616
SELECT ALL + - CAST ( NULL AS INTEGER ) / + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col1 * + cor0.col2 col0 FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
27 values hashing to c60831db2936bdb61fb09e86d08b0883

query I rowsort
SELECT + tab0.col2 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT tab1.col1 - + col1 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT col0 * ( col1 ) * - col1 FROM tab0 AS cor0
----
-177504
-329315
-737009

query I rowsort
SELECT ALL + col1 + col2 + ( col2 + col0 ) AS col2 FROM tab0 AS cor0
----
134
176
344

query I rowsort
SELECT DISTINCT + cor0.col0 + ( - col2 + col2 * 40 ) AS col2 FROM tab1 cor0
----
2109
2287
3824

query I rowsort
SELECT col1 * 81 + cor0.col1 FROM tab0 cor0
----
7052
7462
7954

query I rowsort
SELECT ALL - + col1 + + 56 FROM tab2 AS cor0
----
-3
25
39

onlyif mysql # use DIV operator for integer division
query I rowsort label-5625
SELECT + cor0.col0 DIV + col2 + - ( - col0 ) FROM tab1 AS cor0
----
3
65
80

skipif mysql # not compatible
query I rowsort label-5625
SELECT + cor0.col0 / + col2 + - ( - col0 ) FROM tab1 AS cor0
----
3
65
80

query I rowsort
SELECT DISTINCT - cor0.col0 + 93 FROM tab0 AS cor0
----
4
58
69

onlyif mysql # use DIV operator for integer division
query I rowsort label-5627
SELECT DISTINCT - col1 + - cor0.col0 * col2 DIV - col0 FROM tab1 cor0
----
28
47
83

skipif mysql # not compatible
query I rowsort label-5627
SELECT DISTINCT - col1 + - cor0.col0 * col2 / - col0 FROM tab1 cor0
----
28
47
83

query I rowsort
SELECT ALL - cor0.col2 + ( 87 ) FROM tab1 AS cor0
----
-9
30
33

onlyif mysql # use DIV operator for integer division
query I rowsort label-5629
SELECT - col0 + col1 DIV - ( + col1 ) AS col1 FROM tab0 AS cor0
----
-25
-36
-90

skipif mysql # not compatible
query I rowsort label-5629
SELECT - col0 + col1 / - ( + col1 ) AS col1 FROM tab0 AS cor0
----
-25
-36
-90

query I rowsort
SELECT ALL + - col0 + col2 * + col1 AS col1 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT ALL cor0.col1 * 2 + + 21 AS col2 FROM tab0 AS cor0
----
193
203
215

query I rowsort
SELECT - + col0 * 41 FROM tab0 cor0
----
-1435
-3649
-984

query I rowsort
SELECT DISTINCT - col2 + + col1 * - col1 AS col2 FROM tab1 cor0
----
-157
-265
-730

query I rowsort
SELECT 39 + - col2 FROM tab2
----
1
12
13

query I rowsort
SELECT ALL tab1.col1 AS col0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT DISTINCT + + col0 + + col1 * col1 FROM tab1 cor0
----
164
249
679

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5637
SELECT ALL + col2 * - ( - ( col2 ) ) - CAST( col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-34
1065
6635

skipif mysql # not compatible
query I rowsort label-5637
SELECT ALL + col2 * - ( - ( col2 ) ) - CAST ( col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-34
1065
6635

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT + col0 * - CAST ( - col2 AS REAL ) * col0 col1 FROM tab0 AS cor0
----
1225
19008
649522

query I rowsort
SELECT - col1 * cor0.col1 + + 57 * col1 FROM tab0 AS cor0
----
-2494
-3094
-3880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + 63 * col2 col1 FROM tab2 AS cor0
----
1579
1670
2377

onlyif mysql # use DIV operator for integer division
query I rowsort label-5641
SELECT DISTINCT 21 DIV - col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5641
SELECT DISTINCT 21 / - col2 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 * 72 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to a2271746de2f822c2e7478dd6681881e

query I rowsort
SELECT ALL 58 * cor1.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 982ee339d5e96e9f9cc05147922d1391

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - cor0.col1 + col1 col0 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT ALL col0 * + col0 * + col1 FROM tab2 AS cor0
----
106097
1519
358956

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5646
SELECT - col0 + col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5646
SELECT - col0 + col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5647
SELECT DISTINCT - col0 DIV + col2 AS col2 FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-5647
SELECT DISTINCT - col0 / + col2 AS col2 FROM tab0 AS cor0
----
-1
-35
0

query I rowsort
SELECT col1 * col0 * - col1 FROM tab1
----
-13520
-2028
-6400

query I rowsort
SELECT ALL col2 + + tab2.col0 - col1 * - col1 FROM tab2
----
3585
406
995

query I rowsort
SELECT + col0 * tab1.col2 * col0 AS col2 FROM tab1
----
233472
486
614400

query I rowsort
SELECT col0 * + col1 + - tab0.col1 AS col1 FROM tab0
----
1978
3298
8008

onlyif mysql # use DIV operator for integer division
query I rowsort label-5652
SELECT DISTINCT + tab0.col2 * col2 DIV + col0 AS col1 FROM tab0
----
0
45
75

skipif mysql # not compatible
query I rowsort label-5652
SELECT DISTINCT + tab0.col2 * col2 / + col0 AS col1 FROM tab0
----
0
45
75

query I rowsort
SELECT DISTINCT col2 * col1 * tab2.col0 + - col1 * col1 + col0 FROM tab2
----
116249
4905
50824

onlyif mysql # use DIV operator for integer division
query I rowsort label-5654
SELECT col0 * - col0 DIV col0 FROM tab1
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-5654
SELECT col0 * - col0 / col0 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT - + 8 AS col2 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 852581644118629bf652b1aa4b8f4363

onlyif mysql # use DIV operator for integer division
query I rowsort label-5656
SELECT DISTINCT + ( col0 ) DIV ( col0 ) + tab1.col1 * + 66 * col1 AS col0 FROM tab1
----
11155
44617
6601

skipif mysql # not compatible
query I rowsort label-5656
SELECT DISTINCT + ( col0 ) / ( col0 ) + tab1.col1 * + 66 * col1 AS col0 FROM tab1
----
11155
44617
6601

query I rowsort
SELECT ALL - 24 + + col1 FROM tab1
----
-11
-14
2

query I rowsort
SELECT + 48 + tab0.col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 855d986d6c232cf27c4bbea7681f923a

onlyif mysql # use DIV operator for integer division
query I rowsort label-5659
SELECT DISTINCT - 74 DIV col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5659
SELECT DISTINCT - 74 / col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - + col1 + + cor0.col0 * + 28 AS col0 FROM tab1 AS cor0
----
1782
2227
58

query I rowsort
SELECT ALL + 74 * col2 FROM tab0 AS cor0
----
2442
6068
74

query I rowsort
SELECT DISTINCT - - 30 * - 17 AS col0 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
-510

query I rowsort
SELECT ALL - col1 * col1 + 54 * - cor0.col2 FROM tab1 AS cor0
----
-3178
-3592
-5353

query I rowsort
SELECT DISTINCT - - 11 * - col1 - + col1 * + col1 AS col1 FROM tab0 AS cor0
----
-10476
-8342
-9282

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5665
SELECT ALL col2 * CAST( NULL AS DECIMAL ) - + col0 * 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-5665
SELECT ALL col2 * CAST ( NULL AS REAL ) - + col0 * cor0.col1 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 64 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5667
SELECT col2 + CAST( NULL AS SIGNED ) + + cor0.col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5667
SELECT col2 + CAST ( NULL AS INTEGER ) + + cor0.col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col2 * - 7 * - cor0.col2 + col1 FROM tab2 cor0
----
10125
4791
5134

onlyif mysql # use DIV operator for integer division
query I rowsort label-5669
SELECT DISTINCT 51 * + col0 DIV - tab2.col0 AS col2 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-5669
SELECT DISTINCT 51 * + col0 / - tab2.col0 AS col2 FROM tab2
----
-51

query I rowsort
SELECT ALL - 21 * 0 FROM tab0
----
0
0
0

query I rowsort
SELECT - 39 + 34 AS col1 FROM tab1
----
-5
-5
-5

query I rowsort
SELECT ALL + col0 + ( col0 + - col1 ) * + col0 FROM tab1 AS cor0
----
-66
3520
5440

query I rowsort
SELECT ALL 73 * col1 * - col2 + 98 AS col2 FROM tab2 AS cor0
----
-111884
-47060
-61003

onlyif mysql # use DIV operator for integer division
query I rowsort label-5674
SELECT + - col2 DIV + col0 AS col1 FROM tab1 cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-5674
SELECT + - col2 / + col0 AS col1 FROM tab1 cor0
----
-1
-18
0

query I rowsort
SELECT ( - 34 ) AS col0 FROM tab1 AS cor0
----
-34
-34
-34

query I rowsort
SELECT DISTINCT + 14 * - 7 FROM tab2 AS cor0
----
-98

query I rowsort
SELECT DISTINCT col2 * col0 + + col1 + + ( col2 ) * col0 FROM tab2 AS cor0
----
409
4115
6021

query I rowsort
SELECT ALL + 58 AS col0 FROM tab1 AS cor0
----
58
58
58

query I rowsort
SELECT DISTINCT + col1 + - col1 AS col0 FROM tab1 cor0
----
0

query I rowsort
SELECT - + col1 + - col1 * + ( - col1 ) AS col0 FROM tab0 AS cor0
----
7310
8190
9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-5681
SELECT + + col0 + col2 DIV col1 FROM tab2 AS cor0
----
7
78
81

skipif mysql # not compatible
query I rowsort label-5681
SELECT + + col0 + col2 / col1 FROM tab2 AS cor0
----
7
78
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 39 + - col2 col0 FROM tab1 AS cor0
----
-15
-18
-57

query I rowsort
SELECT - + col1 * col0 + col0 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT ALL - col1 * - tab0.col1 AS col1 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT + col1 * col2 - col2 * + col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab1.col1 * col0 + col0 col0 FROM tab1
----
1120
704
81

query I rowsort
SELECT - col0 + - col2 * cor0.col1 FROM tab1 AS cor0
----
-1328
-1407
-634

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col1 * - col0 * col1 col0 FROM tab1
----
-13520
-2028
-6400

query I rowsort
SELECT DISTINCT - tab2.col1 + cor0.col0 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 26e0a13f06b06526abc7ba6b9ede0485

query I rowsort
SELECT DISTINCT + tab0.col0 FROM tab0, tab1, tab2 AS cor0
----
24
35
89

query I rowsort
SELECT ALL tab0.col2 * - tab0.col0 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT ALL - 71 AS col0 FROM tab2
----
-71
-71
-71

onlyif mysql # use DIV operator for integer division
query I rowsort label-5693
SELECT DISTINCT + 6 DIV 40 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5693
SELECT DISTINCT + 6 / 40 FROM tab1
----
0

query I rowsort
SELECT DISTINCT + col2 * tab1.col1 AS col1 FROM tab1
----
1248
1404
570

query IIIIIIIII rowsort
SELECT * FROM tab0, tab2, tab2 AS cor0 WHERE NOT NULL > ( NULL )
----

query I rowsort
SELECT ALL col0 * 93 AS col1 FROM tab2
----
651
7254
7347

query I rowsort
SELECT ALL + + 17 * col2 AS col2 FROM tab2 AS cor0
----
442
459
646

query I rowsort
SELECT DISTINCT + - 78 + - col0 FROM tab2 AS cor0
----
-156
-157
-85

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 * - tab0.col2 IN ( - col1 + - tab0.col1 + col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

onlyif mysql # use DIV operator for integer division
query I rowsort label-5700
SELECT col0 DIV col1 col1 FROM tab1 AS cor0
----
0
6
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5700
SELECT col0 / col1 col1 FROM tab1 AS cor0
----
0
6
6

query I rowsort
SELECT + col0 * col1 + col2 FROM tab1 WHERE NOT NULL IN ( col0 / + tab1.col0 + col2 )
----

query I rowsort
SELECT col0 + - col1 * col1 AS col2 FROM tab0
----
-7372
-8192
-9374

query III rowsort
SELECT * FROM tab0 WHERE - col2 NOT IN ( - col2 * - tab0.col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

onlyif mysql # use DIV operator for integer division
query I rowsort label-5704
SELECT DISTINCT - col0 * col1 DIV + col2 AS col1 FROM tab1
----
-1
-10
-11

skipif mysql # not compatible
query I rowsort label-5704
SELECT DISTINCT - col0 * col1 / + col2 AS col1 FROM tab1
----
-1
-10
-11

query I rowsort
SELECT col0 * + col0 * - col2 FROM tab0
----
-1225
-19008
-649522

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col1 / - col0 col0 FROM tab2 WHERE NOT + col0 - - col0 * - col0 * col1 > ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5707
SELECT ALL - col2 * + col1 DIV + col1 FROM tab0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-5707
SELECT ALL - col2 * + col1 / + col1 FROM tab0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-5708
SELECT DISTINCT col2 DIV col0 + col0 DIV tab1.col1 AS col2 FROM tab1
----
18
6
7

skipif mysql # not compatible
query I rowsort label-5708
SELECT DISTINCT col2 / col0 + col0 / tab1.col1 AS col2 FROM tab1
----
18
6
7

query I rowsort
SELECT DISTINCT col1 - - col1 * + col0 FROM tab1
----
104
1053
650

query I rowsort
SELECT + col0 + - col0 * + col2 * col1 AS col1 FROM tab1
----
-36416
-4209
-99760

query I rowsort
SELECT ALL tab1.col0 - + col1 AS col2 FROM tab1
----
-23
54
67

query I rowsort
SELECT - + col0 * col0 + col2 * + col2 AS col1 FROM tab1 AS cor0
----
-847
2816
2907

query I rowsort
SELECT - - col0 + + col2 * + col2 + + cor0.col2 AS col2 FROM tab2 cor0
----
1561
763
780

query I rowsort
SELECT - col2 + + col2 * col2 * + col0 AS col1 FROM tab2 AS cor0
----
114038
5076
52702

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <> - col0 + col1
----

query I rowsort
SELECT col0 * + col0 FROM tab2 WHERE - col0 BETWEEN ( col2 / - col1 ) AND NULL
----

query I rowsort
SELECT col0 * col2 * + col1 FROM tab2
----
119652
51034
5859

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col2 col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

onlyif mysql # use DIV operator for integer division
query I rowsort label-5719
SELECT + 72 DIV col0 col0 FROM tab2
----
0
0
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5719
SELECT + 72 / col0 col0 FROM tab2
----
0
0
10

query I rowsort
SELECT + ( 35 ) + col2 * 15 + + tab1.col2 AS col1 FROM tab1
----
1571
899
947

query I rowsort
SELECT - ( + col1 ) AS col1 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT - 36 * - col2 FROM tab0
----
1188
2952
36

query I rowsort
SELECT DISTINCT 47 * + col0 + + col2 AS col2 FROM tab2
----
356
3692
3751

query I rowsort
SELECT DISTINCT col1 * + col1 + col1 + col2 FROM tab0
----
7515
8454
9507

query I rowsort
SELECT col2 + + 7 + tab2.col0 FROM tab2
----
111
124
41

query I rowsort
SELECT ALL + 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 54 * + 20 col2 FROM tab0 AS cor0
----
1080
1080
1080

query I rowsort
SELECT DISTINCT - 2 * + ( col1 ) AS col2 FROM tab1 AS cor0
----
-20
-26
-52

onlyif mysql # use DIV operator for integer division
query I rowsort label-5729
SELECT + - ( 74 ) DIV col1 + col0 * col2 * - col2 AS col0 FROM tab2 cor0
----
-114080
-5105
-52729

skipif mysql # not compatible
query I rowsort label-5729
SELECT + - ( 74 ) / col1 + col0 * col2 * - col2 AS col0 FROM tab2 cor0
----
-114080
-5105
-52729

query I rowsort
SELECT DISTINCT - cor0.col0 * + col0 + - cor0.col0 FROM tab0 AS cor0
----
-1260
-600
-8010

query I rowsort
SELECT DISTINCT + - cor0.col0 * - col2 + col2 AS col1 FROM tab0 cor0
----
36
7380
825

query I rowsort
SELECT + - 54 + + cor0.col2 * + col0 AS col2 FROM tab2 cor0
----
135
1974
2948

query I rowsort
SELECT DISTINCT col1 * - col1 + - col0 + + cor0.col1 * col1 * col0 AS col0 FROM tab2 AS cor0
----
22463
267959
5759

onlyif mysql # use DIV operator for integer division
query I rowsort label-5734
SELECT ALL + col2 DIV col0 - 48 * cor0.col0 FROM tab2 AS cor0
----
-333
-3744
-3792

skipif mysql # not compatible
query I rowsort label-5734
SELECT ALL + col2 / col0 - 48 * cor0.col0 FROM tab2 AS cor0
----
-333
-3744
-3792

query I rowsort
SELECT col1 * - col1 + + ( col1 ) FROM tab0 AS cor0
----
-7310
-8190
-9312

query I rowsort
SELECT DISTINCT - - col2 * + col1 AS col1 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT ALL ( col0 ) * ( - 77 ) FROM tab0 AS cor0
----
-1848
-2695
-6853

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5738
SELECT DISTINCT - ( - col1 ) * + CAST( NULL AS SIGNED ) - - col1 * + col2 AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5738
SELECT DISTINCT - ( - col1 ) * + CAST ( NULL AS INTEGER ) - - col1 * + col2 AS col1 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL + col0 + - col1 * + cor0.col1 FROM tab0 AS cor0
----
-7372
-8192
-9374

query I rowsort
SELECT ALL + 99 * col0 FROM tab1 AS cor0
----
297
6336
7920

query I rowsort
SELECT DISTINCT col2 + - col0 * col0 AS col1 FROM tab2 AS cor0
----
-22
-6058
-6203

onlyif mysql # use DIV operator for integer division
query I rowsort label-5742
SELECT col2 * - col2 + + ( col0 + col1 ) DIV + col1 FROM tab0 cor0
----
-1088
-6723
0

skipif mysql # not compatible
query I rowsort label-5742
SELECT col2 * - col2 + + ( col0 + col1 ) / + col1 FROM tab0 cor0
----
-1088
-6723
0

query I rowsort
SELECT ALL + col1 * col1 + col0 AS col2 FROM tab0 AS cor0
----
7420
8370
9444

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 66 * cor0.col0 + col0 col1 FROM tab1 AS cor0
----
-195
-4160
-5200

query I rowsort
SELECT ALL col0 + 74 FROM tab0
----
109
163
98

query I rowsort
SELECT ALL col0 + + tab0.col1 + - col0 FROM tab0
----
86
91
97

query I rowsort
SELECT DISTINCT + ( + 80 * col2 ) + - ( 42 ) FROM tab1
----
4278
4518
7638

query I rowsort
SELECT 1 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT ALL - ( + col1 ) * - col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT + col2 + + col1 * - ( col1 ) AS col1 FROM tab1 AS cor0
----
-43
-622
-73

query I rowsort
SELECT DISTINCT + + cor0.col1 * + col2 * - col1 FROM tab2 AS cor0
----
-10982
-25947
-90506

query I rowsort
SELECT ALL + cor0.col1 * + ( - 16 ) FROM tab2 AS cor0
----
-272
-496
-944

query I rowsort
SELECT ALL - cor0.col2 + ( col1 ) + col1 AS col1 FROM tab1 AS cor0
----
-2
-37
-70

query I rowsort
SELECT col0 + + ( 31 ) FROM tab1 cor0
----
111
34
95

query I rowsort
SELECT ALL - - col2 + cor0.col0 FROM tab1 AS cor0
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-5756
SELECT DISTINCT - + col1 DIV col0 + - col0 AS col0 FROM tab2 AS cor0
----
-11
-78
-79

skipif mysql # not compatible
query I rowsort label-5756
SELECT DISTINCT - + col1 / col0 + - col0 AS col0 FROM tab2 AS cor0
----
-11
-78
-79

query I rowsort
SELECT DISTINCT - + col2 * + col1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-5758
SELECT col0 DIV 17 AS col0 FROM tab0 AS cor0
----
1
2
5

skipif mysql # not compatible
query I rowsort label-5758
SELECT col0 / 17 AS col0 FROM tab0 AS cor0
----
1
2
5

query I rowsort
SELECT DISTINCT + col1 + cor0.col2 * cor0.col1 FROM tab1 AS cor0
----
1261
1430
580

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5760
SELECT DISTINCT + cor0.col2 + - CAST( NULL AS SIGNED ) + + col0 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5760
SELECT DISTINCT + cor0.col2 + - CAST ( NULL AS INTEGER ) + + col0 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - + col2 + 79 FROM tab0 AS cor0
----
-3
46
78

query I rowsort
SELECT DISTINCT + ( + cor0.col0 ) + cor0.col1 AS col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL + 49 AS col0 FROM tab1 AS cor0
----
49
49
49

query I rowsort
SELECT 54 FROM tab1, tab2 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query I rowsort
SELECT 79 * 88 FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to 7e291dad988968168933e1078394638f

query I rowsort
SELECT - + 98 AS col0 FROM tab2 AS cor0
----
-98
-98
-98

query I rowsort
SELECT ALL 56 * - 92 FROM tab1 AS cor0
----
-5152
-5152
-5152

query I rowsort
SELECT DISTINCT - - 71 + - 0 AS col0 FROM tab1 AS cor0
----
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 37 * ( + col2 ) col2 FROM tab2 AS cor0
----
1406
962
999

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 56 * - ( col2 ) col2 FROM tab1 AS cor0
----
-3024
-3192
-5376

query I rowsort
SELECT + - ( - 58 ) + + col1 AS col1 FROM tab2 AS cor0
----
117
75
89

query I rowsort
SELECT ALL + + cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

onlyif mysql # use DIV operator for integer division
query I rowsort label-5773
SELECT ALL - 50 DIV 69 + + col2 AS col1 FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-5773
SELECT ALL - 50 / 69 + + col2 AS col1 FROM tab2
----
26
27
38

query I rowsort
SELECT - - ( + col0 ) AS col2 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT DISTINCT 68 FROM tab1, tab1 AS cor0
----
68

query I rowsort
SELECT ALL tab2.col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT + col1 + col2 * + ( col0 ) FROM tab0
----
132
7389
878

query I rowsort
SELECT DISTINCT col0 * + ( - cor0.col2 ) + - col0 * + 54 FROM tab1 AS cor0
----
-12000
-324
-7104

query I rowsort
SELECT DISTINCT - - col0 - - col0 * - 78 FROM tab0 AS cor0
----
-1848
-2695
-6853

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5780
SELECT ALL + col0 * CAST( + 31 AS SIGNED ) + col1 FROM tab1 AS cor0
----
119
1994
2493

skipif mysql # not compatible
query I rowsort label-5780
SELECT ALL + col0 * CAST ( + 31 AS INTEGER ) + col1 FROM tab1 AS cor0
----
119
1994
2493

query I rowsort
SELECT ALL ( tab2.col0 ) * col2 AS col1 FROM tab2
----
189
2028
3002

query I rowsort
SELECT ALL - 54 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

query I rowsort
SELECT + + col1 + - col0 * + col2 AS col0 FROM tab0 AS cor0
----
-706
-7207
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col0 * - col0 col0 FROM tab2 AS cor0
----
-6143
-6258
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5785
SELECT col2 + - cor0.col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5785
SELECT col2 + - cor0.col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5786
SELECT + - col0 DIV cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-5786
SELECT + - col0 / cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-35
0

query I rowsort
SELECT 48 * col2 AS col1 FROM tab2 AS cor0
----
1248
1296
1824

query I rowsort
SELECT - + col0 - + 46 AS col2 FROM tab0 AS cor0
----
-135
-70
-81

query I rowsort
SELECT DISTINCT + + cor0.col2 + ( cor0.col2 ) * - col2 AS col0 FROM tab0 AS cor0
----
-1056
-6642
0

query I rowsort
SELECT + col0 * - 19 AS col2 FROM tab2 AS cor0
----
-133
-1482
-1501

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5791
SELECT DISTINCT col0 * + CAST( - col2 + col2 AS SIGNED ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5791
SELECT DISTINCT col0 * + CAST ( - col2 + col2 AS INTEGER ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - - col0 * ( + col1 ) AS col2 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-5793
SELECT + ( col2 ) DIV + col1 AS col0 FROM tab2 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-5793
SELECT + ( col2 ) / + col1 AS col0 FROM tab2 AS cor0
----
0
0
2

query I rowsort
SELECT col2 * + ( - col0 ) AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5795
SELECT + CAST( + cor0.col0 AS SIGNED ) FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-5795
SELECT + CAST ( + cor0.col0 AS INTEGER ) FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT cor0.col1 + - col1 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5797
SELECT ALL + 83 DIV + 14 FROM tab2
----
5
5
5

skipif mysql # not compatible
query I rowsort label-5797
SELECT ALL + 83 / + 14 FROM tab2
----
5
5
5

query I rowsort
SELECT ALL - col0 * col1 * - 94 FROM tab2 AS cor0
----
126242
20398
432588

query I rowsort
SELECT ALL cor0.col2 * col1 + 11 * - col0 FROM tab1 AS cor0
----
-134
1371
368

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 98 col1 FROM tab1 AS cor0
----
-98
-98
-98

query I rowsort
SELECT ALL - 31 + col1 AS col1 FROM tab1 AS cor0
----
-18
-21
-5

query I rowsort
SELECT DISTINCT + 98 * + col2 AS col2 FROM tab0
----
3234
8036
98

query I rowsort
SELECT col2 - + col0 * 81 AS col1 FROM tab2
----
-540
-6292
-6361

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5804
SELECT DISTINCT + col1 * cor0.col2 + + CAST( NULL AS SIGNED ) + col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5804
SELECT DISTINCT + col1 * cor0.col2 + + CAST ( NULL AS INTEGER ) + col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5805
SELECT - - CAST( col0 AS SIGNED ) + cor0.col0 FROM tab2 AS cor0
----
14
156
158

skipif mysql # not compatible
query I rowsort label-5805
SELECT - - CAST ( col0 AS INTEGER ) + cor0.col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT DISTINCT col1 * ( col1 ) AS col0 FROM tab0 cor0
----
7396
8281
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 76 col2 FROM tab0 AS cor0
----
1824
2660
6764

query I rowsort
SELECT ALL - ( 5 ) FROM tab0, tab2 AS cor0
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5809
SELECT ALL col0 - CAST( NULL AS SIGNED ) * col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5809
SELECT ALL col0 - CAST ( NULL AS INTEGER ) * col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - tab0.col1 * + col1 - - 82 FROM tab0
----
-7314
-8199
-9327

query I rowsort
SELECT ALL tab1.col0 * 2 - - col0 AS col2 FROM tab1
----
192
240
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5812
SELECT col0 + + CAST( NULL AS SIGNED ) - + 81 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5812
SELECT col0 + + CAST ( NULL AS INTEGER ) - + 81 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + + 99 * + col0 AS col1 FROM tab1 cor0
----
294
6272
7840

query I rowsort
SELECT 77 + + col2 * col0 FROM tab1 cor0
----
239
3725
7757

query I rowsort
SELECT ALL - col0 * - col2 + - col1 AS col2 FROM tab1
----
136
3638
7667

query I rowsort
SELECT DISTINCT + 61 FROM tab2 cor0
----
61

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5817
SELECT + - CAST( col2 AS SIGNED ) + + col1 * col0 FROM tab1 AS cor0
----
24
583
944

skipif mysql # not compatible
query I rowsort label-5817
SELECT + - CAST ( col2 AS INTEGER ) + + col1 * col0 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT ALL - 38 * col2 FROM tab0 AS cor0
----
-1254
-3116
-38

query I rowsort
SELECT + ( 62 ) + - col2 FROM tab1 AS cor0
----
-34
5
8

query I rowsort
SELECT + col0 + - col2 * cor0.col1 * ( - col0 ) FROM tab0 AS cor0
----
3430
664207
68136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col2 ) * + col1 col2 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT + 7 * + col1 + col2 AS col1 FROM tab0 AS cor0
----
635
680
719

onlyif mysql # use DIV operator for integer division
query I rowsort label-5823
SELECT + + ( col2 ) * - col0 + 22 DIV col1 FROM tab0 AS cor0
----
-35
-7298
-792

skipif mysql # not compatible
query I rowsort label-5823
SELECT + + ( col2 ) * - col0 + 22 / col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL + cor0.col2 * col0 + - col0 AS col1 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT cor0.col2 * + col1 + col2 * col1 AS col1 FROM tab1 cor0
----
1140
2496
2808

query I rowsort
SELECT DISTINCT col1 - 73 * col0 AS col2 FROM tab1 AS cor0
----
-193
-4662
-5827

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5827
SELECT - + CAST( NULL AS SIGNED ) / - col1 + - cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5827
SELECT - + CAST ( NULL AS INTEGER ) / - col1 + - cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 33 col2 FROM tab1
----
33
33
33

query I rowsort
SELECT - col1 * cor0.col2 + - col2 * - col0 FROM tab0 AS cor0
----
-164
-2046
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-5830
SELECT col1 DIV 2 + col2 AS col2 FROM tab2 AS cor0
----
42
46
55

skipif mysql # not compatible
query I rowsort label-5830
SELECT col1 / 2 + col2 AS col2 FROM tab2 AS cor0
----
42
46
55

query I rowsort
SELECT ALL - col0 - col1 AS col1 FROM tab0
----
-110
-132
-180

query I rowsort
SELECT DISTINCT 62 * col1 - + tab0.col2 AS col0 FROM tab0
----
5299
5560
6013

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab0.col0 col1 FROM tab0, tab1, tab2 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL + 68 * - col2 FROM tab1
----
-3672
-3876
-6528

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * col1 * col2 col0 FROM tab0 AS cor0
----
244068
679042
9409

query I rowsort
SELECT DISTINCT col1 * - col0 * tab1.col2 AS col2 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT ALL - col1 + - 44 * tab1.col1 FROM tab1
----
-1170
-450
-585

query I rowsort
SELECT - cor0.col1 * - col1 + + col0 AS col2 FROM tab1 AS cor0
----
164
249
679

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5839
SELECT - col1 / - CAST( NULL AS DECIMAL ) + col0 * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5839
SELECT - col1 / - CAST ( NULL AS REAL ) + col0 * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + tab2.col0 + + ( col2 * col1 ) AS col1 FROM tab2
----
1612
725
844

query I rowsort
SELECT ALL - - col1 * col2 * - col0 AS col1 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT ALL - col1 * cor0.col0 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT - col2 * + 22 FROM tab2 AS cor0
----
-572
-594
-836

query I rowsort
SELECT - + col0 + + 61 * - col1 - + col1 * 43 * - 19 FROM tab0 AS cor0
----
64992
68707
73297

onlyif mysql # use DIV operator for integer division
query I rowsort label-5845
SELECT ALL - col2 + + 34 DIV + col2 AS col1 FROM tab0 cor0
----
-32
-82
33

skipif mysql # not compatible
query I rowsort label-5845
SELECT ALL - col2 + + 34 / + col2 AS col1 FROM tab0 cor0
----
-32
-82
33

query I rowsort
SELECT DISTINCT - - col1 - col2 AS col1 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT col2 * - col2 * + col1 + col0 * col0 FROM tab0 AS cor0
----
-603963
-93078
1128

query I rowsort
SELECT ALL + col2 * 7 FROM tab1 AS cor0
----
378
399
672

query I rowsort
SELECT + cor0.col0 * 85 FROM tab2 AS cor0
----
595
6630
6715

query I rowsort
SELECT ALL col1 * cor0.col1 * 90 FROM tab0 AS cor0
----
665640
745290
846810

query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5852
SELECT ( 5 ) DIV col2 FROM tab0 AS cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-5852
SELECT ( 5 ) / col2 FROM tab0 AS cor0
----
0
0
5

query I rowsort
SELECT ALL - 22 AS col1 FROM tab2
----
-22
-22
-22

query I rowsort
SELECT ALL + cor1.col0 + + 13 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to bbc411e0f76a7f50d36727944af278a3

query I rowsort
SELECT DISTINCT + col1 * 94 AS col2 FROM tab2 AS cor0
----
1598
2914
5546

query I rowsort
SELECT ALL - cor0.col2 * col0 * col2 + + ( + col1 ) * col1 AS col2 FROM tab2 AS cor0
----
-113787
-4142
-49247

query I rowsort
SELECT ALL 18 * 2 AS col1 FROM tab2 AS cor0
----
36
36
36

query I rowsort
SELECT + + col1 * 62 AS col0 FROM tab1 AS cor0
----
1612
620
806

query I rowsort
SELECT - col0 + 94 AS col2 FROM tab2 AS cor0
----
15
16
87

query I rowsort
SELECT ALL - + col2 * 38 + - cor0.col0 + col1 FROM tab2 AS cor0
----
-1002
-1007
-1506

query I rowsort
SELECT DISTINCT - 1 + - col1 AS col2 FROM tab2 AS cor0
----
-18
-32
-60

query I rowsort
SELECT ALL + col2 * 95 FROM tab0 AS cor0
----
3135
7790
95

query I rowsort
SELECT ALL - cor0.col1 * col0 + cor0.col1 AS col2 FROM tab0 AS cor0
----
-1978
-3298
-8008

onlyif mysql # use DIV operator for integer division
query I rowsort label-5864
SELECT DISTINCT - col2 * - col0 DIV ( + col0 ) col2 FROM tab0 cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5864
SELECT DISTINCT - col2 * - col0 / ( + col0 ) col2 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT 46 * col2 FROM tab2 cor0
----
1196
1242
1748

onlyif mysql # use DIV operator for integer division
query I rowsort label-5866
SELECT DISTINCT + + col2 DIV - col0 AS col0 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-5866
SELECT DISTINCT + + col2 / - col0 AS col0 FROM tab0 AS cor0
----
-1
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5867
SELECT ALL + + col0 DIV - col1 - ( - cor0.col2 + + cor0.col1 ) DIV - 79 col2 FROM tab0 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5867
SELECT ALL + + col0 / - col1 - ( - cor0.col2 + + cor0.col1 ) / - 79 col2 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT ALL - ( col0 ) + col2 + - col2 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT - col1 * + col1 * 60 FROM tab1 AS cor0
----
-10140
-40560
-6000

query I rowsort
SELECT DISTINCT + ( col1 ) + - col1 * + ( col1 ) AS col2 FROM tab2 AS cor0
----
-272
-3422
-930

query I rowsort
SELECT col2 + col2 * + col0 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT - + col1 * + cor0.col1 + col0 FROM tab2 AS cor0
----
-210
-3403
-954

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 97 + - col1 col1 FROM tab1 AS cor0
----
71
84
87

query I rowsort
SELECT - + cor0.col1 * col2 * - col0 AS col1 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT - ( + ( col0 ) ) FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT ALL + 36 + + 57 FROM tab0 AS cor0
----
93
93
93

query I rowsort
SELECT - col1 * ( col1 ) AS col2 FROM tab0 cor0
----
-7396
-8281
-9409

query I rowsort
SELECT + 55 + 94 * cor0.col2 FROM tab1 AS cor0
----
5131
5413
9079

query I rowsort
SELECT - 86 + col2 AS col1 FROM tab1 AS cor0
----
-29
-32
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + ( col2 ) * - col0 col1 FROM tab0
----
-706
-7207
62

query I rowsort
SELECT - 12 + + tab0.col2 FROM tab0, tab2 AS cor0
----
9 values hashing to b3a2fe475e273fe2acec6c2ea9bb8da5

query I rowsort
SELECT 30 * col2 + col2 AS col2 FROM tab2
----
1178
806
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-5883
SELECT DISTINCT - col0 * cor0.col2 DIV - col2 AS col2 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-5883
SELECT DISTINCT - col0 * cor0.col2 / - col2 AS col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL 43 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4

query I rowsort
SELECT DISTINCT 80 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
80

query I rowsort
SELECT DISTINCT tab2.col2 * + col1 FROM tab2
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 0 * + ( - col2 ) col2 FROM tab2
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5888
SELECT - col2 + + CAST( - 95 AS SIGNED ) + + col0 * + col0 FROM tab2 AS cor0
----
-73
5963
6108

skipif mysql # not compatible
query I rowsort label-5888
SELECT - col2 + + CAST ( - 95 AS INTEGER ) + + col0 * + col0 FROM tab2 AS cor0
----
-73
5963
6108

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5889
SELECT + cor0.col2 * CAST( NULL AS SIGNED ) * cor0.col2 + + col0 + - ( 38 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5889
SELECT + cor0.col2 * CAST ( NULL AS INTEGER ) * cor0.col2 + + col0 + - ( 38 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5890
SELECT DISTINCT CAST( NULL AS SIGNED ) + cor0.col1 FROM tab2, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5890
SELECT DISTINCT CAST ( NULL AS INTEGER ) + cor0.col1 FROM tab2, tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT cor0.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
26
27
38

query I rowsort
SELECT cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT ALL + col2 + col0 * col0 * col2 FROM tab0
----
1226
19041
649604

query I rowsort
SELECT DISTINCT - cor1.col2 FROM tab1, tab1 AS cor0, tab2 AS cor1, tab0 cor2
----
-26
-27
-38

query I rowsort
SELECT - + 56 * - cor0.col2 * cor0.col1 AS col1 FROM tab0 AS cor0
----
158928
417872
5432

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col0 AS REAL ) * col0 * col1 + 59 FROM tab1
----
-175
-40901
-83141

query I rowsort
SELECT 85 * ( col0 ) FROM tab2 AS cor0
----
595
6630
6715

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 col1 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT - ( - col1 ) * col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - ( 26 ) AS col2 FROM tab0 AS cor0
----
-26
-26
-26

query I rowsort
SELECT + col2 + 53 FROM tab0 AS cor0
----
135
54
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-5902
SELECT + col2 + + 95 * + 66 * - col2 + CAST( - 36 AS SIGNED ) DIV + col1 AS col2 FROM tab0 AS cor0
----
-206877
-514058
-6269

skipif mysql # not compatible
query I rowsort label-5902
SELECT + col2 + + 95 * + 66 * - col2 + CAST ( - 36 AS INTEGER ) / + col1 AS col2 FROM tab0 AS cor0
----
-206877
-514058
-6269

query I rowsort
SELECT cor0.col1 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT + col1 * - ( + cor0.col0 ) AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT col2 * ( col0 + - col0 ) AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - col2 + - ( + ( col1 ) ) FROM tab1 AS cor0
----
-109
-67
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-5907
SELECT + cor0.col1 DIV 12 + 90 FROM tab2, tab0 AS cor0
----
9 values hashing to c7bcf26c02b7918a0ebea557dea26f2c

skipif mysql # not compatible
query I rowsort label-5907
SELECT + cor0.col1 / 12 + 90 FROM tab2, tab0 AS cor0
----
9 values hashing to c7bcf26c02b7918a0ebea557dea26f2c

query I rowsort
SELECT 97 + - col2 FROM tab0
----
15
64
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5909
SELECT DISTINCT col1 * + col1 DIV col1 AS col0 FROM tab2
----
17
31
59

skipif mysql # not compatible
query I rowsort label-5909
SELECT DISTINCT col1 * + col1 / col1 AS col0 FROM tab2
----
17
31
59

query I rowsort
SELECT DISTINCT + 9 * - col1 AS col2 FROM tab1
----
-117
-234
-90

query I rowsort
SELECT ALL - col2 * - col1 + col2 AS col1 FROM tab2 AS cor0
----
1560
684
864

skipif mysql # not compatible
query I rowsort
SELECT ALL col0 + CAST ( + col2 AS REAL ) AS col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT + col1 + 13 AS col1 FROM tab1
----
23
26
39

query I rowsort
SELECT ALL + - col2 + ( col2 ) FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 + + col2 * + col1 AS col1 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT - - col2 + col2 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT ALL + col0 * 9 FROM tab2
----
63
702
711

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 62 col0 FROM tab0 AS cor0
----
62
62
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-5919
SELECT DISTINCT - col2 DIV 60 + - col0 col2 FROM tab2 cor0
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5919
SELECT DISTINCT - col2 / 60 + - col0 col2 FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT + - ( + col2 ) FROM tab2 AS cor0
----
-26
-27
-38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5921
SELECT ALL - - CAST( NULL AS SIGNED ) + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5921
SELECT ALL - - CAST ( NULL AS INTEGER ) + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 84 * - ( + col1 ) FROM tab2 AS cor0
----
-1428
-2604
-4956

query I rowsort
SELECT ALL 73 + col0 * - col2 AS col2 FROM tab1 AS cor0
----
-3575
-7607
-89

query I rowsort
SELECT col1 - + 46 FROM tab2
----
-15
-29
13

query I rowsort
SELECT ALL tab1.col2 * 52 + 88 AS col0 FROM tab1
----
2896
3052
5080

query I rowsort
SELECT DISTINCT + col0 * 69 + col0 FROM tab0
----
1680
2450
6230

query I rowsort
SELECT - tab1.col1 - 13 AS col1 FROM tab1
----
-23
-26
-39

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5928
SELECT col2 + 62 / 58 - + col1 / CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5928
SELECT col2 + 62 / 58 - + col1 / CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5929
SELECT DISTINCT - 31 + - col1 DIV - 24 FROM tab1 AS cor0
----
-30
-31

skipif mysql # not compatible
query I rowsort label-5929
SELECT DISTINCT - 31 + - col1 / - 24 FROM tab1 AS cor0
----
-30
-31

query I rowsort
SELECT DISTINCT + - col0 + col2 + + 34 * 83 FROM tab0 AS cor0
----
2788
2815
2831

onlyif mysql # use DIV operator for integer division
query I rowsort label-5931
SELECT ALL - col2 - - col2 DIV + col2 col1 FROM tab1 AS cor0
----
-53
-56
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5931
SELECT ALL - col2 - - col2 / + col2 col1 FROM tab1 AS cor0
----
-53
-56
-95

query I rowsort
SELECT DISTINCT 89 AS col1 FROM tab1
----
89

query I rowsort
SELECT DISTINCT 69 + cor0.col2 FROM tab1 AS cor0
----
123
126
165

query I rowsort
SELECT - 54 * + col2 AS col1 FROM tab1 AS cor0
----
-2916
-3078
-5184

query I rowsort
SELECT ALL col2 * - cor0.col1 + + 17 + ( + col1 ) AS col1 FROM tab0 AS cor0
----
-2735
-7354
17

query I rowsort
SELECT ALL - - col0 * col2 * col1 FROM tab0 AS cor0
----
3395
664118
68112

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5937
SELECT 31 + ( col0 ) * CAST( - col1 AS SIGNED ) AS col1 FROM tab0
----
-2033
-3364
-8068

skipif mysql # not compatible
query I rowsort label-5937
SELECT 31 + ( col0 ) * CAST ( - col1 AS INTEGER ) AS col1 FROM tab0
----
-2033
-3364
-8068

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col1 * - 98 col1 FROM tab2
----
-1666
-3038
-5782

query I rowsort
SELECT ALL + cor0.col0 - 24 FROM tab1, tab2 AS cor0
----
9 values hashing to 1928c4d25d6988e897bab1efa11d0f0c

query I rowsort
SELECT + cor0.col0 * col1 - + cor0.col2 * col1 FROM tab0 AS cor0
----
-774
3298
637

onlyif mysql # use DIV operator for integer division
query I rowsort label-5941
SELECT col1 * col1 DIV col2 + - cor0.col2 col1 FROM tab1 AS cor0
----
-42
-56
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5941
SELECT col1 * col1 / col2 + - cor0.col2 col1 FROM tab1 AS cor0
----
-42
-56
-95

query I rowsort
SELECT - 67 + + col0 FROM tab2 cor0
----
-60
11
12

query I rowsort
SELECT - 2 + - col1 FROM tab0 AS cor0
----
-88
-93
-99

query I rowsort
SELECT ALL - ( col1 ) * - 81 AS col0 FROM tab0 AS cor0
----
6966
7371
7857

onlyif mysql # use DIV operator for integer division
query I rowsort label-5945
SELECT DISTINCT + col2 DIV - cor0.col2 + + col0 + + col0 AS col2 FROM tab0 AS cor0
----
177
47
69

skipif mysql # not compatible
query I rowsort label-5945
SELECT DISTINCT + col2 / - cor0.col2 + + col0 + + col0 AS col2 FROM tab0 AS cor0
----
177
47
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + col0 ) + col0 * + col2 col1 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT ALL ( - cor1.col0 ) FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT DISTINCT - - ( + col1 ) + + ( cor0.col2 ) * + cor0.col1 AS col2 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT + col1 - - col0 AS col2 FROM tab0
----
110
132
180

query I rowsort
SELECT - cor1.col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT + 39 * col0 FROM tab1 AS cor0
----
117
2496
3120

onlyif mysql # use DIV operator for integer division
query I rowsort label-5952
SELECT ALL - tab0.col0 DIV col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5952
SELECT ALL - tab0.col0 / col0 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT ALL 99 AS col1 FROM tab2
----
99
99
99

query I rowsort
SELECT ALL + + 53 + + col0 FROM tab0 AS cor0
----
142
77
88

query I rowsort
SELECT ALL tab2.col0 * col1 FROM tab2
----
1343
217
4602

query I rowsort
SELECT - col0 * - col1 * tab2.col0 FROM tab2
----
106097
1519
358956

onlyif mysql # use DIV operator for integer division
query I rowsort label-5957
SELECT ALL col0 DIV + col0 - col2 FROM tab0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-5957
SELECT ALL col0 / + col0 - col2 FROM tab0
----
-32
-81
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col1 * - col2 col0 FROM tab0
----
-2805
-7380
-96

query I rowsort
SELECT - col2 + + col1 * - tab2.col0 FROM tab2
----
-1381
-244
-4628

query I rowsort
SELECT col1 - col0 AS col0 FROM tab0
----
2
62
62

query I rowsort
SELECT tab1.col1 FROM tab1 WHERE col0 + col0 / col0 IN ( - tab1.col2 )
----

query I rowsort
SELECT DISTINCT col1 * col0 * tab1.col0 FROM tab1
----
234
40960
83200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col2 col1 FROM tab0 WHERE ( NULL ) NOT IN ( col2 )
----

query I rowsort
SELECT col2 * + col0 + + col0 FROM tab2
----
196
2106
3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-5965
SELECT - col2 DIV - tab0.col0 AS col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5965
SELECT - col2 / - tab0.col0 AS col1 FROM tab0
----
0
0
1

query III rowsort
SELECT * FROM tab0 WHERE ( col2 / col2 + - col0 ) IN ( + tab0.col2 )
----

query I rowsort
SELECT + col0 * - col1 - col1 AS col0 FROM tab1
----
-104
-1053
-650

query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE NULL IN ( col1 )
----

query I rowsort
SELECT col0 * - col1 + col2 * col1 FROM tab2
----
-3068
-697
620

query I rowsort
SELECT + col0 - col1 * - tab1.col1 FROM tab1
----
164
249
679

query I rowsort
SELECT DISTINCT + tab2.col0 * - tab2.col0 + col1 * col1 + col2 * col1 AS col0 FROM tab2 WHERE NOT NULL = NULL
----

query I rowsort
SELECT ALL col2 * - col1 + + tab0.col1 FROM tab0
----
-2752
-7371
0

query I rowsort
SELECT DISTINCT + 11 * col2 AS col1 FROM tab2
----
286
297
418

query I rowsort
SELECT ALL + col1 * cor0.col2 FROM tab2 cor0
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 94 * - col2 + col0 + + cor0.col1 col1 FROM tab0 AS cor0
----
-2992
-7528
38

query I rowsort
SELECT + cor0.col1 * + cor0.col0 + - col1 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
1210
1482
2288

query I rowsort
SELECT + 87 * + cor0.col1 FROM tab2 AS cor0
----
1479
2697
5133

query I rowsort
SELECT - + 51 * + cor0.col0 * col2 AS col0 FROM tab1 AS cor0
----
-186048
-391680
-8262

query I rowsort
SELECT col0 * - col0 + col0 FROM tab1 cor0
----
-4032
-6
-6320

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5980
SELECT - + 60 * + col0 + + CAST( - col1 AS SIGNED ) FROM tab0 AS cor0
----
-1526
-2197
-5431

skipif mysql # not compatible
query I rowsort label-5980
SELECT - + 60 * + col0 + + CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
-1526
-2197
-5431

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( - 12 AS REAL ) AS col0 FROM tab2, tab0 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to 60b4654b2477631ac8f4a95ec4a22fd3

query I rowsort
SELECT ALL - + col1 * col1 * - col0 FROM tab1 AS cor0
----
13520
2028
6400

onlyif mysql # use DIV operator for integer division
query I rowsort label-5983
SELECT DISTINCT + - col2 DIV 85 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5983
SELECT DISTINCT + - col2 / 85 FROM tab2 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5984
SELECT ALL col0 DIV 81 AS col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5984
SELECT ALL col0 / 81 AS col0 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT col0 * 46 AS col2 FROM tab1 AS cor0
----
138
2944
3680

query I rowsort
SELECT DISTINCT - + col2 * col0 * col2 AS col0 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT + - col1 - 18 * cor0.col2 FROM tab0 AS cor0
----
-115
-1567
-680

query I rowsort
SELECT DISTINCT - + col2 + + 59 AS col0 FROM tab1 AS cor0
----
-37
2
5

query I rowsort
SELECT col1 * 47 AS col0 FROM tab0 AS cor0
----
4042
4277
4559

query I rowsort
SELECT ALL + - col1 + cor0.col1 AS col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT - - cor0.col1 * - 87 FROM tab2 AS cor0
----
-1479
-2697
-5133

query I rowsort
SELECT cor0.col0 * + 62 * + col2 AS col2 FROM tab2 AS cor0
----
11718
125736
186124

query I rowsort
SELECT - 5 FROM tab2, tab0 cor0
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

query I rowsort
SELECT DISTINCT col0 + 50 + - col1 * + col0 AS col0 FROM tab0
----
-1990
-3310
-7960

query I rowsort
SELECT - - col2 + 46 * - col2 AS col0 FROM tab1 AS cor0
----
-2430
-2565
-4320

query I rowsort
SELECT 28 + - col0 * col1 FROM tab1 AS cor0
----
-1012
-50
-612

query I rowsort
SELECT DISTINCT - - col1 + - cor0.col2 AS col2 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT ALL - + cor0.col1 + cor0.col2 AS col0 FROM tab1 AS cor0
----
28
47
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-5999
SELECT - 11 + col1 + col1 * col2 DIV - col2 FROM tab0 AS cor0
----
-11
-11
-11

skipif mysql # not compatible
query I rowsort label-5999
SELECT - 11 + col1 + col1 * col2 / - col2 FROM tab0 AS cor0
----
-11
-11
-11

onlyif mysql # use DIV operator for integer division
query I rowsort label-6000
SELECT + - cor0.col1 DIV col1 + - col2 * col2 AS col0 FROM tab1 AS cor0
----
-2917
-3250
-9217

skipif mysql # not compatible
query I rowsort label-6000
SELECT + - cor0.col1 / col1 + - col2 * col2 AS col0 FROM tab1 AS cor0
----
-2917
-3250
-9217

query I rowsort
SELECT ALL - 4 AS col1 FROM tab2 AS cor0
----
-4
-4
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 7 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT - ( - ( col1 ) ) * + col2 FROM tab0
----
2838
7462
97

query I rowsort
SELECT 8 * + col2 AS col0 FROM tab2 AS cor0
----
208
216
304

query I rowsort
SELECT + ( col0 ) * col0 + + col2 AS col0 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT DISTINCT - ( col0 ) + - col2 * col0 FROM tab0 AS cor0
----
-70
-7387
-816

query I rowsort
SELECT + ( col1 ) * + col0 AS col2 FROM tab1
----
1040
640
78

query I rowsort
SELECT DISTINCT 85 FROM tab2, tab2 AS cor0
----
85

query I rowsort
SELECT DISTINCT 83 AS col1 FROM tab2, tab0 AS cor0
----
83

query I rowsort
SELECT - + cor1.col1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

query I rowsort
SELECT + - 57 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

query I rowsort
SELECT DISTINCT 60 AS col2 FROM tab2, tab1 AS cor0
----
60

query I rowsort
SELECT col0 + 27 AS col1 FROM tab1
----
107
30
91

query I rowsort
SELECT ALL 0 * - col2 * col1 - + col0 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT + col2 * + 13 + + col0 FROM tab1 cor0
----
1328
705
805

query I rowsort
SELECT ALL col2 - - col2 * - col2 * - col0 FROM tab0
----
26169
36
598518

onlyif mysql # use DIV operator for integer division
query I rowsort label-6017
SELECT ALL + 46 - col2 DIV col0 FROM tab1
----
28
45
46

skipif mysql # not compatible
query I rowsort label-6017
SELECT ALL + 46 - col2 / col0 FROM tab1
----
28
45
46

onlyif mysql # use DIV operator for integer division
query I rowsort label-6018
SELECT - - col2 * col1 DIV - col0 - - col2 FROM tab0 cor0
----
-1
-1
-85

skipif mysql # not compatible
query I rowsort label-6018
SELECT - - col2 * col1 / - col0 - - col2 FROM tab0 cor0
----
-1
-1
-85

query I rowsort
SELECT col2 - + col1 * col0 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT col2 + - col2 + col2 AS col1 FROM tab1
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6021
SELECT + col0 + col2 DIV + col1 - col1 * + tab1.col1 AS col2 FROM tab1
----
-31
-671
-82

skipif mysql # not compatible
query I rowsort label-6021
SELECT + col0 + col2 / + col1 - col1 * + tab1.col1 AS col2 FROM tab1
----
-31
-671
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-6022
SELECT DISTINCT - tab0.col2 DIV col1 - tab0.col1 AS col2 FROM tab0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-6022
SELECT DISTINCT - tab0.col2 / col1 - tab0.col1 AS col2 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT + col1 + + col1 * + col1 FROM tab1
----
110
182
702

onlyif mysql # use DIV operator for integer division
query I rowsort label-6024
SELECT DISTINCT + cor0.col2 DIV col0 FROM tab2 cor0
----
0
3

skipif mysql # not compatible
query I rowsort label-6024
SELECT DISTINCT + cor0.col2 / col0 FROM tab2 cor0
----
0
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 NOT BETWEEN NULL AND col2 / col1 - - col1
----

query I rowsort
SELECT DISTINCT + col1 - + col0 AS col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT - col0 * + col2 - + cor0.col0 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT - col0 + cor0.col1 / col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 AND NULL
----

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE + col1 IN ( + col2 * tab1.col2 / col1 + col1 + + col2 * col0 )
----

query I rowsort
SELECT DISTINCT cor0.col2 - col2 AS col0 FROM tab2 cor0
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 NOT BETWEEN - cor0.col0 AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6032
SELECT ALL - col0 * col2 DIV + col2 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-6032
SELECT ALL - col0 * col2 / + col2 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT - + cor0.col2 + col1 * col0 FROM tab0 AS cor0
----
2031
3394
8017

onlyif mysql # use DIV operator for integer division
query I rowsort label-6034
SELECT - col0 + - tab0.col1 DIV col2 FROM tab0
----
-132
-26
-90

skipif mysql # not compatible
query I rowsort label-6034
SELECT - col0 + - tab0.col1 / col2 FROM tab0
----
-132
-26
-90

query I rowsort
SELECT ALL + + col2 * + col0 + - col1 * - col1 AS col2 FROM tab0 AS cor0
----
15579
8188
9444

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * cor0.col0 + + col1 col1 FROM tab0 AS cor0
----
132
7389
878

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + cor0.col2 + col0 col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT - cor0.col1 * col0 + - col0 AS col2 FROM tab1 AS cor0
----
-1120
-704
-81

query I rowsort
SELECT DISTINCT - - cor0.col2 * - col2 AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * col1 - - col0 col1 FROM tab1 AS cor0
----
164
249
679

onlyif mysql # use DIV operator for integer division
query I rowsort label-6041
SELECT - col2 DIV col2 - + col0 * col0 AS col2 FROM tab1
----
-10
-4097
-6401

skipif mysql # not compatible
query I rowsort label-6041
SELECT - col2 / col2 - + col0 * col0 AS col2 FROM tab1
----
-10
-4097
-6401

query I rowsort
SELECT col0 - - tab0.col1 * - col2 * - col2 FROM tab0
----
132
611973
93678

query I rowsort
SELECT - tab2.col1 * col0 + - col1 AS col0 FROM tab2
----
-1360
-248
-4661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 * ( col1 ) col0 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT - col1 + 4 FROM tab0
----
-82
-87
-93

query I rowsort
SELECT tab1.col2 * + 64 AS col1 FROM tab1
----
3456
3648
6144

onlyif mysql # use DIV operator for integer division
query I rowsort label-6047
SELECT - col2 + + ( col0 ) * col1 DIV col0 FROM tab0 cor0
----
53
9
96

skipif mysql # not compatible
query I rowsort label-6047
SELECT - col2 + + ( col0 ) * col1 / col0 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT - col0 * 58 FROM tab0 AS cor0
----
-1392
-2030
-5162

query I rowsort
SELECT DISTINCT + cor0.col2 * - ( col1 ) + col2 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT - + 31 AS col1 FROM tab0 AS cor0
----
-31
-31
-31

query I rowsort
SELECT - 71 + - col2 FROM tab2 cor0
----
-109
-97
-98

query I rowsort
SELECT ALL ( + 74 ) * cor0.col1 AS col0 FROM tab2 cor0
----
1258
2294
4366

query I rowsort
SELECT - 75 + col1 AS col1 FROM tab0 AS cor0
----
11
16
22

onlyif mysql # use DIV operator for integer division
query I rowsort label-6054
SELECT ALL - ( - col0 ) DIV col0 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6054
SELECT ALL - ( - col0 ) / col0 AS col1 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6055
SELECT ( - col1 ) * + col2 + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6055
SELECT ( - col1 ) * + col2 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + ( - 53 ) AS col1 FROM tab2
----
-112
-70
-84

onlyif mysql # use DIV operator for integer division
query I rowsort label-6057
SELECT col1 DIV + col1 + 15 FROM tab1
----
16
16
16

skipif mysql # not compatible
query I rowsort label-6057
SELECT col1 / + col1 + 15 FROM tab1
----
16
16
16

onlyif mysql # use DIV operator for integer division
query I rowsort label-6058
SELECT DISTINCT + col0 + col1 DIV 66 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-6058
SELECT DISTINCT + col0 + col1 / 66 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT + 57 * col1 + - col1 FROM tab2 AS cor0
----
1736
3304
952

query I rowsort
SELECT DISTINCT - 39 + cor0.col2 AS col2 FROM tab1 AS cor0
----
15
18
57

query I rowsort
SELECT + 12 * - col0 + - col1 AS col0 FROM tab2 AS cor0
----
-115
-965
-995

query I rowsort
SELECT - col0 * cor0.col1 + col2 FROM tab1 AS cor0
----
-24
-583
-944

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6063
SELECT col0 + - col2 - + CAST( - 63 + col2 AS SIGNED ) * 5 col0 FROM tab2 AS cor0
----
160
166
237

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6063
SELECT col0 + - col2 - + CAST ( - 63 + col2 AS INTEGER ) * 5 col0 FROM tab2 AS cor0
----
160
166
237

query I rowsort
SELECT ALL 2 * col2 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT DISTINCT + cor0.col2 * col1 + - col2 + + 23 * + col0 AS col1 FROM tab1 AS cor0
----
1419
1985
2992

query I rowsort
SELECT DISTINCT 15 - col0 FROM tab0
----
-20
-74
-9

query I rowsort
SELECT ALL + 72 - + col2 * col1 AS col0 FROM tab2
----
-1462
-574
-765

onlyif mysql # use DIV operator for integer division
query I rowsort label-6068
SELECT ALL - col2 DIV col1 + - CAST( col0 AS SIGNED ) FROM tab2 cor0
----
-7
-78
-81

skipif mysql # not compatible
query I rowsort label-6068
SELECT ALL - col2 / col1 + - CAST ( col0 AS INTEGER ) FROM tab2 cor0
----
-7
-78
-81

query I rowsort
SELECT DISTINCT + - 38 + col1 + + col2 * + col2 FROM tab1 AS cor0
----
2904
3221
9191

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6070
SELECT - CAST( 81 AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

skipif mysql # not compatible
query I rowsort label-6070
SELECT - CAST ( 81 AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

query I rowsort
SELECT ALL - tab0.col0 * - col0 + - col1 + col1 * + col1 FROM tab0
----
10537
16111
7886

query I rowsort
SELECT 66 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

query I rowsort
SELECT DISTINCT - 17 * col2 + - col2 + + col0 FROM tab2 cor0
----
-390
-479
-605

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 99 + col1 col2 FROM tab2 AS cor0
----
116
130
158

query I rowsort
SELECT 45 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca

onlyif mysql # use DIV operator for integer division
query I rowsort label-6076
SELECT - - col0 * 0 DIV col0 - col1 * + ( 24 ) * col0 AS col0 FROM tab1 AS cor0
----
-15360
-1872
-24960

skipif mysql # not compatible
query I rowsort label-6076
SELECT - - col0 * 0 / col0 - col1 * + ( 24 ) * col0 AS col0 FROM tab1 AS cor0
----
-15360
-1872
-24960

query I rowsort
SELECT ALL 46 + + tab0.col2 AS col0 FROM tab0
----
128
47
79

query I rowsort
SELECT ALL col1 * tab1.col0 + col0 * col2 FROM tab1
----
240
4288
8720

query I rowsort
SELECT 81 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360

query I rowsort
SELECT - - col0 * - col2 + + ( col0 ) * - cor0.col1 FROM tab1 cor0
----
-240
-4288
-8720

onlyif mysql # use DIV operator for integer division
query I rowsort label-6081
SELECT col1 + col1 DIV + col2 AS col0 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-6081
SELECT col1 + col1 / + col2 AS col0 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT + col2 * - tab1.col2 * 53 + col2 AS col0 FROM tab1
----
-154494
-172140
-488352

query I rowsort
SELECT DISTINCT col2 + col1 * - 32 AS col0 FROM tab0
----
-2719
-2830
-3103

query I rowsort
SELECT DISTINCT + 13 * col1 AS col2 FROM tab0
----
1118
1183
1261

query I rowsort
SELECT DISTINCT - tab2.col2 * + col0 + - 84 FROM tab2
----
-2112
-273
-3086

query I rowsort
SELECT ALL + tab2.col2 * col1 + ( + 82 ) AS col2 FROM tab2
----
1616
728
919

query I rowsort
SELECT ALL col2 + - 40 AS col1 FROM tab1 AS cor0
----
14
17
56

onlyif mysql # use DIV operator for integer division
query I rowsort label-6088
SELECT DISTINCT col0 * + col0 DIV + cor0.col0 + - col0 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6088
SELECT DISTINCT col0 * + col0 / + cor0.col0 + - col0 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT 61 AS col0 FROM tab0, tab2 cor0 CROSS JOIN tab1
----
61

query I rowsort
SELECT ALL 21 FROM tab1, tab0 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT ALL - col1 + - ( col2 ) AS col2 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT DISTINCT 29 * col2 FROM tab0 AS cor0
----
2378
29
957

query I rowsort
SELECT + 50 * col2 * col1 AS col2 FROM tab1 AS cor0
----
28500
62400
70200

query I rowsort
SELECT ALL + - col0 * + cor0.col0 * col2 FROM tab1 AS cor0
----
-233472
-486
-614400

query I rowsort
SELECT + col0 * + col0 * + col1 AS col0 FROM tab0 AS cor0
----
118825
49536
720811

query I rowsort
SELECT - col0 * - 24 * col1 FROM tab1 AS cor0
----
15360
1872
24960

query I rowsort
SELECT 70 * col0 AS col0 FROM tab1 cor0
----
210
4480
5600

query I rowsort
SELECT DISTINCT + - col0 * - 11 FROM tab0 AS cor0
----
264
385
979

query I rowsort
SELECT DISTINCT - 7 * ( + col2 * col1 + 73 * + cor0.col2 ) AS col2 FROM tab0 cor0
----
-1190
-36729
-94136

query I rowsort
SELECT + 24 + - col0 FROM tab0 AS cor0
----
-11
-65
0

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - cor0.col1 * + col1 - CAST ( - cor0.col2 AS REAL ) AS col1 FROM tab1 AS cor0
----
-43
-622
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 + col0 * - 93 col0 FROM tab2 AS cor0
----
-620
-7195
-7330

onlyif mysql # use DIV operator for integer division
query I rowsort label-6103
SELECT DISTINCT + col0 - cor0.col0 DIV - 96 FROM tab0 cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-6103
SELECT DISTINCT + col0 - cor0.col0 / - 96 FROM tab0 cor0
----
24
35
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6104
SELECT ALL + - col0 * col2 + CAST( 78 + col0 AS SIGNED ) col2 FROM tab1 AS cor0
----
-3506
-7522
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6104
SELECT ALL + - col0 * col2 + CAST ( 78 + col0 AS INTEGER ) col2 FROM tab1 AS cor0
----
-3506
-7522
-81

query I rowsort
SELECT + 91 * 79 * + col1 - - col2 FROM tab1
----
186968
71947
93553

query I rowsort
SELECT col2 + + col2 * col2 AS col2 FROM tab2 cor0
----
1482
702
756

query I rowsort
SELECT cor0.col2 * + col2 + + col0 + cor0.col1 * col1 FROM tab0 AS cor0
----
15094
8509
9445

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * - col2 col1 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT col1 + - 19 - + col1 * - tab0.col2 AS col1 FROM tab0
----
175
2905
7534

onlyif mysql # use DIV operator for integer division
query I rowsort label-6110
SELECT + 88 + col2 DIV col1 FROM tab0 AS cor0
----
88
88
88

skipif mysql # not compatible
query I rowsort label-6110
SELECT + 88 + col2 / col1 FROM tab0 AS cor0
----
88
88
88

query I rowsort
SELECT + col0 * + col2 + col1 * + 40 FROM tab2 AS cor0
----
1429
3682
4388

query I rowsort
SELECT ALL 83 AS col1 FROM tab1 AS cor0
----
83
83
83

query I rowsort
SELECT DISTINCT - 67 + - col2 FROM tab0 AS cor0
----
-100
-149
-68

query I rowsort
SELECT + col0 * + col2 - - cor0.col2 FROM tab1 AS cor0
----
216
3705
7776

onlyif mysql # use DIV operator for integer division
query I rowsort label-6115
SELECT col1 + 67 DIV col2 + 76 AS col0 FROM tab0 AS cor0
----
164
167
240

skipif mysql # not compatible
query I rowsort label-6115
SELECT col1 + 67 / col2 + 76 AS col0 FROM tab0 AS cor0
----
164
167
240

query I rowsort
SELECT + + col2 * - 83 FROM tab1 AS cor0
----
-4482
-4731
-7968

onlyif mysql # use DIV operator for integer division
query I rowsort label-6117
SELECT + col0 * - cor0.col1 - col0 * 36 DIV 49 FROM tab2 AS cor0
----
-1401
-222
-4659

skipif mysql # not compatible
query I rowsort label-6117
SELECT + col0 * - cor0.col1 - col0 * 36 / 49 FROM tab2 AS cor0
----
-1401
-222
-4659

query I rowsort
SELECT + col0 * - col1 - + col0 AS col2 FROM tab1 AS cor0
----
-1120
-704
-81

onlyif mysql # use DIV operator for integer division
query I rowsort label-6119
SELECT DISTINCT + + 22 + + col0 DIV - col0 AS col0 FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-6119
SELECT DISTINCT + + 22 + + col0 / - col0 AS col0 FROM tab2 AS cor0
----
21

query I rowsort
SELECT ALL - ( - 24 ) * col0 FROM tab2 cor0
----
168
1872
1896

onlyif mysql # use DIV operator for integer division
query I rowsort label-6121
SELECT DISTINCT + + 3 DIV col2 col1 FROM tab0 AS cor0
----
0
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6121
SELECT DISTINCT + + 3 / col2 col1 FROM tab0 AS cor0
----
0
3

query I rowsort
SELECT DISTINCT - 46 * - col2 + col1 - + col0 FROM tab2
----
1177
1266
1686

query I rowsort
SELECT - col0 * - 47 AS col2 FROM tab2
----
329
3666
3713

query I rowsort
SELECT 14 * cor0.col0 + - cor0.col0 * cor0.col2 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 45c94a8de63ab304c7c1e6ac3578ab04

query I rowsort
SELECT + 95 * + col1 + - 16 AS col2 FROM tab0
----
8154
8629
9199

query I rowsort
SELECT DISTINCT - tab2.col1 * ( + 1 ) AS col0 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT DISTINCT + 68 AS col2 FROM tab1, tab0 AS cor0
----
68

query I rowsort
SELECT + + tab0.col1 FROM tab0, tab2 AS cor0, tab2, tab2 AS cor1
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( + cor0.col1 AS REAL ) AS col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT col1 * 42 AS col2 FROM tab1 AS cor0
----
1092
420
546

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab0 cor2
----
972 values hashing to 04d825fa29899c3ee2704c26a542267d

query I rowsort
SELECT + col1 + + 10 AS col0 FROM tab0
----
101
107
96

query I rowsort
SELECT col1 * ( ( col1 ) ) - ( + 21 ) FROM tab1
----
148
655
79

query I rowsort
SELECT DISTINCT - ( + ( + tab1.col2 ) ) FROM tab1, tab2 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT - 3 FROM tab1 AS cor0 CROSS JOIN tab1, tab0 cor1, tab0 AS cor2, tab2 cor3
----
-3

query I rowsort
SELECT ALL + - 29 * 91 * col2 + - col0 AS col0 FROM tab0 AS cor0
----
-216487
-2674
-87111

query I rowsort
SELECT DISTINCT col0 - - col1 * cor0.col0 AS col2 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT ALL - - 64 * + col0 + - col1 * + 54 AS col2 FROM tab1 AS cor0
----
-1212
3556
4418

query I rowsort
SELECT ALL - - ( + col2 ) * + col0 + - cor0.col0 * 56 AS col2 FROM tab0 AS cor0
----
-1925
-552
2314

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 + col2 + + col1 col0 FROM tab1 AS cor0
----
124
134
205

query I rowsort
SELECT DISTINCT + 36 - col1 * - col0 * cor0.col1 FROM tab1 AS cor0
----
13556
2064
6436

query I rowsort
SELECT DISTINCT + col1 + col1 * + col2 FROM tab1
----
1261
1430
580

query I rowsort
SELECT col0 * col0 - - 95 * 4 * - tab2.col1 FROM tab2
----
-11731
-16336
-219

onlyif mysql # use DIV operator for integer division
query I rowsort label-6144
SELECT DISTINCT - 64 DIV - col2 + + col0 FROM tab1
----
4
65
80

skipif mysql # not compatible
query I rowsort label-6144
SELECT DISTINCT - 64 / - col2 + + col0 FROM tab1
----
4
65
80

query I rowsort
SELECT - 14 * col1 AS col0 FROM tab0
----
-1204
-1274
-1358

query I rowsort
SELECT ALL col2 + col2 * + col0 AS col0 FROM tab1
----
216
3705
7776

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6147
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-6147
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT + - col1 + - col1 * 90 + col1 AS col0 FROM tab1 AS cor0
----
-1170
-2340
-900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 + - 82 col1 FROM tab1 AS cor0
----
-25
-28
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 * col0 col1 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6151
SELECT DISTINCT - col0 + CAST( cor0.col2 + + col2 AS SIGNED ) AS col1 FROM tab2 cor0
----
-26
-3
47

skipif mysql # not compatible
query I rowsort label-6151
SELECT DISTINCT - col0 + CAST ( cor0.col2 + + col2 AS INTEGER ) AS col1 FROM tab2 cor0
----
-26
-3
47

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6152
SELECT DISTINCT + cor0.col0 - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6152
SELECT DISTINCT + cor0.col0 - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6153
SELECT ALL col0 + + ( + col1 ) DIV col1 AS col0 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-6153
SELECT ALL col0 + + ( + col1 ) / col1 AS col0 FROM tab0 AS cor0
----
25
36
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 - - cor0.col0 col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6155
SELECT + col1 * - CAST( - col0 AS SIGNED ) col2 FROM tab0 AS cor0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6155
SELECT + col1 * - CAST ( - col0 AS INTEGER ) col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT - + cor0.col0 * col2 + + 95 FROM tab1 AS cor0
----
-3553
-67
-7585

query I rowsort
SELECT ALL 65 AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 1c9d0bf96cd3361942fadad668138b9c

query I rowsort
SELECT ALL col1 + + ( + col2 ) * col0 * - col1 FROM tab0 cor0
----
-3298
-664027
-68026

onlyif mysql # use DIV operator for integer division
query I rowsort label-6159
SELECT DISTINCT - col2 DIV ( cor0.col0 * - col0 ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6159
SELECT DISTINCT - col2 / ( cor0.col0 * - col0 ) AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + + col0 * 25 AS col1 FROM tab0 AS cor0
----
2225
600
875

query I rowsort
SELECT ALL + col1 + 2 * col0 AS col0 FROM tab1 AS cor0
----
138
173
32

query I rowsort
SELECT - col1 * - 67 FROM tab1 AS cor0
----
1742
670
871

query I rowsort
SELECT - - col0 + - col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL - + col2 * - 39 FROM tab1 cor0
----
2106
2223
3744

query I rowsort
SELECT + - col0 * + col0 + cor0.col1 FROM tab0 cor0
----
-1128
-490
-7830

query I rowsort
SELECT DISTINCT + cor0.col1 * - col2 + + col2 AS col2 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT ALL + + cor0.col1 * col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL - 4 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 39ed23475412c3cbba02ecdd2d7018e6

query I rowsort
SELECT + col2 * col0 * + col2 + - col1 AS col0 FROM tab0 AS cor0
----
-62
26050
598345

query I rowsort
SELECT ALL col2 * + col2 * col0 AS col1 FROM tab2
----
114076
5103
52728

onlyif mysql # use DIV operator for integer division
query I rowsort label-6171
SELECT - col1 + - col0 DIV - col2 FROM tab0
----
-62
-86
-90

skipif mysql # not compatible
query I rowsort label-6171
SELECT - col1 + - col0 / - col2 FROM tab0
----
-62
-86
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-6172
SELECT ALL col2 DIV ( ( - tab2.col0 ) ) AS col1 FROM tab2
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-6172
SELECT ALL col2 / ( ( - tab2.col0 ) ) AS col1 FROM tab2
----
-3
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6173
SELECT ALL - cor0.col0 DIV col1 FROM tab1 cor0
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-6173
SELECT ALL - cor0.col0 / col1 FROM tab1 cor0
----
-6
-6
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 83 col0 FROM tab1 AS cor0
----
-1079
-2158
-830

query I rowsort
SELECT ALL - - ( 3 ) + col0 AS col0 FROM tab2 AS cor0
----
10
81
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6176
SELECT DISTINCT + CAST( - ( col2 ) AS SIGNED ) FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-6176
SELECT DISTINCT + CAST ( - ( col2 ) AS INTEGER ) FROM tab0 AS cor0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-6177
SELECT - ( 69 ) + - col2 DIV 46 AS col1 FROM tab2 cor0
----
-69
-69
-69

skipif mysql # not compatible
query I rowsort label-6177
SELECT - ( 69 ) + - col2 / 46 AS col1 FROM tab2 cor0
----
-69
-69
-69

query I rowsort
SELECT - 54 - col1 FROM tab2 AS cor0
----
-113
-71
-85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6179
SELECT + CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-6179
SELECT + CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
26
27
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6180
SELECT CAST( - col2 AS SIGNED ) + - col2 FROM tab1 AS cor0
----
-108
-114
-192

skipif mysql # not compatible
query I rowsort label-6180
SELECT CAST ( - col2 AS INTEGER ) + - col2 FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT col2 * - 13 - col0 AS col1 FROM tab1 AS cor0
----
-1328
-705
-805

query I rowsort
SELECT + - 44 AS col2 FROM tab1 AS cor0
----
-44
-44
-44

query I rowsort
SELECT ALL col2 * cor0.col1 * - col0 AS col0 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT ALL - 11 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-33
-704
-880

query I rowsort
SELECT ( + col2 ) * col1 + + col1 - 39 FROM tab2 AS cor0
----
1554
624
829

query I rowsort
SELECT ALL + col2 * - 41 AS col1 FROM tab1 cor0
----
-2214
-2337
-3936

query I rowsort
SELECT DISTINCT + 14 * + col2 FROM tab2 AS cor0
----
364
378
532

query I rowsort
SELECT - - cor0.col2 + col1 * - col1 AS col0 FROM tab1 AS cor0
----
-43
-622
-73

query I rowsort
SELECT ALL - - ( ( col2 ) ) FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT col2 + col1 * - col0 AS col1 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT + col0 * - col0 * col2 - col0 AS col1 FROM tab1
----
-233536
-489
-614480

query I rowsort
SELECT ALL 16 FROM tab2, tab0 cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6193
SELECT DISTINCT - CAST( NULL AS SIGNED ) * cor0.col0 AS col2 FROM tab0, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6193
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * cor0.col0 AS col2 FROM tab0, tab0 AS cor0
----
NULL

query I rowsort
SELECT col1 * 26 + + 68 AS col1 FROM tab1
----
328
406
744

query I rowsort
SELECT + 84 - 80 AS col2 FROM tab2 AS cor0
----
4
4
4

query I rowsort
SELECT - + ( - col1 ) - - col0 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT DISTINCT + col0 * ( 28 ) AS col1 FROM tab1
----
1792
2240
84

query I rowsort
SELECT ( 29 ) * col1 AS col2 FROM tab1 AS cor0
----
290
377
754

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6199
SELECT tab1.col0 - - CAST( - 13 AS SIGNED ) AS col0 FROM tab1
----
-10
51
67

skipif mysql # not compatible
query I rowsort label-6199
SELECT tab1.col0 - - CAST ( - 13 AS INTEGER ) AS col0 FROM tab1
----
-10
51
67

query I rowsort
SELECT col2 * 52 AS col1 FROM tab0 AS cor0
----
1716
4264
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-6201
SELECT ALL tab0.col0 DIV col1 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6201
SELECT ALL tab0.col0 / col1 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT - ( - col2 ) AS col1 FROM tab1
----
54
57
96

query I rowsort
SELECT - 91 * - cor0.col2 FROM tab1 AS cor0
----
4914
5187
8736

query I rowsort
SELECT + + 2 * + 93 AS col2 FROM tab0 AS cor0
----
186
186
186

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 - - col1 col0 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT ALL + + cor0.col2 * col2 + - col0 * + ( + cor0.col1 ) AS col2 FROM tab1 AS cor0
----
2609
2838
8176

onlyif mysql # use DIV operator for integer division
query I rowsort label-6207
SELECT ALL col0 - col0 DIV - 49 AS col0 FROM tab1 AS cor0
----
3
65
81

skipif mysql # not compatible
query I rowsort label-6207
SELECT ALL col0 - col0 / - 49 AS col0 FROM tab1 AS cor0
----
3
65
81

query I rowsort
SELECT - 86 * col0 + ( + col2 ) * + col0 - ( 59 ) * col0 FROM tab2 cor0
----
-826
-8453
-9282

query I rowsort
SELECT DISTINCT + col1 * - 28 FROM tab2
----
-1652
-476
-868

query I rowsort
SELECT ALL ( - col0 + col1 ) * + col0 FROM tab1
----
-3456
-5360
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6212
SELECT + - col1 * CAST( col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-289
-3481
-961

skipif mysql # not compatible
query I rowsort label-6212
SELECT + - col1 * CAST ( col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-289
-3481
-961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 col1 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT + cor0.col0 + col2 * col2 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT + - col0 + ( col1 + - col1 ) AS col2 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT 74 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82

query I rowsort
SELECT DISTINCT - col2 + cor0.col2 FROM tab1 cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6218
SELECT - cor0.col1 + + CAST( - col1 AS SIGNED ) * cor0.col1 FROM tab0 AS cor0
----
-7482
-8372
-9506

skipif mysql # not compatible
query I rowsort label-6218
SELECT - cor0.col1 + + CAST ( - col1 AS INTEGER ) * cor0.col1 FROM tab0 AS cor0
----
-7482
-8372
-9506

query I rowsort
SELECT ALL + col0 + ( 56 ) FROM tab0 AS cor0
----
145
80
91

query I rowsort
SELECT - col0 * + 75 + - col2 * col2 FROM tab0 AS cor0
----
-13399
-2626
-2889

query I rowsort
SELECT 48 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query I rowsort
SELECT + 44 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b

query I rowsort
SELECT + 31 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336

query I rowsort
SELECT + ( tab2.col1 * col1 ) - - tab2.col0 FROM tab2
----
3559
368
968

query I rowsort
SELECT col0 * - tab2.col2 - ( - col1 ) AS col0 FROM tab2
----
-158
-1969
-2985

query I rowsort
SELECT - - col1 + - col1 * col1 FROM tab0 AS cor0
----
-7310
-8190
-9312

query I rowsort
SELECT - col1 * + ( col1 ) - col0 * col2 AS col1 FROM tab2 AS cor0
----
-1150
-3291
-5509

onlyif mysql # use DIV operator for integer division
query I rowsort label-6228
SELECT ALL + + col0 DIV 72 + - col0 FROM tab2 cor0
----
-7
-77
-78

skipif mysql # not compatible
query I rowsort label-6228
SELECT ALL + + col0 / 72 + - col0 FROM tab2 cor0
----
-7
-77
-78

query I rowsort
SELECT + cor0.col1 * ( + 18 ) AS col1 FROM tab0 AS cor0
----
1548
1638
1746

query I rowsort
SELECT - col2 + - col1 * cor0.col2 AS col1 FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT ALL - col1 * - ( col0 * col2 + - 35 ) AS col0 FROM tab2 AS cor0
----
117587
4774
50439

query I rowsort
SELECT ALL cor0.col0 * ( + cor0.col2 ) + + col2 + - ( col2 ) FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-6233
SELECT DISTINCT + col0 * ( - ( - col2 ) ) * - col1 - - cor0.col0 * col1 DIV col0 FROM tab2 AS cor0
----
-119593
-51017
-5828

skipif mysql # not compatible
query I rowsort label-6233
SELECT DISTINCT + col0 * ( - ( - col2 ) ) * - col1 - - cor0.col0 * col1 / col0 FROM tab2 AS cor0
----
-119593
-51017
-5828

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6234
SELECT DISTINCT col0 - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6234
SELECT DISTINCT col0 - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6235
SELECT DISTINCT - cor0.col0 + CAST( - 35 AS SIGNED ) + col1 FROM tab2 AS cor0
----
-11
-54
-97

skipif mysql # not compatible
query I rowsort label-6235
SELECT DISTINCT - cor0.col0 + CAST ( - 35 AS INTEGER ) + col1 FROM tab2 AS cor0
----
-11
-54
-97

query I rowsort
SELECT ALL - col2 + + ( + cor0.col2 ) + - col0 FROM tab1 AS cor0
----
-3
-64
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + + col1 * + col0 col1 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT ALL + + col2 * + 14 - col1 FROM tab0 AS cor0
----
-83
1057
376

onlyif mysql # use DIV operator for integer division
query I rowsort label-6239
SELECT + ( col0 ) * col2 * - col2 + 85 DIV - col2 AS col1 FROM tab0 AS cor0
----
-120
-26138
-598437

skipif mysql # not compatible
query I rowsort label-6239
SELECT + ( col0 ) * col2 * - col2 + 85 / - col2 AS col1 FROM tab0 AS cor0
----
-120
-26138
-598437

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6240
SELECT CAST( col1 AS SIGNED ) + tab2.col0 FROM tab2
----
137
38
96

skipif mysql # not compatible
query I rowsort label-6240
SELECT CAST ( col1 AS INTEGER ) + tab2.col0 FROM tab2
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6241
SELECT + ( - ( col0 ) ) DIV + col2 AS col0 FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-6241
SELECT + ( - ( col0 ) ) / + col2 AS col0 FROM tab0 AS cor0
----
-1
-35
0

query I rowsort
SELECT DISTINCT 51 * + ( + col2 + col1 ) * + col0 AS col1 FROM tab0 AS cor0
----
145656
174930
785247

query I rowsort
SELECT - cor0.col2 + 30 * - col1 + 98 FROM tab1 AS cor0
----
-259
-388
-736

query I rowsort
SELECT ALL 19 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
1558
19
627

query I rowsort
SELECT - 4 * col2 AS col2 FROM tab2 cor0
----
-104
-108
-152

query I rowsort
SELECT + col1 + ( - col0 ) * 51 + - col1 AS col0 FROM tab0 AS cor0
----
-1224
-1785
-4539

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( col0 AS REAL ) * col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ( - cor0.col0 ) FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT 6 + col2 + + col1 * 48 AS col2 FROM tab1 AS cor0
----
1308
543
726

query I rowsort
SELECT DISTINCT - 55 * col0 + - col1 AS col2 FROM tab1 AS cor0
----
-191
-3530
-4413

query I rowsort
SELECT 76 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to a8a6c4c5005303c62d4e50b6c96b584f

query I rowsort
SELECT DISTINCT - col0 - - col0 AS col2 FROM tab2 AS cor0
----
0

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 AS cor2
----
3645 values hashing to 731e4a6549b312ba21c2e61ca9bede27

query I rowsort
SELECT ALL col2 + - col2 AS col0 FROM tab0 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 + + col2 * ( + col0 ) col0 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT + - 11 * - col1 + + 39 FROM tab0 cor0
----
1040
1106
985

query I rowsort
SELECT DISTINCT + cor0.col2 * + cor0.col0 + - col2 AS col0 FROM tab0 AS cor0
----
34
7216
759

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6258
SELECT ALL + col0 + col1 * CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6258
SELECT ALL + col0 + col1 * CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col1 + + col1 AS col1 FROM tab1 cor0
----
0

query I rowsort
SELECT DISTINCT - 77 AS col0 FROM tab2 cor0
----
-77

onlyif mysql # use DIV operator for integer division
query I rowsort label-6261
SELECT cor0.col1 DIV col0 AS col2 FROM tab0 cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-6261
SELECT cor0.col1 / col0 AS col2 FROM tab0 cor0
----
1
2
3

query I rowsort
SELECT ALL + 86 * + col0 + + ( cor0.col0 ) AS col2 FROM tab1 AS cor0
----
261
5568
6960

query I rowsort
SELECT DISTINCT - col0 * + col0 * - col1 + col2 AS col1 FROM tab1
----
288
41017
83296

query I rowsort
SELECT DISTINCT + 0 * cor0.col2 FROM tab2, tab0 AS cor0
----
0

query I rowsort
SELECT col1 + - 0 FROM tab0
----
86
91
97

query I rowsort
SELECT DISTINCT - col2 + col0 * - 53 FROM tab0 AS cor0
----
-1305
-1856
-4799

query I rowsort
SELECT - 41 * + col1 + 89 AS col2 FROM tab0 AS cor0
----
-3437
-3642
-3888

onlyif mysql # use DIV operator for integer division
query I rowsort label-6268
SELECT + col2 DIV + col1 + col1 DIV - ( col1 * col0 ) FROM tab1
----
2
5
7

skipif mysql # not compatible
query I rowsort label-6268
SELECT + col2 / + col1 + col1 / - ( col1 * col0 ) FROM tab1
----
2
5
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-6269
SELECT - 79 DIV - 43 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif mysql # not compatible
query I rowsort label-6269
SELECT - 79 / - 43 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT + - 31 * col2 + - col1 FROM tab0 AS cor0
----
-1109
-128
-2633

onlyif mysql # use DIV operator for integer division
query I rowsort label-6271
SELECT col1 + + col1 * ( col2 ) DIV - col0 AS col2 FROM tab0
----
-32
8
95

skipif mysql # not compatible
query I rowsort label-6271
SELECT col1 + + col1 * ( col2 ) / - col0 AS col2 FROM tab0
----
-32
8
95

query I rowsort
SELECT DISTINCT 82 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab0 AS cor2
----
82

query I rowsort
SELECT col1 * - 40 FROM tab2
----
-1240
-2360
-680

query I rowsort
SELECT + + 40 FROM tab1, tab2 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to 09624b9180d40f03a4dda4b4c17356c0

query I rowsort
SELECT ALL 71 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6276
SELECT - CAST( 55 AS SIGNED ) * + col0 AS col2 FROM tab2
----
-385
-4290
-4345

skipif mysql # not compatible
query I rowsort label-6276
SELECT - CAST ( 55 AS INTEGER ) * + col0 AS col2 FROM tab2
----
-385
-4290
-4345

query I rowsort
SELECT DISTINCT col0 + col1 + + col2 AS col1 FROM tab2
----
134
163
65

query I rowsort
SELECT DISTINCT - col1 + 97 * + col1 * - ( 19 ) FROM tab0
----
-158584
-167804
-178868

onlyif mysql # use DIV operator for integer division
query I rowsort label-6279
SELECT tab1.col0 * tab1.col1 + tab1.col1 + ( + col1 ) DIV col1 FROM tab1
----
105
1054
651

skipif mysql # not compatible
query I rowsort label-6279
SELECT tab1.col0 * tab1.col1 + tab1.col1 + ( + col1 ) / col1 FROM tab1
----
105
1054
651

query I rowsort
SELECT 73 * + tab2.col0 + col2 + + col0 * + col0 FROM tab2
----
11804
12046
587

query I rowsort
SELECT DISTINCT + 98 + col1 + - col0 AS col1 FROM tab1
----
121
31
44

query I rowsort
SELECT + cor1.col2 AS col2 FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6283
SELECT CAST( NULL AS SIGNED ) * + col0 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6283
SELECT CAST ( NULL AS INTEGER ) * + col0 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - cor0.col1 + 9 AS col1 FROM tab2 AS cor0
----
26
40
68

query I rowsort
SELECT ALL - col0 * + col0 + col2 * ( + 83 ) AS col0 FROM tab1 cor0
----
1568
4473
635

query I rowsort
SELECT ALL + + col2 * col0 - - col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT + 51 + + tab1.col2 * - col0 FROM tab1
----
-111
-3597
-7629

query I rowsort
SELECT col2 + tab2.col1 * col2 AS col1 FROM tab2
----
1560
684
864

query I rowsort
SELECT DISTINCT - 84 AS col2 FROM tab1
----
-84

query I rowsort
SELECT col0 * + col0 + 70 FROM tab0
----
1295
646
7991

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6291
SELECT + col2 + CAST( - col1 AS SIGNED ) * col2 FROM tab0
----
-2805
-7380
-96

skipif mysql # not compatible
query I rowsort label-6291
SELECT + col2 + CAST ( - col1 AS INTEGER ) * col2 FROM tab0
----
-2805
-7380
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6292
SELECT DISTINCT - col2 DIV tab2.col1 AS col0 FROM tab2
----
-2
0

skipif mysql # not compatible
query I rowsort label-6292
SELECT DISTINCT - col2 / tab2.col1 AS col0 FROM tab2
----
-2
0

query I rowsort
SELECT ALL - col1 * + col1 + ( tab2.col1 * + col1 + - 76 ) AS col0 FROM tab2
----
-76
-76
-76

query I rowsort
SELECT DISTINCT col2 + col2 * col2 * + col2 FROM tab0
----
2
35970
551450

query I rowsort
SELECT + ( + 63 ) FROM tab0, tab0 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

onlyif mysql # use DIV operator for integer division
query I rowsort label-6296
SELECT DISTINCT - col1 + - ( col0 + + col2 ) DIV col1 AS col1 FROM tab2 cor0
----
-23
-32
-60

skipif mysql # not compatible
query I rowsort label-6296
SELECT DISTINCT - col1 + - ( col0 + + col2 ) / col1 AS col1 FROM tab2 cor0
----
-23
-32
-60

query I rowsort
SELECT ALL + - col1 * + col1 - + 56 FROM tab2 AS cor0
----
-1017
-345
-3537

query I rowsort
SELECT DISTINCT + - col2 * - col0 + - col2 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT - + col1 - + 3 * col1 AS col2 FROM tab2 AS cor0
----
-124
-236
-68

query I rowsort
SELECT - + 80 AS col2 FROM tab2, tab1, tab2 AS cor0, tab0
----
81 values hashing to a3c8e513c78e2eef41ad24aabcbeff52

query I rowsort
SELECT col0 * 78 - - col0 FROM tab2
----
553
6162
6241

query I rowsort
SELECT ( - col0 ) + - col2 AS col2 FROM tab1
----
-121
-176
-57

query I rowsort
SELECT + cor1.col0 AS col1 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT 73 * tab1.col2 + - tab1.col0 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to f2a21f1746fc09786707886e9e5a406b

query I rowsort
SELECT DISTINCT + cor0.col1 + cor0.col1 * + 58 FROM tab1 AS cor0
----
1534
590
767

onlyif mysql # use DIV operator for integer division
query I rowsort label-6306
SELECT DISTINCT - + col0 DIV col0 + col0 col2 FROM tab0 AS cor0
----
23
34
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6306
SELECT DISTINCT - + col0 / col0 + col0 col2 FROM tab0 AS cor0
----
23
34
88

query I rowsort
SELECT ALL + ( col0 ) * + ( col2 ) + - col0 * ( col2 * - col2 ) FROM tab2 cor0
----
117078
5292
54756

query I rowsort
SELECT ALL 84 AS col0 FROM tab2
----
84
84
84

query I rowsort
SELECT + 89 + col2 * col1 FROM tab2 cor0
----
1623
735
926

query I rowsort
SELECT ALL - - 13 * col1 + col0 * - cor0.col0 AS col2 FROM tab2 cor0
----
-5317
-6020
354

onlyif mysql # use DIV operator for integer division
query I rowsort label-6311
SELECT ALL cor0.col1 * + col0 + - col0 DIV col0 FROM tab0 AS cor0
----
2063
3394
8098

skipif mysql # not compatible
query I rowsort label-6311
SELECT ALL cor0.col1 * + col0 + - col0 / col0 FROM tab0 AS cor0
----
2063
3394
8098

query I rowsort
SELECT ALL + - col1 * col1 - ( - col0 ) AS col2 FROM tab1 AS cor0
----
-36
-673
-89

query I rowsort
SELECT DISTINCT - 59 AS col1 FROM tab1 AS cor0
----
-59

query I rowsort
SELECT DISTINCT - col1 - + col0 AS col2 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT ALL + + cor0.col2 * - col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT + 36 * - col1 FROM tab0 AS cor0
----
-3096
-3276
-3492

onlyif mysql # use DIV operator for integer division
query I rowsort label-6317
SELECT - col0 * cor0.col0 DIV 75 AS col2 FROM tab0 AS cor0
----
-105
-16
-7

skipif mysql # not compatible
query I rowsort label-6317
SELECT - col0 * cor0.col0 / 75 AS col2 FROM tab0 AS cor0
----
-105
-16
-7

onlyif mysql # use DIV operator for integer division
query I rowsort label-6318
SELECT DISTINCT + 75 DIV col0 FROM tab1 AS cor0
----
0
1
25

skipif mysql # not compatible
query I rowsort label-6318
SELECT DISTINCT + 75 / col0 FROM tab1 AS cor0
----
0
1
25

query I rowsort
SELECT - col2 + - ( cor0.col1 ) AS col2 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT + col2 * - ( - 45 ) AS col0 FROM tab1 AS cor0
----
2430
2565
4320

onlyif mysql # use DIV operator for integer division
query I rowsort label-6321
SELECT + cor0.col1 * col2 DIV col1 AS col1 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-6321
SELECT + cor0.col1 * col2 / col1 AS col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT - cor0.col2 * + col2 * col1 AS col1 FROM tab2 AS cor0
----
-22599
-24548
-39884

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col2 col2 FROM tab0
----
2838
7462
97

query I rowsort
SELECT - col1 + + 0 * - col2 FROM tab1 AS cor0
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col0 + - 48 * - col0 col0 FROM tab0 AS cor0
----
1128
1645
4183

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * - col1 col0 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6327
SELECT - cor0.col1 * 79 * col2 + CAST( - cor0.col0 AS SIGNED ) + + col0 AS col1 FROM tab1 AS cor0
----
-110916
-45030
-98592

skipif mysql # not compatible
query I rowsort label-6327
SELECT - cor0.col1 * 79 * col2 + CAST ( - cor0.col0 AS INTEGER ) + + col0 AS col1 FROM tab1 AS cor0
----
-110916
-45030
-98592

query I rowsort
SELECT DISTINCT - col0 * + col0 + + col1 + col2 FROM tab0 AS cor0
----
-1127
-457
-7748

onlyif mysql # use DIV operator for integer division
query I rowsort label-6329
SELECT DISTINCT 70 * col0 DIV col2 FROM tab0 AS cor0
----
2450
50
75

skipif mysql # not compatible
query I rowsort label-6329
SELECT DISTINCT 70 * col0 / col2 FROM tab0 AS cor0
----
2450
50
75

query I rowsort
SELECT ALL - + ( 34 ) * + col1 + ( + 30 ) FROM tab1 cor0
----
-310
-412
-854

onlyif mysql # use DIV operator for integer division
query I rowsort label-6331
SELECT - col2 * col1 DIV col0 + col1 AS col2 FROM tab0 AS cor0
----
-32
8
95

skipif mysql # not compatible
query I rowsort label-6331
SELECT - col2 * col1 / col0 + col1 AS col2 FROM tab0 AS cor0
----
-32
8
95

query I rowsort
SELECT ( + 92 ) FROM tab2, tab0 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT + col2 + 37 * + 66 + col0 FROM tab0
----
2478
2499
2613

query I rowsort
SELECT + - col2 + 7 + col1 * col2 AS col1 FROM tab1 AS cor0
----
1159
1357
520

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 8 col2 FROM tab0 cor0
----
192
280
712

query I rowsort
SELECT ( - col1 ) * col2 FROM tab2
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-6337
SELECT cor0.col1 DIV 69 + + 25 FROM tab0, tab2 AS cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

skipif mysql # not compatible
query I rowsort label-6337
SELECT cor0.col1 / 69 + + 25 FROM tab0, tab2 AS cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query I rowsort
SELECT 55 + col2 * + 26 AS col2 FROM tab1 AS cor0
----
1459
1537
2551

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6339
SELECT + CAST( + col1 AS SIGNED ) * + col2 AS col2 FROM tab2
----
1534
646
837

skipif mysql # not compatible
query I rowsort label-6339
SELECT + CAST ( + col1 AS INTEGER ) * + col2 AS col2 FROM tab2
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor1.col1 col1 FROM tab2, tab1 AS cor0, tab1, tab1 AS cor1
----
81 values hashing to 96e9ef2950805bca93a295eeea43ef5b

query I rowsort
SELECT + 31 * 16 * col1 AS col2 FROM tab0
----
42656
45136
48112

query I rowsort
SELECT DISTINCT + ( col0 ) + col2 * + col2 FROM tab1 AS cor0
----
2919
3313
9296

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6343
SELECT DISTINCT CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-6343
SELECT DISTINCT CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT + - ( ( - col1 ) ) AS col0 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6345
SELECT ALL ( + col1 ) - - col2 / CAST( NULL AS DECIMAL ) 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-6345
SELECT ALL ( + col1 ) - - col2 / CAST ( NULL AS REAL ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 41 * - cor0.col1 - - col0 AS col1 FROM tab0 AS cor0
----
-3502
-3642
-3942

query I rowsort
SELECT ALL + 42 + + ( col1 ) * col2 AS col1 FROM tab1 AS cor0
----
1290
1446
612

query I rowsort
SELECT - col1 * col0 - + 22 AS col0 FROM tab0
----
-2086
-3417
-8121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + 0 ) col1 FROM tab0, tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + ( + tab2.col0 ) * col1 * - col0 col2 FROM tab2
----
-106018
-1512
-358878

query I rowsort
SELECT ALL + col1 * col0 + - col0 * col2 AS col1 FROM tab2 cor0
----
-1659
2574
28

query I rowsort
SELECT + ( col1 ) * - col1 + + 25 FROM tab2 AS cor0
----
-264
-3456
-936

query I rowsort
SELECT ALL + ( col1 ) * ( + col0 ) FROM tab1
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-6354
SELECT 36 DIV - 18 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

skipif mysql # not compatible
query I rowsort label-6354
SELECT 36 / - 18 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

query I rowsort
SELECT 80 + cor0.col2 * + cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 59dd50fd32a9e96d4dfe4b3c880032e0

query I rowsort
SELECT + 25 * col1 AS col0 FROM tab1 AS cor0
----
250
325
650

query I rowsort
SELECT - col2 + + cor0.col1 * col1 AS col0 FROM tab1 AS cor0
----
43
622
73

query I rowsort
SELECT col1 * col1 + col1 FROM tab0 cor0
----
7482
8372
9506

query I rowsort
SELECT + ( - col1 ) * - col2 * + col0 - - col2 FROM tab2 AS cor0
----
119678
51072
5886

query I rowsort
SELECT DISTINCT - col0 * + 84 + + col0 AS col1 FROM tab0
----
-1992
-2905
-7387

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6361
SELECT DISTINCT cor0.col0 + + CAST( 85 AS SIGNED ) * col1 * + col0 FROM tab1 AS cor0
----
54464
6633
88480

skipif mysql # not compatible
query I rowsort label-6361
SELECT DISTINCT cor0.col0 + + CAST ( 85 AS INTEGER ) * col1 * + col0 FROM tab1 AS cor0
----
54464
6633
88480

query I rowsort
SELECT ALL col1 + - col2 + 97 FROM tab1 AS cor0
----
14
50
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - cor0.col1 + - col0 * + col2 col1 FROM tab2 AS cor0
----
-406
-4345
-6630

query I rowsort
SELECT ALL - - col2 + + col2 AS col0 FROM tab0 AS cor0
----
164
2
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 59 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col0 + + col1 col0 FROM tab1 AS cor0
----
-4086
-6387
17

query I rowsort
SELECT - + col2 + 42 + cor0.col1 FROM tab0 cor0
----
138
51
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-6368
SELECT DISTINCT - col0 DIV + 33 AS col1 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-6368
SELECT DISTINCT - col0 / + 33 AS col1 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT DISTINCT + col2 + 39 FROM tab0 AS cor0
----
121
40
72

query I rowsort
SELECT - col0 * + 61 + 2 * col2 AS col0 FROM tab0 cor0
----
-1398
-2133
-5265

query I rowsort
SELECT + col2 * col1 * ( - col1 ) FROM tab0 AS cor0
----
-244068
-679042
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-6372
SELECT ALL - col1 DIV ( col0 ) AS col1 FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-6372
SELECT ALL - col1 / ( col0 ) AS col1 FROM tab0 AS cor0
----
-1
-2
-3

query I rowsort
SELECT ALL + col1 + + cor0.col1 AS col0 FROM tab1 AS cor0
----
20
26
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-6374
SELECT DISTINCT ( cor0.col1 ) DIV col1 + + col0 FROM tab0 cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-6374
SELECT DISTINCT ( cor0.col1 ) / col1 + + col0 FROM tab0 cor0
----
25
36
90

query I rowsort
SELECT + 25 * col2 + + col0 FROM tab1 AS cor0
----
1353
1489
2480

query I rowsort
SELECT 61 * + 26 * col1 FROM tab0 AS cor0
----
136396
144326
153842

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab0, tab0 cor1, tab2 AS cor2
----
972 values hashing to 1e9d01970ae508486ddabec967bb176c

query I rowsort
SELECT - 48 * + col0 AS col2 FROM tab0 AS cor0
----
-1152
-1680
-4272

query I rowsort
SELECT 80 FROM tab1, tab1 AS cor0, tab2 cor1
----
27 values hashing to 6dd5038be71dffa82f5ceba787caab91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 * col2 col0 FROM tab2 cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-6381
SELECT cor0.col2 DIV cor0.col1 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-6381
SELECT cor0.col2 / cor0.col1 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # use DIV operator for integer division
query I rowsort label-6382
SELECT - + ( - cor0.col1 ) DIV + col1 AS col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6382
SELECT - + ( - cor0.col1 ) / + col1 AS col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - ( col1 ) * + col2 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6384
SELECT - 92 * + col2 * CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6384
SELECT - 92 * + col2 * CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6385
SELECT ALL - CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-6385
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # use DIV operator for integer division
query I rowsort label-6386
SELECT DISTINCT col1 * col2 + + 22 DIV col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-6386
SELECT DISTINCT col1 * col2 + + 22 / col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - + 86 * - cor0.col2 FROM tab0 AS cor0
----
2838
7052
86

query I rowsort
SELECT ALL + col0 + - col0 - 89 AS col1 FROM tab1
----
-89
-89
-89

query I rowsort
SELECT ALL tab0.col1 - + col1 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6390
SELECT - + col0 DIV col0 AS col1 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6390
SELECT - + col0 / col0 AS col1 FROM tab0 cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6391
SELECT - ( + col0 ) DIV 31 AS col0 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-6391
SELECT - ( + col0 ) / 31 AS col0 FROM tab0
----
-1
-2
0

query I rowsort
SELECT DISTINCT - 71 + - col2 + - col1 AS col0 FROM tab2
----
-126
-129
-156

query I rowsort
SELECT - col1 * col2 - + ( cor0.col1 ) AS col1 FROM tab2 AS cor0
----
-1593
-663
-868

query I rowsort
SELECT - 2 + - col0 FROM tab0 AS cor0
----
-26
-37
-91

query I rowsort
SELECT DISTINCT ( - col2 ) * - tab1.col1 - col2 AS col1 FROM tab1
----
1152
1350
513

query I rowsort
SELECT ALL col1 + + col1 * - col2 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT DISTINCT + 79 + col1 * + col0 FROM tab1 AS cor0
----
1119
157
719

query I rowsort
SELECT ALL - - cor0.col0 * - col1 FROM tab1 cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-6399
SELECT DISTINCT - cor0.col1 DIV col1 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6399
SELECT DISTINCT - cor0.col1 / col1 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT col0 + col2 * cor0.col1 FROM tab0 AS cor0
----
132
2862
7551

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 83 + col0 * - col0 col2 FROM tab1 AS cor0
----
-4179
-6483
-92

query I rowsort
SELECT + col0 * - 1 * col2 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL + 86 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6404
SELECT + + CAST( 43 AS SIGNED ) * + col2 + ( + 72 * cor0.col0 ) FROM tab0 AS cor0
----
2563
3147
9934

skipif mysql # not compatible
query I rowsort label-6404
SELECT + + CAST ( 43 AS INTEGER ) * + col2 + ( + 72 * cor0.col0 ) FROM tab0 AS cor0
----
2563
3147
9934

query I rowsort
SELECT ( + 8 ) AS col0 FROM tab2 cor0
----
8
8
8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6406
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6406
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( - col0 ) + col1 AS col1 FROM tab1 AS cor0
----
29
74
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6408
SELECT ALL - col1 * - CAST( NULL AS SIGNED ) + - 87 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6408
SELECT ALL - col1 * - CAST ( NULL AS INTEGER ) + - 87 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ( col2 ) + - col2 * - cor0.col1 * col0 AS col0 FROM tab2 cor0
----
119678
51072
5886

query I rowsort
SELECT + - col0 * 58 AS col2 FROM tab1 AS cor0
----
-174
-3712
-4640

query I rowsort
SELECT DISTINCT + col1 + + tab2.col0 + col0 AS col0 FROM tab2
----
175
215
45

query I rowsort
SELECT ALL + 19 AS col0 FROM tab1
----
19
19
19

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6413
SELECT - CAST( col1 AS SIGNED ) AS col1 FROM tab1
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-6413
SELECT - CAST ( col1 AS INTEGER ) AS col1 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT 2 * - col0 - + col2 FROM tab1
----
-185
-256
-60

query I rowsort
SELECT ALL - 57 * - tab1.col0 AS col2 FROM tab2, tab0, tab2 AS cor0, tab1
----
81 values hashing to 826f4dd9bef25a02599c2917f519a22f

onlyif mysql # use DIV operator for integer division
query I rowsort label-6416
SELECT - col2 * + col2 + - col0 DIV - ( col2 ) AS col2 FROM tab1
----
-2916
-3248
-9216

skipif mysql # not compatible
query I rowsort label-6416
SELECT - col2 * + col2 + - col0 / - ( col2 ) AS col2 FROM tab1
----
-2916
-3248
-9216

query I rowsort
SELECT DISTINCT + col1 + - col2 * cor0.col1 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT DISTINCT - 58 FROM tab1 cor0
----
-58

onlyif mysql # use DIV operator for integer division
query I rowsort label-6419
SELECT - - col2 DIV - 69 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6419
SELECT - - col2 / - 69 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + ( col2 * tab2.col1 ) AS col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT col1 * + col0 + ( col0 ) * + col0 AS col1 FROM tab1 AS cor0
----
4736
7440
87

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 cor0 CROSS JOIN tab2, tab0 cor1
----
972 values hashing to 9a5ab925af18e11f7748f3b2e722ff3d

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6423
SELECT ALL - CAST( NULL AS SIGNED ) / - 38 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6423
SELECT ALL - CAST ( NULL AS INTEGER ) / - 38 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6424
SELECT DISTINCT - col0 + col2 DIV + 6 AS col2 FROM tab2 AS cor0
----
-3
-73
-74

skipif mysql # not compatible
query I rowsort label-6424
SELECT DISTINCT - col0 + col2 / + 6 AS col2 FROM tab2 AS cor0
----
-3
-73
-74

query I rowsort
SELECT + 22 + col0 * cor0.col0 FROM tab0 AS cor0
----
1247
598
7943

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 78 * + tab0.col1 col1 FROM tab0
----
6708
7098
7566

query I rowsort
SELECT DISTINCT col2 + + col0 + ( - 95 ) * col2 AS col1 FROM tab2
----
-2366
-2531
-3493

query I rowsort
SELECT + 60 * - cor0.col0 AS col1 FROM tab0 AS cor0
----
-1440
-2100
-5340

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + 60 * col1 col2 FROM tab2
----
17340
208860
57660

query I rowsort
SELECT ( + 32 ) FROM tab1, tab1 cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT col1 * + tab0.col0 * - col1 + - col1 + ( + col1 ) * col1 AS col2 FROM tab0
----
-170194
-320003
-728819

query I rowsort
SELECT tab2.col2 * 88 AS col0 FROM tab2
----
2288
2376
3344

query I rowsort
SELECT + col2 * 92 AS col2 FROM tab2
----
2392
2484
3496

query I rowsort
SELECT 66 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 897b6122ac98340b78905f39d81897fc

query I rowsort
SELECT - 72 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to b7689a8218ac9df1cca20d2ba5c53888

query I rowsort
SELECT ALL + col1 - - ( + 20 * col1 ) AS col1 FROM tab0 AS cor0
----
1806
1911
2037

query I rowsort
SELECT + - col0 * col2 + + col2 FROM tab2 cor0
----
-162
-2002
-2964

onlyif mysql # use DIV operator for integer division
query I rowsort label-6438
SELECT DISTINCT - + col2 DIV col1 + cor0.col0 FROM tab2 AS cor0
----
7
77
78

skipif mysql # not compatible
query I rowsort label-6438
SELECT DISTINCT - + col2 / col1 + cor0.col0 FROM tab2 AS cor0
----
7
77
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 * 82 + + cor0.col2 col1 FROM tab1 AS cor0
----
5712
5715
5754

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 92 col0 FROM tab2 cor0
----
54
65
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-6441
SELECT - 51 + + col0 DIV + col2 col1 FROM tab0 AS cor0
----
-16
-50
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6441
SELECT - 51 + + col0 / + col2 col1 FROM tab0 AS cor0
----
-16
-50
-51

query I rowsort
SELECT - + 20 AS col0 FROM tab0 AS cor0
----
-20
-20
-20

query I rowsort
SELECT - 91 * col0 + + col2 AS col2 FROM tab1 AS cor0
----
-219
-5767
-7184

query I rowsort
SELECT ALL - tab0.col1 * - col1 + col0 AS col0 FROM tab0
----
7420
8370
9444

query I rowsort
SELECT ( col1 ) + + col2 * col2 AS col1 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT + + col1 + - 70 AS col2 FROM tab1 AS cor0
----
-44
-57
-60

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6447
SELECT - col1 * - ( - col2 ) * 28 + ( col2 ) * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6447
SELECT - col1 * - ( - col2 ) * 28 + ( col2 ) * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 + col2 + col1 * - col1 FROM tab1
----
-568
14
23

query I rowsort
SELECT 3 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf

query I rowsort
SELECT ALL col2 + col0 * + 47 AS col1 FROM tab2 AS cor0
----
356
3692
3751

query I rowsort
SELECT - + ( - ( col2 ) ) AS col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL col1 * ( - tab2.col1 ) FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT ALL + - 37 * col2 FROM tab2 AS cor0
----
-1406
-962
-999

query I rowsort
SELECT - - col2 + col0 * + col2 AS col0 FROM tab0 AS cor0
----
36
7380
825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 99 col1 FROM tab2 AS cor0
----
-99

query I rowsort
SELECT DISTINCT 11 * + ( cor0.col2 ) FROM tab2 AS cor0
----
286
297
418

query I rowsort
SELECT - col2 * + 52 AS col1 FROM tab2 AS cor0
----
-1352
-1404
-1976

query I rowsort
SELECT ALL + - 3 * - 16 FROM tab0 AS cor0
----
48
48
48

query I rowsort
SELECT DISTINCT + - ( - cor0.col1 ) + cor0.col1 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT + col2 + col1 * - col0 FROM tab1
----
-24
-583
-944

query I rowsort
SELECT tab2.col2 - col1 AS col1 FROM tab2
----
-33
-4
21

query I rowsort
SELECT ALL 75 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query I rowsort
SELECT - col2 + ( - 39 ) AS col2 FROM tab2
----
-65
-66
-77

query I rowsort
SELECT DISTINCT col2 + ( ( - col0 ) ) AS col1 FROM tab0
----
-34
-7
9

query I rowsort
SELECT - tab2.col0 - - 35 AS col1 FROM tab2
----
-43
-44
28

query I rowsort
SELECT DISTINCT + col2 * - col2 - - col0 FROM tab1 AS cor0
----
-2913
-3185
-9136

query I rowsort
SELECT ALL + col0 * col0 + col2 AS col1 FROM tab1 AS cor0
----
4153
63
6496

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6468
SELECT ALL + col0 + - col2 * CAST( col2 * + col1 + col1 AS SIGNED ) FROM tab0 AS cor0
----
-159
-619257
-96468

skipif mysql # not compatible
query I rowsort label-6468
SELECT ALL + col0 + - col2 * CAST ( col2 * + col1 + col1 AS INTEGER ) FROM tab0 AS cor0
----
-159
-619257
-96468

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col1 * 4 col0 FROM tab0 cor0
----
377
389
446

onlyif mysql # use DIV operator for integer division
query I rowsort label-6470
SELECT DISTINCT col0 * col1 DIV 60 FROM tab1 AS cor0
----
1
10
17

skipif mysql # not compatible
query I rowsort label-6470
SELECT DISTINCT col0 * col1 / 60 FROM tab1 AS cor0
----
1
10
17

query I rowsort
SELECT ALL - - col1 * + col1 + + col2 AS col0 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT col0 * col2 + tab1.col1 AS col1 FROM tab1
----
188
3658
7693

query I rowsort
SELECT DISTINCT + 13 * + col1 FROM tab2
----
221
403
767

query I rowsort
SELECT DISTINCT 21 FROM tab0, tab1 AS cor0
----
21

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6475
SELECT CAST( 27 AS SIGNED ) FROM tab1
----
27
27
27

skipif mysql # not compatible
query I rowsort label-6475
SELECT CAST ( 27 AS INTEGER ) FROM tab1
----
27
27
27

query I rowsort
SELECT DISTINCT 10 - col0 AS col1 FROM tab1
----
-54
-70
7

query I rowsort
SELECT 4 * - col1 * col1 AS col2 FROM tab0
----
-29584
-33124
-37636

query I rowsort
SELECT ALL 99 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query I rowsort
SELECT col1 + + col2 * ( 18 ) - col0 FROM tab1
----
1661
972
995

onlyif mysql # use DIV operator for integer division
query I rowsort label-6480
SELECT DISTINCT 17 - - col2 DIV CAST( + col1 * - col0 AS SIGNED ) FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-6480
SELECT DISTINCT 17 - - col2 / CAST ( + col1 * - col0 AS INTEGER ) FROM tab2
----
17

query I rowsort
SELECT + + 90 * col0 * 73 AS col2 FROM tab1 AS cor0
----
19710
420480
525600

query I rowsort
SELECT - + 71 + cor0.col1 * + col2 AS col0 FROM tab0 AS cor0
----
26
2767
7391

query I rowsort
SELECT 75 * col0 - - 33 FROM tab1 AS cor0
----
258
4833
6033

query I rowsort
SELECT - col0 - - cor0.col2 AS col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT + + col0 * - col0 + + col1 AS col0 FROM tab1 cor0
----
-4086
-6387
17

query I rowsort
SELECT + 69 AS col0 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 2810c3097fe4771e273cfff903357b40

query I rowsort
SELECT DISTINCT 32 * col2 FROM tab2
----
1216
832
864

query I rowsort
SELECT ALL - ( col2 ) AS col0 FROM tab0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-6489
SELECT ALL + - col1 + - 31 * col0 + - col0 DIV - col1 FROM tab1 AS cor0
----
-119
-1988
-2487

skipif mysql # not compatible
query I rowsort label-6489
SELECT ALL + - col1 + - 31 * col0 + - col0 / - col1 FROM tab1 AS cor0
----
-119
-1988
-2487

query I rowsort
SELECT DISTINCT - + col2 * + 70 AS col1 FROM tab2 AS cor0
----
-1820
-1890
-2660

query I rowsort
SELECT + - col2 * - col2 AS col0 FROM tab0 cor0
----
1
1089
6724

query I rowsort
SELECT ALL 75 * + tab2.col0 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 5076991f22a249418955f854b1ead827

query I rowsort
SELECT - col0 + + col2 * 13 + + col2 FROM tab1
----
1264
734
753

query I rowsort
SELECT ALL - - col1 + 12 + - 32 * + col1 FROM tab0 AS cor0
----
-2654
-2809
-2995

query I rowsort
SELECT ALL cor0.col0 * 84 + - col0 AS col1 FROM tab2 AS cor0
----
581
6474
6557

query I rowsort
SELECT DISTINCT - + col1 + ( + 67 ) AS col1 FROM tab0 AS cor0
----
-19
-24
-30

query I rowsort
SELECT col1 - - 38 FROM tab1 cor0
----
48
51
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + ( 91 * + col2 ) + + cor0.col1 * cor0.col0 col0 FROM tab0 AS cor0
----
101163
3486
619983

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - ( + 46 + col2 ) col2 FROM tab0 AS cor0
----
-46

query I rowsort
SELECT ALL cor0.col0 * 90 AS col1 FROM tab0 AS cor0
----
2160
3150
8010

query I rowsort
SELECT ALL - cor0.col2 * col0 + col2 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT DISTINCT - - col2 * - ( - col2 ) AS col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT col1 * + 66 AS col0 FROM tab0 AS cor0
----
5676
6006
6402

query I rowsort
SELECT + - col0 + - cor0.col0 * + col0 * col1 FROM tab0 AS cor0
----
-118860
-49560
-720900

query I rowsort
SELECT DISTINCT - col0 * - 93 FROM tab0 AS cor0
----
2232
3255
8277

query I rowsort
SELECT - - cor0.col2 * - 94 - - 85 * cor0.col1 AS col1 FROM tab2 AS cor0
----
-2127
2571
97

query I rowsort
SELECT + ( + col1 + col1 ) FROM tab1
----
20
26
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6508
SELECT ALL + CAST( - 73 AS SIGNED ) FROM tab2
----
-73
-73
-73

skipif mysql # not compatible
query I rowsort label-6508
SELECT ALL + CAST ( - 73 AS INTEGER ) FROM tab2
----
-73
-73
-73

query I rowsort
SELECT ALL 88 FROM tab1, tab0 cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query I rowsort
SELECT - - col0 + col0 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT - col1 * - col1 + col0 AS col0 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT ALL + ( - col2 ) AS col0 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT ALL + - ( cor0.col0 ) * - cor0.col2 AS col0 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT - + 17 * cor0.col2 AS col1 FROM tab2 AS cor0
----
-442
-459
-646

query I rowsort
SELECT ALL + ( - 41 ) * - col0 + cor0.col2 AS col0 FROM tab0 cor0
----
1017
1436
3731

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6516
SELECT CAST( NULL AS SIGNED ) * cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6516
SELECT CAST ( NULL AS INTEGER ) * cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6517
SELECT ALL - + col0 * + 42 - + cor0.col2 * CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
36
4320
960

skipif mysql # not compatible
query I rowsort label-6517
SELECT ALL - + col0 * + 42 - + cor0.col2 * CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
36
4320
960

query I rowsort
SELECT DISTINCT - + 17 * + col2 AS col2 FROM tab2 AS cor0
----
-442
-459
-646

query I rowsort
SELECT ( col0 ) * - col2 * + col0 FROM tab0 AS cor0
----
-1225
-19008
-649522

query I rowsort
SELECT ALL + - col1 - 9 * col0 FROM tab2 AS cor0
----
-728
-761
-94

query I rowsort
SELECT ALL - - 85 FROM tab1 AS cor0
----
85
85
85

query I rowsort
SELECT DISTINCT col1 + cor0.col2 AS col0 FROM tab2 cor0
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-6523
SELECT - 56 DIV 73 col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6523
SELECT - 56 / 73 col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 11 * + col0 col1 FROM tab0 AS cor0
----
264
385
979

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 + col2 * cor0.col2 col2 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT - + col2 * cor0.col0 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col2 ) * ( 64 ) + col2 col0 FROM tab0 cor0
----
2145
5330
65

query I rowsort
SELECT ALL + - col2 * + col0 - 36 AS col0 FROM tab1 AS cor0
----
-198
-3684
-7716

query I rowsort
SELECT DISTINCT + cor0.col0 - - cor0.col0 AS col1 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT - 0 * - col2 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6531
SELECT ALL - + col1 - col2 * CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6531
SELECT ALL - + col1 - col2 * CAST ( NULL AS REAL ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 32 * col2 * + col2 FROM tab2 AS cor0
----
-21632
-23328
-46208

query I rowsort
SELECT DISTINCT - + 0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
0

query I rowsort
SELECT ALL + col1 * ( + 88 ) FROM tab2 AS cor0
----
1496
2728
5192

query I rowsort
SELECT col1 * + col2 + 59 + col2 FROM tab2 AS cor0
----
1619
743
923

query I rowsort
SELECT ALL col1 + - 69 AS col0 FROM tab2 AS cor0
----
-10
-38
-52

onlyif mysql # use DIV operator for integer division
query I rowsort label-6537
SELECT - + col0 + ( - cor0.col0 ) + col1 DIV - 15 FROM tab1 AS cor0
----
-128
-160
-7

skipif mysql # not compatible
query I rowsort label-6537
SELECT - + col0 + ( - cor0.col0 ) + col1 / - 15 FROM tab1 AS cor0
----
-128
-160
-7

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1, tab0 cor1, tab0 AS cor2, tab2 AS cor3
----
3645 values hashing to 972d282d6d92f451c90dc8ca51a18f3e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6539
SELECT col0 * CAST( col0 AS SIGNED ) + + col1 AS col1 FROM tab1 AS cor0
----
35
4106
6413

skipif mysql # not compatible
query I rowsort label-6539
SELECT col0 * CAST ( col0 AS INTEGER ) + + col1 AS col1 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT DISTINCT col0 - + 55 AS col1 FROM tab2 AS cor0
----
-48
23
24

query I rowsort
SELECT DISTINCT col0 * ( col1 ) * col0 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT DISTINCT - col2 * + col2 + 36 FROM tab1 AS cor0
----
-2880
-3213
-9180

query I rowsort
SELECT ALL + col2 * ( col1 ) AS col1 FROM tab1 cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 18 col1 FROM tab0 AS cor0
----
-18
-18
-18

query I rowsort
SELECT DISTINCT + 13 * + ( - cor0.col1 ) AS col1 FROM tab1 cor0
----
-130
-169
-338

query I rowsort
SELECT DISTINCT + ( - col1 ) + - col0 AS col2 FROM tab0 cor0
----
-110
-132
-180

query I rowsort
SELECT ALL - - col2 * - 4 * col2 FROM tab2 AS cor0
----
-2704
-2916
-5776

query I rowsort
SELECT - 37 + cor0.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 3d813e7be7c85029cd71f7457b98c6f0

query I rowsort
SELECT ALL + 99 + cor0.col2 FROM tab1, tab0 cor0
----
9 values hashing to 3f8c14f15ad691fefd21e3d536593297

query I rowsort
SELECT col2 * - 20 * col1 + - col2 FROM tab1
----
-11457
-25056
-28134

query I rowsort
SELECT col0 * 49 AS col2 FROM tab2 AS cor0
----
343
3822
3871

query I rowsort
SELECT DISTINCT - 50 * col0 FROM tab0
----
-1200
-1750
-4450

onlyif mysql # use DIV operator for integer division
query I rowsort label-6553
SELECT ALL - 28 DIV col1 + ( 23 ) AS col2 FROM tab1 cor0
----
21
21
22

skipif mysql # not compatible
query I rowsort label-6553
SELECT ALL - 28 / col1 + ( 23 ) AS col2 FROM tab1 cor0
----
21
21
22

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6554
SELECT col1 * + col0 - - CAST( 32 AS SIGNED ) FROM tab0 cor0
----
2096
3427
8131

skipif mysql # not compatible
query I rowsort label-6554
SELECT col1 * + col0 - - CAST ( 32 AS INTEGER ) FROM tab0 cor0
----
2096
3427
8131

query I rowsort
SELECT DISTINCT - + cor0.col1 * col0 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT col1 + col1 * cor0.col2 AS col2 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT + 72 AS col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7

query I rowsort
SELECT DISTINCT col0 + - col1 + + col0 * + col0 FROM tab2
----
25
6103
6303

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6559
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-6559
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + - col0 * cor0.col0 col2 FROM tab1 AS cor0
----
-4032
-6
-6320

query I rowsort
SELECT cor0.col0 + - col0 * + 44 FROM tab0 cor0
----
-1032
-1505
-3827

query I rowsort
SELECT ALL + - col2 + col1 * col2 AS col2 FROM tab1 AS cor0
----
1152
1350
513

onlyif mysql # use DIV operator for integer division
query I rowsort label-6563
SELECT DISTINCT col0 DIV 80 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6563
SELECT DISTINCT col0 / 80 AS col1 FROM tab2
----
0

query I rowsort
SELECT - 42 * col1 + col0 + - col1 FROM tab1 AS cor0
----
-1115
-366
-479

query I rowsort
SELECT - col2 * 67 FROM tab0
----
-2211
-5494
-67

query I rowsort
SELECT 98 + + col1 * col1 FROM tab1
----
198
267
774

query I rowsort
SELECT ALL 38 - + cor0.col1 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 80cec33af369c7342079739877ecab22

onlyif mysql # use DIV operator for integer division
query I rowsort label-6568
SELECT DISTINCT col1 DIV col2 col0 FROM tab0 AS cor0
----
1
2
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6568
SELECT DISTINCT col1 / col2 col0 FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT + + 61 AS col0 FROM tab0 AS cor0
----
61
61
61

query I rowsort
SELECT 65 * col2 FROM tab2 cor0
----
1690
1755
2470

query I rowsort
SELECT DISTINCT 17 + col1 - + col1 AS col1 FROM tab0
----
17

query I rowsort
SELECT + cor0.col0 AS col1 FROM tab0, tab1 cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6573
SELECT DISTINCT + CAST( - col0 AS SIGNED ) + col1 AS col0 FROM tab2
----
-19
-62
24

skipif mysql # not compatible
query I rowsort label-6573
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) + col1 AS col0 FROM tab2
----
-19
-62
24

query I rowsort
SELECT + + col2 + col1 * cor0.col2 * col0 AS col1 FROM tab2 cor0
----
119678
51072
5886

query I rowsort
SELECT 42 + - col2 FROM tab0
----
-40
41
9

query I rowsort
SELECT ALL 5 * - col1 - col1 AS col1 FROM tab2
----
-102
-186
-354

query I rowsort
SELECT ALL ( - 95 ) - col0 AS col2 FROM tab2
----
-102
-173
-174

query I rowsort
SELECT DISTINCT 68 AS col0 FROM tab1 cor0
----
68

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6579
SELECT ALL ( + ( col2 ) ) + CAST( 61 AS SIGNED ) * - col0 AS col1 FROM tab1 AS cor0
----
-129
-3847
-4784

skipif mysql # not compatible
query I rowsort label-6579
SELECT ALL ( + ( col2 ) ) + CAST ( 61 AS INTEGER ) * - col0 AS col1 FROM tab1 AS cor0
----
-129
-3847
-4784

query I rowsort
SELECT ALL - cor0.col1 * 37 AS col2 FROM tab2 AS cor0
----
-1147
-2183
-629

query I rowsort
SELECT ALL + + 0 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - 23 - cor0.col0 AS col2 FROM tab1 AS cor0
----
-103
-26
-87

query I rowsort
SELECT + col1 * col1 - col1 FROM tab2 cor0
----
272
3422
930

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + - cor0.col2 col1 FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT ALL + 8 + col1 FROM tab2 AS cor0
----
25
39
67

query I rowsort
SELECT ALL 59 + - col1 * - col2 FROM tab2 AS cor0
----
1593
705
896

query I rowsort
SELECT ALL + + col2 * - col0 + ( col2 ) AS col1 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT + col2 * cor0.col1 + col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT + - col2 + col2 * - col1 FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT DISTINCT 13 * col1 AS col2 FROM tab2 AS cor0
----
221
403
767

query I rowsort
SELECT + + col1 + - col2 * - 89 * col2 AS col0 FROM tab0 AS cor0
----
186
598527
97007

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + col2 * cor0.col2 col2 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT DISTINCT 64 * col2 AS col1 FROM tab1 AS cor0
----
3456
3648
6144

query I rowsort
SELECT ALL 13 AS col2 FROM tab1
----
13
13
13

query I rowsort
SELECT 39 - col1 FROM tab2 AS cor0
----
-20
22
8

query I rowsort
SELECT ALL + - 47 * - col0 FROM tab2 AS cor0
----
329
3666
3713

query I rowsort
SELECT - - col0 * col0 + 84 * - col2 FROM tab1 AS cor0
----
-1664
-4527
-692

onlyif mysql # use DIV operator for integer division
query I rowsort label-6598
SELECT ALL + col0 DIV ( 26 ) FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-6598
SELECT ALL + col0 / ( 26 ) FROM tab0 AS cor0
----
0
1
3

query I rowsort
SELECT - + col0 * + 78 FROM tab2 AS cor0
----
-546
-6084
-6162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 9 col1 FROM tab0
----
-9
-9
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-6601
SELECT ALL - col0 * col0 DIV + col2 FROM tab1
----
-66
-71
0

skipif mysql # not compatible
query I rowsort label-6601
SELECT ALL - col0 * col0 / + col2 FROM tab1
----
-66
-71
0

query I rowsort
SELECT ALL 11 AS col1 FROM tab1
----
11
11
11

query I rowsort
SELECT DISTINCT + + tab0.col0 AS col0 FROM tab0, tab2, tab1 AS cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-6604
SELECT + + cor0.col1 + + 37 DIV col2 AS col1 FROM tab0 AS cor0
----
134
87
91

skipif mysql # not compatible
query I rowsort label-6604
SELECT + + cor0.col1 + + 37 / col2 AS col1 FROM tab0 AS cor0
----
134
87
91

query I rowsort
SELECT cor0.col2 * ( col1 ) * + col1 AS col0 FROM tab1 AS cor0
----
16224
36504
5700

query I rowsort
SELECT DISTINCT + col2 * cor0.col2 AS col2 FROM tab0 AS cor0
----
1
1089
6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-6607
SELECT - col2 + + col1 DIV - col1 AS col1 FROM tab2 AS cor0
----
-27
-28
-39

skipif mysql # not compatible
query I rowsort label-6607
SELECT - col2 + + col1 / - col1 AS col1 FROM tab2 AS cor0
----
-27
-28
-39

onlyif mysql # use DIV operator for integer division
query I rowsort label-6608
SELECT DISTINCT col0 * - col2 DIV col2 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-6608
SELECT DISTINCT col0 * - col2 / col2 FROM tab1 AS cor0
----
-3
-64
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 * col1 + - col1 col2 FROM tab1 AS cor0
----
156
650
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6610
SELECT + - CAST( NULL AS SIGNED ) / ( col2 + col0 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6610
SELECT + - CAST ( NULL AS INTEGER ) / ( col2 + col0 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col2 AS REAL ) / col2 col2 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6612
SELECT DISTINCT CAST( col1 AS SIGNED ) * col1 AS col0 FROM tab2 AS cor0
----
289
3481
961

skipif mysql # not compatible
query I rowsort label-6612
SELECT DISTINCT CAST ( col1 AS INTEGER ) * col1 AS col0 FROM tab2 AS cor0
----
289
3481
961

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6613
SELECT - col0 + - CAST( - col1 + + col0 AS SIGNED ) * ( col0 ) AS col2 FROM tab1
----
-3520
-5440
66

skipif mysql # not compatible
query I rowsort label-6613
SELECT - col0 + - CAST ( - col1 + + col0 AS INTEGER ) * ( col0 ) AS col2 FROM tab1
----
-3520
-5440
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6614
SELECT DISTINCT col0 * + CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6614
SELECT DISTINCT col0 * + CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + + 94 * col1 AS col2 FROM tab1 AS cor0
----
1222
2444
940

query I rowsort
SELECT ALL 30 * 59 * col1 + - 69 FROM tab2 AS cor0
----
104361
30021
54801

query I rowsort
SELECT ALL col0 * cor0.col1 + cor0.col0 * 28 AS col2 FROM tab2 cor0
----
3555
413
6786

onlyif mysql # use DIV operator for integer division
query I rowsort label-6618
SELECT - ( col2 ) * col2 DIV + 35 col0 FROM tab1 AS cor0
----
-263
-83
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6618
SELECT - ( col2 ) * col2 / + 35 col0 FROM tab1 AS cor0
----
-263
-83
-92

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6619
SELECT ALL CAST( col1 AS SIGNED ) + col1 FROM tab2 AS cor0
----
118
34
62

skipif mysql # not compatible
query I rowsort label-6619
SELECT ALL CAST ( col1 AS INTEGER ) + col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT + 92 + cor0.col1 FROM tab0 AS cor0
----
178
183
189

onlyif mysql # use DIV operator for integer division
query I rowsort label-6621
SELECT DISTINCT + ( + cor0.col0 ) DIV - col1 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6621
SELECT DISTINCT + ( + cor0.col0 ) / - col1 AS col0 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 27 + cor0.col2 + col2 col0 FROM tab0 AS cor0
----
-25
137
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor1.col1 col0 FROM tab0, tab1 cor0, tab0 cor1
----
86
91
97

query I rowsort
SELECT col1 * 95 + col0 FROM tab1
----
1014
1315
2473

query I rowsort
SELECT col2 + 45 FROM tab0
----
127
46
78

query I rowsort
SELECT col2 * 14 + tab0.col1 FROM tab0
----
111
1239
548

query I rowsort
SELECT + col1 * ( col2 ) - col1 AS col1 FROM tab2
----
1475
629
806

query I rowsort
SELECT ALL 81 AS col2 FROM tab0 AS cor0
----
81
81
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-6629
SELECT DISTINCT + - col0 + + col1 DIV + cor0.col0 FROM tab0 AS cor0
----
-21
-33
-88

skipif mysql # not compatible
query I rowsort label-6629
SELECT DISTINCT + - col0 + + col1 / + cor0.col0 FROM tab0 AS cor0
----
-21
-33
-88

query I rowsort
SELECT ALL col0 + col0 + col1 * 7 AS col2 FROM tab2 AS cor0
----
231
277
569

onlyif mysql # use DIV operator for integer division
query I rowsort label-6631
SELECT ALL col2 DIV + cor0.col1 AS col2 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-6631
SELECT ALL col2 / + cor0.col1 AS col2 FROM tab1 AS cor0
----
2
5
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6632
SELECT - - CAST( + col2 AS SIGNED ) + col0 * ( col1 ) AS col0 FROM tab1 AS cor0
----
1136
132
697

skipif mysql # not compatible
query I rowsort label-6632
SELECT - - CAST ( + col2 AS INTEGER ) + col0 * ( col1 ) AS col0 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT 61 AS col0 FROM tab1, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55

onlyif mysql # use DIV operator for integer division
query I rowsort label-6634
SELECT + + col1 DIV + col0 FROM tab0 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-6634
SELECT + + col1 / + col0 FROM tab0 AS cor0
----
1
2
3

query I rowsort
SELECT DISTINCT + 29 + col0 FROM tab1 cor0
----
109
32
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6636
SELECT + ( - col0 ) + col1 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6636
SELECT + ( - col0 ) + col1 * + 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-6637
SELECT DISTINCT col1 + col1 * + CAST( + col1 AS SIGNED ) + - col0 AS col2 FROM tab2
----
227
3462
985

skipif mysql # not compatible
query I rowsort label-6637
SELECT DISTINCT col1 + col1 * + CAST ( + col1 AS INTEGER ) + - col0 AS col2 FROM tab2
----
227
3462
985

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6638
SELECT DISTINCT - - CAST( 55 AS SIGNED ) + + cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
137
56
88

skipif mysql # not compatible
query I rowsort label-6638
SELECT DISTINCT - - CAST ( 55 AS INTEGER ) + + cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
137
56
88

query I rowsort
SELECT ALL 56 + + col2 FROM tab2
----
82
83
94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6640
SELECT ALL - - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6640
SELECT ALL - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT + col0 + - 18 + col1 FROM tab2 AS cor0
----
119
20
78

query I rowsort
SELECT ALL + - col2 * 53 - + col1 AS col2 FROM tab2 AS cor0
----
-1437
-1462
-2031

query I rowsort
SELECT ALL - col0 * cor0.col0 FROM tab1 cor0
----
-4096
-6400
-9

query I rowsort
SELECT + col1 + - col2 * - col1 FROM tab1
----
1261
1430
580

query I rowsort
SELECT + 55 AS col2 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3

query I rowsort
SELECT ALL + - cor0.col2 * - 90 AS col1 FROM tab1 AS cor0
----
4860
5130
8640

query I rowsort
SELECT DISTINCT - + cor0.col0 + cor0.col0 * - col1 FROM tab2 AS cor0
----
-1422
-224
-4680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6648
SELECT ALL cor0.col0 * CAST( NULL AS SIGNED ) / col0 + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6648
SELECT ALL cor0.col0 * CAST ( NULL AS INTEGER ) / col0 + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 48 FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to 0ef571a8722ab7270aa7272c1174b88e

query I rowsort
SELECT DISTINCT + col0 + 33 + + 59 AS col2 FROM tab0 AS cor0
----
116
127
181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 2 * cor0.col1 + ( 66 ) * - col2 col2 FROM tab0 AS cor0
----
-2350
-260
-5594

query I rowsort
SELECT ALL 10 + - ( - col0 ) * + 42 AS col2 FROM tab1
----
136
2698
3370

query I rowsort
SELECT - - 78 * col2 * + ( + 91 ) + col0 AS col0 FROM tab1 AS cor0
----
383295
404650
681488

onlyif mysql # use DIV operator for integer division
query I rowsort label-6654
SELECT - - col0 + - col1 * 99 DIV + 73 AS col2 FROM tab1 AS cor0
----
-32
51
63

skipif mysql # not compatible
query I rowsort label-6654
SELECT - - col0 + - col1 * 99 / + 73 AS col2 FROM tab1 AS cor0
----
-32
51
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-6655
SELECT tab2.col2 DIV tab2.col1 AS col0 FROM tab2
----
0
0
2

skipif mysql # not compatible
query I rowsort label-6655
SELECT tab2.col2 / tab2.col1 AS col0 FROM tab2
----
0
0
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-6656
SELECT - col0 DIV ( - col0 ) FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6656
SELECT - col0 / ( - col0 ) FROM tab2
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 36 col0 FROM tab0
----
36
36
36

onlyif mysql # use DIV operator for integer division
query I rowsort label-6658
SELECT - 76 + cor0.col1 DIV 42 + col0 AS col0 FROM tab1 AS cor0
----
-12
-73
4

skipif mysql # not compatible
query I rowsort label-6658
SELECT - 76 + cor0.col1 / 42 + col0 AS col0 FROM tab1 AS cor0
----
-12
-73
4

query I rowsort
SELECT DISTINCT 7 AS col2 FROM tab0
----
7

query I rowsort
SELECT DISTINCT + 0 * col2 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + - col2 * col2 AS col0 FROM tab1 cor0
----
-2916
-3249
-9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-6662
SELECT + + col0 DIV - col1 FROM tab1 AS cor0
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-6662
SELECT + + col0 / - col1 FROM tab1 AS cor0
----
-6
-6
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col0 col0 FROM tab1 AS cor0
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-6664
SELECT col0 DIV + 94 + col1 AS col1 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-6664
SELECT col0 / + 94 + col1 AS col1 FROM tab1
----
10
13
26

query I rowsort
SELECT DISTINCT - col0 - ( + 10 ) FROM tab0 cor0
----
-34
-45
-99

query I rowsort
SELECT ALL col2 + + cor0.col0 * cor0.col2 * - col2 FROM tab0 AS cor0
----
-26103
-34
-598354

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + col1 col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT - - col1 + 71 * 44 AS col0 FROM tab1 AS cor0
----
3134
3137
3150

query I rowsort
SELECT ALL col2 * + 78 * - ( cor0.col2 ) AS col2 FROM tab0 AS cor0
----
-524472
-78
-84942

query I rowsort
SELECT + col1 + + col0 AS col1 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT ALL - col1 + - ( - 41 ) AS col0 FROM tab0 AS cor0
----
-45
-50
-56

query I rowsort
SELECT DISTINCT + col2 - + ( col0 ) FROM tab0 cor0
----
-34
-7
9

query I rowsort
SELECT ALL - cor2.col2 + + 74 AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 1538b29fd66c5f1bf31ef24b964127fd

query I rowsort
SELECT DISTINCT + cor1.col2 * ( - cor0.col2 ) AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
-1
-1089
-2706
-33
-6724
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6675
SELECT ALL - CAST( NULL AS SIGNED ) - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6675
SELECT ALL - CAST ( NULL AS INTEGER ) - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 4 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to 3347a3237b37ed63205e9440d8818a46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * - 66 - - cor0.col0 col0 FROM tab2 cor0
----
469
5226
5293

query I rowsort
SELECT - ( + 88 + col1 ) * + col1 AS col2 FROM tab1
----
-1313
-2964
-980

query I rowsort
SELECT ALL - col0 * 83 + - col0 * - 97 FROM tab0 cor0
----
1246
336
490

query I rowsort
SELECT - 12 * - col0 + col0 AS col0 FROM tab0 AS cor0
----
1157
312
455

query I rowsort
SELECT ALL + 51 AS col0 FROM tab0, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5

query I rowsort
SELECT DISTINCT 17 AS col2 FROM tab2, tab0 cor0
----
17

query I rowsort
SELECT + 91 AS col2 FROM tab1 cor0
----
91
91
91

query I rowsort
SELECT 33 FROM tab2 cor0
----
33
33
33

query I rowsort
SELECT ALL ( 0 ) * cor0.col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT DISTINCT 91 + + col1 * ( + col1 ) FROM tab1 AS cor0
----
191
260
767

query I rowsort
SELECT ALL + col1 * - col2 - + ( col2 ) AS col0 FROM tab0 cor0
----
-2871
-7544
-98

query I rowsort
SELECT DISTINCT 1 * + col2 AS col0 FROM tab0 AS cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 57 * ( col0 ) col0 FROM tab2 AS cor0
----
399
4446
4503

onlyif mysql # use DIV operator for integer division
query I rowsort label-6690
SELECT ALL + - col0 DIV + ( col2 ) FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6690
SELECT ALL + - col0 / + ( col2 ) FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT + ( 25 ) + col2 FROM tab0 AS cor0
----
107
26
58

query I rowsort
SELECT DISTINCT + + 63 * col0 AS col2 FROM tab2 AS cor0
----
441
4914
4977

query I rowsort
SELECT ALL 38 * cor0.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 84ad71c6d02c194cabb6d219a204bcb2

query I rowsort
SELECT + col1 * 80 FROM tab2
----
1360
2480
4720

onlyif mysql # use DIV operator for integer division
query I rowsort label-6695
SELECT ALL - + col2 + ( 59 ) * col0 DIV - col1 AS col0 FROM tab2 AS cor0
----
-104
-312
-40

skipif mysql # not compatible
query I rowsort label-6695
SELECT ALL - + col2 + ( 59 ) * col0 / - col1 AS col0 FROM tab2 AS cor0
----
-104
-312
-40

query I rowsort
SELECT ALL - col1 * - col1 + col1 * - col2 * - ( - 32 ) FROM tab1 AS cor0
----
-18140
-39767
-44252

query I rowsort
SELECT + col1 + + tab1.col2 AS col0 FROM tab1
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6698
SELECT DISTINCT - - ( + 65 ) + cor0.col2 * cor1.col1 DIV 38 col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
187
194
201
202
210
282
294
310

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6698
SELECT DISTINCT - - ( + 65 ) + cor0.col2 * cor1.col1 / 38 col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
187
194
201
202
210
282
294
310

query I rowsort
SELECT DISTINCT + - col1 * col1 + - cor0.col0 AS col0 FROM tab1 AS cor0
----
-164
-249
-679

query I rowsort
SELECT - + col0 + ( - ( cor0.col2 ) ) FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT ALL + col2 * 46 + - col2 * - col2 FROM tab2
----
1872
1971
3192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * col0 + 93 col0 FROM tab1 AS cor0
----
255
3741
7773

query I rowsort
SELECT DISTINCT - + col0 + + ( col0 ) FROM tab0 cor0
----
0

query I rowsort
SELECT ALL - cor0.col0 * ( - col2 ) FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6705
SELECT ALL - cor0.col0 * CAST( 33 AS SIGNED ) FROM tab1 AS cor0
----
-2112
-2640
-99

skipif mysql # not compatible
query I rowsort label-6705
SELECT ALL - cor0.col0 * CAST ( 33 AS INTEGER ) FROM tab1 AS cor0
----
-2112
-2640
-99

query I rowsort
SELECT 18 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 903ac227935c1532300db45a8537c595

query I rowsort
SELECT ALL + - 98 AS col0 FROM tab1, tab2, tab1 cor0
----
27 values hashing to 9b0655947ad21e0b95a137a474fa6a1f

query I rowsort
SELECT 83 * col1 AS col1 FROM tab0
----
7138
7553
8051

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 2 * - col2 * tab1.col2 col1 FROM tab1
----
18432
5832
6498

query I rowsort
SELECT - col2 * col0 * + col1 AS col1 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT ( tab1.col2 ) + col1 * - col0 FROM tab1
----
-24
-583
-944

query I rowsort
SELECT DISTINCT col2 + + col1 * cor0.col0 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT DISTINCT 37 + + tab1.col1 FROM tab1
----
47
50
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-6714
SELECT ALL - col0 * - 78 * - col0 + col0 DIV col0 AS col2 FROM tab1
----
-319487
-499199
-701

skipif mysql # not compatible
query I rowsort label-6714
SELECT ALL - col0 * - 78 * - col0 + col0 / col0 AS col2 FROM tab1
----
-319487
-499199
-701

onlyif mysql # use DIV operator for integer division
query I rowsort label-6715
SELECT - 67 + - 77 * col0 DIV - col0 AS col2 FROM tab1 cor0
----
10
10
10

skipif mysql # not compatible
query I rowsort label-6715
SELECT - 67 + - 77 * col0 / - col0 AS col2 FROM tab1 cor0
----
10
10
10

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6716
SELECT + ( + col0 ) * CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6716
SELECT + ( + col0 ) * CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 * - col2 * - col1 + + col1 AS col1 FROM tab2 AS cor0
----
119711
51051
5890

query I rowsort
SELECT ALL + + 60 * col2 + col1 * - col2 * col1 FROM tab0 AS cor0
----
-242088
-674122
-9349

query I rowsort
SELECT ALL cor0.col0 + + col0 AS col1 FROM tab2 cor0
----
14
156
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col2 + ( col0 ) * col0 * + cor0.col1 - 10 col1 FROM tab1 AS cor0
----
3140
44199
92406

query I rowsort
SELECT DISTINCT + + 49 - col2 FROM tab1 AS cor0
----
-47
-5
-8

query I rowsort
SELECT - + 14 + + col0 FROM tab1 AS cor0
----
-11
50
66

query I rowsort
SELECT ALL - col2 + + col0 * + col0 AS col2 FROM tab1 AS cor0
----
-45
4039
6304

query I rowsort
SELECT - 87 + col0 AS col2 FROM tab0 AS cor0
----
-52
-63
2

query I rowsort
SELECT ALL - 21 + + cor0.col2 + col1 * col0 AS col0 FROM tab0 cor0
----
2076
3375
8160

query I rowsort
SELECT ALL + - col1 + col1 * - 13 FROM tab1 AS cor0
----
-140
-182
-364

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col2 + - col0 col2 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT + - col1 + - col2 + + col2 AS col0 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT - - col2 * - 97 FROM tab2 cor0
----
-2522
-2619
-3686

onlyif mysql # use DIV operator for integer division
query I rowsort label-6730
SELECT + + col0 * 55 DIV col1 col2 FROM tab0 cor0
----
15
19
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6730
SELECT + + col0 * 55 / col1 col2 FROM tab0 cor0
----
15
19
53

query I rowsort
SELECT + col2 * ( ( - col1 ) ) FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL - col0 * - col0 - 65 AS col2 FROM tab2 AS cor0
----
-16
6019
6176

onlyif mysql # use DIV operator for integer division
query I rowsort label-6733
SELECT ALL + cor0.col1 DIV - cor0.col1 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6733
SELECT ALL + cor0.col1 / - cor0.col1 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + 70 * - 74 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to d56a6d91ac1e88998864c6222ee98ce5

query I rowsort
SELECT + 11 + col0 FROM tab0
----
100
35
46

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6736
SELECT DISTINCT CAST( NULL AS SIGNED ) + - col2 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6736
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - col2 AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6737
SELECT + CAST( col1 AS SIGNED ) - - col0 FROM tab2 AS cor0
----
137
38
96

skipif mysql # not compatible
query I rowsort label-6737
SELECT + CAST ( col1 AS INTEGER ) - - col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL 96 + col2 + col2 FROM tab0 AS cor0
----
162
260
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6739
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + cor0.col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6739
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + cor0.col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + 67 FROM tab2 cor0
----
67
67
67

query I rowsort
SELECT DISTINCT + 88 * + 49 + col0 * col1 * + col0 FROM tab2 AS cor0
----
110409
363268
5831

query I rowsort
SELECT DISTINCT + col0 * + 27 AS col0 FROM tab1 AS cor0
----
1728
2160
81

query I rowsort
SELECT + ( + col1 ) + - col2 + - col0 AS col2 FROM tab2 AS cor0
----
-100
-3
-45

query I rowsort
SELECT - col2 * + 45 FROM tab0 AS cor0
----
-1485
-3690
-45

query I rowsort
SELECT ALL - + ( col2 ) AS col0 FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT - ( col0 ) * cor0.col2 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT - - cor0.col2 * + 87 FROM tab2 AS cor0
----
2262
2349
3306

query I rowsort
SELECT + + 49 * + col0 + col1 * + cor0.col1 * - cor0.col0 + + col1 AS col1 FROM tab2 AS cor0
----
-18943
-267637
-6353

query I rowsort
SELECT DISTINCT + 36 + col1 * col2 FROM tab1 AS cor0
----
1284
1440
606

query I rowsort
SELECT ALL tab2.col0 * + ( col2 ) + col0 - + col1 * - col1 FROM tab2
----
1157
3370
5587

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + 26 - - col0 col2 FROM tab0
----
2403
648
945

query I rowsort
SELECT + col2 + col0 + 94 AS col1 FROM tab2
----
128
198
211

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6753
SELECT ALL col1 * + CAST( - 16 AS SIGNED ) * tab1.col0 + 72 - + 70 * - col0 FROM tab1
----
-10968
-5688
-966

skipif mysql # not compatible
query I rowsort label-6753
SELECT ALL col1 * + CAST ( - 16 AS INTEGER ) * tab1.col0 + 72 - + 70 * - col0 FROM tab1
----
-10968
-5688
-966

query I rowsort
SELECT ALL - ( 27 ) * col2 FROM tab2 AS cor0
----
-1026
-702
-729

query I rowsort
SELECT col0 + cor0.col1 * cor0.col1 AS col0 FROM tab2 cor0
----
3559
368
968

query I rowsort
SELECT - + col1 * + 6 FROM tab1 AS cor0
----
-156
-60
-78

query I rowsort
SELECT + ( - col0 ) * col1 - + ( col0 ) FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT DISTINCT col1 * - tab2.col2 + col2 + col0 * - 44 FROM tab2
----
-1118
-4084
-4940

onlyif mysql # use DIV operator for integer division
query I rowsort label-6759
SELECT ALL - col2 + + 48 DIV col1 + - ( - tab1.col2 ) FROM tab1
----
1
3
4

skipif mysql # not compatible
query I rowsort label-6759
SELECT ALL - col2 + + 48 / col1 + - ( - tab1.col2 ) FROM tab1
----
1
3
4

query I rowsort
SELECT ALL - + 44 * + 12 FROM tab1 AS cor0
----
-528
-528
-528

onlyif mysql # use DIV operator for integer division
query I rowsort label-6761
SELECT + col2 DIV - col2 + - col1 * + col2 FROM tab1 AS cor0
----
-1249
-1405
-571

skipif mysql # not compatible
query I rowsort label-6761
SELECT + col2 / - col2 + - col1 * + col2 FROM tab1 AS cor0
----
-1249
-1405
-571

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6762
SELECT ALL + CAST( NULL AS SIGNED ) + + 61 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6762
SELECT ALL + CAST ( NULL AS INTEGER ) + + 61 AS col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN + col2 * col2 AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6764
SELECT col0 * col1 + + col2 + + col1 DIV col0 AS col1 FROM tab2
----
1381
248
4628

skipif mysql # not compatible
query I rowsort label-6764
SELECT col0 * col1 + + col2 + + col1 / col0 AS col1 FROM tab2
----
1381
248
4628

query I rowsort
SELECT + col0 FROM tab2 WHERE ( + col1 * - col0 ) NOT IN ( col1 * col2 )
----
7
78
79

query I rowsort
SELECT + tab0.col2 * col2 - col0 AS col2 FROM tab0
----
-34
1065
6635

onlyif mysql # use DIV operator for integer division
query I rowsort label-6767
SELECT DISTINCT + col0 DIV col1 + col2 - tab1.col0 AS col2 FROM tab1
----
-1
22
51

skipif mysql # not compatible
query I rowsort label-6767
SELECT DISTINCT + col0 / col1 + col2 - tab1.col0 AS col2 FROM tab1
----
-1
22
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-6768
SELECT DISTINCT - col2 * tab0.col0 DIV - col0 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-6768
SELECT DISTINCT - col2 * tab0.col0 / - col0 FROM tab0
----
1
33
82

query I rowsort
SELECT col0 + - col0 FROM tab0 WHERE ( NULL ) <> col1 + - col1
----

query I rowsort
SELECT col2 * - col2 + tab0.col1 - tab0.col1 FROM tab0
----
-1
-1089
-6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-6771
SELECT - col0 + col2 DIV + col0 FROM tab0
----
-23
-35
-89

skipif mysql # not compatible
query I rowsort label-6771
SELECT - col0 + col2 / + col0 FROM tab0
----
-23
-35
-89

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col0 / col2 ) IN ( + col0 + col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

onlyif mysql # use DIV operator for integer division
query I rowsort label-6773
SELECT col2 DIV + col1 AS col1 FROM tab1
----
2
5
7

skipif mysql # not compatible
query I rowsort label-6773
SELECT col2 / + col1 AS col1 FROM tab1
----
2
5
7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN + col2 * col1 AND ( - col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE col0 <= + col1
----
7
31
27

query I rowsort
SELECT col0 + tab1.col1 * - col2 * - col1 FROM tab1
----
16304
36507
5764

query I rowsort
SELECT ALL - col2 + - tab1.col2 AS col0 FROM tab1
----
-108
-114
-192

query I rowsort
SELECT ALL + col0 * col0 * + col0 FROM tab1
----
262144
27
512000

query I rowsort
SELECT DISTINCT col0 * col0 * - col2 FROM tab0
----
-1225
-19008
-649522

query I rowsort
SELECT - col2 * - col0 + col2 AS col2 FROM tab2
----
2054
216
3040

query I rowsort
SELECT col2 * - col0 FROM tab1 WHERE NULL < ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6782
SELECT ALL - col1 + col1 * - col1 DIV + col1 FROM tab2
----
-118
-34
-62

skipif mysql # not compatible
query I rowsort label-6782
SELECT ALL - col1 + col1 * - col1 / + col1 FROM tab2
----
-118
-34
-62

query I rowsort
SELECT + col2 * + col0 + col0 * - col1 FROM tab0
----
-1272
-3360
-801

onlyif mysql # use DIV operator for integer division
query I rowsort label-6784
SELECT col1 DIV + col1 + + 77 + - col1 DIV col2 AS col0 FROM tab0 AS cor0
----
-19
76
77

skipif mysql # not compatible
query I rowsort label-6784
SELECT col1 / + col1 + + 77 + - col1 / col2 AS col0 FROM tab0 AS cor0
----
-19
76
77

query I rowsort
SELECT - col1 * + col1 + - col1 FROM tab2
----
-306
-3540
-992

query I rowsort
SELECT - col0 * col2 * col2 + col1 AS col0 FROM tab1
----
-207926
-737267
-8722

onlyif mysql # use DIV operator for integer division
query I rowsort label-6787
SELECT col2 DIV col2 + + tab0.col0 col0 FROM tab0
----
25
36
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6787
SELECT col2 / col2 + + tab0.col0 col0 FROM tab0
----
25
36
90

query I rowsort
SELECT ALL - col2 - - col2 AS col0 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 >= NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6790
SELECT col0 DIV col1 + + col0 AS col1 FROM tab2
----
7
79
83

skipif mysql # not compatible
query I rowsort label-6790
SELECT col0 / col1 + + col0 AS col1 FROM tab2
----
7
79
83

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN - col2 / tab2.col1 AND col1
----

query I rowsort
SELECT col2 AS col2 FROM tab0 WHERE NOT - col1 * col0 IN ( col2 / - col0 )
----
1
33
82

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < col2 + + col0
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6794
SELECT tab0.col0 DIV - col2 + col2 FROM tab0
----
-34
33
81

skipif mysql # not compatible
query I rowsort label-6794
SELECT tab0.col0 / - col2 + col2 FROM tab0
----
-34
33
81

query I rowsort
SELECT ALL + cor0.col0 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT col0 + + tab0.col0 * tab0.col0 AS col2 FROM tab0
----
1260
600
8010

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL = - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col1 * - cor0.col0 col1 FROM tab2 AS cor0
----
-22831
-271518
-6727

onlyif mysql # use DIV operator for integer division
query I rowsort label-6799
SELECT col0 DIV col0 col2 FROM tab1 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6799
SELECT col0 / col0 col2 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT - cor0.col0 * cor0.col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col2 * col0 + cor0.col1 * - cor0.col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 1 col1 FROM tab0, tab2 AS cor0
----
1

query I rowsort
SELECT col2 * 76 + col0 AS col0 FROM tab0 AS cor0
----
111
2532
6321

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6803
SELECT DISTINCT CAST( + 39 AS SIGNED ) + + cor0.col0 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 AS cor2
----
128
63
74

skipif mysql # not compatible
query I rowsort label-6803
SELECT DISTINCT CAST ( + 39 AS INTEGER ) + + cor0.col0 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 AS cor2
----
128
63
74

query I rowsort
SELECT ALL col1 + 14 * + col2 * col0 AS col1 FROM tab2
----
2677
28451
42045

query I rowsort
SELECT 32 FROM tab0, tab2 cor0, tab1 cor1, tab0 cor2
----
81 values hashing to 6bef041528d0147be26f7de162c66a5f

query I rowsort
SELECT - 89 + - cor0.col1 AS col1 FROM tab0 AS cor0
----
-175
-180
-186

query I rowsort
SELECT DISTINCT - ( + col1 ) + + cor0.col0 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT + 94 + col1 * + col1 FROM tab0 AS cor0
----
7490
8375
9503

query I rowsort
SELECT ALL - + cor0.col1 * 75 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
48000
5850
78000

query I rowsort
SELECT - 10 * cor0.col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 5e22af8b7528912f3b8522f470befb82

onlyif mysql # use DIV operator for integer division
query I rowsort label-6811
SELECT ALL - 82 DIV + col0 col2 FROM tab1
----
-1
-1
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6811
SELECT ALL - 82 / + col0 col2 FROM tab1
----
-1
-1
-27

query I rowsort
SELECT + col2 * + col0 + - col0 * col1 FROM tab2 AS cor0
----
-2574
-28
1659

query I rowsort
SELECT DISTINCT cor0.col0 + - cor0.col0 FROM tab2, tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 + 1 * col0 * + col2 col2 FROM tab0 AS cor0
----
15579
8188
9444

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6815
SELECT + - col0 * CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6815
SELECT + - col0 * CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + col2 col1 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT ALL + - col2 - + 93 FROM tab2 AS cor0
----
-119
-120
-131

query I rowsort
SELECT tab2.col2 * tab2.col1 AS col1 FROM tab2
----
1534
646
837

query I rowsort
SELECT - + cor0.col1 + + col0 AS col1 FROM tab1 cor0
----
-23
54
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-6820
SELECT DISTINCT + 10 DIV + 54 + cor0.col1 AS col1 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-6820
SELECT DISTINCT + 10 / + 54 + cor0.col1 AS col1 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6821
SELECT - CAST( - col2 AS SIGNED ) * cor0.col0 FROM tab0 AS cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-6821
SELECT - CAST ( - col2 AS INTEGER ) * cor0.col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT - ( col0 ) + cor0.col2 FROM tab1 cor0
----
-7
16
51

query I rowsort
SELECT ALL + 28 * - col1 FROM tab1 AS cor0
----
-280
-364
-728

query I rowsort
SELECT DISTINCT + 41 * + col0 + - col1 FROM tab1 AS cor0
----
2614
3267
97

query I rowsort
SELECT DISTINCT + col1 * - col2 + ( col1 ) AS col2 FROM tab2
----
-1475
-629
-806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 50 + col0 col2 FROM tab1 AS cor0
----
-47
14
30

query I rowsort
SELECT - ( col0 ) * col1 + col2 * col1 FROM tab2
----
-3068
-697
620

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6828
SELECT - CAST( + col1 AS SIGNED ) - col1 col2 FROM tab2
----
-118
-34
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6828
SELECT - CAST ( + col1 AS INTEGER ) - col1 col2 FROM tab2
----
-118
-34
-62

query I rowsort
SELECT DISTINCT + ( col2 * - col0 ) AS col1 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT ALL col0 * 83 AS col0 FROM tab2
----
581
6474
6557

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6831
SELECT CAST( - 12 * col2 AS SIGNED ) + tab0.col2 * + col0 FROM tab0
----
23
396
6314

skipif mysql # not compatible
query I rowsort label-6831
SELECT CAST ( - 12 * col2 AS INTEGER ) + tab0.col2 * + col0 FROM tab0
----
23
396
6314

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col0 * + col1 * - col0 col2 FROM tab0
----
-118824
-49503
-720729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 71 * - 90 col0 FROM tab1
----
6390

query I rowsort
SELECT + col1 * + ( - col0 + col0 ) AS col2 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col1 col1 FROM tab1
----
-100
-169
-676

query I rowsort
SELECT ALL 66 AS col1 FROM tab2
----
66
66
66

query I rowsort
SELECT 63 * - col2 AS col0 FROM tab0
----
-2079
-5166
-63

onlyif mysql # use DIV operator for integer division
query I rowsort label-6838
SELECT + col2 DIV - col1 AS col2 FROM tab1
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-6838
SELECT + col2 / - col1 AS col2 FROM tab1
----
-2
-5
-7

query I rowsort
SELECT ALL 93 * + col1 - + col1 AS col1 FROM tab1
----
1196
2392
920

query I rowsort
SELECT ALL + col0 * + col2 + col2 AS col0 FROM tab0 cor0
----
36
7380
825

onlyif mysql # use DIV operator for integer division
query I rowsort label-6841
SELECT DISTINCT col2 * 87 + 58 DIV - col0 + - col1 * - col1 FROM tab0 AS cor0
----
10265
15415
9495

skipif mysql # not compatible
query I rowsort label-6841
SELECT DISTINCT col2 * 87 + 58 / - col0 + - col1 * - col1 FROM tab0 AS cor0
----
10265
15415
9495

onlyif mysql # use DIV operator for integer division
query I rowsort label-6842
SELECT DISTINCT + col1 DIV + 9 FROM tab2 AS cor0
----
1
3
6

skipif mysql # not compatible
query I rowsort label-6842
SELECT DISTINCT + col1 / + 9 FROM tab2 AS cor0
----
1
3
6

query I rowsort
SELECT col0 * + col2 + - ( cor0.col0 ) * - col1 FROM tab1 cor0
----
240
4288
8720

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2, tab1 cor0, tab0 AS cor1
----
972 values hashing to 9b91cf9fcc064ee1c13074a678b72ac7

query I rowsort
SELECT ALL col2 - - col0 * - tab1.col2 FROM tab1
----
-108
-3591
-7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-6846
SELECT ALL - 31 DIV - col0 - + col1 AS col0 FROM tab0
----
-85
-91
-97

skipif mysql # not compatible
query I rowsort label-6846
SELECT ALL - 31 / - col0 - + col1 AS col0 FROM tab0
----
-85
-91
-97

query I rowsort
SELECT ALL + col1 * ( 0 ) + col0 AS col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT col1 * col0 + col1 AS col2 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT DISTINCT + - col2 + 62 AS col0 FROM tab1 AS cor0
----
-34
5
8

query I rowsort
SELECT DISTINCT + cor0.col0 + 49 AS col2 FROM tab0 cor0
----
138
73
84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6851
SELECT ALL col0 * + CAST( NULL AS SIGNED ) + - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6851
SELECT ALL col0 * + CAST ( NULL AS INTEGER ) + - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * col2 + col0 * col1 * col0 FROM tab1 AS cor0
----
396
44608
90880

query I rowsort
SELECT ALL - col0 + col2 * 20 FROM tab0 cor0
----
-15
1551
636

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col2 * col2 + col0 col0 FROM tab0
----
-611795
-62
-93630

query I rowsort
SELECT ALL + col0 * col0 + col0 * col2 AS col1 FROM tab1
----
14080
171
7744

query I rowsort
SELECT DISTINCT - col2 + tab2.col1 * tab2.col0 FROM tab2
----
1305
190
4576

query I rowsort
SELECT DISTINCT col2 * + tab0.col0 + col1 FROM tab0
----
132
7389
878

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + tab0.col1 col2 FROM tab0
----
119
173
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-6859
SELECT ALL + col0 DIV - col1 col0 FROM tab0 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6859
SELECT ALL + col0 / - col1 col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL + col0 * + col1 - + cor0.col1 AS col2 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT + col1 + - col0 * + col1 * col2 FROM tab0 AS cor0
----
-3298
-664027
-68026

query I rowsort
SELECT ALL + col1 - col2 * - cor0.col2 * + col2 FROM tab2 AS cor0
----
17635
19714
54889

query I rowsort
SELECT DISTINCT + col1 + cor0.col0 * - col0 * col1 FROM tab0 cor0
----
-118728
-49450
-720720

query I rowsort
SELECT DISTINCT tab0.col2 + col0 * - col1 * col0 AS col1 FROM tab0
----
-118824
-49503
-720729

query I rowsort
SELECT col0 + col0 + + tab1.col0 FROM tab1
----
192
240
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - + col0 col2 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT ALL + col1 * cor0.col0 * cor0.col1 AS col2 FROM tab2 AS cor0
----
22831
271518
6727

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 * col0 + col2 col0 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT ALL + col1 * - col1 * - col2 FROM tab0 AS cor0
----
244068
679042
9409

query I rowsort
SELECT - - col1 + + col2 * + col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT ALL col2 + col2 + - cor0.col0 * + col1 AS col2 FROM tab1 AS cor0
----
-526
-848
30

query I rowsort
SELECT ALL - col2 * - cor0.col1 * col2 AS col1 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT ALL + col0 * col2 * col0 + - col2 FROM tab0
----
1224
18975
649440

query I rowsort
SELECT ALL + col0 * + col2 + col0 FROM tab0
----
70
7387
816

query I rowsort
SELECT DISTINCT col1 * - col0 + + col0 AS col2 FROM tab1
----
-576
-75
-960

query I rowsort
SELECT + col1 * col1 + cor0.col2 * col2 FROM tab2 AS cor0
----
1690
1733
4157

onlyif mysql # use DIV operator for integer division
query I rowsort label-6877
SELECT DISTINCT - col2 DIV - col1 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6877
SELECT DISTINCT - col2 / - col1 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + + cor0.col2 * - col0 + col0 * - col0 AS col0 FROM tab2 AS cor0
----
-238
-8112
-9243

query I rowsort
SELECT ALL 22 + + col1 AS col2 FROM tab0 AS cor0
----
108
113
119

query I rowsort
SELECT ALL + col0 * + col1 + col2 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT DISTINCT - col1 * - col2 - + col1 * col1 FROM tab2 AS cor0
----
-124
-1947
357

query I rowsort
SELECT - + col1 + col2 * col1 AS col1 FROM tab0 AS cor0
----
0
2752
7371

onlyif mysql # use DIV operator for integer division
query I rowsort label-6883
SELECT DISTINCT col0 * - col0 - tab0.col2 DIV col1 AS col1 FROM tab0
----
-1225
-576
-7921

skipif mysql # not compatible
query I rowsort label-6883
SELECT DISTINCT col0 * - col0 - tab0.col2 / col1 AS col1 FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT + - 73 AS col2 FROM tab1 AS cor0
----
-73
-73
-73

query I rowsort
SELECT ALL + tab0.col2 * col2 * - col2 FROM tab0
----
-1
-35937
-551368

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col1 + 33 * col2 col0 FROM tab2 AS cor0
----
-2623
-70
965

query I rowsort
SELECT col0 * + 67 FROM tab2 AS cor0
----
469
5226
5293

query I rowsort
SELECT - 3 AS col0 FROM tab1
----
-3
-3
-3

query I rowsort
SELECT DISTINCT 56 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
56

query I rowsort
SELECT ALL col2 + col0 * 64 * cor0.col1 FROM tab2 AS cor0
----
13915
294554
85990

query I rowsort
SELECT DISTINCT + - 89 * + col2 AS col2 FROM tab2 cor0
----
-2314
-2403
-3382

query I rowsort
SELECT ALL + 32 * 39 * + col2 AS col2 FROM tab1 AS cor0
----
119808
67392
71136

query I rowsort
SELECT + 67 * + 48 AS col2 FROM tab0 cor0
----
3216
3216
3216

query I rowsort
SELECT - - ( + col2 ) * col2 + col0 + ( - cor0.col0 ) FROM tab2 AS cor0
----
1444
676
729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 27 * col0 * - cor0.col1 col0 FROM tab0 AS cor0
----
-218673
-55728
-91665

query I rowsort
SELECT ALL col0 + col0 * col0 * + col0 AS col0 FROM tab0 AS cor0
----
13848
42910
705058

query I rowsort
SELECT - - ( col2 ) + col1 FROM tab2 AS cor0
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-6898
SELECT + - col2 + - col0 + - col2 DIV + 59 AS col0 FROM tab2 AS cor0
----
-104
-117
-34

skipif mysql # not compatible
query I rowsort label-6898
SELECT + - col2 + - col0 + - col2 / + 59 AS col0 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT ( col1 ) + + col2 AS col0 FROM tab1 AS cor0
----
109
67
80

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab0, tab1 AS cor1
----
3645 values hashing to def82b52aa9c83b91991d7d043276abe

query I rowsort
SELECT ALL 35 * - col1 FROM tab1
----
-350
-455
-910

query I rowsort
SELECT 21 * col2 AS col2 FROM tab2
----
546
567
798

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6903
SELECT CAST( 11 AS SIGNED ) FROM tab0, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c

skipif mysql # not compatible
query I rowsort label-6903
SELECT CAST ( 11 AS INTEGER ) FROM tab0, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c

query I rowsort
SELECT DISTINCT - + cor0.col1 + - col2 FROM tab2 cor0
----
-55
-58
-85

query I rowsort
SELECT ALL - cor0.col1 + col1 * + col1 + col0 FROM tab2 AS cor0
----
3500
351
937

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6906
SELECT DISTINCT CAST( NULL AS SIGNED ) col2 FROM tab2, tab1, tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6906
SELECT DISTINCT CAST ( NULL AS INTEGER ) col2 FROM tab2, tab1, tab2 cor0
----
NULL

query I rowsort
SELECT ALL cor0.col1 * col0 + - col1 AS col2 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT - ( tab0.col0 ) * col2 * - ( + col1 ) FROM tab0
----
3395
664118
68112

query I rowsort
SELECT + cor0.col0 + - ( - col0 ) * + col1 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT DISTINCT - + cor0.col0 + 29 AS col1 FROM tab0 AS cor0
----
-6
-60
5

query I rowsort
SELECT ALL + 63 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 38764a6e696d1a6b5095e29ef84959c0

query I rowsort
SELECT - col2 + + col0 + col1 FROM tab0 AS cor0
----
131
77
98

query I rowsort
SELECT + - 32 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

query I rowsort
SELECT ALL + ( - col2 ) + + col0 * 48 * - 5 FROM tab0 AS cor0
----
-21442
-5793
-8401

query I rowsort
SELECT 21 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT DISTINCT + 22 * 9 AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab1 AS cor2
----
198

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 AS cor2
----
972 values hashing to 01a5931cccc3dad8792a1bc6df09c614

query I rowsort
SELECT 10 * 91 FROM tab0, tab0 AS cor0
----
9 values hashing to b95c60aab03b44187156483cae995286

query I rowsort
SELECT col1 + 95 AS col2 FROM tab2
----
112
126
154

query I rowsort
SELECT ALL col0 - + col2 * + col0 FROM tab2
----
-182
-1950
-2923

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6921
SELECT CAST( 20 AS SIGNED ) * + col2 + - 80 FROM tab2 AS cor0
----
440
460
680

skipif mysql # not compatible
query I rowsort label-6921
SELECT CAST ( 20 AS INTEGER ) * + col2 + - 80 FROM tab2 AS cor0
----
440
460
680

query I rowsort
SELECT + + col1 * 79 AS col2 FROM tab1 AS cor0
----
1027
2054
790

query I rowsort
SELECT + ( 18 ) - - col0 * 98 FROM tab2 AS cor0
----
704
7662
7760

query I rowsort
SELECT ALL + - ( col1 ) * + col2 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT ( cor0.col2 ) - - cor0.col1 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT - col0 * - 34 + col0 * col2 AS col1 FROM tab1 AS cor0
----
10400
264
5824

query I rowsort
SELECT ALL cor0.col0 * col1 * cor0.col0 AS col1 FROM tab0 AS cor0
----
118825
49536
720811

query I rowsort
SELECT - + col2 - 26 AS col0 FROM tab1 AS cor0
----
-122
-80
-83

query I rowsort
SELECT - + col0 * ( - col1 ) * - col1 FROM tab0 cor0
----
-177504
-329315
-737009

query I rowsort
SELECT + - col2 + 85 AS col2 FROM tab2 cor0
----
47
58
59

query I rowsort
SELECT ALL + col0 + - col0 AS col1 FROM tab0
----
0
0
0

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 AS cor2
----
972 values hashing to e4c748f267e8d2a0e6d563281e1fb975

query I rowsort
SELECT + - 41 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + col2 + - col1 col1 FROM tab2 AS cor0
----
100
3
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-6935
SELECT + col2 * - 36 + + col1 DIV col0 AS col0 FROM tab0 AS cor0
----
-1185
-2951
-34

skipif mysql # not compatible
query I rowsort label-6935
SELECT + col2 * - 36 + + col1 / col0 AS col0 FROM tab0 AS cor0
----
-1185
-2951
-34

onlyif mysql # use DIV operator for integer division
query I rowsort label-6936
SELECT ALL + + col1 DIV 45 + col1 + col0 * 27 col0 FROM tab2 AS cor0
----
2150
2166
220

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6936
SELECT ALL + + col1 / 45 + col1 + col0 * 27 col0 FROM tab2 AS cor0
----
2150
2166
220

query I rowsort
SELECT DISTINCT + col1 - 99 FROM tab0 AS cor0
----
-13
-2
-8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6938
SELECT ALL + cor0.col2 * CAST( - col0 + cor0.col0 AS SIGNED ) * + col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6938
SELECT ALL + cor0.col2 * CAST ( - col0 + cor0.col0 AS INTEGER ) * + col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL cor0.col0 * col1 - col0 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT - col2 * + ( col2 ) + col2 AS col2 FROM tab0 AS cor0
----
-1056
-6642
0

query I rowsort
SELECT ALL col2 + - ( col1 ) FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT - col2 + - 84 FROM tab1 AS cor0
----
-138
-141
-180

query I rowsort
SELECT ALL - - col1 * ( - col2 ) AS col1 FROM tab0 cor0
----
-2838
-7462
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6944
SELECT DISTINCT - col2 - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6944
SELECT DISTINCT - col2 - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + col1 + ( + col0 ) * col0 FROM tab1 AS cor0
----
-17
4086
6387

query I rowsort
SELECT ALL - col1 * col1 + - col1 * - col0 + + col2 FROM tab0 AS cor0
----
-100
-5299
-6013

query I rowsort
SELECT - - 91 + col0 * cor0.col1 AS col2 FROM tab1 AS cor0
----
1131
169
731

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6948
SELECT DISTINCT - CAST( col0 AS SIGNED ) + - col1 * col2 AS col1 FROM tab0 AS cor0
----
-132
-2862
-7551

skipif mysql # not compatible
query I rowsort label-6948
SELECT DISTINCT - CAST ( col0 AS INTEGER ) + - col1 * col2 AS col1 FROM tab0 AS cor0
----
-132
-2862
-7551

query I rowsort
SELECT ALL + col1 + - 18 FROM tab1 AS cor0
----
-5
-8
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 43 col0 FROM tab0 AS cor0
----
43
43
43

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6951
SELECT col0 * cor0.col2 + - col2 / + CAST( NULL AS SIGNED ) + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6951
SELECT col0 * cor0.col2 + - col2 / + CAST ( NULL AS INTEGER ) + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 33 + col2 FROM tab2 AS cor0
----
-6
-7
5

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 cor0, tab1 AS cor1, tab0 cor2
----
972 values hashing to 5342fb4caf4767cb98bd21989bad099f

query I rowsort
SELECT + cor0.col0 - col1 AS col2 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT + ( - col0 ) * - ( + col0 ) AS col1 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT + - cor0.col0 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-6957
SELECT - - col0 DIV - col1 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6957
SELECT - - col0 / - col1 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 36 * - col0 FROM tab0 AS cor0
----
-1260
-3204
-864

query I rowsort
SELECT ALL - col1 + col1 + col0 AS col2 FROM tab2 cor0
----
7
78
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6960
SELECT DISTINCT + CAST( NULL AS DECIMAL ) AS col1 FROM tab2, tab0 AS cor0, tab0 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6960
SELECT DISTINCT + CAST ( NULL AS REAL ) AS col1 FROM tab2, tab0 AS cor0, tab0 cor1
----
NULL

query I rowsort
SELECT + 3 * col2 FROM tab0 cor0
----
246
3
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-6962
SELECT - col2 DIV - tab0.col2 AS col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6962
SELECT - col2 / - tab0.col2 AS col1 FROM tab0
----
1
1
1

query I rowsort
SELECT tab1.col2 - - col1 AS col2 FROM tab1
----
109
67
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 52 + + tab2.col0 - col2 col0 FROM tab2
----
104
32
93

query I rowsort
SELECT DISTINCT col0 + + ( col0 ) * + cor0.col1 * col2 AS col0 FROM tab2 AS cor0
----
119730
51113
5866

query I rowsort
SELECT 41 + col1 * tab1.col2 AS col0 FROM tab1
----
1289
1445
611

query I rowsort
SELECT ALL col2 * col0 * - col1 + 82 AS col2 FROM tab0
----
-3313
-664036
-68030

query I rowsort
SELECT ALL 3 + + col1 - col1 * 79 AS col0 FROM tab1
----
-1011
-2025
-777

query I rowsort
SELECT - + cor0.col0 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT ALL col2 * col0 - col0 FROM tab2
----
182
1950
2923

query I rowsort
SELECT col2 * col1 - + col0 AS col2 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT ALL + + cor0.col0 + + col0 FROM tab2 AS cor0
----
14
156
158

onlyif mysql # use DIV operator for integer division
query I rowsort label-6973
SELECT - col0 DIV 18 FROM tab1 AS cor0
----
-3
-4
0

skipif mysql # not compatible
query I rowsort label-6973
SELECT - col0 / 18 FROM tab1 AS cor0
----
-3
-4
0

query I rowsort
SELECT + tab2.col2 + - col0 * + tab2.col1 FROM tab2
----
-1305
-190
-4576

query I rowsort
SELECT cor0.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

onlyif mysql # use DIV operator for integer division
query I rowsort label-6976
SELECT + col1 + - 83 + - ( - col2 ) DIV + col1 AS col0 FROM tab0
----
14
3
8

skipif mysql # not compatible
query I rowsort label-6976
SELECT + col1 + - 83 + - ( - col2 ) / + col1 AS col0 FROM tab0
----
14
3
8

query I rowsort
SELECT DISTINCT - col0 * + col1 * - col2 + tab1.col0 + + 40 AS col1 FROM tab1
----
36584
4255
99960

query I rowsort
SELECT - col0 * ( - cor0.col1 ) * - col1 AS col0 FROM tab2 AS cor0
----
-22831
-271518
-6727

query I rowsort
SELECT ALL + col2 * - 94 AS col0 FROM tab2 AS cor0
----
-2444
-2538
-3572

query I rowsort
SELECT + col1 - + 78 FROM tab0 AS cor0
----
13
19
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-6981
SELECT col1 - 67 DIV col0 AS col2 FROM tab0 AS cor0
----
84
91
96

skipif mysql # not compatible
query I rowsort label-6981
SELECT col1 - 67 / col0 AS col2 FROM tab0 AS cor0
----
84
91
96

query I rowsort
SELECT - - col0 * - 70 + col2 AS col2 FROM tab2 AS cor0
----
-463
-5434
-5492

query I rowsort
SELECT col0 + 7 AS col1 FROM tab1
----
10
71
87

query I rowsort
SELECT ( ( + tab2.col2 ) + - col0 * 62 ) FROM tab2
----
-407
-4810
-4860

query I rowsort
SELECT - ( - 37 ) + - col0 * col1 * col0 FROM tab1
----
-197
-40923
-83163

query I rowsort
SELECT DISTINCT 45 * - 9 AS col1 FROM tab1 AS cor0
----
-405

query I rowsort
SELECT tab2.col0 * - col1 AS col1 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT ALL 0 * + tab0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * cor0.col1 col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL - cor0.col0 * + col2 + + 58 FROM tab1 AS cor0
----
-104
-3590
-7622

query I rowsort
SELECT DISTINCT - col2 * + col1 - + col1 * cor0.col0 FROM tab0 AS cor0
----
-15561
-3492
-4902

query I rowsort
SELECT ALL + - col2 * cor0.col0 * col0 FROM tab2 AS cor0
----
-1323
-158184
-237158

query I rowsort
SELECT DISTINCT + + col1 * col0 * - 34 FROM tab0 AS cor0
----
-115430
-275366
-70176

query I rowsort
SELECT 32 AS col0 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to cf4f01ac97eb83445b1721f3ae28961a

query I rowsort
SELECT + - 4 AS col2 FROM tab2 AS cor0
----
-4
-4
-4

query I rowsort
SELECT DISTINCT 81 + col2 * col0 AS col1 FROM tab0 cor0
----
116
7379
873

onlyif mysql # use DIV operator for integer division
query I rowsort label-6997
SELECT ALL - col2 DIV - cor0.col2 AS col0 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6997
SELECT ALL - col2 / - cor0.col2 AS col0 FROM tab1 cor0
----
1
1
1

query I rowsort
SELECT ALL + + 40 * col0 + + col0 * cor0.col1 AS col0 FROM tab0 AS cor0
----
11659
3024
4795

query I rowsort
SELECT + col1 + col0 * 79 AS col0 FROM tab2 AS cor0
----
584
6221
6258

query I rowsort
SELECT - + col0 + + col2 * + col0 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT 10 + + 77 AS col0 FROM tab1 AS cor0
----
87
87
87

query I rowsort
SELECT - col0 + - col0 * + tab2.col2 FROM tab2
----
-196
-2106
-3081

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7003
SELECT - col1 * - ( - col2 ) + col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7003
SELECT - col1 * - ( - col2 ) + col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7004
SELECT DISTINCT + col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7004
SELECT DISTINCT + col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 cor0 CROSS JOIN tab2 AS cor1
----
243 values hashing to 2248b8c3b6efacb4e8fc6d9f81b7df8b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7006
SELECT CAST( col2 AS SIGNED ) * col2 FROM tab1 AS cor0
----
2916
3249
9216

skipif mysql # not compatible
query I rowsort label-7006
SELECT CAST ( col2 AS INTEGER ) * col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT - 89 + - col2 AS col1 FROM tab2 AS cor0
----
-115
-116
-127

onlyif mysql # use DIV operator for integer division
query I rowsort label-7008
SELECT 85 + col1 * col1 DIV - col0 AS col2 FROM tab1 AS cor0
----
-140
83
84

skipif mysql # not compatible
query I rowsort label-7008
SELECT 85 + col1 * col1 / - col0 AS col2 FROM tab1 AS cor0
----
-140
83
84

query I rowsort
SELECT - - ( col1 ) + col1 FROM tab1 cor0
----
20
26
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7010
SELECT ALL + CAST( - 19 AS SIGNED ) AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 0fbbff28a7b63c37b01cf369f9325662

skipif mysql # not compatible
query I rowsort label-7010
SELECT ALL + CAST ( - 19 AS INTEGER ) AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 0fbbff28a7b63c37b01cf369f9325662

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 73 * 88 col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1d5b73db2189e182dafd67018599d113

query I rowsort
SELECT - 76 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
6536
6916
7372

query I rowsort
SELECT - + col2 * - col0 + - 80 FROM tab2 AS cor0
----
109
1948
2922

query I rowsort
SELECT DISTINCT col0 + - col2 * 50 * 95 - - col0 * col0 FROM tab0 AS cor0
----
-156150
-3490
-381490

query I rowsort
SELECT DISTINCT - 31 + cor0.col0 FROM tab2 AS cor0
----
-24
47
48

onlyif mysql # use DIV operator for integer division
query I rowsort label-7016
SELECT - col1 DIV col0 + col2 FROM tab2 AS cor0
----
23
26
38

skipif mysql # not compatible
query I rowsort label-7016
SELECT - col1 / col0 + col2 FROM tab2 AS cor0
----
23
26
38

query I rowsort
SELECT + + col2 * + cor0.col2 - 43 FROM tab1 AS cor0
----
2873
3206
9173

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7018
SELECT - CAST( - 74 AS SIGNED ) AS col1 FROM tab1, tab2 cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

skipif mysql # not compatible
query I rowsort label-7018
SELECT - CAST ( - 74 AS INTEGER ) AS col1 FROM tab1, tab2 cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT - col2 * col2 + - 23 * col0 AS col0 FROM tab1 AS cor0
----
-11056
-2985
-4721

query I rowsort
SELECT DISTINCT col1 * - col2 * col1 + + col1 AS col0 FROM tab2
----
-10965
-25916
-90447

query I rowsort
SELECT ( - col0 ) + 63 * - col0 AS col2 FROM tab1
----
-192
-4096
-5120

query I rowsort
SELECT col0 - 65 AS col2 FROM tab0 AS cor0
----
-30
-41
24

query I rowsort
SELECT - col0 + 17 FROM tab1 AS cor0
----
-47
-63
14

query I rowsort
SELECT col0 + + ( - cor0.col0 + - col0 ) * - 44 FROM tab0 AS cor0
----
2136
3115
7921

query I rowsort
SELECT DISTINCT - col2 + + 85 - + col2 AS col1 FROM tab2
----
31
33
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-7026
SELECT + - col2 DIV - 11 - + 26 AS col0 FROM tab0 AS cor0
----
-19
-23
-26

skipif mysql # not compatible
query I rowsort label-7026
SELECT + - col2 / - 11 - + 26 AS col0 FROM tab0 AS cor0
----
-19
-23
-26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7027
SELECT - col1 * CAST( + col0 AS SIGNED ) * cor0.col0 AS col2 FROM tab0 cor0
----
-118825
-49536
-720811

skipif mysql # not compatible
query I rowsort label-7027
SELECT - col1 * CAST ( + col0 AS INTEGER ) * cor0.col0 AS col2 FROM tab0 cor0
----
-118825
-49536
-720811

query I rowsort
SELECT ALL - col0 * - col1 + + cor0.col2 * - col1 FROM tab2 AS cor0
----
-620
3068
697

onlyif mysql # use DIV operator for integer division
query I rowsort label-7029
SELECT + + col0 DIV + col0 AS col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7029
SELECT + + col0 / + col0 AS col1 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-7030
SELECT ALL + col2 DIV + 73 AS col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7030
SELECT ALL + col2 / + 73 AS col0 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT ALL + col0 + - ( + cor0.col2 ) AS col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT + - 20 + + col2 FROM tab0 AS cor0
----
-19
13
62

query I rowsort
SELECT + + 50 AS col1 FROM tab1 cor0
----
50
50
50

query I rowsort
SELECT ALL col1 * col1 + 40 + + col2 FROM tab2 AS cor0
----
1028
3547
367

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 72 col2 FROM tab0 AS cor0
----
-72
-72
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col2 * col0 + - tab2.col2 ) col0 FROM tab2
----
-162
-2002
-2964

query I rowsort
SELECT ALL 89 AS col2 FROM tab1
----
89
89
89

query I rowsort
SELECT cor0.col0 * tab1.col0 AS col1 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 5f0d3c96eb7e6285a2259b8e887cbdfe

query I rowsort
SELECT - col2 + tab2.col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - tab2.col2 FROM tab2, tab2 cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT - ( col2 ) + + col2 * 31 + col1 * + col1 AS col2 FROM tab0
----
10741
8386
9439

query I rowsort
SELECT - col2 + 69 FROM tab1 AS cor0
----
-27
12
15

query I rowsort
SELECT ALL - 53 + col2 FROM tab1 AS cor0
----
1
4
43

query I rowsort
SELECT ALL - ( col0 ) * col0 + - col2 AS col1 FROM tab0 cor0
----
-1226
-609
-8003

query I rowsort
SELECT DISTINCT + - 63 - + cor0.col0 * col0 FROM tab0 cor0
----
-1288
-639
-7984

query I rowsort
SELECT ALL - ( col2 ) + col0 + 63 AS col2 FROM tab1 AS cor0
----
12
47
70

query I rowsort
SELECT DISTINCT 5 + - tab2.col1 FROM tab2
----
-12
-26
-54

query I rowsort
SELECT - cor0.col1 + cor0.col0 * col1 * + 24 FROM tab1 AS cor0
----
15350
1846
24947

query I rowsort
SELECT 37 * + col0 AS col2 FROM tab2 AS cor0
----
259
2886
2923

query I rowsort
SELECT ALL - col1 * - col1 - - 53 FROM tab1 AS cor0
----
153
222
729

query I rowsort
SELECT DISTINCT - ( - cor0.col1 ) * ( col2 * - col1 ) + col1 FROM tab2 cor0
----
-10965
-25916
-90447

query I rowsort
SELECT + - 93 AS col0 FROM tab2 AS cor0
----
-93
-93
-93

query I rowsort
SELECT - + 42 AS col1 FROM tab1 AS cor0
----
-42
-42
-42

query I rowsort
SELECT DISTINCT - col0 - + col0 AS col1 FROM tab0 AS cor0
----
-178
-48
-70

query I rowsort
SELECT - cor2.col1 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 786a240f80bef6f9c6a190e92cd4f9e8

query I rowsort
SELECT col2 * ( 78 ) * - col1 + col1 AS col2 FROM tab1
----
-109486
-44450
-97331

query I rowsort
SELECT col0 * - col2 + - col1 AS col2 FROM tab0
----
-132
-7389
-878

query I rowsort
SELECT ALL - - col1 - + ( - col0 ) FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT - + cor0.col2 * ( - cor0.col1 ) AS col1 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-7060
SELECT ALL + col0 DIV + ( col1 ) AS col1 FROM tab2 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-7060
SELECT ALL + col0 / + ( col1 ) AS col1 FROM tab2 AS cor0
----
0
1
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-7061
SELECT DISTINCT cor0.col2 * + ( col0 * + col0 ) + ( + col1 ) DIV - cor0.col1 FROM tab2 AS cor0
----
1322
158183
237157

skipif mysql # not compatible
query I rowsort label-7061
SELECT DISTINCT cor0.col2 * + ( col0 * + col0 ) + ( + col1 ) / - cor0.col1 FROM tab2 AS cor0
----
1322
158183
237157

query I rowsort
SELECT ALL + - col1 - ( + col0 + + col1 ) FROM tab2 AS cor0
----
-113
-196
-69

query I rowsort
SELECT - col1 + - ( - cor0.col2 ) AS col0 FROM tab1 cor0
----
28
47
83

query I rowsort
SELECT ALL - 68 * - col2 AS col0 FROM tab0 AS cor0
----
2244
5576
68

query I rowsort
SELECT DISTINCT - 69 * cor0.col2 FROM tab0 AS cor0
----
-2277
-5658
-69

query I rowsort
SELECT + col0 * 82 * cor0.col1 AS col1 FROM tab0 cor0
----
169248
278390
664118

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7067
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7067
SELECT DISTINCT + - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 45 AS col1 FROM tab0, tab0 cor0
----
45

query I rowsort
SELECT - 9 * 4 FROM tab0 AS cor0
----
-36
-36
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + 9 col2 FROM tab0 AS cor0
----
33
44
98

query I rowsort
SELECT + + ( col0 ) + + col1 FROM tab1 AS cor0
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-7072
SELECT DISTINCT - ( - 0 ) - col0 DIV + 5 AS col0 FROM tab0 AS cor0
----
-17
-4
-7

skipif mysql # not compatible
query I rowsort label-7072
SELECT DISTINCT - ( - 0 ) - col0 / + 5 AS col0 FROM tab0 AS cor0
----
-17
-4
-7

query I rowsort
SELECT ALL - cor0.col0 + + col1 AS col0 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT DISTINCT + ( cor0.col1 ) - - col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT + col2 * - col2 * col2 - + col1 AS col1 FROM tab0
----
-36023
-551459
-98

query I rowsort
SELECT + ( 52 ) AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query I rowsort
SELECT DISTINCT - 40 * col0 FROM tab2 cor0
----
-280
-3120
-3160

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7078
SELECT - CAST( NULL AS SIGNED ) / col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7078
SELECT - CAST ( NULL AS INTEGER ) / col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( 71 ) * col0 AS col2 FROM tab0 AS cor0
----
-1704
-2485
-6319

query I rowsort
SELECT ALL + + 71 FROM tab2 AS cor0
----
71
71
71

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7081
SELECT + CAST( NULL AS SIGNED ) * 16 + + col1 * ( cor0.col2 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7081
SELECT + CAST ( NULL AS INTEGER ) * 16 + + col1 * ( cor0.col2 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col1 + + 97 AS col1 FROM tab0 AS cor0
----
0
11
6

query I rowsort
SELECT DISTINCT + 37 + - cor0.col2 AS col1 FROM tab1 AS cor0
----
-17
-20
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 77 col2 FROM tab1 AS cor0
----
-1001
-2002
-770

query I rowsort
SELECT 91 FROM tab1, tab2 cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT - 22 + - col0 * col1 AS col0 FROM tab2 cor0
----
-1365
-239
-4624

query I rowsort
SELECT - 99 AS col1 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 761f5f1a166a00db99360141565a85da

query I rowsort
SELECT ALL 79 * col1 FROM tab0
----
6794
7189
7663

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - col2 * col2 * - col0 col0 FROM tab2
----
114038
5076
52702

onlyif mysql # use DIV operator for integer division
query I rowsort label-7090
SELECT col0 * 32 + col1 + + col1 DIV - cor0.col2 AS col1 FROM tab0 AS cor0
----
1120
2938
852

skipif mysql # not compatible
query I rowsort label-7090
SELECT col0 * 32 + col1 + + col1 / - cor0.col2 AS col1 FROM tab0 AS cor0
----
1120
2938
852

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7091
SELECT ALL col2 + CAST( NULL AS DECIMAL ) * col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7091
SELECT ALL col2 + CAST ( NULL AS REAL ) * col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col0 + + 57 * col0 * + col1 FROM tab1 AS cor0
----
36416
4443
59200

query I rowsort
SELECT - + col0 + + 79 FROM tab0 AS cor0
----
-10
44
55

query I rowsort
SELECT ALL col1 * + 71 * col1 AS col2 FROM tab1 AS cor0
----
11999
47996
7100

query I rowsort
SELECT ALL + 26 * - col2 + ( + tab1.col2 ) AS col1 FROM tab1
----
-1350
-1425
-2400

query I rowsort
SELECT tab1.col2 + col1 + + ( + 14 + + col2 ) * 66 * - col0 FROM tab1
----
-13384
-299837
-580691

query I rowsort
SELECT 44 + - tab0.col1 * - col1 AS col0 FROM tab0
----
7440
8325
9453

query I rowsort
SELECT - col2 * - col2 * col0 + - col0 FROM tab0
----
0
26112
598347

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7099
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab0, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7099
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab0, tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 27 col2 FROM tab0, tab1 AS cor0, tab1, tab0 AS cor1
----
81 values hashing to 092918b9163061e291041d594b1a402a

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7101
SELECT DISTINCT - + col0 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7101
SELECT DISTINCT - + col0 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7102
SELECT + col2 DIV cor0.col0 FROM tab1 cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-7102
SELECT + col2 / cor0.col0 FROM tab1 cor0
----
0
1
18

query I rowsort
SELECT DISTINCT - + col2 * 33 FROM tab2 AS cor0
----
-1254
-858
-891

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + cor0.col1 col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL + cor0.col0 * + col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT + col0 * - ( + col1 ) + - col0 * - cor0.col2 * + col2 FROM tab2 AS cor0
----
112733
48126
4886

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7107
SELECT ALL + cor0.col0 * CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
49
6084
6241

skipif mysql # not compatible
query I rowsort label-7107
SELECT ALL + cor0.col0 * CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT - - col0 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + col0 * + col1 * col2 AS col0 FROM tab0 cor0
----
3395
664118
68112

query I rowsort
SELECT - col2 * + col0 * + cor0.col2 FROM tab0 cor0
----
-26136
-35
-598436

onlyif mysql # use DIV operator for integer division
query I rowsort label-7111
SELECT col1 + - col2 + - col0 DIV col1 FROM tab1 AS cor0
----
-28
-53
-89

skipif mysql # not compatible
query I rowsort label-7111
SELECT col1 + - col2 + - col0 / col1 FROM tab1 AS cor0
----
-28
-53
-89

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT + tab0.col0 * - col1 - col2 FROM tab0
----
-2097
-3396
-8181

query I rowsort
SELECT col2 * + col0 * - col1 + + tab1.col0 AS col2 FROM tab1
----
-36416
-4209
-99760

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col2 * col2 ) NOT BETWEEN - col0 AND NULL
----
24
86
33
89
91
82

query I rowsort
SELECT ALL col1 + + col2 + - col1 FROM tab1
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-7117
SELECT ALL - col0 - tab1.col0 DIV col2 AS col2 FROM tab1
----
-3
-65
-80

skipif mysql # not compatible
query I rowsort label-7117
SELECT ALL - col0 - tab1.col0 / col2 AS col2 FROM tab1
----
-3
-65
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-7118
SELECT ALL col2 DIV col0 col2 FROM tab2
----
0
0
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7118
SELECT ALL col2 / col0 col2 FROM tab2
----
0
0
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-7119
SELECT col0 DIV cor0.col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7119
SELECT col0 / cor0.col1 FROM tab0 cor0
----
0
0
0

query IIIIIIIII rowsort
SELECT * FROM tab0, tab2, tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE col2 + col2 IN ( col1 - + col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE col1 + - col1 IN ( + col0 / - col1 + - col0 )
----

query IIIIIIIII rowsort
SELECT * FROM tab0, tab0 cor0 CROSS JOIN tab2 WHERE NOT NULL BETWEEN NULL AND ( + tab2.col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * - col0 col2 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT - col1 * - col0 + - col2 FROM tab2 AS cor0 WHERE NOT col1 + col1 < + col1 OR ( col2 ) IN ( + cor0.col1 + col1 )
----
1305
190
4576

query I rowsort
SELECT 0 * col1 - 69 AS col2 FROM tab2
----
-69
-69
-69

query I rowsort
SELECT ALL - cor0.col0 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT + 73 * col2 + col2 FROM tab2
----
1924
1998
2812

query I rowsort
SELECT DISTINCT 64 AS col0 FROM tab1
----
64

query I rowsort
SELECT - cor0.col1 * cor0.col1 - col1 * - col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - cor0.col1 * + cor0.col1 + + 40 FROM tab2 AS cor0
----
-249
-3441
-921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7132
SELECT - col1 * CAST( - col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-7132
SELECT - col1 * CAST ( - col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT + cor0.col0 + ( 66 + + cor0.col1 ) AS col1 FROM tab2 AS cor0
----
104
162
203

query I rowsort
SELECT col2 * 70 AS col0 FROM tab2
----
1820
1890
2660

onlyif mysql # use DIV operator for integer division
query I rowsort label-7135
SELECT - col1 DIV + ( col1 * col1 + col2 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7135
SELECT - col1 / + ( col1 * col1 + col2 ) FROM tab2
----
0
0
0

query I rowsort
SELECT - + col0 * + 77 AS col0 FROM tab2 AS cor0
----
-539
-6006
-6083

onlyif mysql # use DIV operator for integer division
query I rowsort label-7137
SELECT + col2 DIV cor0.col0 + cor0.col2 AS col1 FROM tab2 AS cor0
----
26
30
38

skipif mysql # not compatible
query I rowsort label-7137
SELECT + col2 / cor0.col0 + cor0.col2 AS col1 FROM tab2 AS cor0
----
26
30
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7138
SELECT ALL + - col0 * CAST( + col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002

skipif mysql # not compatible
query I rowsort label-7138
SELECT ALL + - col0 * CAST ( + col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT - + cor0.col2 * 96 + + 24 FROM tab2 cor0
----
-2472
-2568
-3624

query I rowsort
SELECT - col1 - col0 * col2 FROM tab2 AS cor0
----
-2087
-220
-3019

onlyif mysql # use DIV operator for integer division
query I rowsort label-7141
SELECT DISTINCT col0 DIV 20 - + col2 col1 FROM tab1 AS cor0
----
-54
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7141
SELECT DISTINCT col0 / 20 - + col2 col1 FROM tab1 AS cor0
----
-54
-92

query I rowsort
SELECT ALL cor0.col2 * + ( - col2 ) FROM tab0 AS cor0
----
-1
-1089
-6724

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7143
SELECT + col1 - CAST( NULL AS SIGNED ) * + 60 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7143
SELECT + col1 - CAST ( NULL AS INTEGER ) * + 60 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col2 * ( - col2 * - col0 ) + + col2 FROM tab2 AS cor0
----
-114038
-5076
-52702

onlyif mysql # use DIV operator for integer division
query I rowsort label-7145
SELECT ALL - col2 + 38 * cor0.col2 DIV - cor0.col0 FROM tab2 AS cor0
----
-173
-38
-56

skipif mysql # not compatible
query I rowsort label-7145
SELECT ALL - col2 + 38 * cor0.col2 / - cor0.col0 FROM tab2 AS cor0
----
-173
-38
-56

query I rowsort
SELECT ALL col0 * 58 AS col0 FROM tab2 cor0
----
406
4524
4582

query I rowsort
SELECT col1 + col1 + + tab2.col2 AS col0 FROM tab2
----
144
72
89

query I rowsort
SELECT DISTINCT + col1 * + col0 AS col1 FROM tab0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col2 * col1 col0 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT DISTINCT tab2.col2 + col2 AS col1 FROM tab2
----
52
54
76

query I rowsort
SELECT col0 + + col1 + col0 FROM tab0
----
134
167
269

query I rowsort
SELECT DISTINCT + col1 * - col1 FROM tab2 WHERE - col0 + + col2 >= col0
----
-961

query I rowsort
SELECT ALL + tab1.col1 * col2 * - col1 FROM tab1
----
-16224
-36504
-5700

query I rowsort
SELECT DISTINCT col0 + col2 * - col1 FROM tab1 WHERE NOT ( + col0 ) < ( NULL )
----

query I rowsort
SELECT ALL + col0 * col2 + col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT - + 16 * + col2 FROM tab0 cor0
----
-1312
-16
-528

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7157
SELECT DISTINCT - - 4 + col2 * + CAST( col0 + - cor0.col0 AS SIGNED ) AS col2 FROM tab1 cor0
----
4

skipif mysql # not compatible
query I rowsort label-7157
SELECT DISTINCT - - 4 + col2 * + CAST ( col0 + - cor0.col0 AS INTEGER ) AS col2 FROM tab1 cor0
----
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7158
SELECT ALL 48 * - col1 - CAST( col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-1495
-2910
-895

skipif mysql # not compatible
query I rowsort label-7158
SELECT ALL 48 * - col1 - CAST ( col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-1495
-2910
-895

query I rowsort
SELECT tab2.col1 + + col1 * col2 + tab2.col1 FROM tab2 WHERE ( NULL ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col1 + col2 * + tab2.col0 * + col0 FROM tab2
----
1292
158125
237141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col2 col0 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT DISTINCT - - col2 + + 14 * col2 + col0 * - col0 AS col0 FROM tab1 AS cor0
----
-3241
-4960
801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + ( col2 ) col1 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-7164
SELECT + col2 DIV 44 AS col0 FROM tab1 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-7164
SELECT + col2 / 44 AS col0 FROM tab1 AS cor0
----
1
1
2

query I rowsort
SELECT + cor0.col0 * - ( - col1 ) AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT - + col1 * col2 * + 56 FROM tab0 AS cor0
----
-158928
-417872
-5432

skipif mysql # not compatible
query I rowsort
SELECT - col0 * CAST ( - col2 AS REAL ) FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-7168
SELECT + col0 DIV 8 AS col2 FROM tab1 AS cor0
----
0
10
8

skipif mysql # not compatible
query I rowsort label-7168
SELECT + col0 / 8 AS col2 FROM tab1 AS cor0
----
0
10
8

query I rowsort
SELECT DISTINCT + col1 * + col1 * - tab2.col0 AS col2 FROM tab2
----
-22831
-271518
-6727

query I rowsort
SELECT + 95 AS col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e

query I rowsort
SELECT - ( col2 ) + col1 * + 70 * - col0 FROM tab0
----
-144513
-237651
-567012

query I rowsort
SELECT DISTINCT 86 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 * ( + col1 ) ) + col2 col0 FROM tab2
----
1560
684
864

onlyif mysql # use DIV operator for integer division
query I rowsort label-7174
SELECT ( col1 ) + col0 DIV + 71 FROM tab2
----
18
31
60

skipif mysql # not compatible
query I rowsort label-7174
SELECT ( col1 ) + col0 / + 71 FROM tab2
----
18
31
60

query I rowsort
SELECT ALL - ( 81 ) FROM tab0, tab1 cor0
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

query I rowsort
SELECT DISTINCT + cor0.col1 + - col0 * - 65 AS col0 FROM tab1 cor0
----
221
4170
5213

query I rowsort
SELECT + col0 + 35 AS col0 FROM tab0 AS cor0
----
124
59
70

query I rowsort
SELECT DISTINCT + col0 * 74 * col2 + col0 AS col0 FROM tab0
----
2625
540141
58632

query I rowsort
SELECT + - col0 * - col0 + ( col2 ) AS col2 FROM tab0 AS cor0
----
1226
609
8003

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7180
SELECT - CAST( NULL AS SIGNED ) - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7180
SELECT - CAST ( NULL AS INTEGER ) - col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - 66 + col1 FROM tab2 AS cor0
----
-35
-49
-7

query I rowsort
SELECT DISTINCT + col0 * col0 + - col2 FROM tab2 AS cor0
----
22
6058
6203

onlyif mysql # use DIV operator for integer division
query I rowsort label-7183
SELECT + ( tab1.col0 ) DIV 89 + col1 AS col2 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-7183
SELECT + ( tab1.col0 ) / 89 + col1 AS col2 FROM tab1
----
10
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7184
SELECT CAST( NULL AS SIGNED ) FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-7184
SELECT CAST ( NULL AS INTEGER ) FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # use DIV operator for integer division
query I rowsort label-7185
SELECT 48 DIV - col0 FROM tab1 AS cor0
----
-16
0
0

skipif mysql # not compatible
query I rowsort label-7185
SELECT 48 / - col0 FROM tab1 AS cor0
----
-16
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7186
SELECT + ( cor0.col1 ) DIV ( col1 * col2 ) AS col1 FROM tab0 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7186
SELECT + ( cor0.col1 ) / ( col1 * col2 ) AS col1 FROM tab0 cor0
----
0
0
1

query I rowsort
SELECT 53 FROM tab1, tab0 AS cor0, tab1 cor1
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6

query I rowsort
SELECT ALL - + col0 + cor0.col2 * + ( - col0 ) AS col2 FROM tab0 AS cor0
----
-70
-7387
-816

onlyif mysql # use DIV operator for integer division
query I rowsort label-7189
SELECT ALL - - cor0.col2 + + col2 DIV + 43 FROM tab1 cor0
----
55
58
98

skipif mysql # not compatible
query I rowsort label-7189
SELECT ALL - - cor0.col2 + + col2 / + 43 FROM tab1 cor0
----
55
58
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-7190
SELECT + 92 DIV col2 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7190
SELECT + 92 / col2 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT ALL - col2 * + col0 + col1 AS col2 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT - ( - col1 ) * col0 + - col2 AS col2 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT DISTINCT + col0 + cor0.col1 AS col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL - + col1 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT col2 * - cor0.col0 AS col1 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT - 58 * col0 * + col2 AS col1 FROM tab1 AS cor0
----
-211584
-445440
-9396

query I rowsort
SELECT ALL col1 * col1 * col2 AS col2 FROM tab1 AS cor0
----
16224
36504
5700

onlyif mysql # use DIV operator for integer division
query I rowsort label-7198
SELECT DISTINCT 44 * col1 DIV col2 + + col0 AS col1 FROM tab1 AS cor0
----
24
71
85

skipif mysql # not compatible
query I rowsort label-7198
SELECT DISTINCT 44 * col1 / col2 + + col0 AS col1 FROM tab1 AS cor0
----
24
71
85

query I rowsort
SELECT ALL + cor0.col0 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT + col2 * col2 + + col0 * + col0 FROM tab0 AS cor0
----
1226
14645
1665

query I rowsort
SELECT ALL - col0 + + col2 * col0 + col2 * col2 FROM tab0 AS cor0
----
1
13933
1857

query I rowsort
SELECT ALL - col0 + + col0 * - cor0.col2 * col2 FROM tab1 AS cor0
----
-208000
-737360
-8751

query I rowsort
SELECT ( - 83 ) FROM tab0
----
-83
-83
-83

query I rowsort
SELECT DISTINCT - col1 * ( col2 ) FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT + col0 - col1 FROM tab0 cor0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT + - col2 * 69 AS col0 FROM tab1 AS cor0
----
-3726
-3933
-6624

query I rowsort
SELECT + + 48 AS col2 FROM tab1 AS cor0
----
48
48
48

query I rowsort
SELECT + 60 + cor0.col1 * + col2 * - col0 FROM tab0 AS cor0
----
-3335
-664058
-68052

onlyif mysql # use DIV operator for integer division
query I rowsort label-7209
SELECT - col2 * col1 + - col1 DIV cor0.col2 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-7209
SELECT - col2 * col1 + - col1 / cor0.col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT 76 + - col0 FROM tab0
----
-13
41
52

query I rowsort
SELECT - cor0.col2 * + col0 + cor0.col1 FROM tab0 AS cor0
----
-706
-7207
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 97 col1 FROM tab2 AS cor0
----
97
97
97

query I rowsort
SELECT + - cor0.col1 + - col0 AS col0 FROM tab0 AS cor0
----
-110
-132
-180

onlyif mysql # use DIV operator for integer division
query I rowsort label-7214
SELECT + col0 DIV - col2 + col1 col2 FROM tab0
----
62
86
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7214
SELECT + col0 / - col2 + col1 col2 FROM tab0
----
62
86
90

query I rowsort
SELECT col0 + 69 * - col2 * - tab0.col2 + col2 FROM tab0
----
105
464127
75198

query I rowsort
SELECT ALL - 56 AS col2 FROM tab1
----
-56
-56
-56

query I rowsort
SELECT DISTINCT ( col0 * col2 ) + col2 FROM tab0
----
36
7380
825

query I rowsort
SELECT 62 * 98 AS col1 FROM tab1 AS cor0
----
6076
6076
6076

query I rowsort
SELECT DISTINCT + tab2.col0 * col0 * col1 FROM tab2
----
106097
1519
358956

skipif mysql # not compatible
query I rowsort
SELECT - + CAST ( - col0 AS REAL ) + col2 * - 61 FROM tab2 AS cor0
----
-1508
-1640
-2239

query I rowsort
SELECT ALL - + 35 AS col0 FROM tab1 cor0
----
-35
-35
-35

query I rowsort
SELECT DISTINCT + - 26 * + cor0.col1 FROM tab1 AS cor0
----
-260
-338
-676

query I rowsort
SELECT ALL - 77 AS col2 FROM tab2 cor0
----
-77
-77
-77

query I rowsort
SELECT ALL - cor0.col1 AS col2 FROM tab2, tab0 AS cor0, tab1 cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT - 47 FROM tab0, tab1 cor0
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

onlyif mysql # use DIV operator for integer division
query I rowsort label-7226
SELECT - col1 DIV + col2 + col2 * cor0.col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-7226
SELECT - col1 / + col2 + col2 * cor0.col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT cor0.col0 * cor0.col1 - + cor0.col0 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT 63 + - col0 FROM tab2 AS cor0
----
-15
-16
56

query I rowsort
SELECT - col1 * - col1 * 18 FROM tab0 AS cor0
----
133128
149058
169362

query I rowsort
SELECT - - col0 * cor0.col2 - col1 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT ( col0 ) * col2 AS col1 FROM tab0
----
35
7298
792

query I rowsort
SELECT DISTINCT - tab0.col2 * ( - col0 ) AS col0 FROM tab0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-7233
SELECT + col2 DIV - 60 AS col2 FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7233
SELECT + col2 / - 60 AS col2 FROM tab0 cor0
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7234
SELECT ALL + ( + col0 ) DIV - 72 AS col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7234
SELECT ALL + ( + col0 ) / - 72 AS col0 FROM tab1
----
-1
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7235
SELECT + cor0.col1 * CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-7235
SELECT + cor0.col1 * CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ( col1 ) * col0 * + ( - col2 ) + col2 FROM tab1
----
-36423
-4158
-99744

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * col2 col1 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT + col0 * col1 * - col0 FROM tab1 AS cor0
----
-234
-40960
-83200

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7239
SELECT - col1 * CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7239
SELECT - col1 * CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * col2 AS col2 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT cor1.col0 * - cor0.col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 897f7ed602fc86364e8d474cab107f0c

query I rowsort
SELECT ALL - - 2 + col0 AS col1 FROM tab1 AS cor0
----
5
66
82

query I rowsort
SELECT ( cor0.col0 ) * - col1 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL 48 + col0 FROM tab0 AS cor0
----
137
72
83

query I rowsort
SELECT DISTINCT - cor0.col1 + 14 FROM tab2 cor0
----
-17
-3
-45

onlyif mysql # use DIV operator for integer division
query I rowsort label-7246
SELECT DISTINCT + cor0.col0 * col2 + col1 + + col2 DIV + 47 FROM tab0 AS cor0
----
132
7390
878

skipif mysql # not compatible
query I rowsort label-7246
SELECT DISTINCT + cor0.col0 * col2 + col1 + + col2 / + 47 FROM tab0 AS cor0
----
132
7390
878

query I rowsort
SELECT DISTINCT - - 9 AS col1 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort
SELECT - col0 + CAST ( - col2 AS REAL ) AS col0 FROM tab2
----
-104
-117
-34

onlyif mysql # use DIV operator for integer division
query I rowsort label-7249
SELECT col1 * - col2 + 8 DIV col1 FROM tab2
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort label-7249
SELECT col1 * - col2 + 8 / col1 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT - + col2 + - 7 * + col1 FROM tab2 AS cor0
----
-157
-244
-439

query I rowsort
SELECT DISTINCT + ( + col0 ) + + col0 * cor0.col0 * col1 AS col1 FROM tab2 cor0
----
106176
1526
359034

onlyif mysql # use DIV operator for integer division
query I rowsort label-7252
SELECT ALL 78 DIV + col1 FROM tab1 AS cor0
----
3
6
7

skipif mysql # not compatible
query I rowsort label-7252
SELECT ALL 78 / + col1 FROM tab1 AS cor0
----
3
6
7

query I rowsort
SELECT + + ( - col2 ) FROM tab1 cor0
----
-54
-57
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7254
SELECT ALL + - CAST( NULL AS SIGNED ) / + cor0.col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7254
SELECT ALL + - CAST ( NULL AS INTEGER ) / + cor0.col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 38 * + col0 AS col2 FROM tab0 cor0
----
-1330
-3382
-912

query I rowsort
SELECT - 72 * col0 FROM tab0 AS cor0
----
-1728
-2520
-6408

query I rowsort
SELECT - col0 + col2 * - col0 FROM tab2 AS cor0
----
-196
-2106
-3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-7258
SELECT - + ( ( col0 ) ) DIV 13 FROM tab2 AS cor0
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-7258
SELECT - + ( ( col0 ) ) / 13 FROM tab2 AS cor0
----
-6
-6
0

query I rowsort
SELECT + 83 - 42 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to f6a440b478f0d00f8326a8c51fe094b8

query I rowsort
SELECT col2 + - col1 * - 37 FROM tab2 AS cor0
----
1174
2209
667

query I rowsort
SELECT 93 * col2 + col1 FROM tab1 AS cor0
----
5048
5311
8941

query I rowsort
SELECT col0 * + ( + col2 ) + col1 AS col0 FROM tab1
----
188
3658
7693

query I rowsort
SELECT DISTINCT cor0.col1 * - col1 AS col1 FROM tab1 cor0
----
-100
-169
-676

query I rowsort
SELECT ALL - col1 * 18 + col0 AS col1 FROM tab2 AS cor0
----
-227
-551
-984

skipif mysql # not compatible
query I rowsort
SELECT col0 + CAST ( + 37 AS REAL ) AS col0 FROM tab1 AS cor0
----
101
117
40

query I rowsort
SELECT + 58 * - col1 AS col0 FROM tab0 cor0
----
-4988
-5278
-5626

query I rowsort
SELECT DISTINCT - 58 + + col1 * col1 AS col1 FROM tab0 AS cor0
----
7338
8223
9351

onlyif mysql # use DIV operator for integer division
query I rowsort label-7268
SELECT - ( col0 ) DIV cor0.col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7268
SELECT - ( col0 ) / cor0.col0 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-7269
SELECT - - col1 + - col1 DIV - col2 AS col0 FROM tab0 AS cor0
----
194
88
92

skipif mysql # not compatible
query I rowsort label-7269
SELECT - - col1 + - col1 / - col2 AS col0 FROM tab0 AS cor0
----
194
88
92

query I rowsort
SELECT ALL + col2 * - col0 * + ( + col0 * cor0.col1 ) AS col0 FROM tab2 AS cor0
----
-4031686
-41013
-9332856

query I rowsort
SELECT DISTINCT + - 3 * + col1 AS col2 FROM tab1 cor0
----
-30
-39
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-7272
SELECT ALL - col0 + + col2 DIV 40 FROM tab1 AS cor0
----
-2
-63
-78

skipif mysql # not compatible
query I rowsort label-7272
SELECT ALL - col0 + + col2 / 40 FROM tab1 AS cor0
----
-2
-63
-78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7273
SELECT cor0.col0 + + col2 + - CAST( NULL AS SIGNED ) * + col0 * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7273
SELECT cor0.col0 + + col2 + - CAST ( NULL AS INTEGER ) * + col0 * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 + - col1 * col1 * col2 FROM tab0 AS cor0
----
-244044
-678953
-9374

query I rowsort
SELECT + 39 * - col1 AS col1 FROM tab1 AS cor0
----
-1014
-390
-507

query I rowsort
SELECT DISTINCT cor0.col0 + col0 * col2 FROM tab0 AS cor0
----
70
7387
816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - 84 * 58 col2 FROM tab0 AS cor0
----
-4896
-4907
-4961

query I rowsort
SELECT - cor0.col2 + + cor0.col0 AS col0 FROM tab0 cor0
----
-9
34
7

query I rowsort
SELECT ALL + ( + col1 ) * col0 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT 63 + col1 * col1 FROM tab1 AS cor0
----
163
232
739

query I rowsort
SELECT + + col2 * col1 * - col2 + cor0.col1 + col0 FROM tab2 AS cor0
----
-22561
-24452
-39747

query I rowsort
SELECT ALL - 15 - + cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2 cor2
----
81 values hashing to 0974a54f074dfb1a11e9b763da3502fc

onlyif mysql # use DIV operator for integer division
query I rowsort label-7283
SELECT + col2 DIV + col0 col2 FROM tab2
----
0
0
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7283
SELECT + col2 / + col0 col2 FROM tab2
----
0
0
3

query I rowsort
SELECT - 97 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0 cor2, tab2 cor3
----
243 values hashing to deb52fa16b6d112bf86aa258415d922e

query I rowsort
SELECT ALL + col0 - ( - 40 ) FROM tab0
----
129
64
75

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7286
SELECT DISTINCT col0 + - CAST( NULL AS SIGNED ) - col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7286
SELECT DISTINCT col0 + - CAST ( NULL AS INTEGER ) - col2 FROM tab0
----
NULL

query I rowsort
SELECT ALL col2 + - 19 FROM tab1
----
35
38
77

query I rowsort
SELECT DISTINCT - 84 + - col2 AS col2 FROM tab2 AS cor0
----
-110
-111
-122

query I rowsort
SELECT - col2 * 81 * col1 + col2 + - cor0.col0 * col1 FROM tab0 AS cor0
----
-11251
-231909
-612439

query I rowsort
SELECT + col2 * - tab2.col2 + + tab2.col0 FROM tab2
----
-1365
-598
-722

query I rowsort
SELECT DISTINCT 9 + col2 AS col0 FROM tab1
----
105
63
66

query I rowsort
SELECT ALL + - col1 * 97 AS col1 FROM tab0 AS cor0
----
-8342
-8827
-9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7293
SELECT + col2 * col1 + ( - ( col0 ) ) * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7293
SELECT + col2 * col1 + ( - ( col0 ) ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 * cor0.col1 + col1 + + cor0.col2 FROM tab2 AS cor0
----
-234
-3396
-903

query I rowsort
SELECT DISTINCT - 9 AS col1 FROM tab1 AS cor0
----
-9

query I rowsort
SELECT - col0 * + col2 + col1 AS col2 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT DISTINCT 89 AS col1 FROM tab0, tab0 AS cor0
----
89

query I rowsort
SELECT DISTINCT - - cor0.col1 * cor0.col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT ALL + col0 * + col0 + col1 * 38 AS col2 FROM tab0 AS cor0
----
11379
3844
4911

query I rowsort
SELECT DISTINCT - - cor0.col0 * + col0 * 32 FROM tab2 AS cor0
----
1568
194688
199712

query I rowsort
SELECT - 52 FROM tab0, tab1 cor0
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

onlyif mysql # use DIV operator for integer division
query I rowsort label-7302
SELECT ALL - col0 + + col1 DIV - col1 + - col1 * CAST( ( col2 ) AS SIGNED ) * 23 AS col1 FROM tab0 AS cor0
----
-171716
-2267
-65299

skipif mysql # not compatible
query I rowsort label-7302
SELECT ALL - col0 + + col1 / - col1 + - col1 * CAST ( ( col2 ) AS INTEGER ) * 23 AS col1 FROM tab0 AS cor0
----
-171716
-2267
-65299

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - col1 * col1 col2 FROM tab0 AS cor0
----
-7310
-8190
-9312

query I rowsort
SELECT ALL - cor0.col2 * cor0.col1 + - col0 AS col0 FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT ALL - col0 + + col1 * 41 FROM tab1 AS cor0
----
1063
346
453

query I rowsort
SELECT + - ( + col0 ) * - col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT ALL - + 8 - col2 AS col0 FROM tab1 AS cor0
----
-104
-62
-65

query I rowsort
SELECT col0 * - col0 * col0 + - cor0.col0 AS col1 FROM tab2 AS cor0
----
-350
-474630
-493118

query I rowsort
SELECT + - col2 + - col2 * - col0 AS col2 FROM tab2 AS cor0
----
162
2002
2964

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col1 + - 6 * col1 col0 FROM tab2 AS cor0
----
-119
-217
-413

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - col2 col2 FROM tab1 AS cor0
----
-109
-67
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7312
SELECT DISTINCT + CAST( NULL AS SIGNED ) * cor0.col2 + col1 / - 49 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7312
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * cor0.col2 + col1 / - 49 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 85 + + col0 FROM tab2 AS cor0
----
163
164
92

query I rowsort
SELECT ALL - cor0.col0 + + col2 AS col0 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT DISTINCT + 41 * + cor0.col1 + col2 * - col2 FROM tab2 AS cor0
----
-747
1743
542

query I rowsort
SELECT - col0 * 47 + col0 AS col1 FROM tab1 AS cor0
----
-138
-2944
-3680

query I rowsort
SELECT ALL + ( ( - col2 ) ) AS col0 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT + + ( 3 ) * col1 + cor0.col1 AS col0 FROM tab1 cor0
----
104
40
52

query I rowsort
SELECT ALL col1 * tab1.col1 - - 70 AS col2 FROM tab1
----
170
239
746

onlyif mysql # use DIV operator for integer division
query I rowsort label-7320
SELECT ALL - col0 + + cor0.col2 * 7 DIV col2 AS col2 FROM tab1 AS cor0
----
-57
-73
4

skipif mysql # not compatible
query I rowsort label-7320
SELECT ALL - col0 + + cor0.col2 * 7 / col2 AS col2 FROM tab1 AS cor0
----
-57
-73
4

query I rowsort
SELECT ALL - ( cor0.col2 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT - 51 + col1 * 80 FROM tab0 AS cor0
----
6829
7229
7709

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7323
SELECT - col2 + - CAST( - col0 AS SIGNED ) FROM tab1
----
-16
-51
7

skipif mysql # not compatible
query I rowsort label-7323
SELECT - col2 + - CAST ( - col0 AS INTEGER ) FROM tab1
----
-16
-51
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-7324
SELECT DISTINCT + col1 * col1 DIV + tab2.col1 FROM tab2
----
17
31
59

skipif mysql # not compatible
query I rowsort label-7324
SELECT DISTINCT + col1 * col1 / + tab2.col1 FROM tab2
----
17
31
59

query I rowsort
SELECT DISTINCT cor0.col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
3
64
80

query I rowsort
SELECT ALL + cor0.col1 + + ( + col0 * col1 ) FROM tab2 AS cor0
----
1360
248
4661

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7327
SELECT ALL - CAST( NULL AS DECIMAL ) FROM tab1, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7327
SELECT ALL - CAST ( NULL AS REAL ) FROM tab1, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL + ( 30 ) AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query I rowsort
SELECT ALL + ( - tab0.col2 ) AS col2 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT ALL col0 + - 88 AS col2 FROM tab2
----
-10
-81
-9

query I rowsort
SELECT ALL - 57 AS col1 FROM tab2
----
-57
-57
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 20 * - ( + col1 ) * + 1 col1 FROM tab2 AS cor0
----
-1180
-340
-620

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7333
SELECT + CAST( NULL AS SIGNED ) + 60 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7333
SELECT + CAST ( NULL AS INTEGER ) + 60 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7334
SELECT + ( col2 ) * - 79 * col2 + col0 * CAST( 2 AS SIGNED ) FROM tab2 cor0
----
-113918
-53248
-57577

skipif mysql # not compatible
query I rowsort label-7334
SELECT + ( col2 ) * - 79 * col2 + col0 * CAST ( 2 AS INTEGER ) FROM tab2 cor0
----
-113918
-53248
-57577

query I rowsort
SELECT - col0 * - col1 + 7 FROM tab2 AS cor0
----
1350
224
4609

query I rowsort
SELECT ALL - - col2 - + col1 * cor0.col1 AS col0 FROM tab2 AS cor0
----
-251
-3455
-934

query I rowsort
SELECT - 0 * col0 + + 35 AS col1 FROM tab0 AS cor0
----
35
35
35

query I rowsort
SELECT ( - 40 + col1 ) * col1 AS col1 FROM tab0
----
3956
4641
5529

query I rowsort
SELECT - col1 * 60 FROM tab0
----
-5160
-5460
-5820

query I rowsort
SELECT ALL - + col0 + + col2 * col0 AS col0 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT DISTINCT 38 * col0 + 85 AS col0 FROM tab0 cor0
----
1415
3467
997

query I rowsort
SELECT + 53 FROM tab1, tab1 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7343
SELECT + CAST( NULL AS SIGNED ) * 9 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7343
SELECT + CAST ( NULL AS INTEGER ) * 9 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 59 + - col1 col2 FROM tab2 cor0
----
-118
-76
-90

query I rowsort
SELECT 68 + tab2.col1 AS col0 FROM tab0, tab0 cor0 CROSS JOIN tab2
----
27 values hashing to a0df0a28325b6a20d59f62505eaa0575

onlyif mysql # use DIV operator for integer division
query I rowsort label-7346
SELECT DISTINCT col0 DIV - col1 AS col0 FROM tab1 AS cor0
----
-6
0

skipif mysql # not compatible
query I rowsort label-7346
SELECT DISTINCT col0 / - col1 AS col0 FROM tab1 AS cor0
----
-6
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col1 col2 FROM tab0 cor0
----
172
182
194

query I rowsort
SELECT - 82 + col0 + - col2 AS col0 FROM tab1 AS cor0
----
-133
-75
-98

query I rowsort
SELECT col0 + cor0.col0 + ( col0 ) AS col0 FROM tab2 AS cor0
----
21
234
237

query I rowsort
SELECT DISTINCT - col2 + + col2 * - ( + col2 + + col2 * + ( col1 ) ) AS col2 FROM tab1 cor0
----
-129120
-35796
-78786

query I rowsort
SELECT ALL col0 * cor0.col1 + 52 + - col1 FROM tab2 AS cor0
----
1378
238
4595

query I rowsort
SELECT + + tab1.col0 AS col1 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

onlyif mysql # use DIV operator for integer division
query I rowsort label-7353
SELECT ALL col0 + 1 * - col1 * + col0 + + col1 DIV + col2 AS col1 FROM tab1 AS cor0
----
-576
-75
-960

skipif mysql # not compatible
query I rowsort label-7353
SELECT ALL col0 + 1 * - col1 * + col0 + + col1 / + col2 AS col1 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT + col1 + ( col1 ) * + col2 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT ALL - - cor0.col0 - + col2 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT DISTINCT + ( col2 ) + 65 AS col1 FROM tab2
----
103
91
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-7357
SELECT ALL 3 + + col0 DIV 19 AS col2 FROM tab0
----
4
4
7

skipif mysql # not compatible
query I rowsort label-7357
SELECT ALL 3 + + col0 / 19 AS col2 FROM tab0
----
4
4
7

query I rowsort
SELECT ALL cor0.col0 AS col0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT + - 40 * 41 AS col1 FROM tab0 AS cor0
----
-1640
-1640
-1640

query I rowsort
SELECT DISTINCT - col2 * - col0 * col2 AS col1 FROM tab0 AS cor0
----
26136
35
598436

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7361
SELECT ALL CAST( - col1 AS SIGNED ) + col0 * - col0 FROM tab2 AS cor0
----
-6143
-6258
-80

skipif mysql # not compatible
query I rowsort label-7361
SELECT ALL CAST ( - col1 AS INTEGER ) + col0 * - col0 FROM tab2 AS cor0
----
-6143
-6258
-80

query I rowsort
SELECT ( + col0 ) - - col0 * - ( col0 ) AS col1 FROM tab1 AS cor0
----
-4032
-6
-6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-7363
SELECT + 92 DIV - cor0.col1 + col2 - - col0 FROM tab0 AS cor0
----
170
36
56

skipif mysql # not compatible
query I rowsort label-7363
SELECT + 92 / - cor0.col1 + col2 - - col0 FROM tab0 AS cor0
----
170
36
56

onlyif mysql # use DIV operator for integer division
query I rowsort label-7364
SELECT + + col2 + 9 DIV + col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-7364
SELECT + + col2 + 9 / + col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL + ( col2 ) * cor0.col2 FROM tab1 cor0
----
2916
3249
9216

query I rowsort
SELECT DISTINCT - ( 6 ) + - col2 FROM tab2 AS cor0
----
-32
-33
-44

query I rowsort
SELECT + 6 - 88 AS col2 FROM tab1 AS cor0
----
-82
-82
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 22 col2 FROM tab0 AS cor0
----
22
22
22

onlyif mysql # use DIV operator for integer division
query I rowsort label-7369
SELECT + + 37 DIV 96 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7369
SELECT + + 37 / 96 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col2 + + 15 FROM tab1
----
111
69
72

query I rowsort
SELECT - col0 + col1 - col1 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT - 15 - + col2 AS col2 FROM tab1 AS cor0
----
-111
-69
-72

onlyif mysql # use DIV operator for integer division
query I rowsort label-7373
SELECT 71 + - col1 DIV col2 AS col0 FROM tab1 cor0
----
71
71
71

skipif mysql # not compatible
query I rowsort label-7373
SELECT 71 + - col1 / col2 AS col0 FROM tab1 cor0
----
71
71
71

query I rowsort
SELECT - 25 * col0 AS col2 FROM tab0 AS cor0
----
-2225
-600
-875

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7375
SELECT col1 * col0 + - col0 / CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7375
SELECT col1 * col0 + - col0 / CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7376
SELECT 98 * col2 + - col1 * + CAST( 43 AS SIGNED ) * col2 AS col0 FROM tab0
----
-118800
-312830
-4073

skipif mysql # not compatible
query I rowsort label-7376
SELECT 98 * col2 + - col1 * + CAST ( 43 AS INTEGER ) * col2 AS col0 FROM tab0
----
-118800
-312830
-4073

query I rowsort
SELECT - - ( 73 ) * col1 * + col2 + - col0 AS col1 FROM tab1 AS cor0
----
102489
41546
91024

query I rowsort
SELECT ALL + col0 * + 0 + col1 + col2 * - col2 FROM tab1
----
-2890
-3239
-9203

query I rowsort
SELECT DISTINCT cor1.col1 FROM tab0, tab0 cor0, tab0 AS cor1
----
86
91
97

query I rowsort
SELECT DISTINCT + + col2 * - col0 - - col2 * cor0.col1 AS col0 FROM tab0 AS cor0
----
164
2046
62

query I rowsort
SELECT ALL - col2 * + 54 + col2 * col2 FROM tab0 AS cor0
----
-53
-693
2296

query I rowsort
SELECT + + cor0.col2 - - col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT DISTINCT + col1 + - 28 * col2 FROM tab2 AS cor0
----
-1047
-669
-725

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 79 * + col2 col2 FROM tab1 AS cor0
----
4240
4493
7571

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7385
SELECT ALL - - CAST( NULL AS SIGNED ) * + cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7385
SELECT ALL - - CAST ( NULL AS INTEGER ) * + cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 63 + + 8 AS col1 FROM tab0 AS cor0
----
-55

query I rowsort
SELECT DISTINCT - - ( - col1 ) + col0 AS col2 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT ALL - + col2 + col0 * col0 AS col2 FROM tab2 AS cor0
----
22
6058
6203

query I rowsort
SELECT DISTINCT ( col2 ) * + col1 + col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT + - ( + 52 ) AS col2 FROM tab2 cor0
----
-52
-52
-52

query I rowsort
SELECT DISTINCT + - ( - 8 ) + cor0.col0 * + col2 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
26144
43
598444

query I rowsort
SELECT ALL + ( col0 ) + + col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL - col2 * 86 AS col1 FROM tab1 AS cor0
----
-4644
-4902
-8256

onlyif mysql # use DIV operator for integer division
query I rowsort label-7394
SELECT ( col1 ) DIV + col0 + CAST( + ( col1 ) AS SIGNED ) * + col2 AS col2 FROM tab1 cor0
----
1248
1412
570

skipif mysql # not compatible
query I rowsort label-7394
SELECT ( col1 ) / + col0 + CAST ( + ( col1 ) AS INTEGER ) * + col2 AS col2 FROM tab1 cor0
----
1248
1412
570

query I rowsort
SELECT ALL + col2 + + 55 * 34 AS col2 FROM tab0
----
1871
1903
1952

query I rowsort
SELECT - cor0.col0 * - 44 + + col1 AS col0 FROM tab0 AS cor0
----
1142
1637
4007

onlyif mysql # use DIV operator for integer division
query I rowsort label-7397
SELECT DISTINCT - - col0 + col1 DIV col2 FROM tab0 cor0
----
132
26
90

skipif mysql # not compatible
query I rowsort label-7397
SELECT DISTINCT - - col0 + col1 / col2 FROM tab0 cor0
----
132
26
90

query I rowsort
SELECT ALL - + col1 - + col1 FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT col1 * col0 * + 45 AS col0 FROM tab2 cor0
----
207090
60435
9765

query I rowsort
SELECT ALL - col1 + col0 - ( - 47 + col2 ) FROM tab2 AS cor0
----
-4
40
71

query I rowsort
SELECT DISTINCT + col2 * col2 + - col2 AS col2 FROM tab0 cor0
----
0
1056
6642

query I rowsort
SELECT 50 * col0 * col1 FROM tab2
----
10850
230100
67150

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 + - col2 * col1 - - ( cor0.col0 + col1 ) AS col0 FROM tab2 AS cor0
----
-1397
-550
-799

query I rowsort
SELECT ALL - 36 FROM tab2 cor0
----
-36
-36
-36

query I rowsort
SELECT DISTINCT + + 32 + cor0.col2 FROM tab2 AS cor0
----
58
59
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-7407
SELECT ALL - 51 DIV col0 + cor0.col2 * + cor0.col1 * + col0 + col2 FROM tab2 AS cor0
----
119678
51072
5879

skipif mysql # not compatible
query I rowsort label-7407
SELECT ALL - 51 / col0 + cor0.col2 * + cor0.col1 * + col0 + col2 FROM tab2 AS cor0
----
119678
51072
5879

onlyif mysql # use DIV operator for integer division
query I rowsort label-7408
SELECT ALL - + col1 DIV + col0 + ( 66 ) * col0 col1 FROM tab2 AS cor0
----
458
5148
5214

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7408
SELECT ALL - + col1 / + col0 + ( 66 ) * col0 col1 FROM tab2 AS cor0
----
458
5148
5214

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 44 * + col2 col1 FROM tab2 cor0
----
1144
1188
1672

query I rowsort
SELECT + - col0 * + col2 + 67 FROM tab0 AS cor0
----
-7231
-725
32

query I rowsort
SELECT ALL - ( + col0 ) * - col2 AS col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL col1 - + col0 AS col0 FROM tab0
----
2
62
62

query I rowsort
SELECT ALL + + cor0.col2 + ( + col0 ) FROM tab1 AS cor0
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-7414
SELECT ALL ( col0 ) + + col0 DIV + col0 FROM tab0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-7414
SELECT ALL ( col0 ) + + col0 / + col0 FROM tab0
----
25
36
90

query I rowsort
SELECT + 49 + - col1 + ( col0 ) * col1 FROM tab2
----
1375
235
4592

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7416
SELECT + col0 + + CAST( + cor0.col0 AS SIGNED ) * col0 * ( ( + col0 ) ) FROM tab1 AS cor0
----
262208
30
512080

skipif mysql # not compatible
query I rowsort label-7416
SELECT + col0 + + CAST ( + cor0.col0 AS INTEGER ) * col0 * ( ( + col0 ) ) FROM tab1 AS cor0
----
262208
30
512080

query I rowsort
SELECT + col0 * + 29 FROM tab2 AS cor0
----
203
2262
2291

query I rowsort
SELECT + col2 * ( 85 ) FROM tab1 AS cor0
----
4590
4845
8160

query I rowsort
SELECT ALL - col2 - ( col0 * + col0 ) AS col0 FROM tab0 AS cor0
----
-1226
-609
-8003

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7420
SELECT col1 - - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7420
SELECT col1 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 - - ( 16 ) * col1 * 99 FROM tab1 AS cor0
----
15850
20605
41210

onlyif mysql # use DIV operator for integer division
query I rowsort label-7422
SELECT 0 DIV - 17 FROM tab1, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-7422
SELECT 0 / - 17 FROM tab1, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT DISTINCT ( - tab0.col2 ) AS col1 FROM tab0, tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ALL + + col2 * col0 + col0 AS col2 FROM tab1 cor0
----
165
3712
7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col1 col1 FROM tab1, tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
81 values hashing to b7a1b38fe8e4f34388e3be1f52601ae5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7426
SELECT DISTINCT - CAST( col2 AS SIGNED ) AS col2 FROM tab2
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-7426
SELECT DISTINCT - CAST ( col2 AS INTEGER ) AS col2 FROM tab2
----
-26
-27
-38

query I rowsort
SELECT - ( - cor0.col0 ) AS col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT + cor0.col2 AS col0 FROM tab2, tab0 cor0, tab2 AS cor1
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col0 col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT - 78 + col2 * col2 FROM tab1 AS cor0
----
2838
3171
9138

query I rowsort
SELECT ALL col0 + + col1 * - col2 * col1 + cor0.col0 AS col0 FROM tab0 AS cor0
----
-244020
-678864
-9339

onlyif mysql # use DIV operator for integer division
query I rowsort label-7432
SELECT DISTINCT col1 DIV ( - col0 ) AS col1 FROM tab1
----
-8
0

skipif mysql # not compatible
query I rowsort label-7432
SELECT DISTINCT col1 / ( - col0 ) AS col1 FROM tab1
----
-8
0

query IIIIIIIIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1, tab1 cor1, tab0 AS cor2
----
972 values hashing to b51b4342db121ebc2d3d353dcd8ed521

query I rowsort
SELECT DISTINCT - tab0.col1 AS col2 FROM tab0, tab1, tab2 AS cor0, tab2 AS cor1
----
-86
-91
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7435
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col2 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7435
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col2 AS col2 FROM tab1
----
NULL

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab1 AS cor1, tab0 cor2
----
972 values hashing to 43f0c51511c8642d19190fd4dfcf905a

query I rowsort
SELECT col0 + - col1 * col0 AS col2 FROM tab0 cor0
----
-2040
-3360
-8010

query I rowsort
SELECT + 19 FROM tab2, tab1 cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

onlyif mysql # use DIV operator for integer division
query I rowsort label-7439
SELECT + 61 DIV - tab0.col0 AS col1 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-7439
SELECT + 61 / - tab0.col0 AS col1 FROM tab0
----
-1
-2
0

query I rowsort
SELECT - 83 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 77a48ad722db122f51d5ef36604ad843

query I rowsort
SELECT cor0.col1 * cor0.col2 - + col2 AS col0 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT DISTINCT + col2 * - col0 + + ( 84 + - col2 ) * cor0.col0 FROM tab2 AS cor0
----
210
2496
632

query I rowsort
SELECT 26 * col0 + - ( + ( + col1 ) ) FROM tab0 AS cor0
----
2223
538
813

query I rowsort
SELECT + col0 + - 94 AS col0 FROM tab0 AS cor0
----
-5
-59
-70

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0, tab1 cor1, tab1 AS cor2, tab0 AS cor3
----
3645 values hashing to 1260d4dbe7a8d809e8010586a3c398c5

query I rowsort
SELECT DISTINCT - col2 + col1 - + 82 * - col0 FROM tab2
----
578
6429
6457

query I rowsort
SELECT - col0 * col2 * ( tab0.col2 + col1 ) AS col1 FROM tab0
----
-1262554
-3430
-94248

query I rowsort
SELECT col0 * col0 * col1 + col0 + 72 AS col1 FROM tab2 AS cor0
----
106248
1598
359106

query I rowsort
SELECT + col0 + - cor0.col0 AS col0 FROM tab0 cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7450
SELECT + - cor0.col1 + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7450
SELECT + - cor0.col1 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7451
SELECT ALL 2 + col0 * CAST( NULL AS SIGNED ) + - col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7451
SELECT ALL 2 + col0 * CAST ( NULL AS INTEGER ) + - col1 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL tab2.col2 + - col1 * - tab2.col1 * - 33 + + tab2.col1 FROM tab2
----
-114788
-31655
-9482

query I rowsort
SELECT DISTINCT 15 + col2 * 82 FROM tab0
----
2721
6739
97

query I rowsort
SELECT + col2 - + ( + 94 + col2 * col0 ) AS col2 FROM tab0 AS cor0
----
-128
-7310
-853

query I rowsort
SELECT + - col0 * col2 + col1 AS col2 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT ALL - col2 + + ( col0 ) AS col0 FROM tab2
----
-20
41
52

query I rowsort
SELECT ALL + tab2.col1 - 75 * col1 FROM tab2
----
-1258
-2294
-4366

query I rowsort
SELECT DISTINCT col1 * - col2 - + col0 FROM tab1
----
-1328
-1407
-634

onlyif mysql # use DIV operator for integer division
query I rowsort label-7459
SELECT ALL + cor0.col2 * col0 + + col2 DIV - col2 AS col2 FROM tab1 AS cor0
----
161
3647
7679

skipif mysql # not compatible
query I rowsort label-7459
SELECT ALL + cor0.col2 * col0 + + col2 / - col2 AS col2 FROM tab1 AS cor0
----
161
3647
7679

onlyif mysql # use DIV operator for integer division
query I rowsort label-7460
SELECT + col0 * cor0.col0 * col0 + col0 DIV 1 - + ( + col0 ) * col0 AS col1 FROM tab1 AS cor0
----
21
258112
505680

skipif mysql # not compatible
query I rowsort label-7460
SELECT + col0 * cor0.col0 * col0 + col0 / 1 - + ( + col0 ) * col0 AS col1 FROM tab1 AS cor0
----
21
258112
505680

query I rowsort
SELECT + col0 * col0 + col0 AS col1 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT ALL - col2 + - col0 * col1 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
-119678
-51072
-5886

query I rowsort
SELECT ALL + col2 + 17 * - cor0.col1 * col0 FROM tab2 AS cor0
----
-22793
-3662
-78208

query I rowsort
SELECT - 93 * 66 FROM tab2 AS cor0
----
-6138
-6138
-6138

query I rowsort
SELECT ALL 95 + + cor0.col1 - cor0.col0 AS col1 FROM tab1 AS cor0
----
118
28
41

onlyif mysql # use DIV operator for integer division
query I rowsort label-7466
SELECT DISTINCT cor0.col2 DIV col2 AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7466
SELECT DISTINCT cor0.col2 / col2 AS col1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT + col2 + 78 AS col2 FROM tab1 cor0
----
132
135
174

query I rowsort
SELECT - - col1 + + col0 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT ALL + - ( + col1 ) + col2 * + col1 AS col2 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT + ( col2 ) + + col1 AS col2 FROM tab2 AS cor0
----
55
58
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 54 + cor0.col0 * + col0 col0 FROM tab1 AS cor0
----
-45
4042
6346

query I rowsort
SELECT DISTINCT - 6 * cor0.col1 * - cor0.col2 FROM tab0 AS cor0
----
17028
44772
582

query I rowsort
SELECT DISTINCT + col1 * - 71 + - col0 - col0 AS col2 FROM tab2 AS cor0
----
-1365
-2215
-4345

onlyif mysql # use DIV operator for integer division
query I rowsort label-7474
SELECT col0 DIV - ( 62 ) AS col1 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7474
SELECT col0 / - ( 62 ) AS col1 FROM tab0
----
-1
0
0

query I rowsort
SELECT ALL col0 * + col2 - col0 * tab2.col0 FROM tab2
----
-3239
-4056
140

query I rowsort
SELECT DISTINCT col1 * + 64 - 30 FROM tab0
----
5474
5794
6178

query I rowsort
SELECT ALL + cor0.col0 - - col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT + + 79 AS col2 FROM tab2 cor0
----
79
79
79

query I rowsort
SELECT + - 76 AS col0 FROM tab1 AS cor0
----
-76
-76
-76

query I rowsort
SELECT DISTINCT col1 * + ( + 69 ) FROM tab0
----
5934
6279
6693

query I rowsort
SELECT + 18 * col0 * + 85 FROM tab0 AS cor0
----
136170
36720
53550

query I rowsort
SELECT ALL + - 4 FROM tab0 AS cor0
----
-4
-4
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col0 ) * + col2 col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL - col2 * col0 * - 22 + col2 * + cor0.col1 FROM tab1 AS cor0
----
170208
4968
80826

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col0 * col0 * + 54 col1 FROM tab1 AS cor0
----
221184
345600
486

query I rowsort
SELECT - ( col0 ) * + 95 FROM tab2 AS cor0
----
-665
-7410
-7505

query I rowsort
SELECT + 19 * + col1 AS col1 FROM tab0 AS cor0
----
1634
1729
1843

query I rowsort
SELECT ALL ( + col1 ) * + col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL - cor0.col2 - + 90 FROM tab2, tab1 AS cor0
----
9 values hashing to 2d714233bed3db4ec7e6ca9cdc427e57

query I rowsort
SELECT + ( + col1 ) * tab0.col1 * - 40 AS col0 FROM tab0
----
-295840
-331240
-376360

query I rowsort
SELECT ( 54 ) FROM tab1
----
54
54
54

query I rowsort
SELECT DISTINCT + col2 * tab1.col0 - col0 FROM tab1
----
159
3584
7600

query I rowsort
SELECT ALL col1 - 27 FROM tab2
----
-10
32
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7494
SELECT DISTINCT - CAST( - 59 AS SIGNED ) - + col0 FROM tab1
----
-21
-5
56

skipif mysql # not compatible
query I rowsort label-7494
SELECT DISTINCT - CAST ( - 59 AS INTEGER ) - + col0 FROM tab1
----
-21
-5
56

query I rowsort
SELECT ALL 81 * + col0 + col0 FROM tab2
----
574
6396
6478

query I rowsort
SELECT - ( + col1 ) * + 88 + - col2 + - col0 FROM tab0 AS cor0
----
-7625
-8179
-8572

query I rowsort
SELECT col2 * + col2 + + cor0.col2 + - col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT ALL - 86 + - col2 - col2 * 97 FROM tab0
----
-184
-3320
-8122

query I rowsort
SELECT ALL ( ( + col0 ) ) * col1 AS col2 FROM tab0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 7 + - col1 * tab0.col1 col1 FROM tab0
----
-7389
-8274
-9402

onlyif mysql # use DIV operator for integer division
query I rowsort label-7501
SELECT ALL ( - tab1.col0 ) DIV + 95 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7501
SELECT ALL ( - tab1.col0 ) / + 95 FROM tab1
----
0
0
0

query I rowsort
SELECT + - col1 - - col0 AS col0 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT - - 78 AS col2 FROM tab0 AS cor0
----
78

query I rowsort
SELECT ALL - 61 + cor0.col1 FROM tab1 AS cor0
----
-35
-48
-51

query I rowsort
SELECT + - col0 * col2 - - 91 * col0 FROM tab0 AS cor0
----
1392
3150
801

query I rowsort
SELECT 3 - + col1 FROM tab2 AS cor0
----
-14
-28
-56

onlyif mysql # use DIV operator for integer division
query I rowsort label-7507
SELECT - col0 + col2 + 80 DIV + col0 FROM tab1 AS cor0
----
-6
17
77

skipif mysql # not compatible
query I rowsort label-7507
SELECT - col0 + col2 + 80 / + col0 FROM tab1 AS cor0
----
-6
17
77

query I rowsort
SELECT DISTINCT - col1 + cor0.col1 + - ( - 48 * - col1 ) AS col2 FROM tab0 cor0
----
-4128
-4368
-4656

query I rowsort
SELECT + 17 + col0 * col1 FROM tab0 AS cor0
----
2081
3412
8116

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col1 ) + 21 col2 FROM tab1 AS cor0
----
31
34
47

query I rowsort
SELECT DISTINCT + col0 * + col1 + 36 AS col0 FROM tab1 AS cor0
----
1076
114
676

query I rowsort
SELECT - 77 + - col2 FROM tab0 AS cor0
----
-110
-159
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + col2 * + 0 col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL - + cor0.col1 AS col2 FROM tab0 cor0
----
-86
-91
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7515
SELECT DISTINCT + col2 + 24 + - ( col1 + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7515
SELECT DISTINCT + col2 + 24 + - ( col1 + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col2 + 8 FROM tab1 cor0
----
104
62
65

query I rowsort
SELECT DISTINCT + + col2 + + ( + col2 ) * + col0 - + col2 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT cor0.col2 + - col0 AS col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT DISTINCT 56 * col2 + col1 AS col2 FROM tab2 AS cor0
----
1515
1543
2145

query I rowsort
SELECT DISTINCT + - ( + col1 ) + - col0 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT ALL - 54 + col0 FROM tab0 AS cor0
----
-19
-30
35

query I rowsort
SELECT ALL - cor0.col1 + + ( - col1 ) AS col1 FROM tab2 AS cor0
----
-118
-34
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-7523
SELECT ALL - col1 DIV - col0 AS col2 FROM tab0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-7523
SELECT ALL - col1 / - col0 AS col2 FROM tab0
----
1
2
3

skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( + col1 AS REAL ) * - col2 + - col1 * + col1 FROM tab2 AS cor0
----
-1798
-5015
-935

query I rowsort
SELECT + - 86 AS col1 FROM tab0 AS cor0
----
-86
-86
-86

query I rowsort
SELECT - + ( ( + col0 ) ) AS col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT - ( col1 ) + + col2 AS col1 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT ALL + + 69 * - col0 * + col2 FROM tab0 cor0
----
-2415
-503562
-54648

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( - 52 AS REAL ) * + col0 FROM tab2 AS cor0
----
364
4056
4108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * col0 + + col1 * ( + 1 ) col1 FROM tab2 AS cor0
----
2087
220
3019

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7531
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7531
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + - ( - col1 ) * - col0 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-7533
SELECT DISTINCT CAST( col1 AS SIGNED ) DIV col1 AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7533
SELECT DISTINCT CAST ( col1 AS INTEGER ) / col1 AS col0 FROM tab2 AS cor0
----
1

query I rowsort
SELECT DISTINCT + 15 FROM tab0, tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
15

query I rowsort
SELECT + 37 * + col1 FROM tab2 AS cor0
----
1147
2183
629

query I rowsort
SELECT - 32 * col1 * + col2 AS col0 FROM tab2 AS cor0
----
-20672
-26784
-49088

query I rowsort
SELECT - - 98 * col1 AS col0 FROM tab2 AS cor0
----
1666
3038
5782

query I rowsort
SELECT + col1 * - col1 * col2 + col0 AS col2 FROM tab2
----
-10903
-25940
-90428

query I rowsort
SELECT + 11 + col1 * - col1 + col2 FROM tab0
----
-7352
-8188
-9397

query I rowsort
SELECT - 37 * col2 * 85 FROM tab2
----
-119510
-81770
-84915

query I rowsort
SELECT ALL 24 * 80 FROM tab0, tab1 AS cor0
----
9 values hashing to ae238516e1b5d49657112c7f27bba6ea

query I rowsort
SELECT col2 + + ( col1 ) FROM tab2
----
55
58
85

query I rowsort
SELECT col2 * 56 * - col2 + - col1 FROM tab2 cor0
----
-37915
-40855
-80881

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 15 * col2 col1 FROM tab0 AS cor0
----
112
1321
581

query I rowsort
SELECT + col1 + 44 AS col2 FROM tab2 AS cor0
----
103
61
75

query I rowsort
SELECT col0 * tab0.col2 * 12 + col0 + col2 AS col1 FROM tab0
----
456
87747
9561

query I rowsort
SELECT - col1 + - 92 * + 21 * col0 AS col0 FROM tab2 AS cor0
----
-13555
-150755
-152645

query I rowsort
SELECT - col0 * col2 + - cor0.col1 FROM tab2 AS cor0
----
-2087
-220
-3019

query I rowsort
SELECT + cor0.col0 + col0 * cor0.col1 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT DISTINCT col0 + col2 * + cor0.col0 FROM tab2 cor0
----
196
2106
3081

query I rowsort
SELECT col1 * - col1 - - col1 * col2 AS col2 FROM tab1 AS cor0
----
1079
470
728

query I rowsort
SELECT ALL + col2 * 17 * col0 AS col2 FROM tab2 AS cor0
----
3213
34476
51034

query I rowsort
SELECT DISTINCT + - col2 * 29 FROM tab2 AS cor0
----
-1102
-754
-783

query I rowsort
SELECT 81 * 93 * + col1 + col2 AS col1 FROM tab1 AS cor0
----
195912
75387
98025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col1 + - col1 * + col0 col2 FROM tab2 AS cor0
----
-1054
-1989
-6136

query I rowsort
SELECT tab0.col2 + + col2 * col2 * col1 + + 15 * ( col2 ) AS col1 FROM tab0
----
113
613196
94182

query I rowsort
SELECT - 81 * - 66 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to c3d6ae9f567a0003878ac9964c69ef86

query I rowsort
SELECT - col0 * + ( - col1 ) FROM tab0
----
2064
3395
8099

query I rowsort
SELECT ALL 83 + col0 AS col0 FROM tab0 AS cor0
----
107
118
172

query I rowsort
SELECT + 37 * col1 FROM tab0 AS cor0
----
3182
3367
3589

query I rowsort
SELECT 62 + + col1 * col0 AS col2 FROM tab2
----
1405
279
4664

query I rowsort
SELECT - col2 - col0 * col1 FROM tab0
----
-2097
-3396
-8181

query I rowsort
SELECT DISTINCT + col0 * ( - col0 ) FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT - 82 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to ce62f59690969f4492d78eb57c3181f0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7565
SELECT DISTINCT - + col2 * 81 DIV col0 AS col0 FROM tab1 AS cor0
----
-1458
-72
-97

skipif mysql # not compatible
query I rowsort label-7565
SELECT DISTINCT - + col2 * 81 / col0 AS col0 FROM tab1 AS cor0
----
-1458
-72
-97

query I rowsort
SELECT 54 + col2 FROM tab0
----
136
55
87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7567
SELECT ALL 69 * col2 * CAST( col2 + - col0 AS SIGNED ) FROM tab0
----
-2346
-39606
20493

skipif mysql # not compatible
query I rowsort label-7567
SELECT ALL 69 * col2 * CAST ( col2 + - col0 AS INTEGER ) FROM tab0
----
-2346
-39606
20493

query I rowsort
SELECT - 82 - cor1.col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to efd8ae60c8aa6c389f61b163a6c3049a

query I rowsort
SELECT col2 * + col0 + ( + col1 ) AS col0 FROM tab1 cor0
----
188
3658
7693

onlyif mysql # use DIV operator for integer division
query I rowsort label-7570
SELECT + col0 + col0 DIV + col2 - + col1 AS col2 FROM tab1 AS cor0
----
-23
55
67

skipif mysql # not compatible
query I rowsort label-7570
SELECT + col0 + col0 / + col2 - + col1 AS col2 FROM tab1 AS cor0
----
-23
55
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-7571
SELECT DISTINCT col2 * col2 * 52 + col1 DIV 10 FROM tab0
----
349657
56636
61

skipif mysql # not compatible
query I rowsort label-7571
SELECT DISTINCT col2 * col2 * 52 + col1 / 10 FROM tab0
----
349657
56636
61

query I rowsort
SELECT ALL col0 + - 30 * + col0 AS col0 FROM tab1
----
-1856
-2320
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * 49 + - col0 + + col0 col1 FROM tab1
----
-2646
-2793
-4704

query I rowsort
SELECT - - col0 + cor0.col0 AS col2 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT ALL + + col2 * col0 + col0 FROM tab2 AS cor0
----
196
2106
3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-7576
SELECT ALL + col1 DIV col0 col0 FROM tab2 AS cor0
----
0
0
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7576
SELECT ALL + col1 / col0 col0 FROM tab2 AS cor0
----
0
0
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( ( + cor0.col2 ) ) col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT ALL - - col1 + - 15 FROM tab2 AS cor0
----
16
2
44

query I rowsort
SELECT ALL - col2 + - col0 + + col0 AS col2 FROM tab1 AS cor0
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-7580
SELECT ALL ( 77 ) DIV tab1.col1 FROM tab1
----
2
5
7

skipif mysql # not compatible
query I rowsort label-7580
SELECT ALL ( 77 ) / tab1.col1 FROM tab1
----
2
5
7

query I rowsort
SELECT DISTINCT 25 * + 65 AS col0 FROM tab0, tab1, tab1 cor0
----
1625

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7582
SELECT + CAST( cor0.col0 AS SIGNED ) FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-7582
SELECT + CAST ( cor0.col0 AS INTEGER ) FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT - col0 * col0 * - col2 AS col0 FROM tab2 AS cor0
----
1323
158184
237158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 80 col1 FROM tab0 AS cor0
----
-2640
-6560
-80

query I rowsort
SELECT ALL - col2 * col0 + + col0 AS col0 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT DISTINCT + col2 * 61 AS col0 FROM tab0 cor0
----
2013
5002
61

query I rowsort
SELECT ALL + tab1.col1 + + col0 * + col2 AS col0 FROM tab1
----
188
3658
7693

query I rowsort
SELECT DISTINCT cor0.col2 + cor0.col1 FROM tab0, tab0 AS cor0
----
119
173
98

query I rowsort
SELECT DISTINCT col1 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-7590
SELECT + + cor0.col2 + + cor0.col0 DIV col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-7590
SELECT + + cor0.col2 + + cor0.col0 / col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL + col0 + col0 * - col0 FROM tab1 AS cor0
----
-4032
-6
-6320

query I rowsort
SELECT DISTINCT + col0 * col0 + + col0 + col2 * - col2 FROM tab0 AS cor0
----
-489
1259
1286

query I rowsort
SELECT ALL + 58 + col2 FROM tab1 AS cor0
----
112
115
154

query I rowsort
SELECT - 34 * - col2 AS col0 FROM tab1 AS cor0
----
1836
1938
3264

onlyif mysql # use DIV operator for integer division
query I rowsort label-7595
SELECT col2 DIV + col1 col2 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7595
SELECT col2 / + col1 col2 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 89 * + col2 col1 FROM tab1
----
4806
5073
8544

query I rowsort
SELECT DISTINCT cor0.col2 FROM tab2, tab2 AS cor0, tab2 cor1
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 + col0 * cor0.col0 col2 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT ALL + + col0 + cor0.col1 * + col1 + 48 AS col2 FROM tab1 AS cor0
----
212
297
727

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col0 + - cor0.col2 col0 FROM tab2 AS cor0
----
-1381
-244
-4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-7601
SELECT ALL - col2 + col2 DIV - cor0.col1 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-7601
SELECT ALL - col2 + col2 / - cor0.col1 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT col0 + + col1 + + col2 AS col0 FROM tab1 AS cor0
----
131
189
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 54 col2 FROM tab0 AS cor0
----
54
54
54

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7604
SELECT DISTINCT - + CAST( col1 AS SIGNED ) + - cor0.col2 AS col2 FROM tab1 AS cor0
----
-109
-67
-80

skipif mysql # not compatible
query I rowsort label-7604
SELECT DISTINCT - + CAST ( col1 AS INTEGER ) + - cor0.col2 AS col2 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT DISTINCT 58 + - col1 + - col0 AS col2 FROM tab2 AS cor0
----
-38
-79
20

query I rowsort
SELECT ALL + + cor0.col2 * - 94 - col0 AS col0 FROM tab0 cor0
----
-129
-3126
-7797

query I rowsort
SELECT col1 + - col0 * + col2 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT + 99 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query I rowsort
SELECT + col0 * col2 AS col0 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT ALL - ( + col2 + col1 * - col1 ) AS col2 FROM tab2
----
251
3455
934

query I rowsort
SELECT - col2 * + cor0.col1 - - col2 * - 67 AS col0 FROM tab0 AS cor0
----
-12956
-164
-5049

query I rowsort
SELECT + 11 * col2 + + 73 AS col1 FROM tab1 AS cor0
----
1129
667
700

query I rowsort
SELECT + + 33 * col1 * cor0.col0 - col1 AS col0 FROM tab2 AS cor0
----
151807
44302
7130

query I rowsort
SELECT ALL + ( + ( col0 ) + - col1 ) AS col2 FROM tab0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT - - col1 * 59 AS col0 FROM tab2 AS cor0
----
1003
1829
3481

query I rowsort
SELECT - col1 * 46 + col1 FROM tab2 AS cor0
----
-1395
-2655
-765

query I rowsort
SELECT ALL - 14 + + col1 * + 94 AS col1 FROM tab1
----
1208
2430
926

query I rowsort
SELECT + cor1.col2 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT DISTINCT + 94 AS col1 FROM tab2, tab0 AS cor0
----
94

query I rowsort
SELECT ALL + col2 * - col0 + cor0.col2 FROM tab2 cor0
----
-162
-2002
-2964

query I rowsort
SELECT + - col1 * col0 * col2 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT DISTINCT + col0 + col0 * cor0.col1 AS col2 FROM tab1 AS cor0
----
1120
704
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-7623
SELECT ALL - + cor0.col0 + + col0 DIV 9 AS col2 FROM tab0 AS cor0
----
-22
-32
-80

skipif mysql # not compatible
query I rowsort label-7623
SELECT ALL - + cor0.col0 + + col0 / 9 AS col2 FROM tab0 AS cor0
----
-22
-32
-80

query I rowsort
SELECT ALL + col1 * 52 FROM tab0 AS cor0
----
4472
4732
5044

query I rowsort
SELECT + col1 + 67 * - col2 FROM tab2 AS cor0
----
-1683
-1778
-2529

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7626
SELECT + col1 * + CAST( + 99 + col2 AS SIGNED ) * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7626
SELECT + col1 * + CAST ( + 99 + col2 AS INTEGER ) * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 * 77 AS col1 FROM tab2 cor0
----
-1309
-2387
-4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-7628
SELECT ALL + cor0.col1 DIV col1 AS col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7628
SELECT ALL + cor0.col1 / col1 AS col2 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT col2 + + ( col1 * - col2 ) + + cor0.col2 FROM tab2 AS cor0
----
-1482
-570
-783

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7630
SELECT col0 * CAST( NULL AS DECIMAL ) + tab2.col2 col2 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7630
SELECT col0 * CAST ( NULL AS REAL ) + tab2.col2 col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 + + ( - 91 ) FROM tab1 AS cor0
----
-34
-37
5

onlyif mysql # use DIV operator for integer division
query I rowsort label-7632
SELECT - col2 + + col0 DIV col1 FROM tab1 AS cor0
----
-51
-54
-90

skipif mysql # not compatible
query I rowsort label-7632
SELECT - col2 + + col0 / col1 FROM tab1 AS cor0
----
-51
-54
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-7633
SELECT - col2 * + col0 DIV col0 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-7633
SELECT - col2 * + col0 / col0 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT - col2 + + cor0.col2 * - col0 FROM tab2 AS cor0
----
-2054
-216
-3040

query I rowsort
SELECT + col1 + - 64 FROM tab2 AS cor0
----
-33
-47
-5

onlyif mysql # use DIV operator for integer division
query I rowsort label-7636
SELECT - col0 DIV + col2 AS col0 FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-7636
SELECT - col0 / + col2 AS col0 FROM tab0 AS cor0
----
-1
-35
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7637
SELECT + CAST( + col1 AS SIGNED ) * col0 FROM tab1 AS cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-7637
SELECT + CAST ( + col1 AS INTEGER ) * col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT - col0 * 83 FROM tab2 AS cor0
----
-581
-6474
-6557

query I rowsort
SELECT ALL tab0.col0 FROM tab0, tab2 AS cor0, tab2, tab2 cor1
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994

query I rowsort
SELECT ALL - - 28 * col1 + - 32 FROM tab0 AS cor0
----
2376
2516
2684

query I rowsort
SELECT ALL col0 - col2 * col0 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT - - cor0.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT - ( col1 ) + + 42 * 47 AS col1 FROM tab2 AS cor0
----
1915
1943
1957

query I rowsort
SELECT DISTINCT + + 49 FROM tab0 AS cor0
----
49

query I rowsort
SELECT ALL + col1 + col0 * + col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT DISTINCT + col1 - + col2 * - ( + col1 ) FROM tab0 cor0
----
194
2924
7553

query I rowsort
SELECT + + 86 * - col1 * 51 - + col1 * col1 FROM tab2 AS cor0
----
-136927
-262255
-74851

query I rowsort
SELECT cor0.col1 + 58 + + col2 FROM tab0 AS cor0
----
156
177
231

query I rowsort
SELECT DISTINCT 85 FROM tab2, tab0 cor0
----
85

query I rowsort
SELECT - col0 + 9 AS col0 FROM tab0 AS cor0
----
-15
-26
-80

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 AS cor2
----
3645 values hashing to 7a2f620d56640e95048dfa9a4cf93159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - + 38 * - col0 col1 FROM tab2
----
297
3019
3023

query I rowsort
SELECT - 94 * 51 FROM tab1 AS cor0
----
-4794
-4794
-4794

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7654
SELECT + CAST( col2 AS SIGNED ) * - col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

skipif mysql # not compatible
query I rowsort label-7654
SELECT + CAST ( col2 AS INTEGER ) * - col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

skipif mysql # not compatible
query I rowsort
SELECT col2 + + col0 + CAST ( - ( col1 ) AS REAL ) * - col2 FROM tab0 AS cor0
----
133
2895
7633

query I rowsort
SELECT DISTINCT + 92 AS col2 FROM tab1, tab0 AS cor0
----
92

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7657
SELECT DISTINCT + CAST( - col0 AS SIGNED ) AS col0 FROM tab2
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-7657
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) AS col0 FROM tab2
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-7658
SELECT - col0 - col0 DIV col0 AS col0 FROM tab2 AS cor0
----
-79
-8
-80

skipif mysql # not compatible
query I rowsort label-7658
SELECT - col0 - col0 / col0 AS col0 FROM tab2 AS cor0
----
-79
-8
-80

query I rowsort
SELECT ALL 53 + - col2 * + col1 FROM tab2 AS cor0
----
-1481
-593
-784

query I rowsort
SELECT DISTINCT 40 * cor0.col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
280
3120
3160

query I rowsort
SELECT DISTINCT - 11 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-11

query I rowsort
SELECT - + cor0.col2 * + col1 + - 85 FROM tab2 AS cor0
----
-1619
-731
-922

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7663
SELECT + - CAST( + col0 AS SIGNED ) + cor0.col2 FROM tab2 cor0
----
-41
-52
20

skipif mysql # not compatible
query I rowsort label-7663
SELECT + - CAST ( + col0 AS INTEGER ) + cor0.col2 FROM tab2 cor0
----
-41
-52
20

query I rowsort
SELECT ALL - - col1 * 9 AS col1 FROM tab1 cor0
----
117
234
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7665
SELECT DISTINCT - - CAST( 89 AS SIGNED ) FROM tab0 cor0
----
89

skipif mysql # not compatible
query I rowsort label-7665
SELECT DISTINCT - - CAST ( 89 AS INTEGER ) FROM tab0 cor0
----
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7666
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col0 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7666
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col0 AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7667
SELECT ALL col1 DIV - col0 - col0 FROM tab2 AS cor0
----
-11
-78
-79

skipif mysql # not compatible
query I rowsort label-7667
SELECT ALL col1 / - col0 - col0 FROM tab2 AS cor0
----
-11
-78
-79

query I rowsort
SELECT ALL - 8 FROM tab1, tab0 AS cor0
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

query I rowsort
SELECT ALL tab2.col1 * 52 AS col0 FROM tab2
----
1612
3068
884

query I rowsort
SELECT + 18 AS col1 FROM tab1 AS cor0
----
18
18
18

query I rowsort
SELECT ALL - 96 + + 57 FROM tab1 AS cor0
----
-39
-39
-39

query I rowsort
SELECT ALL cor0.col0 AS col2 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

onlyif mysql # use DIV operator for integer division
query I rowsort label-7673
SELECT DISTINCT col0 DIV col2 + col0 + col1 FROM tab0
----
110
167
181

skipif mysql # not compatible
query I rowsort label-7673
SELECT DISTINCT col0 / col2 + col0 + col1 FROM tab0
----
110
167
181

query I rowsort
SELECT - col1 * + ( col2 ) AS col0 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT 61 + - col0 FROM tab0
----
-28
26
37

query I rowsort
SELECT 23 + - 33 FROM tab0
----
-10
-10
-10

query I rowsort
SELECT DISTINCT - ( col0 * col0 ) FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT 88 + + 16 FROM tab1
----
104
104
104

query I rowsort
SELECT DISTINCT + ( - col1 + col2 * 74 ) FROM tab0
----
-23
2356
5977

query I rowsort
SELECT ALL 81 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7681
SELECT - CAST( - 65 AS SIGNED ) AS col1 FROM tab0
----
65
65
65

skipif mysql # not compatible
query I rowsort label-7681
SELECT - CAST ( - 65 AS INTEGER ) AS col1 FROM tab0
----
65
65
65

query I rowsort
SELECT - + 27 FROM tab0, tab1, tab1 cor0
----
27 values hashing to 0259a67676b131a4843853be4811b775

query I rowsort
SELECT DISTINCT tab2.col2 * 64 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
1664
1728
2432

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - 52 col2 FROM tab0 cor0
----
-1716
-4264
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * ( col0 ) + + cor0.col2 col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT - col0 * ( + cor0.col2 ) + + col2 + - col1 FROM tab1 AS cor0
----
-134
-3601
-7597

query I rowsort
SELECT DISTINCT 26 * col1 AS col0 FROM tab0
----
2236
2366
2522

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7688
SELECT ALL col2 + + col1 + CAST( NULL AS SIGNED ) * ( tab1.col2 ) * + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7688
SELECT ALL col2 + + col1 + CAST ( NULL AS INTEGER ) * ( tab1.col2 ) * + col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 - + col2 FROM tab0 cor0
----
-164
-2
-66

query I rowsort
SELECT col2 + + col0 * col2 - + ( col1 ) FROM tab2
----
185
1995
3023

query I rowsort
SELECT - col1 + + col2 * col1 + + col0 AS col1 FROM tab1 cor0
----
1315
1381
624

query IIIIIIIIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 AS cor2
----
972 values hashing to 7864aada86bf5bf5e1621c7905de8dcd

query I rowsort
SELECT - col2 + - 39 FROM tab0 AS cor0
----
-121
-40
-72

query I rowsort
SELECT DISTINCT - cor0.col1 * col1 + + col1 FROM tab1 AS cor0
----
-156
-650
-90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7695
SELECT DISTINCT + col0 + CAST( NULL AS SIGNED ) * 3 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7695
SELECT DISTINCT + col0 + CAST ( NULL AS INTEGER ) * 3 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col0 * - 16 + + col1 + + col0 col1 FROM tab0 AS cor0
----
-1244
-274
-428

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 col2 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT + - col1 * - ( + 23 ) AS col1 FROM tab0 AS cor0
----
1978
2093
2231

query I rowsort
SELECT - col0 * - col1 + - col0 + + col0 * col0 FROM tab0 AS cor0
----
15931
2616
4585

query I rowsort
SELECT DISTINCT cor0.col2 + + ( + 94 * cor0.col0 ) AS col2 FROM tab2 cor0
----
685
7358
7464

query I rowsort
SELECT ALL - + cor0.col1 + - col2 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT + ( col0 ) * - col0 FROM tab1 AS cor0
----
-4096
-6400
-9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7703
SELECT + ( col0 ) + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7703
SELECT + ( col0 ) + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1, tab1 cor0, tab2 cor1
----
972 values hashing to 01a5931cccc3dad8792a1bc6df09c614

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7705
SELECT ( 32 ) * + tab2.col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-7705
SELECT ( 32 ) * + tab2.col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 44 col2 FROM tab0
----
-44
-44
-44

onlyif mysql # use DIV operator for integer division
query I rowsort label-7707
SELECT + 13 DIV col1 + col0 * - col2 FROM tab2 cor0
----
-189
-2028
-3002

skipif mysql # not compatible
query I rowsort label-7707
SELECT + 13 / col1 + col0 * - col2 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT - col2 + - col0 * + ( - cor0.col0 ) AS col2 FROM tab2 AS cor0
----
22
6058
6203

query I rowsort
SELECT + cor0.col1 + + col1 AS col0 FROM tab1 cor0
----
20
26
52

query I rowsort
SELECT col2 + 19 * + col0 FROM tab0 AS cor0
----
1773
489
666

query I rowsort
SELECT ALL - - cor0.col0 + - ( - col0 * - col0 ) FROM tab0 AS cor0
----
-1190
-552
-7832

query I rowsort
SELECT + col2 + col2 * 31 * col2 FROM tab0
----
208526
32
33792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7713
SELECT DISTINCT - CAST( - col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-7713
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT - - col0 * - 64 AS col1 FROM tab1 AS cor0
----
-192
-4096
-5120

query I rowsort
SELECT - + 46 + + col2 * col0 AS col0 FROM tab1 AS cor0
----
116
3602
7634

onlyif mysql # use DIV operator for integer division
query I rowsort label-7716
SELECT + - col1 + + col1 DIV cor0.col0 FROM tab2 AS cor0
----
-17
-27
-59

skipif mysql # not compatible
query I rowsort label-7716
SELECT + - col1 + + col1 / cor0.col0 FROM tab2 AS cor0
----
-17
-27
-59

query I rowsort
SELECT ALL col2 * ( cor0.col1 + col1 ) AS col0 FROM tab2 AS cor0
----
1292
1674
3068

query I rowsort
SELECT - col2 * - col1 + col0 AS col2 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT DISTINCT + + cor0.col2 * - col1 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL + col2 * ( cor0.col0 ) - ( - 95 ) FROM tab2 AS cor0
----
2123
284
3097

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7721
SELECT DISTINCT + + CAST( NULL AS DECIMAL ) + col0 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7721
SELECT DISTINCT + + CAST ( NULL AS REAL ) + col0 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + col2 + cor0.col0 * col1 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT + 89 + + col2 * + cor0.col2 * 12 AS col1 FROM tab2 AS cor0
----
17417
8201
8837

query I rowsort
SELECT ALL col2 - + ( 71 ) FROM tab0
----
-38
-70
11

query I rowsort
SELECT DISTINCT col0 * - 2 AS col1 FROM tab2 cor0
----
-14
-156
-158

query I rowsort
SELECT - - 68 + 90 * col1 FROM tab2 AS cor0
----
1598
2858
5378

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - 36 col0 FROM tab1
----
-10
-23
-26

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0 CROSS JOIN tab1, tab2 cor1
----
972 values hashing to caf6adb9936510208f5945a7e5c76f14

query I rowsort
SELECT - 39 + + cor0.col1 FROM tab1 AS cor0
----
-13
-26
-29

query I rowsort
SELECT ALL - 2 AS col0 FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to 20c9213316527d507e26425041e08387

query I rowsort
SELECT - 28 AS col0 FROM tab2, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to eac00a95d734c7071360ed392c3f39bc

query I rowsort
SELECT - cor1.col0 FROM tab1, tab0 cor0, tab1 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7733
SELECT DISTINCT CAST( col0 AS SIGNED ) * + col0 + CAST( - col0 AS SIGNED ) col1 FROM tab0 AS cor0
----
1190
552
7832

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7733
SELECT DISTINCT CAST ( col0 AS INTEGER ) * + col0 + CAST ( - col0 AS INTEGER ) col1 FROM tab0 AS cor0
----
1190
552
7832

onlyif mysql # use DIV operator for integer division
query I rowsort label-7734
SELECT DISTINCT - - 96 * col0 + - col2 DIV + col0 + col0 FROM tab2 AS cor0
----
676
7566
7663

skipif mysql # not compatible
query I rowsort label-7734
SELECT DISTINCT - - 96 * col0 + - col2 / + col0 + col0 FROM tab2 AS cor0
----
676
7566
7663

query I rowsort
SELECT col2 * - 42 + - col2 AS col1 FROM tab0 AS cor0
----
-1419
-3526
-43

query I rowsort
SELECT 77 + + cor0.col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 2df140f438955d543fad7f3794a2bdc5

query I rowsort
SELECT + cor0.col0 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7738
SELECT ALL + col0 + - 45 * col1 + CAST( - 22 * + col2 AS SIGNED ) FROM tab0
----
-4352
-4572
-5810

skipif mysql # not compatible
query I rowsort label-7738
SELECT ALL + col0 + - 45 * col1 + CAST ( - 22 * + col2 AS INTEGER ) FROM tab0
----
-4352
-4572
-5810

query I rowsort
SELECT - col0 + col2 + 52 FROM tab2 cor0
----
0
11
72

query I rowsort
SELECT col1 * + col1 * col2 FROM tab2
----
10982
25947
90506

query I rowsort
SELECT ALL + 52 + - col0 + - col1 FROM tab2
----
-44
-85
14

query I rowsort
SELECT col2 * ( + col1 ) AS col2 FROM tab1
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-7743
SELECT 27 DIV - ( col0 * 30 ) AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7743
SELECT 27 / - ( col0 * 30 ) AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT + 44 * tab0.col1 FROM tab0
----
3784
4004
4268

query I rowsort
SELECT DISTINCT col2 * col0 * + 88 AS col2 FROM tab0
----
3080
642224
69696

query I rowsort
SELECT DISTINCT 64 * col1 * - ( - 1 * col1 ) FROM tab2
----
18496
222784
61504

query I rowsort
SELECT - col0 * - col2 * ( 15 ) AS col0 FROM tab2 AS cor0
----
2835
30420
45030

onlyif mysql # use DIV operator for integer division
query I rowsort label-7748
SELECT + col0 * + col0 + + col1 DIV + col1 FROM tab2 cor0
----
50
6085
6242

skipif mysql # not compatible
query I rowsort label-7748
SELECT + col0 * + col0 + + col1 / + col1 FROM tab2 cor0
----
50
6085
6242

query I rowsort
SELECT col1 * cor0.col2 + col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT col0 * - col0 + + 5 + - 75 FROM tab2 AS cor0
----
-119
-6154
-6311

onlyif mysql # use DIV operator for integer division
query I rowsort label-7751
SELECT - + col0 + + cor0.col0 + col2 DIV 57 AS col2 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7751
SELECT - + col0 + + cor0.col0 + col2 / 57 AS col2 FROM tab1 AS cor0
----
0
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-7752
SELECT DISTINCT + + col2 + - col2 DIV - col1 AS col2 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-7752
SELECT DISTINCT + + col2 + - col2 / - col1 AS col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT - cor0.col0 + - col2 * + col2 FROM tab0 AS cor0
----
-1113
-36
-6813

query I rowsort
SELECT ALL - + cor0.col2 * 71 + cor0.col1 * col0 FROM tab1 AS cor0
----
-3407
-3756
-5776

query I rowsort
SELECT ALL col0 - col2 AS col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT + col0 * ( - 4 ) AS col0 FROM tab0 AS cor0
----
-140
-356
-96

query I rowsort
SELECT + 60 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT DISTINCT - + 44 * + col2 + - cor0.col2 FROM tab1 AS cor0
----
-2430
-2565
-4320

query I rowsort
SELECT 40 * col1 * col2 AS col2 FROM tab1
----
22800
49920
56160

query I rowsort
SELECT ALL - col2 + - 17 AS col0 FROM tab2 AS cor0
----
-43
-44
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 72 col2 FROM tab0 AS cor0
----
1728
2520
6408

query I rowsort
SELECT + - cor0.col1 * col2 - col0 AS col0 FROM tab0 AS cor0
----
-132
-2862
-7551

query I rowsort
SELECT DISTINCT cor0.col1 * - ( 36 ) * - col2 - 98 FROM tab2 AS cor0
----
23158
30034
55126

onlyif mysql # use DIV operator for integer division
query I rowsort label-7764
SELECT ALL + col0 DIV - 35 AS col2 FROM tab0 cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-7764
SELECT ALL + col0 / - 35 AS col2 FROM tab0 cor0
----
-1
-2
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7765
SELECT + cor0.col0 * - CAST( 36 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-252
-2808
-2844

skipif mysql # not compatible
query I rowsort label-7765
SELECT + cor0.col0 * - CAST ( 36 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-252
-2808
-2844

query I rowsort
SELECT ALL - col2 + + 55 * col2 AS col2 FROM tab1 AS cor0
----
2916
3078
5184

query I rowsort
SELECT DISTINCT 22 + col0 FROM tab0
----
111
46
57

query I rowsort
SELECT tab2.col2 + col0 * 18 FROM tab2
----
1430
1460
153

query I rowsort
SELECT - 71 + - col0 AS col1 FROM tab2
----
-149
-150
-78

query I rowsort
SELECT DISTINCT col0 * col2 + + col0 FROM tab1
----
165
3712
7760

query I rowsort
SELECT ALL - col2 * - col1 + 69 FROM tab1
----
1317
1473
639

onlyif mysql # use DIV operator for integer division
query I rowsort label-7772
SELECT + ( - col0 ) + - 10 DIV col1 AS col0 FROM tab1
----
-3
-65
-80

skipif mysql # not compatible
query I rowsort label-7772
SELECT + ( - col0 ) + - 10 / col1 AS col0 FROM tab1
----
-3
-65
-80

query I rowsort
SELECT DISTINCT + + col2 * ( col1 * + col1 ) AS col2 FROM tab0 AS cor0
----
244068
679042
9409

query I rowsort
SELECT ALL - + col0 + + cor0.col0 FROM tab1 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7775
SELECT - + col0 + - col0 DIV - col2 AS col1 FROM tab1 AS cor0
----
-3
-63
-80

skipif mysql # not compatible
query I rowsort label-7775
SELECT - + col0 + - col0 / - col2 AS col1 FROM tab1 AS cor0
----
-3
-63
-80

query I rowsort
SELECT DISTINCT col1 * ( 26 + - col2 ) AS col1 FROM tab2 AS cor0
----
-204
-31
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7777
SELECT DISTINCT - col1 + col0 DIV + col1 FROM tab2 AS cor0
----
-13
-31
-58

skipif mysql # not compatible
query I rowsort label-7777
SELECT DISTINCT - col1 + col0 / + col1 FROM tab2 AS cor0
----
-13
-31
-58

query I rowsort
SELECT col1 * + col0 * col0 AS col1 FROM tab0 cor0
----
118825
49536
720811

query I rowsort
SELECT - - col0 + + 13 FROM tab0 AS cor0
----
102
37
48

onlyif mysql # use DIV operator for integer division
query I rowsort label-7780
SELECT DISTINCT + col0 DIV tab0.col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7780
SELECT DISTINCT + col0 / tab0.col1 FROM tab0
----
0

query I rowsort
SELECT DISTINCT col2 + + 78 FROM tab0
----
111
160
79

query I rowsort
SELECT + col0 + - col2 * col2 * + 4 AS col2 FROM tab1 AS cor0
----
-11661
-12932
-36784

query I rowsort
SELECT col2 * - col2 + - col0 AS col1 FROM tab0 AS cor0
----
-1113
-36
-6813

query I rowsort
SELECT - col1 * col2 - - col0 FROM tab1
----
-1168
-1401
-506

query I rowsort
SELECT - ( + col1 ) + - col1 FROM tab0 cor0
----
-172
-182
-194

query I rowsort
SELECT 47 AS col2 FROM tab2 AS cor0
----
47
47
47

onlyif mysql # use DIV operator for integer division
query I rowsort label-7787
SELECT - - 92 DIV col0 AS col2 FROM tab1 AS cor0
----
1
1
30

skipif mysql # not compatible
query I rowsort label-7787
SELECT - - 92 / col0 AS col2 FROM tab1 AS cor0
----
1
1
30

query I rowsort
SELECT - 6 * - col2 AS col0 FROM tab2 AS cor0
----
156
162
228

query I rowsort
SELECT DISTINCT + ( + cor1.col1 ) FROM tab0, tab0 cor0, tab2 cor1, tab1, tab2 AS cor2
----
17
31
59

query I rowsort
SELECT DISTINCT + - col0 + - col0 AS col2 FROM tab2 AS cor0
----
-14
-156
-158

query I rowsort
SELECT DISTINCT 79 * col1 * + col2 AS col2 FROM tab2 AS cor0
----
121186
51034
66123

query I rowsort
SELECT DISTINCT + ( + col1 ) + col1 AS col0 FROM tab2 AS cor0
----
118
34
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-7793
SELECT ALL col2 * + col0 + col0 DIV 83 AS col0 FROM tab0 AS cor0
----
35
7299
792

skipif mysql # not compatible
query I rowsort label-7793
SELECT ALL col2 * + col0 + col0 / 83 AS col0 FROM tab0 AS cor0
----
35
7299
792

query I rowsort
SELECT ALL col1 * col1 + - tab0.col0 AS col2 FROM tab0
----
7372
8192
9374

query I rowsort
SELECT DISTINCT + - col2 * - col2 AS col0 FROM tab0 AS cor0
----
1
1089
6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-7796
SELECT ALL - col2 * cor0.col0 + + 85 DIV col2 FROM tab0 AS cor0
----
-7297
-790
50

skipif mysql # not compatible
query I rowsort label-7796
SELECT ALL - col2 * cor0.col0 + + 85 / col2 FROM tab0 AS cor0
----
-7297
-790
50

query I rowsort
SELECT - col0 + + col0 * + col1 FROM tab2 AS cor0
----
1264
210
4524

onlyif mysql # use DIV operator for integer division
query I rowsort label-7798
SELECT ALL + col2 DIV - col1 AS col2 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-7798
SELECT ALL + col2 / - col1 AS col2 FROM tab1 AS cor0
----
-2
-5
-7

query I rowsort
SELECT - - 82 + cor0.col1 FROM tab0 AS cor0
----
168
173
179

query I rowsort
SELECT ALL - col2 * + col2 + - col1 AS col1 FROM tab0 AS cor0
----
-1175
-6815
-98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7801
SELECT 69 * + col0 * CAST( NULL AS SIGNED ) + - col0 / + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7801
SELECT 69 * + col0 * CAST ( NULL AS INTEGER ) + - col0 / + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * col2 - ( + col2 ) AS col1 FROM tab2 cor0
----
162
2002
2964

query I rowsort
SELECT DISTINCT - ( + col2 ) * ( - 40 ) AS col1 FROM tab1 AS cor0
----
2160
2280
3840

onlyif mysql # use DIV operator for integer division
query I rowsort label-7804
SELECT ALL - + cor0.col2 + cor0.col0 DIV - 56 FROM tab0 AS cor0
----
-1
-33
-83

skipif mysql # not compatible
query I rowsort label-7804
SELECT ALL - + cor0.col2 + cor0.col0 / - 56 FROM tab0 AS cor0
----
-1
-33
-83

query I rowsort
SELECT DISTINCT col0 + cor0.col0 * col1 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT DISTINCT - col0 + + ( cor0.col0 * col2 ) AS col0 FROM tab0 AS cor0
----
0
7209
768

onlyif mysql # use DIV operator for integer division
query I rowsort label-7807
SELECT DISTINCT + + col1 DIV - col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7807
SELECT DISTINCT + + col1 / - col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort
SELECT ALL - - col1 / + CAST ( col1 AS REAL ) AS col2 FROM tab0 cor0
----
1
1
1

query I rowsort
SELECT DISTINCT cor0.col2 - col0 AS col1 FROM tab2 cor0
----
-41
-52
20

query I rowsort
SELECT - col0 * + col2 - col2 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT cor0.col1 AS col0 FROM tab2, tab0 cor0, tab1 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT ALL + cor0.col1 - - 1 FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT ALL - - ( col2 ) + col0 * + 42 FROM tab2 AS cor0
----
321
3302
3356

query I rowsort
SELECT DISTINCT + ( - col2 ) * col1 - - 39 FROM tab2 AS cor0
----
-1495
-607
-798

query I rowsort
SELECT - col1 * - col1 * + col0 - + ( cor0.col1 + col0 ) FROM tab0 AS cor0
----
177394
329183
736829

onlyif mysql # use DIV operator for integer division
query I rowsort label-7816
SELECT DISTINCT + - col0 + + ( col2 ) DIV + 84 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-7816
SELECT DISTINCT + - col0 + + ( col2 ) / + 84 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL + 80 + - col0 AS col1 FROM tab0 AS cor0
----
-9
45
56

query I rowsort
SELECT + 6 + - 19 FROM tab1, tab2 cor0
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query I rowsort
SELECT DISTINCT - - 4 + + col1 FROM tab1 AS cor0
----
14
17
30

query I rowsort
SELECT - - col2 + col2 AS col2 FROM tab0 cor0
----
164
2
66

query I rowsort
SELECT DISTINCT + + col1 + col0 * col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT DISTINCT col1 - 47 FROM tab2
----
-16
-30
12

query I rowsort
SELECT DISTINCT - 92 - + col0 * col2 AS col1 FROM tab0
----
-127
-7390
-884

query I rowsort
SELECT DISTINCT + 70 * + col1 - + col0 AS col0 FROM tab1
----
1817
636
830

query I rowsort
SELECT ALL col0 - 52 AS col1 FROM tab2
----
-45
26
27

query I rowsort
SELECT tab0.col2 * ( - col0 ) AS col2 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT 19 + 62 + col1 FROM tab0
----
167
172
178

query I rowsort
SELECT DISTINCT tab0.col1 * 42 * + col2 - - col2 AS col2 FROM tab0
----
119229
313486
4075

query I rowsort
SELECT - col0 + col2 * + 88 AS col2 FROM tab0 AS cor0
----
2880
53
7127

onlyif mysql # use DIV operator for integer division
query I rowsort label-7831
SELECT ALL + 38 DIV + col1 + + col2 FROM tab1 AS cor0
----
55
60
98

skipif mysql # not compatible
query I rowsort label-7831
SELECT ALL + 38 / + col1 + + col2 FROM tab1 AS cor0
----
55
60
98

query I rowsort
SELECT 4 * - col1 * - col2 + + 96 - - col0 AS col0 FROM tab0
----
11472
30033
519

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 col2 FROM tab0, tab1 AS cor0
----
54
57
96

query IIIIII rowsort
SELECT * FROM tab1, tab1 cor0 WHERE NULL <> ( NULL )
----

query I rowsort
SELECT DISTINCT - ( - col2 * col1 ) + - ( + col2 ) * + tab2.col0 FROM tab2
----
-2356
-494
648

query I rowsort
SELECT col1 * + tab0.col0 * + col2 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT DISTINCT tab2.col2 + + col1 + col0 * col0 AS col2 FROM tab2
----
107
6169
6296

query I rowsort
SELECT - ( + 3 ) * - col2 AS col2 FROM tab2 AS cor0
----
114
78
81

query I rowsort
SELECT ALL - col1 + - col1 + + 69 AS col2 FROM tab1 cor0
----
17
43
49

query I rowsort
SELECT + col1 * col1 + cor0.col2 * + col1 * col0 FROM tab2 AS cor0
----
123133
51323
6820

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 cor0, tab1 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to 2c9bc625661696fa1cf187c4d0f703a1

query I rowsort
SELECT ALL 61 * ( - col0 ) + ( + 36 ) AS col1 FROM tab2 cor0
----
-391
-4722
-4783

query I rowsort
SELECT DISTINCT col0 * + 74 AS col2 FROM tab1 AS cor0
----
222
4736
5920

query I rowsort
SELECT tab2.col0 * - col0 + - tab2.col0 * - col0 + col1 AS col0 FROM tab2
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-7845
SELECT ALL + 30 DIV + col1 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7845
SELECT ALL + 30 / + col1 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT 39 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to ed2ebd9def3e2c38aa46cb3af60fe229

query I rowsort
SELECT ALL - col1 * col0 - - ( col2 ) AS col1 FROM tab2 AS cor0
----
-1305
-190
-4576

onlyif mysql # use DIV operator for integer division
query I rowsort label-7848
SELECT DISTINCT + - col1 DIV + col2 + + col2 FROM tab1 cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-7848
SELECT DISTINCT + - col1 / + col2 + + col2 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT ALL cor0.col1 * col0 - - col0 * 13 FROM tab1 AS cor0
----
117
1472
2080

query I rowsort
SELECT ALL - - ( - col1 ) * - 53 + col2 AS col1 FROM tab2 AS cor0
----
1670
3153
939

query I rowsort
SELECT DISTINCT + 94 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col2 * + ( col1 * - col1 ) col2 FROM tab1 AS cor0
----
-16144
-36501
-5636

query I rowsort
SELECT DISTINCT + col0 * col0 + 69 * col1 AS col0 FROM tab2 cor0
----
10155
2188
7414

query I rowsort
SELECT + 45 AS col1 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca

query I rowsort
SELECT - - col1 * cor0.col1 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT + - col2 * - col1 + + col0 + cor0.col1 AS col2 FROM tab1 AS cor0
----
1341
1433
644

query I rowsort
SELECT DISTINCT + - col0 + ( - col0 ) * + col0 FROM tab2 cor0
----
-56
-6162
-6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-7858
SELECT col2 + col1 DIV - col0 AS col0 FROM tab2 AS cor0
----
23
26
38

skipif mysql # not compatible
query I rowsort label-7858
SELECT col2 + col1 / - col0 AS col0 FROM tab2 AS cor0
----
23
26
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7859
SELECT col2 - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7859
SELECT col2 - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col1 * 80 AS col2 FROM tab0 AS cor0
----
-6880
-7280
-7760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7861
SELECT DISTINCT + col1 / CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7861
SELECT DISTINCT + col1 / CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL

query I rowsort
SELECT DISTINCT + col2 + - cor0.col2 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col1 * - col2 + + 68 col2 FROM tab2
----
-1466
-578
-769

query I rowsort
SELECT ALL - col1 - + col1 FROM tab0
----
-172
-182
-194

query I rowsort
SELECT + 66 * tab1.col2 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 541584b0942622c7f732c591bdd99859

onlyif mysql # use DIV operator for integer division
query I rowsort label-7866
SELECT + col2 DIV - col1 AS col2 FROM tab2
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-7866
SELECT + col2 / - col1 AS col2 FROM tab2
----
-2
0
0

query I rowsort
SELECT + col2 * - col2 + col2 AS col0 FROM tab1 AS cor0
----
-2862
-3192
-9120

query I rowsort
SELECT col2 - col1 AS col0 FROM tab0 cor0
----
-53
-9
-96

query I rowsort
SELECT col0 + + col1 + - ( + col0 ) AS col0 FROM tab1
----
10
13
26

query I rowsort
SELECT + col1 + + col0 + - col0 FROM tab2
----
17
31
59

query I rowsort
SELECT DISTINCT 96 + cor1.col2 AS col2 FROM tab0, tab1 AS cor0, tab0 cor1
----
129
178
97

query I rowsort
SELECT 17 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to e0dd9155e4d67132637a04c18ef46b2a

query I rowsort
SELECT ALL - 47 AS col2 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to a4d3a02c376c52ddb0a38a801f7b50d5

query I rowsort
SELECT col1 + col0 AS col1 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT + 19 * 41 + - col2 * - 21 FROM tab1 AS cor0
----
1913
1976
2795

query I rowsort
SELECT DISTINCT ( ( + col2 ) ) FROM tab0 cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + col2 col1 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT ALL + + col0 * + col2 + - col2 + col1 AS col2 FROM tab2 AS cor0
----
193
2061
2981

onlyif mysql # use DIV operator for integer division
query I rowsort label-7879
SELECT - - cor0.col2 + + col0 * col1 DIV CAST( col1 AS SIGNED ) AS col0 FROM tab1 cor0
----
121
176
57

skipif mysql # not compatible
query I rowsort label-7879
SELECT - - cor0.col2 + + col0 * col1 / CAST ( col1 AS INTEGER ) AS col0 FROM tab1 cor0
----
121
176
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7880
SELECT CAST( 61 AS SIGNED ) + - col0 * + col1 - col2 AS col0 FROM tab0 AS cor0
----
-2036
-3335
-8120

skipif mysql # not compatible
query I rowsort label-7880
SELECT CAST ( 61 AS INTEGER ) + - col0 * + col1 - col2 AS col0 FROM tab0 AS cor0
----
-2036
-3335
-8120

query I rowsort
SELECT 80 * + col0 + col0 + - col0 AS col0 FROM tab1 AS cor0
----
240
5120
6400

query I rowsort
SELECT col0 + col1 + col0 FROM tab2 AS cor0
----
175
215
45

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7883
SELECT ALL - - CAST( - col1 AS SIGNED ) * - col0 + - col2 FROM tab2 cor0
----
1305
190
4576

skipif mysql # not compatible
query I rowsort label-7883
SELECT ALL - - CAST ( - col1 AS INTEGER ) * - col0 + - col2 FROM tab2 cor0
----
1305
190
4576

onlyif mysql # use DIV operator for integer division
query I rowsort label-7884
SELECT + col2 DIV 34 FROM tab1
----
1
1
2

skipif mysql # not compatible
query I rowsort label-7884
SELECT + col2 / 34 FROM tab1
----
1
1
2

query I rowsort
SELECT DISTINCT - 15 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
-15

query I rowsort
SELECT col2 * 41 * col0 FROM tab2
----
123082
7749
83148

query I rowsort
SELECT + - 24 * - col0 FROM tab0 AS cor0
----
2136
576
840

query I rowsort
SELECT - 40 + + col2 AS col2 FROM tab2 AS cor0
----
-13
-14
-2

query I rowsort
SELECT + 9 + + col1 FROM tab2 AS cor0
----
26
40
68

onlyif mysql # use DIV operator for integer division
query I rowsort label-7890
SELECT DISTINCT tab1.col2 DIV - col1 FROM tab1
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-7890
SELECT DISTINCT tab1.col2 / - col1 FROM tab1
----
-2
-5
-7

query I rowsort
SELECT DISTINCT ( - col0 ) * + col1 AS col2 FROM tab1
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-7892
SELECT col0 * - tab2.col0 * - tab2.col2 + 19 DIV - col1 AS col2 FROM tab2
----
1323
158184
237157

skipif mysql # not compatible
query I rowsort label-7892
SELECT col0 * - tab2.col0 * - tab2.col2 + 19 / - col1 AS col2 FROM tab2
----
1323
158184
237157

query I rowsort
SELECT ( tab0.col0 ) + col2 * - col2 AS col2 FROM tab0
----
-1065
-6635
34

query I rowsort
SELECT DISTINCT ( 52 ) FROM tab2, tab1, tab2 AS cor0
----
52

query I rowsort
SELECT ALL - - col1 * col2 * col1 FROM tab1 AS cor0
----
16224
36504
5700

query I rowsort
SELECT + cor0.col2 * + col2 * - col0 FROM tab0 cor0
----
-26136
-35
-598436

onlyif mysql # use DIV operator for integer division
query I rowsort label-7897
SELECT ALL + col0 * col2 DIV - col0 AS col0 FROM tab2 AS cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-7897
SELECT ALL + col0 * col2 / - col0 AS col0 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT col0 + + col2 + cor0.col1 AS col2 FROM tab2 AS cor0
----
134
163
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col2 * - tab1.col1 col0 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT col2 + col1 + + col1 AS col1 FROM tab2 AS cor0
----
144
72
89

query I rowsort
SELECT ALL col1 + + col1 * - col1 FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT ALL + tab2.col1 * - col1 * col0 FROM tab2 WHERE NOT col2 * - col0 + col2 <> NULL
----

query I rowsort
SELECT tab2.col2 FROM tab0, tab0 AS cor0 CROSS JOIN tab2
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT DISTINCT + tab1.col2 * - col0 + + col1 FROM tab1
----
-136
-3638
-7667

onlyif mysql # use DIV operator for integer division
query I rowsort label-7905
SELECT - col2 DIV col2 + + col1 FROM tab0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-7905
SELECT - col2 / col2 + + col1 FROM tab0
----
85
90
96

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 + - col1 IN ( col0 * + cor0.col1 + col2 )
----

query I rowsort
SELECT DISTINCT col0 + col1 * tab1.col2 * + col1 AS col1 FROM tab1
----
16304
36507
5764

query I rowsort
SELECT + tab0.col2 * col2 + + col1 AS col0 FROM tab0
----
1175
6815
98

query I rowsort
SELECT col1 * col1 * + col1 FROM tab2
----
205379
29791
4913

query I rowsort
SELECT DISTINCT - col0 * col1 * col1 FROM tab2 AS cor0
----
-22831
-271518
-6727

query I rowsort
SELECT + + cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT DISTINCT + tab1.col2 * col2 * - tab1.col2 FROM tab1
----
-157464
-185193
-884736

query I rowsort
SELECT + col0 + col1 * + col0 FROM tab1 cor0
----
1120
704
81

query I rowsort
SELECT DISTINCT col2 * - col2 - col2 FROM tab1
----
-2970
-3306
-9312

query I rowsort
SELECT ALL col1 - col2 * + col2 AS col1 FROM tab2
----
-1427
-617
-698

query I rowsort
SELECT ALL - col2 + + col0 * col1 * + col0 FROM tab2
----
106059
1492
358930

query I rowsort
SELECT ALL col1 * - tab0.col0 + col0 FROM tab0
----
-2040
-3360
-8010

query I rowsort
SELECT DISTINCT col0 * - col2 * tab0.col1 FROM tab0
----
-3395
-664118
-68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-7919
SELECT ALL 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-7919
SELECT ALL col1 / col1 col1 FROM tab0
----
1
1
1

query I rowsort
SELECT ALL tab1.col1 * - col1 AS col0 FROM tab1
----
-100
-169
-676

query I rowsort
SELECT ALL col1 * col1 * col2 + + tab0.col1 * col1 AS col0 FROM tab0 WHERE NOT - col0 * - col0 + col1 + col1 NOT BETWEEN col2 + col0 AND col0
----

query I rowsort
SELECT DISTINCT + col1 + - col2 - - col0 * + col0 FROM tab0
----
1321
629
7930

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col1 + col0 * - col2 * col0 col2 FROM tab2
----
-159718
-2160
-237804

query I rowsort
SELECT DISTINCT + tab1.col0 * col1 AS col0 FROM tab1
----
1040
640
78

query I rowsort
SELECT DISTINCT tab0.col1 + + col2 + col2 * - col0 * - tab0.col2 FROM tab0
----
133
26255
598609

query I rowsort
SELECT - col1 * - col1 * col2 AS col1 FROM tab0
----
244068
679042
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-7927
SELECT DISTINCT col1 DIV + col0 AS col1 FROM tab0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-7927
SELECT DISTINCT col1 / + col0 AS col1 FROM tab0
----
1
2
3

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 * - col1 + col2 - col1 * col1 > + col0 / col1
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 * + col2 + - col0 - - col1 > NULL
----

query I rowsort
SELECT - col2 + col2 * col2 + + col1 AS col0 FROM tab0
----
1142
6733
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-7931
SELECT ALL - tab2.col1 - + col2 DIV - tab2.col1 FROM tab2
----
-15
-31
-59

skipif mysql # not compatible
query I rowsort label-7931
SELECT ALL - tab2.col1 - + col2 / - tab2.col1 FROM tab2
----
-15
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-7932
SELECT + col2 DIV col0 + + col0 col1 FROM tab2
----
10
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7932
SELECT + col2 / col0 + + col0 col1 FROM tab2
----
10
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-7933
SELECT tab0.col1 DIV - col1 + col2 FROM tab0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-7933
SELECT tab0.col1 / - col1 + col2 FROM tab0
----
0
32
81

query I rowsort
SELECT ALL - col2 + col0 * - col1 - col1 FROM tab0
----
-2183
-3493
-8272

query I rowsort
SELECT - col1 + + col0 AS col2 FROM tab1 WHERE - col0 * - col1 + col2 * col2 IN ( + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * tab2.col2 col1 FROM tab2
----
1534
646
837

query I rowsort
SELECT col1 * col1 + - tab1.col1 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN ( col0 + + col2 ) AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-7938
SELECT col1 DIV col0 + + col2 * - col2 FROM tab2
----
-1444
-676
-725

skipif mysql # not compatible
query I rowsort label-7938
SELECT col1 / col0 + + col2 * - col2 FROM tab2
----
-1444
-676
-725

query I rowsort
SELECT DISTINCT - col1 * + col0 * col1 + col1 FROM tab0
----
-177418
-329218
-736918

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7940
SELECT DISTINCT cor0.col0 * + cor0.col2 + + CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
216
3705
7776

skipif mysql # not compatible
query I rowsort label-7940
SELECT DISTINCT cor0.col0 * + cor0.col2 + + CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT - ( col1 ) * - col1 * col2 AS col1 FROM tab2
----
10982
25947
90506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col2 col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT - 33 * + 54 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to a681c328b1038d5a669139a79531a7c8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 * + cor0.col0 + + col2 col2 FROM tab1 cor0
----
262201
512096
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-7945
SELECT ALL + col2 DIV + col0 FROM tab1
----
0
1
18

skipif mysql # not compatible
query I rowsort label-7945
SELECT ALL + col2 / + col0 FROM tab1
----
0
1
18

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE NOT NULL NOT IN ( tab2.col2 / col1 )
----

query I rowsort
SELECT DISTINCT + 61 * - col2 FROM tab2 cor0
----
-1586
-1647
-2318

query I rowsort
SELECT ALL col2 + + col2 * + 52 AS col1 FROM tab2 AS cor0
----
1378
1431
2014

query I rowsort
SELECT + col2 * + col2 + + ( col0 + col2 ) * col2 FROM tab1 cor0
----
10146
26112
5994

query I rowsort
SELECT + col1 + tab2.col2 * - tab2.col2 + col1 FROM tab2
----
-1410
-558
-667

query I rowsort
SELECT + col2 / col0 AS col1 FROM tab2 WHERE ( NULL ) IN ( col0 + - col1 )
----

query I rowsort
SELECT + col2 + tab2.col2 FROM tab2 WHERE NOT NULL <> col1 + col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( + col2 / col2 )
----

query I rowsort
SELECT + col1 * + col0 + col0 * col2 + col2 AS col1 FROM tab2
----
433
4383
6656

query I rowsort
SELECT ALL col0 * - col1 * + col1 FROM tab2 cor0
----
-22831
-271518
-6727

query I rowsort
SELECT ALL col0 * - col2 * - col1 + col0 AS col2 FROM tab1 AS cor0
----
36544
4215
99920

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT ALL - tab2.col0 * + col2 + col0 / col1 FROM tab2 WHERE NOT NULL <= + col0
----

query I rowsort
SELECT ALL - tab0.col2 - col0 FROM tab0
----
-171
-36
-57

query I rowsort
SELECT ALL col1 / col0 FROM tab2 WHERE NOT ( NULL ) <> NULL
----

query I rowsort
SELECT ALL + col1 * - tab1.col0 / + col1 AS col2 FROM tab1 WHERE ( NULL ) > NULL
----

query I rowsort
SELECT - tab2.col0 / + col2 FROM tab2 WHERE ( NULL ) IN ( col1 )
----

query I rowsort
SELECT - 28 * col2 AS col2 FROM tab1 AS cor0
----
-1512
-1596
-2688

query I rowsort
SELECT 43 * - tab1.col1 FROM tab1
----
-1118
-430
-559

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col1 ) col1 FROM tab2
----
17
31
59

query I rowsort
SELECT 96 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e

query I rowsort
SELECT 0 - + cor1.col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT DISTINCT - 52 + - col0 AS col1 FROM tab0
----
-141
-76
-87

query I rowsort
SELECT + - col0 * cor0.col1 * - ( col2 ) FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT DISTINCT - col0 + col1 * col0 AS col1 FROM tab2 AS cor0
----
1264
210
4524

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7971
SELECT 34 - col1 * CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7971
SELECT 34 - col1 * CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 - cor0.col1 AS col2 FROM tab0 AS cor0
----
-53
-9
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-7973
SELECT col0 DIV - tab0.col2 AS col2 FROM tab0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-7973
SELECT col0 / - tab0.col2 AS col2 FROM tab0
----
-1
-35
0

query I rowsort
SELECT - ( col0 ) * col2 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT 33 * col2 AS col2 FROM tab2
----
1254
858
891

query I rowsort
SELECT + 25 + - cor0.col1 AS col0 FROM tab1 cor0
----
-1
12
15

query I rowsort
SELECT ALL col0 * ( col0 + - col0 ) AS col0 FROM tab0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7978
SELECT + col2 + + CAST( NULL AS SIGNED ) * ( + col1 ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7978
SELECT + col2 + + CAST ( NULL AS INTEGER ) * ( + col1 ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + + col2 * + 61 FROM tab2 AS cor0
----
1586
1647
2318

query I rowsort
SELECT 13 * - col0 FROM tab1 AS cor0
----
-1040
-39
-832

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7981
SELECT CAST( NULL AS SIGNED ) * 88 / col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7981
SELECT CAST ( NULL AS INTEGER ) * 88 / col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - 63 * col1 AS col0 FROM tab2 AS cor0
----
1071
1953
3717

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7983
SELECT ALL + CAST( + col1 AS SIGNED ) * + col1 FROM tab1 AS cor0
----
100
169
676

skipif mysql # not compatible
query I rowsort label-7983
SELECT ALL + CAST ( + col1 AS INTEGER ) * + col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT - + 25 + - col1 FROM tab1 cor0
----
-35
-38
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * ( col2 * col1 ) col2 FROM tab2 cor0
----
119652
51034
5859

query I rowsort
SELECT - - ( col0 ) * + col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-7987
SELECT ALL tab1.col1 DIV - cor0.col0 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to d94d6c904a55992d4c0f9de97cbb4792

skipif mysql # not compatible
query I rowsort label-7987
SELECT ALL tab1.col1 / - cor0.col0 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to d94d6c904a55992d4c0f9de97cbb4792

query I rowsort
SELECT + ( 32 * + tab0.col0 ) FROM tab0
----
1120
2848
768

query I rowsort
SELECT ALL - ( 70 ) * + col2 FROM tab1
----
-3780
-3990
-6720

query I rowsort
SELECT + tab0.col1 + cor0.col2 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to b266f8b689a93b61e6ea0be4166767f5

query I rowsort
SELECT ALL + 36 FROM tab2, tab2 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

onlyif mysql # use DIV operator for integer division
query I rowsort label-7992
SELECT + cor0.col2 DIV col0 AS col2 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7992
SELECT + cor0.col2 / col0 AS col2 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT ALL + ( - 27 ) * + col2 FROM tab1
----
-1458
-1539
-2592

onlyif mysql # use DIV operator for integer division
query I rowsort label-7994
SELECT ALL col1 DIV + col0 + col2 AS col0 FROM tab0 AS cor0
----
3
36
83

skipif mysql # not compatible
query I rowsort label-7994
SELECT ALL col1 / + col0 + col2 AS col0 FROM tab0 AS cor0
----
3
36
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-7995
SELECT + col0 DIV + ( + col1 ) + - col0 AS col2 FROM tab0 cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-7995
SELECT + col0 / + ( + col1 ) + - col0 AS col2 FROM tab0 cor0
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-7996
SELECT + col2 + + col2 DIV - col0 FROM tab1 AS cor0
----
36
57
95

skipif mysql # not compatible
query I rowsort label-7996
SELECT + col2 + + col2 / - col0 FROM tab1 AS cor0
----
36
57
95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7997
SELECT DISTINCT cor0.col2 * CAST( - col1 AS SIGNED ) col0 FROM tab2 AS cor0
----
-1534
-646
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7997
SELECT DISTINCT cor0.col2 * CAST ( - col1 AS INTEGER ) col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL + col2 * + col1 + - col1 * + col0 + col0 FROM tab1 AS cor0
----
-6
1329
288

query I rowsort
SELECT ALL col1 + col2 * 73 FROM tab1 AS cor0
----
3968
4171
7021

onlyif mysql # use DIV operator for integer division
query I rowsort label-8000
SELECT ALL + col2 + col0 DIV col2 FROM tab0 cor0
----
33
36
83

skipif mysql # not compatible
query I rowsort label-8000
SELECT ALL + col2 + col0 / col2 FROM tab0 cor0
----
33
36
83

query I rowsort
SELECT DISTINCT - col0 * ( cor0.col1 ) - - col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT + col2 * 88 + - col2 AS col2 FROM tab1 AS cor0
----
4698
4959
8352

query I rowsort
SELECT + col1 * - 37 AS col2 FROM tab2 AS cor0
----
-1147
-2183
-629

query I rowsort
SELECT - col0 * ( col0 ) * col1 FROM tab0 AS cor0
----
-118825
-49536
-720811

query I rowsort
SELECT - col1 - + cor0.col1 AS col0 FROM tab0 cor0
----
-172
-182
-194

query I rowsort
SELECT - cor0.col2 * col1 + col2 AS col2 FROM tab0 cor0
----
-2805
-7380
-96

query I rowsort
SELECT + - 59 + + col0 * - col0 FROM tab1 cor0
----
-4155
-6459
-68

query I rowsort
SELECT + col1 * - 3 AS col1 FROM tab0
----
-258
-273
-291

query I rowsort
SELECT ALL - 5 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

query I rowsort
SELECT DISTINCT + 21 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
21

query I rowsort
SELECT DISTINCT - 58 + - cor0.col1 * cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8bad38949f051b91704232e7964bb5b5

query I rowsort
SELECT ALL + col0 + + col2 + - 0 AS col1 FROM tab2
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-8013
SELECT ALL - col0 DIV - 56 + tab2.col1 col0 FROM tab2
----
18
31
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8013
SELECT ALL - col0 / - 56 + tab2.col1 col0 FROM tab2
----
18
31
60

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1, tab0 AS cor0 WHERE + tab2.col0 < ( NULL )
----

query I rowsort
SELECT ALL - col1 * col0 + col1 + col1 FROM tab2
----
-1309
-155
-4484

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8016
SELECT ALL - col1 * CAST( NULL AS SIGNED ) + 58 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8016
SELECT ALL - col1 * CAST ( NULL AS INTEGER ) + 58 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 * - 62 * - cor0.col1 - col1 * + col0 FROM tab2 AS cor0
----
-13671
-289926
-84609

query I rowsort
SELECT ALL + - col0 - - col2 * - col1 AS col1 FROM tab1 AS cor0
----
-1328
-1407
-634

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 50 col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
50

query I rowsort
SELECT + 73 AS col2 FROM tab1 AS cor0
----
73
73
73

query I rowsort
SELECT col1 * - 51 AS col2 FROM tab2 AS cor0
----
-1581
-3009
-867

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( + col1 AS REAL ) FROM tab1 AS cor0
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * 48 col1 FROM tab2 AS cor0
----
-1488
-2832
-816

query I rowsort
SELECT DISTINCT - - col2 * + col1 AS col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL + col0 + + cor0.col0 AS col2 FROM tab0 cor0
----
178
48
70

query I rowsort
SELECT - + col2 * + col0 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT 39 AS col2 FROM tab2 cor0
----
39

query I rowsort
SELECT + tab0.col2 * - col0 AS col0 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT tab0.col0 * 0 * - ( col0 ) + - tab0.col0 * tab0.col0 FROM tab0
----
-1225
-576
-7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8030
SELECT - col1 * ( + col1 * + col0 ) - CAST( NULL AS SIGNED ) * - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8030
SELECT - col1 * ( + col1 * + col0 ) - CAST ( NULL AS INTEGER ) * - col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 - + 24 * col0 FROM tab1
----
-1546
-1933
-98

query I rowsort
SELECT + + col0 * - col1 + + col2 * + 85 + col0 FROM tab2 cor0
----
-2314
1966
2085

query I rowsort
SELECT + + 90 AS col1 FROM tab1 AS cor0
----
90
90
90

query I rowsort
SELECT ALL + + col2 * + col0 - + col1 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT ALL + + cor0.col2 * + col0 + + cor0.col1 * + col2 AS col1 FROM tab1 cor0
----
1566
4218
8928

onlyif mysql # use DIV operator for integer division
query I rowsort label-8036
SELECT DISTINCT - cor0.col1 DIV col0 AS col2 FROM tab2 AS cor0
----
-4
0

skipif mysql # not compatible
query I rowsort label-8036
SELECT DISTINCT - cor0.col1 / col0 AS col2 FROM tab2 AS cor0
----
-4
0

query I rowsort
SELECT + col2 * col1 + + 93 FROM tab1 AS cor0
----
1341
1497
663

query I rowsort
SELECT ALL 38 + col0 * + col2 * + 39 FROM tab0 AS cor0
----
1403
284660
30926

query I rowsort
SELECT - - cor0.col2 * - col0 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL - 25 * col0 FROM tab0
----
-2225
-600
-875

query I rowsort
SELECT DISTINCT + 81 + + col0 * col1 FROM tab1 AS cor0
----
1121
159
721

query I rowsort
SELECT DISTINCT - 80 * cor0.col0 AS col1 FROM tab0 AS cor0
----
-1920
-2800
-7120

onlyif mysql # use DIV operator for integer division
query I rowsort label-8043
SELECT ALL - 10 * col2 DIV + col2 + + ( + col0 ) FROM tab1 cor0
----
-7
54
70

skipif mysql # not compatible
query I rowsort label-8043
SELECT ALL - 10 * col2 / + col2 + + ( + col0 ) FROM tab1 cor0
----
-7
54
70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8044
SELECT DISTINCT col2 * col0 - CAST( + 34 AS SIGNED ) * + col0 col2 FROM tab1 AS cor0
----
1472
4960
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8044
SELECT DISTINCT col2 * col0 - CAST ( + 34 AS INTEGER ) * + col0 col2 FROM tab1 AS cor0
----
1472
4960
60

query I rowsort
SELECT DISTINCT + + cor0.col1 * col2 + + col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT DISTINCT + cor0.col0 - cor0.col1 FROM tab0 AS cor0
----
-2
-62

query I rowsort
SELECT ALL - cor0.col0 * + 65 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to ae25c919704741460cde5aa94bd634f2

query I rowsort
SELECT cor0.col0 + - col0 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + 75 + tab1.col2 AS col2 FROM tab1
----
129
132
171

query I rowsort
SELECT DISTINCT - cor0.col1 * 61 + - col2 + col1 AS col0 FROM tab2 AS cor0
----
-1058
-1887
-3566

query I rowsort
SELECT ALL + - col2 - - col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT DISTINCT + col1 + col0 * - col1 AS col2 FROM tab0 AS cor0
----
-1978
-3298
-8008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * 54 col2 FROM tab0 AS cor0
----
-1782
-4428
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col0 col0 FROM tab1
----
4096
6400
9

query I rowsort
SELECT DISTINCT - 93 AS col1 FROM tab2, tab2 cor0, tab2 AS cor1
----
-93

query I rowsort
SELECT ALL 43 FROM tab2, tab0, tab0 cor0
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9

query I rowsort
SELECT - 85 + col0 AS col1 FROM tab1
----
-21
-5
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-8058
SELECT ALL - tab1.col1 + - 77 DIV - ( tab1.col0 ) FROM tab1, tab1 cor0
----
9 values hashing to 9a1875f8891b3e61db3f3b7aa2fd12aa

skipif mysql # not compatible
query I rowsort label-8058
SELECT ALL - tab1.col1 + - 77 / - ( tab1.col0 ) FROM tab1, tab1 cor0
----
9 values hashing to 9a1875f8891b3e61db3f3b7aa2fd12aa

query I rowsort
SELECT 49 + tab0.col2 FROM tab0
----
131
50
82

query I rowsort
SELECT + col1 * - col2 * 8 + col2 FROM tab0
----
-22671
-59614
-775

query I rowsort
SELECT DISTINCT col0 - col2 * col2 * col2 FROM tab1
----
-157461
-185129
-884656

query I rowsort
SELECT col1 * ( + col2 + - col0 ) * - col0 FROM tab0 AS cor0
----
-18576
115430
56693

query I rowsort
SELECT ALL + - col0 + 18 FROM tab0 AS cor0
----
-17
-6
-71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * ( 50 ) col2 FROM tab1 AS cor0
----
-2700
-2850
-4800

query I rowsort
SELECT DISTINCT - cor0.col2 * - 41 FROM tab0 AS cor0
----
1353
3362
41

query I rowsort
SELECT - + cor0.col0 + col0 * - 6 AS col0 FROM tab0 AS cor0
----
-168
-245
-623

query I rowsort
SELECT ALL + col2 + - 31 AS col2 FROM tab0 AS cor0
----
-30
2
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * ( - col1 + col0 ) * col1 col2 FROM tab0 AS cor0
----
127968
16198
210490

query I rowsort
SELECT DISTINCT - tab0.col0 * 32 FROM tab0
----
-1120
-2848
-768

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + tab0.col1 col0 FROM tab0
----
119
173
98

query I rowsort
SELECT ALL col2 * + 83 * - col1 + + col2 FROM tab1
----
-103488
-116478
-47253

query I rowsort
SELECT DISTINCT - - 76 AS col1 FROM tab1 AS cor0
----
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-8073
SELECT ALL ( + 12 ) DIV col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8073
SELECT ALL ( + 12 ) / col1 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col1 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT 94 * + cor0.col2 * - 64 AS col0 FROM tab0 AS cor0
----
-198528
-493312
-6016

query I rowsort
SELECT ALL - 66 AS col2 FROM tab1 cor0
----
-66
-66
-66

query I rowsort
SELECT col1 + col1 * + col2 AS col2 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT - 75 + col2 * col0 AS col0 FROM tab1
----
3573
7605
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 40 * tab2.col2 col2 FROM tab2
----
-1040
-1080
-1520

query I rowsort
SELECT DISTINCT + + ( - cor0.col1 ) * cor0.col0 * col1 AS col2 FROM tab2 cor0
----
-22831
-271518
-6727

query I rowsort
SELECT DISTINCT + 91 + col1 FROM tab0 AS cor0
----
177
182
188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 + col2 col2 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT + col1 * 91 AS col2 FROM tab1 AS cor0
----
1183
2366
910

onlyif mysql # use DIV operator for integer division
query I rowsort label-8084
SELECT col1 DIV + col2 AS col0 FROM tab0 cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-8084
SELECT col1 / + col2 AS col0 FROM tab0 cor0
----
1
2
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-8085
SELECT + cor1.col2 DIV 12 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to 3aee1b187566780d36bcacbd2ac98a57

skipif mysql # not compatible
query I rowsort label-8085
SELECT + cor1.col2 / 12 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to 3aee1b187566780d36bcacbd2ac98a57

query I rowsort
SELECT + cor0.col2 - col1 FROM tab2 cor0
----
-33
-4
21

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8087
SELECT - 65 * col2 - + CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8087
SELECT - 65 * col2 - + CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 37 * - col2 + - tab2.col0 FROM tab2
----
-1006
-1040
-1485

query I rowsort
SELECT + + col2 + + ( col2 ) FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT DISTINCT - 42 + - cor0.col0 FROM tab2, tab1 AS cor0
----
-106
-122
-45

query I rowsort
SELECT DISTINCT + 8 AS col1 FROM tab1, tab2 AS cor0
----
8

query I rowsort
SELECT ALL - 13 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 1c6aaa07ba8d3dc01ee616e16bef60f2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8093
SELECT col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8093
SELECT col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8094
SELECT + col2 + CAST( 8 AS SIGNED ) AS col0 FROM tab2
----
34
35
46

skipif mysql # not compatible
query I rowsort label-8094
SELECT + col2 + CAST ( 8 AS INTEGER ) AS col0 FROM tab2
----
34
35
46

query I rowsort
SELECT DISTINCT 88 FROM tab2, tab1 AS cor0
----
88

query I rowsort
SELECT DISTINCT - cor1.col2 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
-26
-27
-38

query I rowsort
SELECT - col2 * 85 * 87 FROM tab2
----
-192270
-199665
-281010

query I rowsort
SELECT DISTINCT - col0 * - 0 + + col0 * col0 FROM tab1 cor0
----
4096
6400
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8099
SELECT ALL CAST( - 12 AS SIGNED ) * col1 FROM tab1 AS cor0
----
-120
-156
-312

skipif mysql # not compatible
query I rowsort label-8099
SELECT ALL CAST ( - 12 AS INTEGER ) * col1 FROM tab1 AS cor0
----
-120
-156
-312

query I rowsort
SELECT ALL + - col1 * - col0 + + col2 AS col0 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT + cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
54
57
96

query I rowsort
SELECT DISTINCT - 65 AS col1 FROM tab0, tab2 AS cor0
----
-65

query I rowsort
SELECT - ( - col1 * col1 ) - - col0 FROM tab1
----
164
249
679

onlyif mysql # use DIV operator for integer division
query I rowsort label-8104
SELECT col1 DIV col2 - tab0.col2 AS col0 FROM tab0
----
-31
-81
96

skipif mysql # not compatible
query I rowsort label-8104
SELECT col1 / col2 - tab0.col2 AS col0 FROM tab0
----
-31
-81
96

query I rowsort
SELECT ALL + ( + 4 ) FROM tab0
----
4
4
4

query I rowsort
SELECT + - 27 + col0 FROM tab2 AS cor0
----
-20
51
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 65 ) col2 FROM tab0 AS cor0
----
65
65
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col1 ) col0 FROM tab1
----
10
13
26

query I rowsort
SELECT DISTINCT col1 * + tab2.col0 * tab2.col1 AS col2 FROM tab2
----
22831
271518
6727

query I rowsort
SELECT col1 * - tab0.col2 * col0 AS col0 FROM tab0
----
-3395
-664118
-68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-8111
SELECT DISTINCT + col0 DIV - col1 AS col1 FROM tab1
----
-6
0

skipif mysql # not compatible
query I rowsort label-8111
SELECT DISTINCT + col0 / - col1 AS col1 FROM tab1
----
-6
0

query I rowsort
SELECT + col0 * + cor0.col2 + + ( cor0.col2 * - col2 + col1 * + cor0.col2 ) FROM tab1 AS cor0
----
-1350
-288
969

query I rowsort
SELECT - + col0 * + col0 + col0 * + col2 + - 30 AS col0 FROM tab0 AS cor0
----
-1220
-653
186

onlyif mysql # use DIV operator for integer division
query I rowsort label-8114
SELECT DISTINCT + col2 + 94 + - col0 DIV - col0 AS col1 FROM tab1
----
149
152
191

skipif mysql # not compatible
query I rowsort label-8114
SELECT DISTINCT + col2 + 94 + - col0 / - col0 AS col1 FROM tab1
----
149
152
191

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col2 col0 FROM tab0
----
-171
-36
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * 3 + col2 col2 FROM tab2 AS cor0
----
104
108
152

query I rowsort
SELECT ALL col2 * + 35 + col0 FROM tab0 AS cor0
----
1179
2959
70

query I rowsort
SELECT ALL - col1 + - col1 AS col2 FROM tab0
----
-172
-182
-194

onlyif mysql # use DIV operator for integer division
query I rowsort label-8119
SELECT - cor0.col2 + col1 DIV + ( col1 ) AS col1 FROM tab2 AS cor0
----
-25
-26
-37

skipif mysql # not compatible
query I rowsort label-8119
SELECT - cor0.col2 + col1 / + ( col1 ) AS col1 FROM tab2 AS cor0
----
-25
-26
-37

query I rowsort
SELECT cor0.col2 * ( + cor0.col1 ) + - cor0.col0 + - col2 FROM tab0 AS cor0
----
2781
61
7291

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * + col1 col1 FROM tab2 cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-8122
SELECT tab2.col0 DIV - 83 - col0 FROM tab2
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-8122
SELECT tab2.col0 / - 83 - col0 FROM tab2
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-8123
SELECT col0 DIV col2 - - col1 AS col2 FROM tab1
----
11
13
26

skipif mysql # not compatible
query I rowsort label-8123
SELECT col0 / col2 - - col1 AS col2 FROM tab1
----
11
13
26

query I rowsort
SELECT DISTINCT ( - col0 ) * + col2 AS col0 FROM tab2
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-8125
SELECT DISTINCT - col1 DIV - 88 AS col2 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-8125
SELECT DISTINCT - col1 / - 88 AS col2 FROM tab0
----
0
1

query I rowsort
SELECT col2 + 77 AS col2 FROM tab1
----
131
134
173

query I rowsort
SELECT col0 + - col1 * - tab2.col2 FROM tab2
----
1612
725
844

query I rowsort
SELECT col1 - ( - col0 ) * 16 AS col1 FROM tab2
----
1281
1307
143

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8129
SELECT + col2 + col2 * + CAST( NULL AS DECIMAL ) * - col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8129
SELECT + col2 + col2 * + CAST ( NULL AS REAL ) * - col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 - + col2 * col1 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT - + cor0.col0 + - col2 FROM tab0 cor0
----
-171
-36
-57

query I rowsort
SELECT ALL + ( cor1.col1 ) AS col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT - + ( - col0 ) + + 3 FROM tab2 AS cor0
----
10
81
82

query I rowsort
SELECT ALL - 62 + + col2 AS col0 FROM tab2 AS cor0
----
-24
-35
-36

query I rowsort
SELECT DISTINCT + + 95 AS col0 FROM tab0 AS cor0
----
95

query I rowsort
SELECT ALL + - col1 + - col0 AS col2 FROM tab1 cor0
----
-29
-74
-93

query I rowsort
SELECT DISTINCT - + 36 + cor0.col2 * + 42 AS col2 FROM tab1 AS cor0
----
2232
2358
3996

query I rowsort
SELECT + - col2 - col0 AS col1 FROM tab0 AS cor0
----
-171
-36
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 67 * - cor0.col0 col1 FROM tab2 cor0
----
-469
-5226
-5293

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 55 * cor0.col0 + col2 + col1 col1 FROM tab2 AS cor0
----
-327
-4205
-4290

query I rowsort
SELECT ALL ( + col2 ) * 19 AS col1 FROM tab2 AS cor0
----
494
513
722

query I rowsort
SELECT - - col0 * 71 AS col0 FROM tab0 AS cor0
----
1704
2485
6319

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8143
SELECT DISTINCT + col2 * CAST( NULL AS SIGNED ) + - col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8143
SELECT DISTINCT + col2 * CAST ( NULL AS INTEGER ) + - col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + col1 - - 8 AS col2 FROM tab0 AS cor0
----
-78
-83
-89

query I rowsort
SELECT - + col1 * 16 + col0 AS col0 FROM tab2 AS cor0
----
-193
-489
-866

query I rowsort
SELECT ALL 75 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query I rowsort
SELECT DISTINCT - 16 * - col1 AS col2 FROM tab1 AS cor0
----
160
208
416

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 66 * - col0 col2 FROM tab0 AS cor0
----
1584
2310
5874

onlyif mysql # use DIV operator for integer division
query I rowsort label-8149
SELECT + 73 + 97 DIV + col0 AS col2 FROM tab2 AS cor0
----
74
74
86

skipif mysql # not compatible
query I rowsort label-8149
SELECT + 73 + 97 / + col0 AS col2 FROM tab2 AS cor0
----
74
74
86

query I rowsort
SELECT DISTINCT - - ( col0 ) + cor0.col1 + - 89 * col1 FROM tab2 AS cor0
----
-1417
-2721
-5114

onlyif mysql # use DIV operator for integer division
query I rowsort label-8151
SELECT ALL + col1 + + col0 DIV col1 FROM tab1 AS cor0
----
16
19
26

skipif mysql # not compatible
query I rowsort label-8151
SELECT ALL + col1 + + col0 / col1 FROM tab1 AS cor0
----
16
19
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-8152
SELECT + 55 DIV - col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8152
SELECT + 55 / - col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - + col0 + - ( - col1 ) FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT ALL col0 * 24 * col0 + + 60 FROM tab1 AS cor0
----
153660
276
98364

query I rowsort
SELECT ALL 34 FROM tab1, tab2 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8156
SELECT ALL - CAST( - cor0.col2 AS SIGNED ) * - col0 + 13 FROM tab2 cor0
----
-176
-2015
-2989

skipif mysql # not compatible
query I rowsort label-8156
SELECT ALL - CAST ( - cor0.col2 AS INTEGER ) * - col0 + 13 FROM tab2 cor0
----
-176
-2015
-2989

query I rowsort
SELECT DISTINCT + 18 AS col1 FROM tab1 AS cor0
----
18

query I rowsort
SELECT DISTINCT + 86 - col1 AS col0 FROM tab0 AS cor0
----
-11
-5
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 23 col2 FROM tab0 AS cor0
----
23
23
23

query I rowsort
SELECT + col1 * + col2 + - col2 AS col1 FROM tab1 AS cor0
----
1152
1350
513

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 10 * - col2 + col1 col0 FROM tab0 AS cor0
----
107
416
911

onlyif mysql # use DIV operator for integer division
query I rowsort label-8162
SELECT DISTINCT - + 82 DIV col0 FROM tab1 AS cor0
----
-1
-27

skipif mysql # not compatible
query I rowsort label-8162
SELECT DISTINCT - + 82 / col0 FROM tab1 AS cor0
----
-1
-27

query I rowsort
SELECT ALL - col0 * 38 * cor0.col0 + - 83 AS col2 FROM tab1 cor0
----
-155731
-243283
-425

query I rowsort
SELECT DISTINCT - ( + 64 ) * col1 AS col1 FROM tab1 AS cor0
----
-1664
-640
-832

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8165
SELECT ALL CAST( NULL AS DECIMAL ) * col2 + - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8165
SELECT ALL CAST ( NULL AS REAL ) * col2 + - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) col2 FROM tab0 AS cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-8167
SELECT DISTINCT - - col0 DIV ( col1 ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8167
SELECT DISTINCT - - col0 / ( col1 ) AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ( 35 ) FROM tab2 AS cor0
----
35
35
35

query I rowsort
SELECT + + ( + col0 ) * - col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT ALL - col0 + - col0 AS col2 FROM tab1
----
-128
-160
-6

onlyif mysql # use DIV operator for integer division
query I rowsort label-8171
SELECT col1 + + col1 * tab0.col2 DIV col0 AS col2 FROM tab0
----
174
204
99

skipif mysql # not compatible
query I rowsort label-8171
SELECT col1 + + col1 * tab0.col2 / col0 AS col2 FROM tab0
----
174
204
99

query I rowsort
SELECT + + 17 * + 29 + + col0 AS col2 FROM tab1 AS cor0
----
496
557
573

query I rowsort
SELECT DISTINCT 37 + + col1 FROM tab0 AS cor0
----
123
128
134

query I rowsort
SELECT ALL - - ( - cor0.col2 ) - + col1 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT + 23 * col0 FROM tab0 AS cor0
----
2047
552
805

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8176
SELECT ALL + CAST( cor0.col2 AS SIGNED ) + col1 AS col1 FROM tab1 cor0
----
109
67
80

skipif mysql # not compatible
query I rowsort label-8176
SELECT ALL + CAST ( cor0.col2 AS INTEGER ) + col1 AS col1 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT col1 * + 25 AS col1 FROM tab1 AS cor0
----
250
325
650

query I rowsort
SELECT ALL ( col2 ) * - col1 AS col2 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT - col2 * col2 * 25 FROM tab1 AS cor0
----
-230400
-72900
-81225

onlyif mysql # use DIV operator for integer division
query I rowsort label-8180
SELECT DISTINCT + col1 + col0 DIV + 87 FROM tab2 cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-8180
SELECT DISTINCT + col1 + col0 / + 87 FROM tab2 cor0
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-8181
SELECT DISTINCT 94 * tab1.col2 DIV col1 + - col2 + + col0 AS col2 FROM tab1
----
144
542
678

skipif mysql # not compatible
query I rowsort label-8181
SELECT DISTINCT 94 * tab1.col2 / col1 + - col2 + + col0 AS col2 FROM tab1
----
144
542
678

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8182
SELECT ALL - col1 + CAST( col1 AS SIGNED ) * col1 AS col2 FROM tab1
----
156
650
90

skipif mysql # not compatible
query I rowsort label-8182
SELECT ALL - col1 + CAST ( col1 AS INTEGER ) * col1 AS col2 FROM tab1
----
156
650
90

query I rowsort
SELECT col0 * + ( - col0 ) FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT + col1 + ( + ( + col1 ) ) * - col0 FROM tab1
----
-1027
-52
-630

query I rowsort
SELECT DISTINCT 90 FROM tab2, tab0 cor0
----
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-8186
SELECT DISTINCT col1 + col1 DIV col1 FROM tab2
----
18
32
60

skipif mysql # not compatible
query I rowsort label-8186
SELECT DISTINCT col1 + col1 / col1 FROM tab2
----
18
32
60

query I rowsort
SELECT DISTINCT col1 * 22 FROM tab2 AS cor0
----
1298
374
682

query I rowsort
SELECT ALL - col1 + ( - col0 ) * - col1 AS col2 FROM tab0 AS cor0
----
1978
3298
8008

onlyif mysql # use DIV operator for integer division
query I rowsort label-8189
SELECT ALL cor0.col0 DIV 91 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8189
SELECT ALL cor0.col0 / 91 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 * 29 * - col0 FROM tab2
----
-5481
-58812
-87058

query I rowsort
SELECT + col0 * + col2 * - col1 FROM tab0
----
-3395
-664118
-68112

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8192
SELECT DISTINCT - cor0.col0 + col1 * CAST( col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
1264
210
4524

skipif mysql # not compatible
query I rowsort label-8192
SELECT DISTINCT - cor0.col0 + col1 * CAST ( col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT - col1 + col1 * - cor0.col1 * + cor0.col2 FROM tab1 AS cor0
----
-16237
-36530
-5710

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 34 - + col0 col0 FROM tab0 AS cor0
----
-123
-58
-69

query I rowsort
SELECT + 41 * + col2 + - col2 FROM tab2 AS cor0
----
1040
1080
1520

query I rowsort
SELECT ALL col2 * col1 AS col2 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT + - col0 * col2 + - col1 AS col2 FROM tab1 AS cor0
----
-188
-3658
-7693

query I rowsort
SELECT - cor0.col2 + - col2 * col2 FROM tab1 AS cor0
----
-2970
-3306
-9312

query I rowsort
SELECT ALL + col0 * - col1 + col0 * col2 FROM tab2 AS cor0
----
-2574
-28
1659

query I rowsort
SELECT - - 75 FROM tab1 AS cor0
----
75
75
75

query I rowsort
SELECT DISTINCT + 65 AS col1 FROM tab0, tab0 AS cor0, tab2 cor1
----
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-8202
SELECT col2 DIV - ( ( + col0 ) ) AS col2 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8202
SELECT col2 / - ( ( + col0 ) ) AS col2 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT - ( 41 ) FROM tab0, tab2 AS cor0
----
-41

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8204
SELECT ALL col0 + + CAST( ( cor0.col1 ) AS SIGNED ) AS col1 FROM tab2 cor0
----
137
38
96

skipif mysql # not compatible
query I rowsort label-8204
SELECT ALL col0 + + CAST ( ( cor0.col1 ) AS INTEGER ) AS col1 FROM tab2 cor0
----
137
38
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8205
SELECT ALL - + col1 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8205
SELECT ALL - + col1 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * + 38 FROM tab1 AS cor0
----
2052
2166
3648

query I rowsort
SELECT DISTINCT - ( + col1 ) * col2 + col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT ALL col1 + col2 * col2 FROM tab0 AS cor0
----
1175
6815
98

query I rowsort
SELECT ALL 30 * - cor0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to ee6589622d134c8d45c4d80b1a5ab4a3

query I rowsort
SELECT ALL + 7 + 32 - cor1.col1 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 897fe54b6f63770bf9c8cc853614f2a9

query I rowsort
SELECT 34 * - col1 - cor0.col1 FROM tab2 AS cor0
----
-1085
-2065
-595

query I rowsort
SELECT ALL - ( + 82 ) + col0 AS col1 FROM tab0 AS cor0
----
-47
-58
7

query I rowsort
SELECT DISTINCT 23 FROM tab1 cor0
----
23

query I rowsort
SELECT + cor0.col2 * col1 - col0 AS col2 FROM tab2 cor0
----
1456
567
830

query I rowsort
SELECT + - col1 + - 80 * col1 FROM tab1 AS cor0
----
-1053
-2106
-810

query I rowsort
SELECT + col2 * - col2 + - 49 FROM tab2 AS cor0
----
-1493
-725
-778

query I rowsort
SELECT ALL - 37 + - 56 AS col2 FROM tab2
----
-93
-93
-93

query I rowsort
SELECT + 86 + col0 AS col0 FROM tab2
----
164
165
93

query I rowsort
SELECT DISTINCT - 38 AS col2 FROM tab2
----
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-8220
SELECT ALL tab2.col1 + - col2 DIV + col1 FROM tab2
----
15
31
59

skipif mysql # not compatible
query I rowsort label-8220
SELECT ALL tab2.col1 + - col2 / + col1 FROM tab2
----
15
31
59

query I rowsort
SELECT col0 - - col0 AS col1 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT DISTINCT - + col2 + - col0 AS col2 FROM tab2 cor0
----
-104
-117
-34

query I rowsort
SELECT - + col2 + - col2 * - ( - col0 ) FROM tab0 cor0
----
-36
-7380
-825

query I rowsort
SELECT - ( - col0 ) + - col0 * cor0.col0 * col2 AS col2 FROM tab1 AS cor0
----
-233408
-483
-614320

query I rowsort
SELECT DISTINCT + col1 * 4 + col0 FROM tab1 AS cor0
----
104
107
132

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 + + ( col2 ) col1 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT ALL - 66 + - col2 AS col2 FROM tab2
----
-104
-92
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-8228
SELECT ALL - 20 DIV col1 + 74 * + 34 col0 FROM tab1
----
2514
2515
2516

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8228
SELECT ALL - 20 / col1 + 74 * + 34 col0 FROM tab1
----
2514
2515
2516

query I rowsort
SELECT + tab2.col2 + - tab2.col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT DISTINCT + col0 * ( - col1 * + col0 ) FROM tab2
----
-106097
-1519
-358956

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 55 col1 FROM tab0 AS cor0
----
-55
-55
-55

onlyif mysql # use DIV operator for integer division
query I rowsort label-8232
SELECT ALL col2 DIV - 10 FROM tab0
----
-3
-8
0

skipif mysql # not compatible
query I rowsort label-8232
SELECT ALL col2 / - 10 FROM tab0
----
-3
-8
0

query I rowsort
SELECT 25 + col1 * + cor0.col0 FROM tab2 AS cor0
----
1368
242
4627

onlyif mysql # use DIV operator for integer division
query I rowsort label-8234
SELECT - ( 4 ) DIV col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8234
SELECT - ( 4 ) / col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + 49 + + col2 * - col2 FROM tab2 cor0
----
-1395
-627
-680

query I rowsort
SELECT col0 * col1 * col1 + + ( - 28 ) AS col1 FROM tab0 AS cor0
----
177476
329287
736981

query I rowsort
SELECT + col2 * - 62 + + col0 AS col2 FROM tab1 AS cor0
----
-3345
-3470
-5872

onlyif mysql # use DIV operator for integer division
query I rowsort label-8238
SELECT ALL + col0 DIV cor0.col1 + + cor0.col0 FROM tab1 cor0
----
3
70
86

skipif mysql # not compatible
query I rowsort label-8238
SELECT ALL + col0 / cor0.col1 + + cor0.col0 FROM tab1 cor0
----
3
70
86

query I rowsort
SELECT DISTINCT + + col1 * - col1 - - col2 AS col0 FROM tab2 AS cor0
----
-251
-3455
-934

query I rowsort
SELECT DISTINCT col2 + col0 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT ALL - + col0 + col2 AS col1 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT DISTINCT + col0 * col2 + col2 AS col1 FROM tab2
----
2054
216
3040

query I rowsort
SELECT - col1 * - col1 + col1 * - col0 AS col2 FROM tab2
----
-1054
-1121
744

query I rowsort
SELECT DISTINCT 77 * + col2 + + col1 * col1 * col2 + - tab2.col0 FROM tab2
----
13829
28019
92430

query I rowsort
SELECT DISTINCT cor0.col2 - - col0 AS col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT + tab0.col2 * - col2 * col0 + col1 AS col1 FROM tab0
----
-26050
-598345
62

query I rowsort
SELECT - tab2.col1 * tab2.col2 + - col0 AS col2 FROM tab2
----
-1612
-725
-844

query I rowsort
SELECT - cor0.col2 * col0 * col0 AS col2 FROM tab1 cor0
----
-233472
-486
-614400

query I rowsort
SELECT DISTINCT - + col0 + col2 + cor0.col0 AS col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL col1 - - col0 AS col1 FROM tab1 AS cor0
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col1 * + col2 * col2 + - col2 * - col2 col0 FROM tab1
----
129024
35739
78732

query I rowsort
SELECT - col1 + - col2 + col1 AS col0 FROM tab2 WHERE ( NULL ) <> NULL AND col0 < - col0
----

query I rowsort
SELECT DISTINCT tab0.col2 * col1 AS col0 FROM tab0
----
2838
7462
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8254
SELECT + CAST( - col2 AS SIGNED ) * col2 * col2 col1 FROM tab1
----
-157464
-185193
-884736

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8254
SELECT + CAST ( - col2 AS INTEGER ) * col2 * col2 col1 FROM tab1
----
-157464
-185193
-884736

query I rowsort
SELECT + col0 * + 94 FROM tab0
----
2256
3290
8366

query I rowsort
SELECT + ( 22 ) + col2 AS col1 FROM tab1
----
118
76
79

query I rowsort
SELECT - 39 * + col0 FROM tab1
----
-117
-2496
-3120

query I rowsort
SELECT col0 - + 25 AS col1 FROM tab2
----
-18
53
54

query I rowsort
SELECT + - col0 * - col0 + + col2 AS col2 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT ALL + - 82 * + col0 AS col2 FROM tab1 AS cor0
----
-246
-5248
-6560

query I rowsort
SELECT ALL - col2 * col2 * - col2 + - col2 + + col1 FROM tab2
----
17609
19687
54851

query I rowsort
SELECT ALL col1 + 91 FROM tab0
----
177
182
188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 - + col1 * col2 col2 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT ( col2 ) * - col0 + col1 FROM tab2
----
-158
-1969
-2985

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8265
SELECT ALL + CAST( col2 AS SIGNED ) * col0 + tab0.col1 * + col1 + tab0.col2 * col1 FROM tab0
----
11026
23041
9541

skipif mysql # not compatible
query I rowsort label-8265
SELECT ALL + CAST ( col2 AS INTEGER ) * col0 + tab0.col1 * + col1 + tab0.col2 * col1 FROM tab0
----
11026
23041
9541

onlyif mysql # use DIV operator for integer division
query I rowsort label-8266
SELECT + col2 DIV col2 + - tab0.col1 * col1 + - col0 AS col0 FROM tab0
----
-7419
-8369
-9443

skipif mysql # not compatible
query I rowsort label-8266
SELECT + col2 / col2 + - tab0.col1 * col1 + - col0 AS col0 FROM tab0
----
-7419
-8369
-9443

query I rowsort
SELECT ALL col2 * - ( col2 ) + + col0 * - col2 FROM tab1
----
-16896
-3078
-6897

onlyif mysql # use DIV operator for integer division
query I rowsort label-8268
SELECT - + col2 DIV col0 + cor0.col0 AS col0 FROM tab0 AS cor0
----
23
35
89

skipif mysql # not compatible
query I rowsort label-8268
SELECT - + col2 / col0 + cor0.col0 AS col0 FROM tab0 AS cor0
----
23
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-8269
SELECT ALL - col1 + col2 DIV + col0 AS col1 FROM tab1 AS cor0
----
-10
-12
-8

skipif mysql # not compatible
query I rowsort label-8269
SELECT ALL - col1 + col2 / + col0 AS col1 FROM tab1 AS cor0
----
-10
-12
-8

query I rowsort
SELECT - + col0 * - col0 + col1 * - col0 + col0 FROM tab1 AS cor0
----
-66
3520
5440

query I rowsort
SELECT DISTINCT + col1 + cor0.col0 * col2 AS col1 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT ALL col2 + col2 * - col2 FROM tab1 AS cor0
----
-2862
-3192
-9120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 46 * col1 col2 FROM tab2 AS cor0
----
1426
2714
782

onlyif mysql # use DIV operator for integer division
query I rowsort label-8274
SELECT + cor0.col1 + col0 + col1 * + col2 DIV col2 AS col0 FROM tab1 cor0
----
106
55
84

skipif mysql # not compatible
query I rowsort label-8274
SELECT + cor0.col1 + col0 + col1 * + col2 / col2 AS col0 FROM tab1 cor0
----
106
55
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-8275
SELECT DISTINCT col2 DIV + cor0.col0 AS col2 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-8275
SELECT DISTINCT col2 / + cor0.col0 AS col2 FROM tab0 AS cor0
----
0
1

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) BETWEEN NULL AND col1
----

query I rowsort
SELECT DISTINCT + col0 + + col2 * - col0 FROM tab0 WHERE NOT ( col0 ) NOT IN ( tab0.col0 + - col2 )
----

query I rowsort
SELECT ALL tab2.col2 + - tab2.col2 * - col2 AS col1 FROM tab2
----
1482
702
756

query I rowsort
SELECT ALL - col1 * col2 AS col2 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT - col2 + - tab1.col2 + col1 AS col2 FROM tab1
----
-104
-179
-82

query I rowsort
SELECT DISTINCT tab1.col2 * col0 * tab1.col2 FROM tab1
----
207936
737280
8748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col0 + + col1 col1 FROM tab1
----
188
3658
7693

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col1 ) NOT IN ( + col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) <= NULL
----

query I rowsort
SELECT col0 + + col2 * col1 FROM tab0
----
132
2862
7551

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col0 FROM tab2 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - col2 * col2 * col1 - col2 AS col2 FROM tab1
----
-119904
-32547
-75870

query I rowsort
SELECT + col2 + + col0 FROM tab1 WHERE ( NULL ) <> + col1 + + col0
----

query I rowsort
SELECT ALL - col2 AS col1 FROM tab0 WHERE NOT - col1 * + col2 + col0 + col2 * - col2 * - col0 NOT IN ( - col0 * - tab0.col1 )
----

query I rowsort
SELECT + tab0.col0 + col2 + - col0 * - tab0.col0 * col2 FROM tab0
----
1261
19065
649693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col2 col1 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT ALL tab2.col0 * - tab2.col1 FROM tab2
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-8293
SELECT + col2 * tab0.col0 + col1 DIV col1 AS col2 FROM tab0
----
36
7299
793

skipif mysql # not compatible
query I rowsort label-8293
SELECT + col2 * tab0.col0 + col1 / col1 AS col2 FROM tab0
----
36
7299
793

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 + col2 IN ( - col2 )
----

query I rowsort
SELECT DISTINCT - col2 * + tab0.col2 * + col2 AS col2 FROM tab0
----
-1
-35937
-551368

query I rowsort
SELECT DISTINCT col0 - col2 * + col0 AS col0 FROM tab1
----
-159
-3584
-7600

query I rowsort
SELECT DISTINCT - col2 * + col0 * col0 FROM tab2 AS cor0
----
-1323
-158184
-237158

query I rowsort
SELECT - col2 - - cor0.col1 * col2 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT ALL - + col2 + col1 * cor0.col2 + + cor0.col0 * col0 AS col0 FROM tab0 AS cor0
----
1321
15301
3381

query I rowsort
SELECT col0 + - col1 AS col1 FROM tab2 cor0
----
-24
19
62

query I rowsort
SELECT tab2.col0 * col2 * + col2 FROM tab2
----
114076
5103
52728

query I rowsort
SELECT col2 * col1 + col1 + + col0 * col0 FROM tab0
----
1419
15474
3500

query I rowsort
SELECT DISTINCT - col1 * cor0.col0 + col0 * + col2 + - col2 AS col0 FROM tab2 AS cor0
----
-2600
-55
1621

onlyif mysql # use DIV operator for integer division
query I rowsort label-8304
SELECT ALL col0 DIV + cor0.col2 - - col0 * + col1 AS col1 FROM tab1 AS cor0
----
1040
641
78

skipif mysql # not compatible
query I rowsort label-8304
SELECT ALL col0 / + cor0.col2 - - col0 * + col1 AS col1 FROM tab1 AS cor0
----
1040
641
78

query I rowsort
SELECT DISTINCT col2 + col0 * + col1 AS col1 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT + col0 + cor0.col2 AS col0 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT ALL col2 + + col1 + cor0.col2 FROM tab0 AS cor0
----
152
255
99

query I rowsort
SELECT DISTINCT col1 + col1 * col2 AS col0 FROM tab1 cor0
----
1261
1430
580

query I rowsort
SELECT ALL col0 * + tab2.col2 + - tab2.col1 * + tab2.col0 * + col1 FROM tab2
----
-19829
-269490
-6538

onlyif mysql # use DIV operator for integer division
query I rowsort label-8310
SELECT tab0.col2 + + col0 DIV + col0 + + col1 AS col0 FROM tab0
----
120
174
99

skipif mysql # not compatible
query I rowsort label-8310
SELECT tab0.col2 + + col0 / + col0 + + col1 AS col0 FROM tab0
----
120
174
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-8311
SELECT ALL + tab0.col2 DIV + col2 + col0 col2 FROM tab0
----
25
36
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8311
SELECT ALL + tab0.col2 / + col2 + col0 col2 FROM tab0
----
25
36
90

query I rowsort
SELECT ALL - col0 * - col1 - col0 FROM tab1
----
576
75
960

query I rowsort
SELECT DISTINCT + col2 * - col1 - col2 * col0 * - tab1.col0 AS col0 FROM tab1
----
-918
232902
613152

query I rowsort
SELECT - ( col0 ) + + col2 * + col0 FROM tab2 cor0
----
182
1950
2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-8315
SELECT ALL + col2 DIV - 45 + col1 DIV + col0 FROM tab0
----
0
2
3

skipif mysql # not compatible
query I rowsort label-8315
SELECT ALL + col2 / - 45 + col1 / + col0 FROM tab0
----
0
2
3

query I rowsort
SELECT + 5 * ( + col1 ) AS col2 FROM tab2 AS cor0
----
155
295
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8317
SELECT - CAST( - 33 AS SIGNED ) + + col1 AS col2 FROM tab1 AS cor0
----
43
46
59

skipif mysql # not compatible
query I rowsort label-8317
SELECT - CAST ( - 33 AS INTEGER ) + + col1 AS col2 FROM tab1 AS cor0
----
43
46
59

query I rowsort
SELECT + ( col2 ) * + col1 + cor0.col1 + - 75 AS col1 FROM tab2 AS cor0
----
1518
588
793

query I rowsort
SELECT col1 * col2 * col2 + col0 AS col0 FROM tab2 AS cor0
----
22606
24627
39962

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8320
SELECT - col1 * 21 - col0 * + CAST( col2 AS SIGNED ) FROM tab2 cor0
----
-3267
-3359
-840

skipif mysql # not compatible
query I rowsort label-8320
SELECT - col1 * 21 - col0 * + CAST ( col2 AS INTEGER ) FROM tab2 cor0
----
-3267
-3359
-840

query I rowsort
SELECT ALL col1 * 39 AS col2 FROM tab1
----
1014
390
507

onlyif mysql # use DIV operator for integer division
query I rowsort label-8322
SELECT col0 DIV - 45 AS col0 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8322
SELECT col0 / - 45 AS col0 FROM tab1
----
-1
-1
0

query I rowsort
SELECT - 54 FROM tab1, tab1 AS cor0
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

query I rowsort
SELECT ALL - col0 + ( + col0 ) AS col2 FROM tab1
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8325
SELECT DISTINCT col1 * - CAST( - col1 AS SIGNED ) FROM tab2
----
289
3481
961

skipif mysql # not compatible
query I rowsort label-8325
SELECT DISTINCT col1 * - CAST ( - col1 AS INTEGER ) FROM tab2
----
289
3481
961

query I rowsort
SELECT + col0 * 5 FROM tab1 AS cor0
----
15
320
400

query I rowsort
SELECT col1 * + 95 * - col2 + - col2 * - ( col2 ) FROM tab1 AS cor0
----
-109344
-130464
-50901

query I rowsort
SELECT - + col2 * + col0 AS col1 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT - - col2 * col0 + 38 FROM tab0 cor0
----
73
7336
830

onlyif mysql # use DIV operator for integer division
query I rowsort label-8330
SELECT - + cor0.col0 DIV + col2 FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-8330
SELECT - + cor0.col0 / + col2 FROM tab0 AS cor0
----
-1
-35
0

query I rowsort
SELECT DISTINCT col1 + - col2 * ( - cor0.col1 ) FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT DISTINCT - - col0 * + col2 + col0 * col1 + cor0.col1 AS col0 FROM tab0 AS cor0
----
15488
2942
3527

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col2 - - col0 col1 FROM tab0 AS cor0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-8334
SELECT - + col2 DIV + col2 - col0 FROM tab1 AS cor0
----
-4
-65
-81

skipif mysql # not compatible
query I rowsort label-8334
SELECT - + col2 / + col2 - col0 FROM tab1 AS cor0
----
-4
-65
-81

onlyif mysql # use DIV operator for integer division
query I rowsort label-8335
SELECT col0 DIV - 49 AS col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8335
SELECT col0 / - 49 AS col2 FROM tab1
----
-1
-1
0

query I rowsort
SELECT DISTINCT - col1 * - 39 AS col0 FROM tab1 AS cor0
----
1014
390
507

query I rowsort
SELECT ALL + + cor0.col1 * 71 FROM tab2 AS cor0
----
1207
2201
4189

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col1 + + cor0.col0 * col2 col1 FROM tab1 cor0
----
-514
3548
7511

onlyif mysql # use DIV operator for integer division
query I rowsort label-8339
SELECT + col0 * col2 - - col2 DIV + col2 FROM tab1 AS cor0
----
163
3649
7681

skipif mysql # not compatible
query I rowsort label-8339
SELECT + col0 * col2 - - col2 / + col2 FROM tab1 AS cor0
----
163
3649
7681

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8340
SELECT - cor0.col2 * CAST( ( col2 ) AS SIGNED ) FROM tab1 cor0
----
-2916
-3249
-9216

skipif mysql # not compatible
query I rowsort label-8340
SELECT - cor0.col2 * CAST ( ( col2 ) AS INTEGER ) FROM tab1 cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ALL + tab1.col2 * ( col0 ) AS col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT + - 24 * 32 - + col2 AS col0 FROM tab2 AS cor0
----
-794
-795
-806

query I rowsort
SELECT + col0 * 71 AS col2 FROM tab2 cor0
----
497
5538
5609

query I rowsort
SELECT - ( ( - col1 ) ) * col0 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT + + col0 * 99 FROM tab0 AS cor0
----
2376
3465
8811

query I rowsort
SELECT DISTINCT col1 * - 95 * + col2 AS col2 FROM tab1
----
-118560
-133380
-54150

query I rowsort
SELECT - col0 * 46 AS col2 FROM tab1
----
-138
-2944
-3680

query I rowsort
SELECT ALL + + cor0.col2 * - col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT 69 + cor0.col0 + col0 FROM tab0 AS cor0
----
117
139
247

query I rowsort
SELECT ALL col0 * col0 + - cor0.col0 AS col0 FROM tab1 AS cor0
----
4032
6
6320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 88 ) col0 FROM tab2, tab0 cor0, tab1 AS cor1
----
88

query I rowsort
SELECT 44 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b

query I rowsort
SELECT + 6 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04

query I rowsort
SELECT + - col2 + col1 * ( + 99 ) AS col2 FROM tab2 AS cor0
----
1645
3042
5815

query I rowsort
SELECT 51 AS col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5

query I rowsort
SELECT ALL + + 27 + - col1 FROM tab2 AS cor0
----
-32
-4
10

query I rowsort
SELECT DISTINCT 7 FROM tab1, tab0 AS cor0
----
7

query I rowsort
SELECT DISTINCT col1 - - ( col1 ) AS col1 FROM tab2 AS cor0
----
118
34
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8359
SELECT + col0 + CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
14
156
158

skipif mysql # not compatible
query I rowsort label-8359
SELECT + col0 + CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT DISTINCT col0 - + ( + 93 * - col1 ) FROM tab2 AS cor0
----
1660
2890
5565

query I rowsort
SELECT ALL + cor0.col2 * + col1 FROM tab0 cor0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col0 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8363
SELECT ALL - + ( col2 ) * CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8363
SELECT ALL - + ( col2 ) * CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 49 AS col1 FROM tab1
----
49

onlyif mysql # use DIV operator for integer division
query I rowsort label-8365
SELECT ALL + col2 DIV + col1 + - col1 * 82 + - col1 * 0 * + col0 AS col0 FROM tab0 AS cor0
----
-7052
-7462
-7954

skipif mysql # not compatible
query I rowsort label-8365
SELECT ALL + col2 / + col1 + - col1 * 82 + - col1 * 0 * + col0 AS col0 FROM tab0 AS cor0
----
-7052
-7462
-7954

onlyif mysql # use DIV operator for integer division
query I rowsort label-8366
SELECT DISTINCT + 69 DIV - cor1.col2 AS col1 FROM tab2, tab2 AS cor0, tab1 cor1
----
-1
0

skipif mysql # not compatible
query I rowsort label-8366
SELECT DISTINCT + 69 / - cor1.col2 AS col1 FROM tab2, tab2 AS cor0, tab1 cor1
----
-1
0

query I rowsort
SELECT ALL - cor0.col2 + + cor0.col0 AS col1 FROM tab1 cor0
----
-16
-51
7

query I rowsort
SELECT + + 33 + - col1 AS col0 FROM tab2 AS cor0
----
-26
16
2

query I rowsort
SELECT ALL - col2 * - col2 + ( - col1 ) * - col1 AS col2 FROM tab1 AS cor0
----
3349
3592
9385

query I rowsort
SELECT ALL + + col1 * cor0.col1 AS col2 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT DISTINCT col0 * ( - col2 ) + - col0 * cor0.col2 FROM tab2 AS cor0
----
-378
-4056
-6004

query I rowsort
SELECT ALL col2 + col2 * col0 AS col2 FROM tab2
----
2054
216
3040

query I rowsort
SELECT col0 * - col1 - - tab2.col1 AS col2 FROM tab2
----
-1326
-186
-4543

query I rowsort
SELECT ALL + col0 + - 45 AS col0 FROM tab2 AS cor0
----
-38
33
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 + + 99 - 79 col0 FROM tab2 AS cor0
----
-11
-39
3

query I rowsort
SELECT col2 * - col0 + col2 AS col0 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT ALL cor0.col2 * + col0 * + col1 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT DISTINCT - - col0 + - col1 AS col0 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT col1 * tab1.col2 + + ( + col2 ) FROM tab1
----
1344
1458
627

query I rowsort
SELECT 60 + - col1 FROM tab2
----
1
29
43

query I rowsort
SELECT ALL 60 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 1d2ab302ae60f95b15e68cf89083b162

query I rowsort
SELECT - + cor0.col0 - + col2 AS col1 FROM tab0 cor0
----
-171
-36
-57

query I rowsort
SELECT DISTINCT + - col1 * - col0 + col1 * col2 FROM tab1 AS cor0
----
1210
1482
2288

query I rowsort
SELECT DISTINCT ( 90 ) + + col1 AS col1 FROM tab0 AS cor0
----
176
181
187

query I rowsort
SELECT ALL col2 * + col0 * cor0.col1 - + cor0.col0 FROM tab2 AS cor0
----
119574
50955
5852

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col0 ) * col1 col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL - col0 * 46 * col2 FROM tab1 AS cor0
----
-167808
-353280
-7452

query I rowsort
SELECT ALL - 57 * col1 + + col2 * - col0 AS col1 FROM tab0 AS cor0
----
-12485
-5564
-5694

query I rowsort
SELECT DISTINCT + 6 * ( + col0 ) * 78 + col2 AS col0 FROM tab0 AS cor0
----
11265
16381
41734

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 0 * col2 col0 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 47 col0 FROM tab1, tab2 AS cor0
----
47

query I rowsort
SELECT DISTINCT - col2 * 32 FROM tab1
----
-1728
-1824
-3072

query I rowsort
SELECT - cor0.col2 FROM tab2, tab2 cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8394
SELECT col2 - + CAST( + col0 + col1 AS SIGNED ) FROM tab0
----
-131
-77
-98

skipif mysql # not compatible
query I rowsort label-8394
SELECT col2 - + CAST ( + col0 + col1 AS INTEGER ) FROM tab0
----
-131
-77
-98

query I rowsort
SELECT ( 75 ) - col2 * col2 FROM tab1 AS cor0
----
-2841
-3174
-9141

query I rowsort
SELECT + col2 * 53 * - col2 AS col2 FROM tab1 AS cor0
----
-154548
-172197
-488448

query I rowsort
SELECT + cor0.col0 * - 78 - + col0 FROM tab1 AS cor0
----
-237
-5056
-6320

query I rowsort
SELECT col2 * col0 * + col0 FROM tab0 AS cor0
----
1225
19008
649522

query I rowsort
SELECT + ( - col0 ) + + col2 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT DISTINCT + 12 + 76 - - col0 * 78 AS col0 FROM tab0
----
1960
2818
7030

query I rowsort
SELECT + 58 + + tab0.col2 - col0 AS col1 FROM tab0
----
24
51
67

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8402
SELECT DISTINCT + ( - tab0.col0 ) + + tab0.col1 + + CAST( - col2 AS SIGNED ) FROM tab0
----
-80
29
61

skipif mysql # not compatible
query I rowsort label-8402
SELECT DISTINCT + ( - tab0.col0 ) + + tab0.col1 + + CAST ( - col2 AS INTEGER ) FROM tab0
----
-80
29
61

query I rowsort
SELECT DISTINCT - 12 * col0 + + col1 FROM tab1
----
-10
-758
-947

query I rowsort
SELECT cor0.col1 - - col0 * col0 AS col0 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT - col1 + + col2 * + col2 AS col2 FROM tab1 cor0
----
2890
3239
9203

query I rowsort
SELECT DISTINCT + 54 * col2 - tab2.col1 FROM tab2
----
1345
1427
2035

query I rowsort
SELECT DISTINCT + col1 - - col2 * + tab2.col1 AS col0 FROM tab2
----
1593
663
868

query I rowsort
SELECT DISTINCT - col1 - ( + col2 ) FROM tab2
----
-55
-58
-85

query I rowsort
SELECT ALL - col1 + ( - col2 + col0 * - col2 ) AS col1 FROM tab0
----
-133
-7471
-911

query I rowsort
SELECT ALL - 14 + tab2.col1 AS col0 FROM tab2
----
17
3
45

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8411
SELECT - CAST( tab1.col0 AS SIGNED ) + - col0 * - 7 AS col2 FROM tab1
----
18
384
480

skipif mysql # not compatible
query I rowsort label-8411
SELECT - CAST ( tab1.col0 AS INTEGER ) + - col0 * - 7 AS col2 FROM tab1
----
18
384
480

query I rowsort
SELECT 41 + + col2 + col2 * - 58 AS col0 FROM tab1
----
-3037
-3208
-5431

onlyif mysql # use DIV operator for integer division
query I rowsort label-8413
SELECT - col0 * col1 + col0 * col0 DIV col0 AS col1 FROM tab2 AS cor0
----
-1264
-210
-4524

skipif mysql # not compatible
query I rowsort label-8413
SELECT - col0 * col1 + col0 * col0 / col0 AS col1 FROM tab2 AS cor0
----
-1264
-210
-4524

onlyif mysql # use DIV operator for integer division
query I rowsort label-8414
SELECT ALL - 25 DIV + col1 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8414
SELECT ALL - 25 / + col1 AS col0 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * - col1 col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT + 92 - col2 FROM tab1 cor0
----
-4
35
38

query I rowsort
SELECT - col2 * - col0 + - 5 + ( col0 ) FROM tab2 AS cor0
----
191
2101
3076

query I rowsort
SELECT + col0 * col1 + ( ( - cor0.col2 ) ) * col1 AS col1 FROM tab1 AS cor0
----
-1326
-208
70

query I rowsort
SELECT DISTINCT + col1 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL + col0 * - col0 * cor0.col0 AS col2 FROM tab1 AS cor0
----
-262144
-27
-512000

query I rowsort
SELECT ALL + - col2 + 63 + - col2 * col0 FROM tab0 AS cor0
----
-7317
-762
27

query I rowsort
SELECT DISTINCT col0 - 19 * - 65 FROM tab2 AS cor0
----
1242
1313
1314

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8423
SELECT + + col2 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8423
SELECT + + col2 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 * 83 + cor0.col0 FROM tab2 AS cor0
----
-2080
-2234
-3075

query I rowsort
SELECT DISTINCT + col1 + - cor0.col0 AS col1 FROM tab0 cor0
----
2
62

query I rowsort
SELECT ALL col2 + ( + col0 ) AS col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL + col2 + + 69 AS col0 FROM tab2 AS cor0
----
107
95
96

query I rowsort
SELECT DISTINCT - col0 + - 81 FROM tab2 AS cor0
----
-159
-160
-88

onlyif mysql # use DIV operator for integer division
query I rowsort label-8429
SELECT DISTINCT + - col1 + + col2 DIV col0 FROM tab0 AS cor0
----
-85
-91
-97

skipif mysql # not compatible
query I rowsort label-8429
SELECT DISTINCT + - col1 + + col2 / col0 FROM tab0 AS cor0
----
-85
-91
-97

query I rowsort
SELECT DISTINCT + ( - 15 ) FROM tab2 cor0
----
-15

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8431
SELECT ALL + CAST( NULL AS SIGNED ) * + cor0.col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8431
SELECT ALL + CAST ( NULL AS INTEGER ) * + cor0.col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - ( cor0.col2 ) AS col1 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT - + 42 + 48 * - col1 FROM tab0 cor0
----
-4170
-4410
-4698

query I rowsort
SELECT DISTINCT + col2 + col0 * col2 AS col1 FROM tab2 cor0
----
2054
216
3040

query I rowsort
SELECT - cor1.col0 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

onlyif mysql # use DIV operator for integer division
query I rowsort label-8436
SELECT ALL - - 13 + cor0.col2 DIV - col0 AS col1 FROM tab2 AS cor0
----
10
13
13

skipif mysql # not compatible
query I rowsort label-8436
SELECT ALL - - 13 + cor0.col2 / - col0 AS col1 FROM tab2 AS cor0
----
10
13
13

query I rowsort
SELECT DISTINCT + + cor0.col0 * col0 AS col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT + - 27 AS col1 FROM tab2 AS cor0
----
-27
-27
-27

query I rowsort
SELECT col1 * 85 + col0 FROM tab1 AS cor0
----
1185
2213
914

query I rowsort
SELECT - col2 + ( col2 ) AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 + - 22 AS col2 FROM tab2 AS cor0
----
16
4
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 - - ( ( col1 ) * col0 ) col0 FROM tab2 cor0
----
1264
210
4524

query I rowsort
SELECT DISTINCT + 39 * col0 FROM tab1
----
117
2496
3120

query I rowsort
SELECT - col0 - - cor0.col1 AS col2 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT col0 * - 38 + - 10 FROM tab2 cor0
----
-276
-2974
-3012

query I rowsort
SELECT - col0 * - ( - ( - col0 ) * col1 ) FROM tab0 AS cor0
----
118825
49536
720811

query I rowsort
SELECT DISTINCT col0 * - ( col2 ) FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT ALL - col1 * col0 * col2 + col2 FROM tab2
----
-119626
-50996
-5832

query I rowsort
SELECT + col1 - - col0 AS col0 FROM tab1 WHERE NOT NULL IN ( + tab1.col1 * col1 )
----

query I rowsort
SELECT - 69 * - col2 FROM tab1 AS cor0
----
3726
3933
6624

query I rowsort
SELECT DISTINCT col0 * + col0 + col2 AS col2 FROM tab2 WHERE NOT - col0 IN ( + tab2.col1 )
----
6110
6279
76

query I rowsort
SELECT DISTINCT col0 - col2 * - col2 AS col0 FROM tab2
----
1523
736
754

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) <= + col1 + col0
----

query I rowsort
SELECT ALL col2 + col0 * + col1 FROM tab2
----
1381
244
4628

query I rowsort
SELECT DISTINCT col2 + + col0 * + col2 AS col0 FROM tab0
----
36
7380
825

query I rowsort
SELECT DISTINCT 75 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-8457
SELECT - col0 DIV + col2 AS col1 FROM tab1 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8457
SELECT - col0 / + col2 AS col1 FROM tab1 cor0
----
-1
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8458
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) FROM tab2, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8458
SELECT DISTINCT + - CAST ( NULL AS REAL ) FROM tab2, tab0 AS cor0
----
NULL

query I rowsort
SELECT 64 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9

query I rowsort
SELECT + cor0.col0 AS col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

onlyif mysql # use DIV operator for integer division
query I rowsort label-8461
SELECT ALL - col0 DIV col1 + col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-8461
SELECT ALL - col0 / col1 + col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT col0 * col2 * - 39 AS col2 FROM tab2 AS cor0
----
-117078
-7371
-79092

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 16 col2 FROM tab1 cor0
----
-16
-16
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 51 col1 FROM tab0 AS cor0
----
51
51
51

query I rowsort
SELECT + + col0 + + 27 * cor0.col2 * col2 FROM tab1 AS cor0
----
248912
78735
87787

query I rowsort
SELECT + col0 + col0 * + col1 FROM tab1
----
1120
704
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-8467
SELECT + col0 DIV - col2 - + tab0.col0 AS col1 FROM tab0
----
-24
-70
-90

skipif mysql # not compatible
query I rowsort label-8467
SELECT + col0 / - col2 - + tab0.col0 AS col1 FROM tab0
----
-24
-70
-90

query I rowsort
SELECT DISTINCT + col1 * + 78 AS col1 FROM tab2
----
1326
2418
4602

query I rowsort
SELECT DISTINCT + + cor0.col2 + col2 AS col1 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT DISTINCT - + col2 + col0 + + col1 AS col1 FROM tab2 AS cor0
----
11
111
58

query I rowsort
SELECT col2 * 85 AS col2 FROM tab1 AS cor0
----
4590
4845
8160

onlyif mysql # use DIV operator for integer division
query I rowsort label-8472
SELECT ALL + + col2 DIV 34 AS col1 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-8472
SELECT ALL + + col2 / 34 AS col1 FROM tab0 AS cor0
----
0
0
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-8473
SELECT - tab0.col2 DIV - col1 - - col1 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-8473
SELECT - tab0.col2 / - col1 - - col1 FROM tab0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 6 col0 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04

query I rowsort
SELECT DISTINCT + ( 5 ) FROM tab1
----
5

onlyif mysql # use DIV operator for integer division
query I rowsort label-8476
SELECT - 48 + col2 DIV 39 AS col1 FROM tab2 AS cor0
----
-48
-48
-48

skipif mysql # not compatible
query I rowsort label-8476
SELECT - 48 + col2 / 39 AS col1 FROM tab2 AS cor0
----
-48
-48
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col2 col1 FROM tab1 cor0
----
2916
3249
9216

query I rowsort
SELECT - + 17 FROM tab1 cor0
----
-17
-17
-17

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8479
SELECT CAST( NULL AS SIGNED ) * - col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8479
SELECT CAST ( NULL AS INTEGER ) * - col2 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 1 AS col2 FROM tab1, tab0 AS cor0
----
1

query I rowsort
SELECT ALL + - col2 * col0 * 72 + + col2 AS col2 FROM tab2 AS cor0
----
-13581
-145990
-216106

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1, tab0 cor1, tab2, tab0 AS cor2
----
3645 values hashing to 283f1c907a0999dbd972d3bd45746c06

query I rowsort
SELECT DISTINCT - 67 FROM tab1, tab1 AS cor0
----
-67

query I rowsort
SELECT ALL - col0 + + col0 * + col0 FROM tab0 cor0
----
1190
552
7832

query I rowsort
SELECT + - col1 + col2 + col0 AS col2 FROM tab2 AS cor0
----
100
3
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-8486
SELECT ALL - col1 DIV 8 + + col0 * col0 FROM tab2 AS cor0
----
46
6077
6239

skipif mysql # not compatible
query I rowsort label-8486
SELECT ALL - col1 / 8 + + col0 * col0 FROM tab2 AS cor0
----
46
6077
6239

query I rowsort
SELECT + col2 - 2 AS col0 FROM tab1 AS cor0
----
52
55
94

query I rowsort
SELECT DISTINCT - col0 + - col0 + - 91 FROM tab0
----
-139
-161
-269

onlyif mysql # use DIV operator for integer division
query I rowsort label-8489
SELECT + col2 DIV - col2 AS col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8489
SELECT + col2 / - col2 AS col2 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT + col1 + + col2 + 26 FROM tab1 AS cor0
----
106
135
93

query I rowsort
SELECT ALL + col1 * - 50 AS col1 FROM tab2 cor0
----
-1550
-2950
-850

query I rowsort
SELECT ALL - 56 + cor0.col1 FROM tab1 AS cor0
----
-30
-43
-46

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8493
SELECT ALL CAST( NULL AS SIGNED ) * - 26 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8493
SELECT ALL CAST ( NULL AS INTEGER ) * - 26 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8494
SELECT DISTINCT - col0 DIV 84 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-8494
SELECT DISTINCT - col0 / 84 FROM tab0
----
-1
0

query I rowsort
SELECT DISTINCT + col0 + 4 * + cor0.col1 FROM tab0 AS cor0
----
368
423
453

query I rowsort
SELECT + col0 + 55 * - col2 AS col1 FROM tab1 cor0
----
-2967
-3071
-5200

query I rowsort
SELECT - 82 * + cor0.col0 - - ( 38 ) FROM tab1, tab2 AS cor0
----
9 values hashing to a88b2d6106d42a220ce79db0e3e7ba4a

query I rowsort
SELECT 1 * + cor0.col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT DISTINCT - - ( col1 ) AS col2 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT ALL 96 FROM tab0, tab2 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query I rowsort
SELECT - + 21 + - 92 + col0 * - col1 AS col0 FROM tab2 AS cor0
----
-1456
-330
-4715

query IIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 WHERE NOT NULL <= ( NULL )
----

query I rowsort
SELECT + col2 + col2 * ( + col0 ) FROM tab1 cor0
----
216
3705
7776

query I rowsort
SELECT ALL + 92 * col2 + + col0 AS col0 FROM tab0 AS cor0
----
127
3060
7633

onlyif mysql # use DIV operator for integer division
query I rowsort label-8505
SELECT col0 * col2 + + col2 * col0 DIV - col0 AS col1 FROM tab1
----
108
3591
7584

skipif mysql # not compatible
query I rowsort label-8505
SELECT col0 * col2 + + col2 * col0 / - col0 AS col1 FROM tab1
----
108
3591
7584

query I rowsort
SELECT ALL - + col0 + col0 * ( + ( + col2 ) ) + ( ( - col0 ) ) FROM tab0 AS cor0
----
-35
7120
744

query I rowsort
SELECT + + 92 AS col1 FROM tab0 AS cor0
----
92
92
92

query I rowsort
SELECT DISTINCT + 88 - + col0 FROM tab2 AS cor0
----
10
81
9

query I rowsort
SELECT DISTINCT + + col2 * + col0 + + col1 AS col0 FROM tab0 cor0
----
132
7389
878

query I rowsort
SELECT ALL + cor0.col0 * col0 + ( - col1 ) * col1 + 71 AS col2 FROM tab2 AS cor0
----
-841
2674
6023

query I rowsort
SELECT + 27 + col2 FROM tab0 AS cor0
----
109
28
60

query I rowsort
SELECT + 67 * col1 AS col0 FROM tab0 AS cor0
----
5762
6097
6499

query I rowsort
SELECT DISTINCT - ( + col2 ) * + col2 + + col1 * - col0 FROM tab0 AS cor0
----
-14823
-3153
-3396

query I rowsort
SELECT DISTINCT - - cor0.col0 * col0 + - col1 AS col1 FROM tab2 AS cor0
----
18
6025
6224

query I rowsort
SELECT + + col1 * + cor0.col2 AS col2 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT col1 * + 91 AS col2 FROM tab0 AS cor0
----
7826
8281
8827

query I rowsort
SELECT ALL - - col2 * col2 + col1 AS col0 FROM tab2 cor0
----
1461
735
760

query I rowsort
SELECT - - cor0.col1 * col0 - + col1 AS col2 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT DISTINCT - + cor0.col2 + cor0.col0 FROM tab2 AS cor0
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-8520
SELECT DISTINCT + col1 * 70 + - col0 DIV - col0 AS col0 FROM tab1 AS cor0
----
1821
701
911

skipif mysql # not compatible
query I rowsort label-8520
SELECT DISTINCT + col1 * 70 + - col0 / - col0 AS col0 FROM tab1 AS cor0
----
1821
701
911

query I rowsort
SELECT + cor0.col0 + - 90 FROM tab0 AS cor0
----
-1
-55
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + 88 col2 FROM tab1 AS cor0
----
-1144
-2288
-880

query I rowsort
SELECT - col1 * col0 + col0 * col1 FROM tab1
----
0
0
0

query I rowsort
SELECT - col0 + + col1 * + col1 FROM tab1
----
36
673
89

query I rowsort
SELECT ALL - col0 * + col1 AS col0 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT col1 + col2 * - 32 AS col0 FROM tab0 cor0
----
-2533
-970
65

query I rowsort
SELECT ALL + + col0 * col0 + - col2 * + col2 FROM tab0 AS cor0
----
-513
1197
1224

query I rowsort
SELECT ALL cor0.col2 - 85 FROM tab2 cor0
----
-47
-58
-59

query I rowsort
SELECT ALL - col0 * ( col2 ) * col2 + col2 AS col0 FROM tab0 AS cor0
----
-26103
-34
-598354

query I rowsort
SELECT DISTINCT - cor0.col1 - col2 * col1 FROM tab0 AS cor0
----
-194
-2924
-7553

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 90 col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

query I rowsort
SELECT + col1 * + 26 FROM tab1 cor0
----
260
338
676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 30 col0 FROM tab2, tab1 cor0
----
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 82 + cor0.col2 col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 08c9b460c80aa61a29cf9ec862304c1b

query I rowsort
SELECT + col0 * ( col1 ) + col0 + col0 FROM tab2
----
1501
231
4758

query I rowsort
SELECT DISTINCT - col0 + ( 83 ) + col1 FROM tab1
----
106
16
29

query I rowsort
SELECT + ( 47 ) * col2 - cor0.col2 AS col2 FROM tab0 cor0
----
1518
3772
46

onlyif mysql # use DIV operator for integer division
query I rowsort label-8538
SELECT - 35 DIV + 99 - col0 AS col0 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-8538
SELECT - 35 / + 99 - col0 AS col0 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT ALL - cor0.col0 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT ( 38 ) AS col2 FROM tab2, tab1, tab0 AS cor0, tab0
----
81 values hashing to 9124b06d33995d82062026964cce3a38

query I rowsort
SELECT - 75 FROM tab2, tab2 AS cor0
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547

query I rowsort
SELECT col0 + + col0 * ( + col1 ) + col2 FROM tab2 AS cor0
----
1460
251
4706

query I rowsort
SELECT - 51 * col0 + col1 * - col0 AS col2 FROM tab1 AS cor0
----
-231
-3904
-5120

query I rowsort
SELECT DISTINCT + 62 * cor0.col2 AS col1 FROM tab2 AS cor0
----
1612
1674
2356

query I rowsort
SELECT + + col2 + col0 + + col1 FROM tab0 AS cor0
----
133
143
262

query I rowsort
SELECT ALL + 88 + - col2 AS col1 FROM tab0
----
55
6
87

query I rowsort
SELECT - col2 + - 27 * + col1 FROM tab1
----
-327
-447
-756

query I rowsort
SELECT + - 78 + - 22 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 21c0ca09ffc507125d1f1a8f18b1d528

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8549
SELECT ALL CAST( 64 AS SIGNED ) + col1 FROM tab1
----
74
77
90

skipif mysql # not compatible
query I rowsort label-8549
SELECT ALL CAST ( 64 AS INTEGER ) + col1 FROM tab1
----
74
77
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 21 col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT + + ( - 0 ) * - cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT + ( col1 ) * - 8 FROM tab2 AS cor0
----
-136
-248
-472

query I rowsort
SELECT ALL cor0.col2 + col1 * + ( col0 ) FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT ALL + + 82 - cor0.col1 FROM tab2 AS cor0
----
23
51
65

query I rowsort
SELECT DISTINCT + 56 * col2 FROM tab2 cor0
----
1456
1512
2128

onlyif mysql # use DIV operator for integer division
query I rowsort label-8556
SELECT ALL + col0 DIV + col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8556
SELECT ALL + col0 / + col0 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT col2 + col2 * col2 AS col0 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT DISTINCT - - 45 + col0 * - col1 FROM tab0 AS cor0
----
-2019
-3350
-8054

query I rowsort
SELECT ALL - - col1 * col2 - col0 FROM tab2 AS cor0
----
1456
567
830

onlyif mysql # use DIV operator for integer division
query I rowsort label-8560
SELECT ALL + ( + 37 ) DIV + col2 col1 FROM tab0
----
0
1
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8560
SELECT ALL + ( + 37 ) / + col2 col1 FROM tab0
----
0
1
37

onlyif mysql # use DIV operator for integer division
query I rowsort label-8561
SELECT col1 DIV col2 col0 FROM tab1 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8561
SELECT col1 / col2 col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT 31 + 90 AS col0 FROM tab0
----
121
121
121

query I rowsort
SELECT + + col2 + col1 * + col0 AS col0 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT - - ( col2 ) + col1 * - col2 - col0 * ( - col2 + cor0.col0 ) FROM tab2 AS cor0
----
-3847
-5564
-670

query I rowsort
SELECT col2 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT - tab1.col2 + ( col0 ) * col0 FROM tab1
----
-45
4039
6304

query I rowsort
SELECT 91 AS col1 FROM tab1 cor0
----
91
91
91

query I rowsort
SELECT DISTINCT - col1 + + col1 * - col1 AS col0 FROM tab2 cor0
----
-306
-3540
-992

query I rowsort
SELECT - + col1 * cor0.col2 AS col1 FROM tab0 cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-8570
SELECT cor0.col2 DIV + CAST( 26 AS SIGNED ) col0 FROM tab0 AS cor0
----
0
1
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8570
SELECT cor0.col2 / + CAST ( 26 AS INTEGER ) col0 FROM tab0 AS cor0
----
0
1
3

query I rowsort
SELECT DISTINCT col1 * - 83 AS col0 FROM tab0 AS cor0
----
-7138
-7553
-8051

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8572
SELECT DISTINCT + + col1 * CAST( NULL AS SIGNED ) + col1 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8572
SELECT DISTINCT + + col1 * CAST ( NULL AS INTEGER ) + col1 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col1 * + col2 + + col1 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT col0 + + cor0.col2 * col1 FROM tab0 AS cor0
----
132
2862
7551

onlyif mysql # use DIV operator for integer division
query I rowsort label-8575
SELECT + col0 * - 32 + + ( col1 ) DIV 32 AS col1 FROM tab0 AS cor0
----
-1117
-2846
-766

skipif mysql # not compatible
query I rowsort label-8575
SELECT + col0 * - 32 + + ( col1 ) / 32 AS col1 FROM tab0 AS cor0
----
-1117
-2846
-766

query I rowsort
SELECT cor1.col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT + 42 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8578
SELECT + - CAST( cor0.col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-8578
SELECT + - CAST ( cor0.col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 54 - 18 col0 FROM tab0, tab2 AS cor0, tab2, tab0 cor1
----
36

query I rowsort
SELECT ALL cor0.col2 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT + + ( - col2 ) * col0 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT + - 29 + - ( col2 + - col1 ) AS col0 FROM tab0 AS cor0
----
-20
24
67

query I rowsort
SELECT ALL - col1 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT cor0.col0 + 0 AS col0 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT DISTINCT + - 23 - - cor0.col0 * col1 FROM tab0 AS cor0
----
2041
3372
8076

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 95 col1 FROM tab1 AS cor0
----
95
95
95

query I rowsort
SELECT - col1 + + 60 + + col0 FROM tab0 cor0
----
-2
-2
58

query I rowsort
SELECT DISTINCT - ( + 49 ) * col2 AS col0 FROM tab2 cor0
----
-1274
-1323
-1862

query I rowsort
SELECT + col2 * - 0 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT col1 + 30 FROM tab2 AS cor0
----
47
61
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 29 * - col2 + + col0 col0 FROM tab1 AS cor0
----
1569
1717
2864

query I rowsort
SELECT + col2 * - 5 * tab2.col1 AS col2 FROM tab2
----
-3230
-4185
-7670

query I rowsort
SELECT col0 + - 46 * - col1 FROM tab2
----
1433
2792
861

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 * cor0.col1 * col2 + cor0.col0 col1 FROM tab0 AS cor0
----
244092
679131
9444

query I rowsort
SELECT + col1 * + 43 FROM tab0 cor0
----
3698
3913
4171

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8596
SELECT - CAST( NULL AS SIGNED ) + col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8596
SELECT - CAST ( NULL AS INTEGER ) + col0 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8597
SELECT - CAST( + 58 AS SIGNED ) FROM tab2 AS cor0
----
-58
-58
-58

skipif mysql # not compatible
query I rowsort label-8597
SELECT - CAST ( + 58 AS INTEGER ) FROM tab2 AS cor0
----
-58
-58
-58

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8598
SELECT + + 28 + cor0.col2 + - CAST( NULL AS SIGNED ) FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8598
SELECT + + 28 + cor0.col2 + - CAST ( NULL AS INTEGER ) FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + col1 * - ( + col1 ) + + col1 AS col2 FROM tab2 AS cor0
----
-272
-3422
-930

query I rowsort
SELECT ALL + col2 * 55 FROM tab1 AS cor0
----
2970
3135
5280

query I rowsort
SELECT + 59 * col0 AS col2 FROM tab0
----
1416
2065
5251

query I rowsort
SELECT DISTINCT tab1.col1 + - ( col0 * col0 ) AS col2 FROM tab1
----
-4086
-6387
17

query I rowsort
SELECT cor0.col0 * - 39 + - 95 AS col1 FROM tab1 AS cor0
----
-212
-2591
-3215

query I rowsort
SELECT DISTINCT col2 + 17 AS col2 FROM tab2
----
43
44
55

query I rowsort
SELECT - cor0.col1 * + col1 * cor0.col2 FROM tab0 AS cor0
----
-244068
-679042
-9409

query I rowsort
SELECT ALL - col0 * + ( ( col2 ) ) + ( col0 ) * - col2 FROM tab2 cor0
----
-378
-4056
-6004

query I rowsort
SELECT + col0 * - col0 * col0 AS col0 FROM tab0 AS cor0
----
-13824
-42875
-704969

onlyif mysql # use DIV operator for integer division
query I rowsort label-8608
SELECT 68 * 25 + - col0 DIV + ( col2 ) col2 FROM tab1
----
1699
1700
1700

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8608
SELECT 68 * 25 + - col0 / + ( col2 ) col2 FROM tab1
----
1699
1700
1700

query I rowsort
SELECT ALL ( - col1 ) + - col0 * + 10 AS col1 FROM tab2
----
-101
-807
-839

query I rowsort
SELECT ALL + col2 + + col2 * 95 + - col0 FROM tab2
----
2418
2585
3569

query I rowsort
SELECT ALL + 7 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607

query I rowsort
SELECT + + col1 + col0 - col1 AS col2 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT - - col2 * + col2 FROM tab0 cor0
----
1
1089
6724

query I rowsort
SELECT ALL cor0.col2 + cor0.col0 * - col0 * + col1 FROM tab0 cor0
----
-118824
-49503
-720729

query I rowsort
SELECT cor0.col1 * col2 + col1 AS col0 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT ALL + col0 * col2 - - col0 AS col1 FROM tab1 cor0
----
165
3712
7760

query I rowsort
SELECT ALL 8 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * ( col1 ) + - col0 col1 FROM tab0
----
7372
8192
9374

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 95 col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
-95

onlyif mysql # use DIV operator for integer division
query I rowsort label-8620
SELECT DISTINCT col1 DIV - 58 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8620
SELECT DISTINCT col1 / - 58 AS col0 FROM tab1
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8621
SELECT + col0 DIV 97 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8621
SELECT + col0 / 97 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + 89 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query I rowsort
SELECT ALL ( - cor1.col0 ) AS col2 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT + 14 + 24 * - col0 FROM tab1 AS cor0
----
-1522
-1906
-58

query I rowsort
SELECT ALL - col0 * 87 * col2 FROM tab0 AS cor0
----
-3045
-634926
-68904

onlyif mysql # use DIV operator for integer division
query I rowsort label-8626
SELECT DISTINCT + - col1 + col1 DIV - col1 FROM tab2 AS cor0
----
-18
-32
-60

skipif mysql # not compatible
query I rowsort label-8626
SELECT DISTINCT + - col1 + col1 / - col1 FROM tab2 AS cor0
----
-18
-32
-60

query I rowsort
SELECT - - col0 * ( col2 * col0 ) FROM tab0 AS cor0
----
1225
19008
649522

query I rowsort
SELECT - ( - col2 ) * col2 FROM tab1 cor0
----
2916
3249
9216

query I rowsort
SELECT DISTINCT - 49 AS col1 FROM tab0 AS cor0
----
-49

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8630
SELECT - CAST( NULL AS SIGNED ) * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8630
SELECT - CAST ( NULL AS INTEGER ) * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8631
SELECT ALL - - 96 DIV col1 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8631
SELECT ALL - - 96 / col1 FROM tab0 AS cor0
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 + col1 col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - col0 + col2 * col1 * - col0 FROM tab2 cor0
----
-119730
-51113
-5866

onlyif mysql # use DIV operator for integer division
query I rowsort label-8634
SELECT DISTINCT col1 DIV - col1 AS col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-8634
SELECT DISTINCT col1 / - col1 AS col1 FROM tab2
----
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-8635
SELECT DISTINCT - col1 DIV - 78 col0 FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8635
SELECT DISTINCT - col1 / - 78 col0 FROM tab0
----
1

query I rowsort
SELECT cor0.col0 + + col2 * col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT ALL - col2 * + col2 + cor0.col2 AS col2 FROM tab1 AS cor0
----
-2862
-3192
-9120

onlyif mysql # use DIV operator for integer division
query I rowsort label-8638
SELECT ALL + - 22 + col1 DIV + col2 FROM tab1 AS cor0
----
-22
-22
-22

skipif mysql # not compatible
query I rowsort label-8638
SELECT ALL + - 22 + col1 / + col2 FROM tab1 AS cor0
----
-22
-22
-22

query I rowsort
SELECT 39 * 42 FROM tab1 cor0
----
1638
1638
1638

query I rowsort
SELECT + + ( - 62 ) * col1 FROM tab0 AS cor0
----
-5332
-5642
-6014

query I rowsort
SELECT cor1.col0 * + cor1.col0 + + 80 AS col0 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to c74d42ba76e65b40b8cc99a0116402c3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 81 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 56 col0 FROM tab0
----
56
56
56

onlyif mysql # use DIV operator for integer division
query I rowsort label-8644
SELECT + 72 DIV - col0 + col1 * 62 AS col1 FROM tab0 AS cor0
----
5329
5642
6012

skipif mysql # not compatible
query I rowsort label-8644
SELECT + 72 / - col0 + col1 * 62 AS col1 FROM tab0 AS cor0
----
5329
5642
6012

query I rowsort
SELECT - 92 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

query I rowsort
SELECT + + 23 + col2 * 73 FROM tab1 AS cor0
----
3965
4184
7031

query I rowsort
SELECT DISTINCT ( + col0 + - col2 ) FROM tab2
----
-20
41
52

query I rowsort
SELECT - tab2.col1 + + tab2.col0 FROM tab2
----
-24
19
62

query I rowsort
SELECT ( - tab1.col1 ) + col0 FROM tab1
----
-23
54
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 0 col0 FROM tab2
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8651
SELECT col0 DIV - col0 + col1 * - col0 FROM tab2
----
-1344
-218
-4603

skipif mysql # not compatible
query I rowsort label-8651
SELECT col0 / - col0 + col1 * - col0 FROM tab2
----
-1344
-218
-4603

onlyif mysql # use DIV operator for integer division
query I rowsort label-8652
SELECT cor0.col0 DIV col0 + 29 * + col1 col2 FROM tab2 cor0
----
1712
494
900

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8652
SELECT cor0.col0 / col0 + 29 * + col1 col2 FROM tab2 cor0
----
1712
494
900

query I rowsort
SELECT DISTINCT + col1 + 27 FROM tab1 AS cor0
----
37
40
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * 86 col1 FROM tab2 AS cor0
----
1462
2666
5074

query I rowsort
SELECT DISTINCT cor0.col2 + col0 * - col0 AS col1 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT DISTINCT col1 * col1 + col0 * + col1 FROM tab1 AS cor0
----
1209
740
754

query I rowsort
SELECT ALL + + col1 * + 24 + cor0.col0 FROM tab1 AS cor0
----
304
392
627

query I rowsort
SELECT ALL - + cor0.col1 + - col1 * + 42 * - cor0.col1 FROM tab0 AS cor0
----
310546
347711
395081

onlyif mysql # use DIV operator for integer division
query I rowsort label-8659
SELECT ALL - col1 DIV 77 - - ( col1 ) FROM tab0 AS cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-8659
SELECT ALL - col1 / 77 - - ( col1 ) FROM tab0 AS cor0
----
85
90
96

query I rowsort
SELECT + col2 + + ( col2 * col2 ) FROM tab1 cor0
----
2970
3306
9312

query I rowsort
SELECT col0 * col0 * col2 + col2 AS col1 FROM tab2 AS cor0
----
1350
158210
237196

query I rowsort
SELECT DISTINCT + col2 + + 25 * - col2 FROM tab1 AS cor0
----
-1296
-1368
-2304

query I rowsort
SELECT DISTINCT - col1 - - tab0.col1 AS col2 FROM tab0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8664
SELECT ALL col1 DIV col1 - + col0 * + 84 FROM tab2
----
-587
-6551
-6635

skipif mysql # not compatible
query I rowsort label-8664
SELECT ALL col1 / col1 - + col0 * + 84 FROM tab2
----
-587
-6551
-6635

query I rowsort
SELECT + 24 + + col1 + col1 FROM tab1
----
44
50
76

query I rowsort
SELECT 93 + col1 + + col0 FROM tab1
----
122
167
186

query I rowsort
SELECT ALL - cor0.col0 * - cor0.col0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4829ede06f586935ff95a5b0dfdb9199

query I rowsort
SELECT tab1.col2 + + 74 FROM tab1
----
128
131
170

query I rowsort
SELECT - col1 + tab0.col2 * - tab0.col1 + col2 * - 14 AS col1 FROM tab0
----
-208
-3386
-8701

query I rowsort
SELECT - 8 * + col2 AS col2 FROM tab2 AS cor0
----
-208
-216
-304

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + col2 * - col0 * - col2 col2 FROM tab1
----
207872
737200
8745

query I rowsort
SELECT DISTINCT + + col0 - col0 AS col2 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + 13 col2 FROM tab1 cor0
----
-51
-67
10

query I rowsort
SELECT - 10 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to bb7f754a7a056e665155ed52a63f5bc0

query I rowsort
SELECT DISTINCT ( + col1 ) * + ( - col1 ) AS col2 FROM tab0
----
-7396
-8281
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-8676
SELECT DISTINCT col2 * col0 DIV - 97 FROM tab0
----
-75
-8
0

skipif mysql # not compatible
query I rowsort label-8676
SELECT DISTINCT col2 * col0 / - 97 FROM tab0
----
-75
-8
0

query I rowsort
SELECT + + col0 * ( 25 ) FROM tab1 AS cor0
----
1600
2000
75

query I rowsort
SELECT - 0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT + col0 * col2 * cor0.col2 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT - col2 + + 93 FROM tab1 cor0
----
-3
36
39

query I rowsort
SELECT - + 47 + col1 AS col1 FROM tab0 AS cor0
----
39
44
50

query I rowsort
SELECT col2 * col0 + col0 AS col1 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT 5 AS col1 FROM tab0 AS cor0
----
5
5
5

query I rowsort
SELECT - ( 21 ) * + cor0.col1 + + 30 * - col0 FROM tab0 AS cor0
----
-2526
-3087
-4581

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8685
SELECT - + CAST( NULL AS SIGNED ) - col2 * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8685
SELECT - + CAST ( NULL AS INTEGER ) - col2 * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 * + 29 AS col0 FROM tab1 AS cor0
----
1566
1653
2784

query I rowsort
SELECT - 78 + 41 * col2 FROM tab2 AS cor0
----
1029
1480
988

query I rowsort
SELECT - col1 - - col0 * - col0 AS col2 FROM tab1 AS cor0
----
-35
-4106
-6413

query I rowsort
SELECT - col2 * + col2 + ( - col2 ) FROM tab0 AS cor0
----
-1122
-2
-6806

query I rowsort
SELECT - ( col1 ) * - col1 * ( col2 + + col1 ) AS col2 FROM tab1
----
18421
54080
6700

query I rowsort
SELECT - 35 + - col2 FROM tab0 AS cor0
----
-117
-36
-68

query I rowsort
SELECT col1 * + col0 * 4 FROM tab0
----
13580
32396
8256

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col2 col2 FROM tab2 cor0
----
-1534
-646
-837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8694
SELECT ALL - ( col2 ) * - CAST( - 71 AS SIGNED ) col0 FROM tab2 AS cor0
----
-1846
-1917
-2698

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8694
SELECT ALL - ( col2 ) * - CAST ( - 71 AS INTEGER ) col0 FROM tab2 AS cor0
----
-1846
-1917
-2698

query I rowsort
SELECT DISTINCT - - col0 + - col2 * col1 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT DISTINCT + - 15 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
105
1170
1185

query I rowsort
SELECT DISTINCT + col1 + - cor0.col2 * - cor0.col0 + + col1 * col0 FROM tab0 AS cor0
----
15488
2942
3527

query I rowsort
SELECT DISTINCT + col0 + col0 * ( + col0 * - col1 ) + col0 AS col0 FROM tab2 AS cor0
----
-105939
-1505
-358800

query I rowsort
SELECT ALL 5 * col2 * + ( + col2 ) AS col0 FROM tab2 AS cor0
----
3380
3645
7220

query I rowsort
SELECT - 38 AS col1 FROM tab0 AS cor0
----
-38
-38
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * + ( + ( + col2 ) ) + ( cor0.col1 ) * - col0 col1 FROM tab0 AS cor0
----
-3298
-637
774

query I rowsort
SELECT ALL cor0.col2 * - ( + col2 ) FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT - + cor0.col1 + - 20 FROM tab0 AS cor0
----
-106
-111
-117

query I rowsort
SELECT - col0 + ( 48 ) AS col0 FROM tab1 cor0
----
-16
-32
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-8705
SELECT ALL 75 DIV col0 AS col0 FROM tab0
----
0
2
3

skipif mysql # not compatible
query I rowsort label-8705
SELECT ALL 75 / col0 AS col0 FROM tab0
----
0
2
3

query I rowsort
SELECT DISTINCT + col0 + col0 * - col0 AS col0 FROM tab1 AS cor0
----
-4032
-6
-6320

query I rowsort
SELECT DISTINCT + col1 * - 77 AS col1 FROM tab0 AS cor0
----
-6622
-7007
-7469

query I rowsort
SELECT ALL + + col0 * 27 * col0 + col2 FROM tab1 AS cor0
----
110649
172896
297

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 71 col2 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to 3907e0aa4f29c002120742c4abb3e23a

query I rowsort
SELECT ALL - col2 + col2 * ( + 47 ) FROM tab1
----
2484
2622
4416

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8711
SELECT - tab2.col2 + col0 * CAST( NULL AS SIGNED ) + - col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8711
SELECT - tab2.col2 + col0 * CAST ( NULL AS INTEGER ) + - col0 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - ( col2 ) * + col0 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL - 37 + + cor0.col0 FROM tab2 AS cor0
----
-30
41
42

query I rowsort
SELECT ( - ( + cor0.col2 ) ) AS col0 FROM tab2 AS cor0
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-8715
SELECT 65 DIV + col0 col2 FROM tab2
----
0
0
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8715
SELECT 65 / + col0 col2 FROM tab2
----
0
0
9

query I rowsort
SELECT - ( 15 ) AS col2 FROM tab2 AS cor0
----
-15
-15
-15

query I rowsort
SELECT 6 + col1 - + col2 FROM tab0
----
102
15
59

query I rowsort
SELECT + ( - col1 ) + col1 AS col0 FROM tab2
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8719
SELECT + col2 + 94 * + col2 + - CAST( ( col2 ) AS SIGNED ) FROM tab1
----
5076
5358
9024

skipif mysql # not compatible
query I rowsort label-8719
SELECT + col2 + 94 * + col2 + - CAST ( ( col2 ) AS INTEGER ) FROM tab1
----
5076
5358
9024

query I rowsort
SELECT - col0 - - tab2.col0 FROM tab2
----
0
0
0

query I rowsort
SELECT 54 * - 11 + col1 + col1 AS col2 FROM tab2
----
-476
-532
-560

query I rowsort
SELECT - ( 21 ) * - col2 FROM tab0 AS cor0
----
1722
21
693

onlyif mysql # use DIV operator for integer division
query I rowsort label-8723
SELECT DISTINCT + 73 DIV - col2 + + col1 col2 FROM tab0 AS cor0
----
24
84
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8723
SELECT DISTINCT + 73 / - col2 + + col1 col2 FROM tab0 AS cor0
----
24
84
91

query I rowsort
SELECT ALL 92 * + col1 - - col1 AS col0 FROM tab0 AS cor0
----
7998
8463
9021

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8725
SELECT ALL CAST( NULL AS SIGNED ) * + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8725
SELECT ALL CAST ( NULL AS INTEGER ) * + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 95 * + 49 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
4658
4719
4735

onlyif mysql # use DIV operator for integer division
query I rowsort label-8727
SELECT DISTINCT + - ( - col1 ) DIV + col0 + 31 FROM tab1 AS cor0
----
31
39

skipif mysql # not compatible
query I rowsort label-8727
SELECT DISTINCT + - ( - col1 ) / + col0 + 31 FROM tab1 AS cor0
----
31
39

query I rowsort
SELECT + 2 * 85 * + col2 FROM tab0 AS cor0
----
13940
170
5610

query I rowsort
SELECT DISTINCT + + col0 * col1 + col1 FROM tab0 AS cor0
----
2150
3492
8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-8730
SELECT ALL - 51 + + col0 DIV col2 - - 11 * - col1 col0 FROM tab1 AS cor0
----
-160
-194
-337

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8730
SELECT ALL - 51 + + col0 / col2 - - 11 * - col1 col0 FROM tab1 AS cor0
----
-160
-194
-337

query I rowsort
SELECT ALL + 46 + - col1 FROM tab1 AS cor0
----
20
33
36

onlyif mysql # use DIV operator for integer division
query I rowsort label-8732
SELECT - ( + col1 ) DIV - col0 AS col2 FROM tab0 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-8732
SELECT - ( + col1 ) / - col0 AS col2 FROM tab0 AS cor0
----
1
2
3

query I rowsort
SELECT DISTINCT + col0 * - 85 FROM tab2 AS cor0
----
-595
-6630
-6715

query I rowsort
SELECT ALL - col1 + - col0 + col1 AS col2 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT ( col1 ) + - col2 * 7 * + 45 + col1 * col2 AS col0 FROM tab1 AS cor0
----
-15580
-17375
-28979

query I rowsort
SELECT + col2 * - cor0.col2 + col1 * 76 FROM tab0 AS cor0
----
192
5447
7371

query I rowsort
SELECT 88 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to c46e7cf9bf516fdfde88534336a28177

query I rowsort
SELECT - + col1 + + 6 + - 38 * - col0 AS col2 FROM tab2 AS cor0
----
241
2911
2991

query I rowsort
SELECT - - col1 + cor0.col0 AS col0 FROM tab0 AS cor0
----
110
132
180

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8740
SELECT ALL + col0 * CAST( - ( col1 ) + - 5 AS SIGNED ) col0 FROM tab2 AS cor0
----
-1738
-252
-4992

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8740
SELECT ALL + col0 * CAST ( - ( col1 ) + - 5 AS INTEGER ) col0 FROM tab2 AS cor0
----
-1738
-252
-4992

onlyif mysql # use DIV operator for integer division
query I rowsort label-8741
SELECT DISTINCT cor0.col0 DIV ( - col0 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8741
SELECT DISTINCT cor0.col0 / ( - col0 ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT cor0.col2 * - 7 FROM tab0 AS cor0
----
-231
-574
-7

query I rowsort
SELECT ALL + col2 + - 97 + + 79 FROM tab1 AS cor0
----
36
39
78

query I rowsort
SELECT - - cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT ALL + col0 + - col1 * 67 AS col2 FROM tab2
----
-1060
-2070
-3875

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8746
SELECT ALL - col1 + CAST( col0 AS SIGNED ) * + tab1.col2 AS col0 FROM tab1
----
136
3638
7667

skipif mysql # not compatible
query I rowsort label-8746
SELECT ALL - col1 + CAST ( col0 AS INTEGER ) * + tab1.col2 AS col0 FROM tab1
----
136
3638
7667

query I rowsort
SELECT col2 * - cor0.col2 AS col2 FROM tab0 cor0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT col1 * cor0.col2 * col1 AS col1 FROM tab2 cor0
----
10982
25947
90506

query I rowsort
SELECT ALL col1 + + 7 FROM tab1 AS cor0
----
17
20
33

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8750
SELECT - col0 * CAST( NULL AS SIGNED ) + + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8750
SELECT - col0 * CAST ( NULL AS INTEGER ) + + col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col0 * + col1 * col1 col2 FROM tab1
----
13520
2028
6400

onlyif mysql # use DIV operator for integer division
query I rowsort label-8752
SELECT DISTINCT + col0 + col2 DIV col2 + - col1 * - ( - tab1.col1 * col0 ) AS col1 FROM tab1
----
-13439
-2024
-6335

skipif mysql # not compatible
query I rowsort label-8752
SELECT DISTINCT + col0 + col2 / col2 + - col1 * - ( - tab1.col1 * col0 ) AS col1 FROM tab1
----
-13439
-2024
-6335

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8753
SELECT - CAST( - col1 AS SIGNED ) + col1 + - 20 col0 FROM tab1 AS cor0
----
0
32
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8753
SELECT - CAST ( - col1 AS INTEGER ) + col1 + - 20 col0 FROM tab1 AS cor0
----
0
32
6

query I rowsort
SELECT 4 FROM tab0, tab0 cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query I rowsort
SELECT ( 89 ) + col1 AS col2 FROM tab2 AS cor0
----
106
120
148

query I rowsort
SELECT ALL + col2 * - 32 + col0 AS col0 FROM tab0 AS cor0
----
-1032
-2535
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( - col2 ) col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT + col1 + + col1 * - 52 AS col2 FROM tab1
----
-1326
-510
-663

query I rowsort
SELECT + 74 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82

query I rowsort
SELECT ALL 80 + tab2.col0 * 2 AS col1 FROM tab2
----
236
238
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 + col0 col0 FROM tab0 AS cor0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-8762
SELECT - + ( - col1 ) DIV 87 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8762
SELECT - + ( - col1 ) / 87 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col0 ) col1 FROM tab1 AS cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 * - col2 col1 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT - + 69 + col2 AS col1 FROM tab1 AS cor0
----
-12
-15
27

query I rowsort
SELECT ALL + 29 AS col0 FROM tab1 AS cor0
----
29
29
29

onlyif mysql # use DIV operator for integer division
query I rowsort label-8767
SELECT + cor0.col1 DIV + 38 + + 69 * col0 DIV col2 AS col0 FROM tab1 AS cor0
----
3
57
77

skipif mysql # not compatible
query I rowsort label-8767
SELECT + cor0.col1 / + 38 + + 69 * col0 / col2 AS col0 FROM tab1 AS cor0
----
3
57
77

query I rowsort
SELECT + col2 + - col1 + + col2 AS col2 FROM tab2 AS cor0
----
-7
23
59

query I rowsort
SELECT + - col1 + 39 AS col1 FROM tab0 AS cor0
----
-47
-52
-58

query I rowsort
SELECT + col2 * - ( + 44 ) * + col0 AS col2 FROM tab2 AS cor0
----
-132088
-8316
-89232

query I rowsort
SELECT cor0.col0 - 7 FROM tab1 cor0
----
-4
57
73

query I rowsort
SELECT DISTINCT + + cor0.col0 + + 95 FROM tab0 AS cor0
----
119
130
184

query I rowsort
SELECT 63 * col2 * 64 + 87 + col0 AS col1 FROM tab1
----
217818
229975
387239

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 92 + col1 + - 37 * + 30 col1 FROM tab1
----
-1005
-1008
-992

onlyif mysql # use DIV operator for integer division
query I rowsort label-8775
SELECT ALL - 85 DIV + col1 + - col1 AS col1 FROM tab0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-8775
SELECT ALL - 85 / + col1 + - col1 AS col1 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT + - col1 - col2 AS col0 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT - col0 + - col1 * 12 + cor0.col2 AS col1 FROM tab0 AS cor0
----
-1023
-1099
-1198

query I rowsort
SELECT + col0 * col2 * + col1 AS col2 FROM tab1 cor0
----
36480
4212
99840

query I rowsort
SELECT ALL - 10 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to bb7f754a7a056e665155ed52a63f5bc0

query I rowsort
SELECT DISTINCT - tab0.col1 * col1 + - col2 AS col1 FROM tab0
----
-7429
-8363
-9410

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8781
SELECT ALL + + col2 / + CAST( NULL AS SIGNED ) + col1 col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8781
SELECT ALL + + col2 / + CAST ( NULL AS INTEGER ) + col1 col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + cor0.col1 * + 76 AS col2 FROM tab1 AS cor0
----
1976
760
988

query I rowsort
SELECT DISTINCT + + col2 + - col1 * - col0 FROM tab1 cor0
----
1136
132
697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + ( col2 ) col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col0 * - col0 + - col2 * + col2 FROM tab2 AS cor0
----
-6760
-7685
-778

query I rowsort
SELECT ALL col0 + col2 * - col1 AS col2 FROM tab1
----
-1168
-1401
-506

query I rowsort
SELECT ALL + col1 + tab1.col2 AS col0 FROM tab1
----
109
67
80

query I rowsort
SELECT - col2 * tab0.col1 AS col0 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT + 68 * cor0.col0 AS col2 FROM tab1 AS cor0
----
204
4352
5440

query I rowsort
SELECT cor0.col2 AS col1 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT DISTINCT col1 + col2 * col0 AS col2 FROM tab0
----
132
7389
878

query I rowsort
SELECT + tab2.col0 * tab2.col2 AS col1 FROM tab2
----
189
2028
3002

query I rowsort
SELECT tab1.col1 - + col0 AS col1 FROM tab1
----
-54
-67
23

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 IN ( col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 < ( col1 )
----
64
10
57
80
13
96

query I rowsort
SELECT - tab1.col2 AS col0 FROM tab1 WHERE NOT col1 > ( NULL )
----

query I rowsort
SELECT col0 * col1 + col1 * tab2.col1 * col0 FROM tab2
----
24174
276120
6944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col0 * + col2 col2 FROM tab1
----
-233472
-486
-614400

query I rowsort
SELECT ALL + tab1.col0 * col0 AS col1 FROM tab1 WHERE + col2 * - col1 - - col0 NOT IN ( - col2 + col0 )
----
4096
6400
9

query I rowsort
SELECT DISTINCT col0 - + tab0.col2 * col2 AS col2 FROM tab0
----
-1065
-6635
34

query I rowsort
SELECT col1 * col1 FROM tab1 WHERE NOT + col0 * + col1 * - col2 <= NULL
----

query I rowsort
SELECT - col1 * col2 * + col2 FROM tab2 WHERE NULL <> NULL
----

query I rowsort
SELECT ALL + col0 * - col0 + tab1.col0 AS col2 FROM tab1
----
-4032
-6
-6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-8804
SELECT + col1 * - col0 DIV col0 AS col0 FROM tab0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-8804
SELECT + col1 * - col0 / col0 AS col0 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT + col1 + - col2 + col0 FROM tab0
----
131
77
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-8806
SELECT DISTINCT - tab0.col1 DIV + col2 FROM tab0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-8806
SELECT DISTINCT - tab0.col1 / + col2 FROM tab0
----
-1
-2
-97

query I rowsort
SELECT col2 + + col2 * col0 + - col1 * col0 AS col1 FROM tab1
----
138
3065
6736

onlyif mysql # use DIV operator for integer division
query I rowsort label-8808
SELECT DISTINCT + col0 DIV col1 col1 FROM tab2
----
0
1
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8808
SELECT DISTINCT + col0 / col1 col1 FROM tab2
----
0
1
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-8809
SELECT tab2.col0 * ( + col2 ) DIV + col1 + + col1 AS col2 FROM tab2
----
193
37
93

skipif mysql # not compatible
query I rowsort label-8809
SELECT tab2.col0 * ( + col2 ) / + col1 + + col1 AS col2 FROM tab2
----
193
37
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-8810
SELECT CAST( + col2 AS SIGNED ) DIV - col1 - - tab2.col0 * col1 FROM tab2
----
1341
217
4602

skipif mysql # not compatible
query I rowsort label-8810
SELECT CAST ( + col2 AS INTEGER ) / - col1 - - tab2.col0 * col1 FROM tab2
----
1341
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-8811
SELECT ( 96 ) + col0 * 72 DIV + col2 FROM tab0
----
148
174
2616

skipif mysql # not compatible
query I rowsort label-8811
SELECT ( 96 ) + col0 * 72 / + col2 FROM tab0
----
148
174
2616

query I rowsort
SELECT 97 * 79 FROM tab1 AS cor0
----
7663
7663
7663

query I rowsort
SELECT - 92 * + col0 FROM tab2 AS cor0
----
-644
-7176
-7268

query I rowsort
SELECT + col0 * + col0 + col2 FROM tab1
----
4153
63
6496

query I rowsort
SELECT DISTINCT - ( + col2 ) * - ( ( + cor0.col2 ) ) AS col1 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT - 24 * col0 * - col0 AS col0 FROM tab2 AS cor0
----
1176
146016
149784

query I rowsort
SELECT + + col0 * col0 + - ( + col2 ) FROM tab2 cor0
----
22
6058
6203

query I rowsort
SELECT DISTINCT - - cor0.col2 * - col2 + col2 FROM tab1 AS cor0
----
-2862
-3192
-9120

query I rowsort
SELECT DISTINCT - col1 - + col1 AS col2 FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT + 60 * col0 + cor0.col0 AS col1 FROM tab2 AS cor0
----
427
4758
4819

onlyif mysql # use DIV operator for integer division
query I rowsort label-8821
SELECT ALL ( col2 ) + col1 * - col0 DIV col0 AS col2 FROM tab0 AS cor0
----
-53
-9
-96

skipif mysql # not compatible
query I rowsort label-8821
SELECT ALL ( col2 ) + col1 * - col0 / col0 AS col2 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT ALL col1 + + col2 * - 21 AS col1 FROM tab1
----
-1108
-1187
-2003

query I rowsort
SELECT DISTINCT + 7 AS col0 FROM tab0 AS cor0
----
7

query I rowsort
SELECT ALL + 42 AS col2 FROM tab1 AS cor0
----
42
42
42

query I rowsort
SELECT ALL 0 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT 13 * + col1 FROM tab1 AS cor0
----
130
169
338

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 ALL + - col1 * col0 - + col1 AS col0 FROM tab2 AS cor0
----
-1360
-248
-4661

query I rowsort
SELECT - + col1 * cor0.col0 + ( col0 ) AS col1 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT DISTINCT + 27 FROM tab2 cor0
----
27

query I rowsort
SELECT DISTINCT col0 + + col0 * col1 AS col1 FROM tab1 AS cor0
----
1120
704
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-8832
SELECT ALL - + col2 * col2 DIV + ( col0 * + col1 ) - - ( col1 ) FROM tab2 cor0
----
16
28
59

skipif mysql # not compatible
query I rowsort label-8832
SELECT ALL - + col2 * col2 / + ( col0 * + col1 ) - - ( col1 ) FROM tab2 cor0
----
16
28
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-8833
SELECT - - col2 DIV - 37 AS col1 FROM tab1 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-8833
SELECT - - col2 / - 37 AS col1 FROM tab1 AS cor0
----
-1
-1
-2

query I rowsort
SELECT + - cor0.col1 + 25 * + col0 AS col0 FROM tab1 cor0
----
1590
1987
49

query I rowsort
SELECT - col1 * + col1 + col1 * - cor0.col1 FROM tab2 AS cor0
----
-1922
-578
-6962

query I rowsort
SELECT DISTINCT cor0.col2 + ( cor0.col1 ) * col1 AS col1 FROM tab1 cor0
----
157
265
730

query I rowsort
SELECT DISTINCT - col0 + - 47 * col2 FROM tab0 AS cor0
----
-1575
-3943
-82

query I rowsort
SELECT DISTINCT + col0 * - 75 * - cor0.col2 + cor0.col0 * + col1 AS col2 FROM tab0 AS cor0
----
555449
6020
61464

query I rowsort
SELECT + col2 + 91 * + col0 FROM tab0 AS cor0
----
2217
3186
8181

query I rowsort
SELECT - col2 * + 66 AS col0 FROM tab0 AS cor0
----
-2178
-5412
-66

query I rowsort
SELECT ALL + cor0.col1 * 81 + + col2 FROM tab0 AS cor0
----
6999
7453
7858

query I rowsort
SELECT ALL + + col0 + + ( - col1 * ( 84 ) ) FROM tab1 cor0
----
-1012
-2181
-776

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8843
SELECT ALL - CAST( NULL AS SIGNED ) + - col2 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8843
SELECT ALL - CAST ( NULL AS INTEGER ) + - col2 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( + cor0.col1 ) + col2 * + col2 FROM tab1 AS cor0
----
2890
3239
9203

query I rowsort
SELECT + cor0.col2 FROM tab2, tab0 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05

query I rowsort
SELECT DISTINCT - 11 * col2 AS col1 FROM tab0 AS cor0
----
-11
-363
-902

query I rowsort
SELECT ALL - 51 FROM tab0, tab0 AS cor0
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

query I rowsort
SELECT ALL cor0.col1 + col2 + col1 FROM tab2 AS cor0
----
144
72
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8849
SELECT col0 + - CAST( NULL AS SIGNED ) * 21 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8849
SELECT col0 + - CAST ( NULL AS INTEGER ) * 21 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT cor0.col2 * col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-8851
SELECT + col2 + col0 DIV + col2 + - col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8851
SELECT + col2 + col0 / + col2 + - col2 FROM tab1
----
0
0
1

query I rowsort
SELECT DISTINCT + + ( col0 ) * - 64 FROM tab1 AS cor0
----
-192
-4096
-5120

query I rowsort
SELECT col1 + - col0 + col1 FROM tab0 AS cor0
----
148
159
93

query I rowsort
SELECT ALL 23 * - col2 AS col0 FROM tab1 AS cor0
----
-1242
-1311
-2208

query I rowsort
SELECT + col1 + + cor0.col0 * 61 FROM tab1 AS cor0
----
209
3914
4893

query I rowsort
SELECT DISTINCT + col0 * col1 + 93 + - ( + col0 ) FROM tab0 AS cor0
----
2133
3453
8103

query I rowsort
SELECT 39 * - col0 + cor0.col1 FROM tab0 AS cor0
----
-1268
-3380
-850

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 4 col2 FROM tab1 AS cor0
----
4
4
4

query I rowsort
SELECT ALL - col0 * + col2 + col0 FROM tab1 AS cor0
----
-159
-3584
-7600

onlyif mysql # use DIV operator for integer division
query I rowsort label-8860
SELECT 90 DIV col2 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8860
SELECT 90 / col2 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT DISTINCT - - 91 + col2 AS col1 FROM tab1 AS cor0
----
145
148
187

query I rowsort
SELECT ALL - col2 + 79 FROM tab2 AS cor0
----
41
52
53

query I rowsort
SELECT - - col2 * 43 + col0 * col0 * - col1 AS col2 FROM tab2 AS cor0
----
-104463
-357838
-358

query I rowsort
SELECT - + col1 * - 81 AS col1 FROM tab2 AS cor0
----
1377
2511
4779

onlyif mysql # use DIV operator for integer division
query I rowsort label-8865
SELECT - cor0.col1 DIV + 54 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8865
SELECT - cor0.col1 / + 54 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8866
SELECT DISTINCT - - col0 * CAST( col2 AS SIGNED ) * col2 FROM tab2 AS cor0
----
114076
5103
52728

skipif mysql # not compatible
query I rowsort label-8866
SELECT DISTINCT - - col0 * CAST ( col2 AS INTEGER ) * col2 FROM tab2 AS cor0
----
114076
5103
52728

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8867
SELECT + col0 + col2 * - CAST( + col1 AS SIGNED ) FROM tab0
----
-2814
-62
-7373

skipif mysql # not compatible
query I rowsort label-8867
SELECT + col0 + col2 * - CAST ( + col1 AS INTEGER ) FROM tab0
----
-2814
-62
-7373

query I rowsort
SELECT col0 - - col1 * + col2 * col1 FROM tab2
----
11061
25954
90584

query I rowsort
SELECT + 79 - 81 FROM tab0 AS cor0
----
-2
-2
-2

query I rowsort
SELECT - + 79 * - 9 - - col2 * - col1 FROM tab2 AS cor0
----
-126
-823
65

query I rowsort
SELECT DISTINCT - ( - 55 ) - col2 FROM tab0 AS cor0
----
-27
22
54

query I rowsort
SELECT ALL col1 - col1 * - col1 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT DISTINCT + - 93 + + col2 * col0 FROM tab1 AS cor0
----
3555
69
7587

query I rowsort
SELECT + 55 - + col0 FROM tab0 cor0
----
-34
20
31

onlyif mysql # use DIV operator for integer division
query I rowsort label-8875
SELECT + 45 DIV - col0 - - col2 AS col2 FROM tab1
----
39
57
96

skipif mysql # not compatible
query I rowsort label-8875
SELECT + 45 / - col0 - - col2 AS col2 FROM tab1
----
39
57
96

query I rowsort
SELECT + 88 * 78 FROM tab1
----
6864
6864
6864

query I rowsort
SELECT ( 50 ) - + col1 * col0 AS col0 FROM tab0
----
-2014
-3345
-8049

query I rowsort
SELECT DISTINCT - 91 + col2 AS col1 FROM tab0 cor0
----
-58
-9
-90

query I rowsort
SELECT - col0 * - col0 + col1 * 54 FROM tab1 AS cor0
----
1413
4636
7102

query I rowsort
SELECT ALL + ( - col0 ) + col0 + - 51 AS col1 FROM tab1 cor0
----
-51
-51
-51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8881
SELECT - ( 72 ) * col2 / CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8881
SELECT - ( 72 ) * col2 / CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col2 + col2 col1 FROM tab1
----
111
178
272

query I rowsort
SELECT + 57 + ( + col0 ) + ( col1 ) AS col0 FROM tab0
----
167
189
237

onlyif mysql # use DIV operator for integer division
query I rowsort label-8884
SELECT + 10 + 47 DIV col0 - + CAST( - col1 AS SIGNED ) AS col2 FROM tab1
----
20
23
51

skipif mysql # not compatible
query I rowsort label-8884
SELECT + 10 + 47 / col0 - + CAST ( - col1 AS INTEGER ) AS col2 FROM tab1
----
20
23
51

query I rowsort
SELECT + col0 + - col2 - col0 AS col2 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT + + col0 + + col2 AS col1 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT + ( + col1 ) * - col0 FROM tab1
----
-1040
-640
-78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8888
SELECT ALL ( col1 * - CAST( + 45 AS SIGNED ) ) FROM tab2
----
-1395
-2655
-765

skipif mysql # not compatible
query I rowsort label-8888
SELECT ALL ( col1 * - CAST ( + 45 AS INTEGER ) ) FROM tab2
----
-1395
-2655
-765

query I rowsort
SELECT ALL ( - cor0.col0 ) + - ( col1 ) AS col1 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT ALL - + 71 AS col2 FROM tab0 AS cor0
----
-71
-71
-71

query I rowsort
SELECT cor0.col0 * - col0 * - col1 - + col2 * - col1 * + col1 AS col0 FROM tab2 AS cor0
----
117079
27466
449462

onlyif mysql # use DIV operator for integer division
query I rowsort label-8892
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-8892
SELECT col1 / + col1 col1 FROM tab0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-8893
SELECT + 85 DIV - col0 FROM tab0
----
-2
-3
0

skipif mysql # not compatible
query I rowsort label-8893
SELECT + 85 / - col0 FROM tab0
----
-2
-3
0

query I rowsort
SELECT DISTINCT - + col0 - + col1 AS col2 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT ALL - cor0.col1 * tab2.col1 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to ec78ec5613a97992c479f6a19b49c758

query I rowsort
SELECT col0 + 20 FROM tab1
----
100
23
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( tab0.col2 ) col2 FROM tab0, tab2 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT DISTINCT col1 * 24 AS col2 FROM tab2
----
1416
408
744

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 45 col1 FROM tab1 AS cor0
----
135
2880
3600

query I rowsort
SELECT 65 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 1c9d0bf96cd3361942fadad668138b9c

query I rowsort
SELECT 32 AS col1 FROM tab2 AS cor0
----
32
32
32

query I rowsort
SELECT ALL + ( col2 ) AS col2 FROM tab1 cor0
----
54
57
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8903
SELECT DISTINCT CAST( col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-8903
SELECT DISTINCT CAST ( col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT - col0 + - col0 + col2 FROM tab2 AS cor0
----
-120
-130
13

query I rowsort
SELECT ALL - 13 - + col1 * - col0 FROM tab2 AS cor0
----
1330
204
4589

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8906
SELECT CAST( 29 AS SIGNED ) + - col2 col0 FROM tab1 AS cor0
----
-25
-28
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8906
SELECT CAST ( 29 AS INTEGER ) + - col2 col0 FROM tab1 AS cor0
----
-25
-28
-67

query I rowsort
SELECT DISTINCT col1 + col2 * col2 FROM tab2 cor0
----
1461
735
760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8908
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8908
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col0 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( col1 ) col1 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT col2 * - cor0.col1 AS col1 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL + + cor0.col0 + - col0 * col1 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT ALL col0 * col1 + col0 AS col2 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT cor0.col1 * - 10 AS col2 FROM tab2 AS cor0
----
-170
-310
-590

query I rowsort
SELECT + col2 + + 95 FROM tab2 AS cor0
----
121
122
133

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * cor0.col2 - - cor0.col2 * cor0.col0 col0 FROM tab1 AS cor0
----
16896
3078
6897

query I rowsort
SELECT - col2 * col2 - + 26 * - col1 FROM tab1 AS cor0
----
-2240
-2989
-8878

query I rowsort
SELECT col0 * + ( - 54 ) + col0 * col2 - + col0 FROM tab1
----
-3
128
3280

onlyif mysql # use DIV operator for integer division
query I rowsort label-8918
SELECT DISTINCT col0 DIV + 97 - col1 FROM tab2
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-8918
SELECT DISTINCT col0 / + 97 - col1 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT col0 * ( - 53 + col2 ) * 21 FROM tab0
----
-10080
-38220
54201

query I rowsort
SELECT DISTINCT col0 - + 41 FROM tab0
----
-17
-6
48

query I rowsort
SELECT col1 + - col1 * - col1 AS col0 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT - + ( col0 ) * + col1 * - col2 + col0 * + col1 * col0 FROM tab2 AS cor0
----
157131
478608
7378

query I rowsort
SELECT ALL - - 87 FROM tab1 cor0
----
87
87
87

query I rowsort
SELECT - col1 - + 20 AS col2 FROM tab2 AS cor0
----
-37
-51
-79

query I rowsort
SELECT DISTINCT col1 * - col0 + cor0.col1 * col2 AS col2 FROM tab1 cor0
----
-70
1326
208

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( - col2 ) + col2 col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT 80 * - 12 AS col1 FROM tab2 AS cor0
----
-960
-960
-960

query I rowsort
SELECT + + 57 - 18 FROM tab1 AS cor0
----
39
39
39

query I rowsort
SELECT ALL col0 + 88 * col2 FROM tab2 AS cor0
----
2366
2383
3423

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + 18 col1 FROM tab1 AS cor0
----
114
72
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col2 * col1 col2 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT ALL + col0 * - 27 FROM tab0
----
-2403
-648
-945

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 17 * col0 col2 FROM tab1 AS cor0
----
1088
1360
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 26 col1 FROM tab0
----
-26
-26
-26

query I rowsort
SELECT - - 83 + cor0.col1 AS col1 FROM tab2 AS cor0
----
100
114
142

query I rowsort
SELECT ALL - ( - cor1.col0 ) FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT + col2 + cor0.col2 * - col0 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT ( col1 ) + - 80 FROM tab2 AS cor0
----
-21
-49
-63

query I rowsort
SELECT + col1 + - 67 * - 92 * col1 FROM tab2 AS cor0
----
104805
191115
363735

onlyif mysql # use DIV operator for integer division
query I rowsort label-8940
SELECT ALL 74 DIV col0 FROM tab1
----
0
1
24

skipif mysql # not compatible
query I rowsort label-8940
SELECT ALL 74 / col0 FROM tab1
----
0
1
24

query I rowsort
SELECT col2 * 3 FROM tab1 cor0
----
162
171
288

query I rowsort
SELECT + col0 * 15 FROM tab2 AS cor0
----
105
1170
1185

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8943
SELECT DISTINCT + col0 * CAST( col1 + + col1 AS SIGNED ) FROM tab0 AS cor0
----
16198
4128
6790

skipif mysql # not compatible
query I rowsort label-8943
SELECT DISTINCT + col0 * CAST ( col1 + + col1 AS INTEGER ) FROM tab0 AS cor0
----
16198
4128
6790

onlyif mysql # use DIV operator for integer division
query I rowsort label-8944
SELECT DISTINCT col2 DIV - ( col1 ) FROM tab2 AS cor0
----
-2
0

skipif mysql # not compatible
query I rowsort label-8944
SELECT DISTINCT col2 / - ( col1 ) FROM tab2 AS cor0
----
-2
0

query I rowsort
SELECT - + col0 + - col0 * col1 FROM tab1 AS cor0
----
-1120
-704
-81

query I rowsort
SELECT DISTINCT + col2 + col1 * + col2 * - col2 AS col2 FROM tab2 cor0
----
-22572
-24510
-39858

query I rowsort
SELECT ALL - 47 * col2 AS col0 FROM tab0
----
-1551
-3854
-47

query I rowsort
SELECT ALL col0 * + col0 * tab2.col0 FROM tab2
----
343
474552
493039

query I rowsort
SELECT ALL - col0 * 24 FROM tab2 cor0
----
-168
-1872
-1896

query I rowsort
SELECT DISTINCT + - col0 * - cor0.col1 + + col0 * col2 FROM tab2 cor0
----
406
4345
6630

query I rowsort
SELECT DISTINCT - col2 - + col0 * col1 AS col2 FROM tab1 AS cor0
----
-1136
-132
-697

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8952
SELECT ALL + - col2 * CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8952
SELECT ALL + - col2 * CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 * + col2 + 0 + + col0 AS col0 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT + col1 + 62 * 33 * col0 AS col2 FROM tab0 cor0
----
182185
49190
71707

query I rowsort
SELECT - cor0.col1 * 34 FROM tab2 AS cor0
----
-1054
-2006
-578

query I rowsort
SELECT ALL + ( 59 ) * col0 * - tab2.col1 + ( col1 ) FROM tab2
----
-12772
-271459
-79220

query I rowsort
SELECT - 1 + col0 + + col1 AS col1 FROM tab1
----
28
73
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-8958
SELECT ALL + col0 * col2 DIV col1 FROM tab2
----
176
34
6

skipif mysql # not compatible
query I rowsort label-8958
SELECT ALL + col0 * col2 / col1 FROM tab2
----
176
34
6

query I rowsort
SELECT - ( - 4 ) + - col2 + - ( 0 ) FROM tab0 AS cor0
----
-29
-78
3

query I rowsort
SELECT + + 52 + col1 FROM tab1 AS cor0
----
62
65
78

query I rowsort
SELECT col0 + - col0 + - col2 FROM tab1 cor0
----
-54
-57
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col0 + - col2 * + col0 col2 FROM tab1 AS cor0
----
-14080
-171
-7744

query I rowsort
SELECT + + 41 FROM tab1 cor0
----
41
41
41

query I rowsort
SELECT ALL - col2 * + col1 + - col2 AS col2 FROM tab0 AS cor0
----
-2871
-7544
-98

query I rowsort
SELECT + + col2 * + col2 + cor0.col2 AS col0 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT DISTINCT - col1 + 91 AS col2 FROM tab1
----
65
78
81

query I rowsort
SELECT ALL col1 + + ( + col2 ) FROM tab2
----
55
58
85

query I rowsort
SELECT 29 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT - ( 48 ) + - col0 AS col0 FROM tab0 AS cor0
----
-137
-72
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-8970
SELECT cor0.col0 + + ( + cor0.col1 ) * col0 DIV 81 AS col1 FROM tab2 AS cor0
----
134
9
95

skipif mysql # not compatible
query I rowsort label-8970
SELECT cor0.col0 + + ( + cor0.col1 ) * col0 / 81 AS col1 FROM tab2 AS cor0
----
134
9
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + cor0.col0 col1 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT - tab2.col0 AS col1 FROM tab2, tab0, tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ALL + tab0.col2 * + col2 + col1 FROM tab0
----
1175
6815
98

query I rowsort
SELECT ALL + col0 * - col2 * + tab1.col1 + + col2 FROM tab1
----
-36423
-4158
-99744

query I rowsort
SELECT col1 * 80 + col0 + + tab1.col1 * + 84 AS col1 FROM tab1
----
1704
2212
4267

query I rowsort
SELECT - 12 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8977
SELECT DISTINCT + CAST( col2 AS SIGNED ) AS col0 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-8977
SELECT DISTINCT + CAST ( col2 AS INTEGER ) AS col0 FROM tab0
----
1
33
82

query I rowsort
SELECT ALL + ( 55 ) * cor0.col2 + 25 FROM tab1 AS cor0
----
2995
3160
5305

query I rowsort
SELECT ALL + 17 * ( + col2 + + 9 * - col0 ) FROM tab0 AS cor0
----
-12223
-3111
-5338

query I rowsort
SELECT DISTINCT - - cor0.col2 - - col2 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT ALL + - col0 + 92 FROM tab0 AS cor0
----
3
57
68

query I rowsort
SELECT 34 + + col1 * - col1 FROM tab0 AS cor0
----
-7362
-8247
-9375

query I rowsort
SELECT + - col2 * cor0.col0 * col2 - + ( col2 ) * col1 FROM tab2 AS cor0
----
-114722
-54262
-5940

query I rowsort
SELECT - + col0 + col0 * - col2 AS col0 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT DISTINCT - col2 * - 64 AS col1 FROM tab0 AS cor0
----
2112
5248
64

query I rowsort
SELECT ALL - cor0.col1 * - col0 + col0 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT + ( + 4 ) + col0 AS col0 FROM tab0 cor0
----
28
39
93

query I rowsort
SELECT ALL - - col2 * - col0 - - cor0.col0 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT ALL - 77 * - col0 AS col1 FROM tab0 AS cor0
----
1848
2695
6853

onlyif mysql # use DIV operator for integer division
query I rowsort label-8990
SELECT + - 29 DIV cor0.col0 AS col1 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8990
SELECT + - 29 / cor0.col0 AS col1 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL - + col1 * col2 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-8992
SELECT DISTINCT + + 20 DIV + col1 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-8992
SELECT DISTINCT + + 20 / + col1 FROM tab2 AS cor0
----
0
1

query I rowsort
SELECT DISTINCT + - col1 * + cor0.col2 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-8994
SELECT ALL - cor0.col2 DIV + cor0.col0 AS col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8994
SELECT ALL - cor0.col2 / + cor0.col0 AS col0 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT + - cor0.col1 + 10 AS col2 FROM tab2 AS cor0
----
-21
-49
-7

query I rowsort
SELECT col1 * 42 + + col0 * col0 FROM tab0 AS cor0
----
11743
4188
5299

query I rowsort
SELECT DISTINCT col2 + - cor0.col0 AS col2 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT DISTINCT + + col2 * ( ( - col2 ) ) FROM tab1 cor0
----
-2916
-3249
-9216

query I rowsort
SELECT + 4 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

onlyif mysql # use DIV operator for integer division
query I rowsort label-9000
SELECT - col0 * 51 DIV + col2 FROM tab1 AS cor0
----
-2
-42
-57

skipif mysql # not compatible
query I rowsort label-9000
SELECT - col0 * 51 / + col2 FROM tab1 AS cor0
----
-2
-42
-57

query I rowsort
SELECT + col2 + + 71 FROM tab1 AS cor0
----
125
128
167

skipif mysql # not compatible
query I rowsort
SELECT - col0 * CAST ( + col2 AS REAL ) AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT DISTINCT ( + 48 ) FROM tab1, tab1 AS cor0, tab1 AS cor1
----
48

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9005
SELECT - CAST( NULL AS SIGNED ) + col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9005
SELECT - CAST ( NULL AS INTEGER ) + col1 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9006
SELECT - 12 DIV - col0 + - ( + 32 ) AS col1 FROM tab0 AS cor0
----
-32
-32
-32

skipif mysql # not compatible
query I rowsort label-9006
SELECT - 12 / - col0 + - ( + 32 ) AS col1 FROM tab0 AS cor0
----
-32
-32
-32

query I rowsort
SELECT cor1.col0 FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT 66 + - col2 AS col1 FROM tab0
----
-16
33
65

query I rowsort
SELECT DISTINCT + 49 + col1 FROM tab0 AS cor0
----
135
140
146

query I rowsort
SELECT ALL 72 + col2 + col1 * - 61 FROM tab1 cor0
----
-1460
-481
-625

query I rowsort
SELECT - 84 AS col0 FROM tab2
----
-84
-84
-84

query I rowsort
SELECT ALL + 97 + + cor0.col0 AS col0 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 25c2449f89e7a6b10ba5542426ceba26

query I rowsort
SELECT ALL 70 * col0 FROM tab1 cor0
----
210
4480
5600

onlyif mysql # use DIV operator for integer division
query I rowsort label-9014
SELECT - col0 * 94 DIV col1 + col1 FROM tab0
----
0
60
64

skipif mysql # not compatible
query I rowsort label-9014
SELECT - col0 * 94 / col1 + col1 FROM tab0
----
0
60
64

query I rowsort
SELECT col0 * col0 - col1 FROM tab0
----
1128
490
7830

query I rowsort
SELECT + 68 + col1 AS col1 FROM tab2
----
127
85
99

query I rowsort
SELECT - cor0.col1 * + col0 * - 20 FROM tab0 AS cor0
----
161980
41280
67900

onlyif mysql # use DIV operator for integer division
query I rowsort label-9018
SELECT col0 DIV col0 + 24 * col2 * col2 FROM tab1
----
221185
69985
77977

skipif mysql # not compatible
query I rowsort label-9018
SELECT col0 / col0 + 24 * col2 * col2 FROM tab1
----
221185
69985
77977

query I rowsort
SELECT + 91 + col2 FROM tab1
----
145
148
187

query I rowsort
SELECT ALL + 19 AS col0 FROM tab0 AS cor0
----
19
19
19

query I rowsort
SELECT col0 * col1 + ( 44 ) FROM tab2 AS cor0
----
1387
261
4646

query I rowsort
SELECT DISTINCT - cor0.col2 * col2 - col2 FROM tab0 AS cor0
----
-1122
-2
-6806

query I rowsort
SELECT + col1 - + ( + col0 + - col0 ) * col1 AS col2 FROM tab0
----
86
91
97

query I rowsort
SELECT ALL - col2 + 5 * col0 AS col2 FROM tab1
----
-39
263
304

query I rowsort
SELECT - col1 + 51 * 71 FROM tab2 AS cor0
----
3562
3590
3604

query I rowsort
SELECT - 45 + + col2 AS col0 FROM tab2 cor0
----
-18
-19
-7

query I rowsort
SELECT - col2 + + col1 * + cor0.col0 FROM tab1 AS cor0
----
24
583
944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 12 * ( col0 ) col1 FROM tab1 cor0
----
-36
-768
-960

onlyif mysql # use DIV operator for integer division
query I rowsort label-9029
SELECT col1 DIV 25 FROM tab0 AS cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-9029
SELECT col1 / 25 FROM tab0 AS cor0
----
3
3
3

query I rowsort
SELECT cor0.col0 * col0 AS col0 FROM tab1 AS cor0
----
4096
6400
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + ( - col0 * + tab2.col0 ) col0 FROM tab2
----
-106097
-1519
-358956

query I rowsort
SELECT - col2 * 97 AS col1 FROM tab2
----
-2522
-2619
-3686

query I rowsort
SELECT ( 40 ) AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT DISTINCT col1 * ( col0 ) AS col2 FROM tab1
----
1040
640
78

query I rowsort
SELECT ALL ( + 96 ) FROM tab2 AS cor0
----
96
96
96

query I rowsort
SELECT DISTINCT - + 36 AS col2 FROM tab2 AS cor0
----
-36

query I rowsort
SELECT DISTINCT + 80 * 90 FROM tab1 AS cor0
----
7200

onlyif mysql # use DIV operator for integer division
query I rowsort label-9038
SELECT ALL + - ( ( col2 ) ) DIV ( col0 ) AS col0 FROM tab2 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-9038
SELECT ALL + - ( ( col2 ) ) / ( col0 ) AS col0 FROM tab2 AS cor0
----
-3
0
0

query I rowsort
SELECT tab1.col1 AS col1 FROM tab1, tab2, tab0 cor0, tab0
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c

query I rowsort
SELECT DISTINCT ( + cor0.col2 ) + col1 * col1 AS col1 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT ALL + - 34 FROM tab2 AS cor0
----
-34
-34
-34

onlyif mysql # use DIV operator for integer division
query I rowsort label-9042
SELECT - ( + 86 ) DIV col1 FROM tab2 AS cor0
----
-1
-2
-5

skipif mysql # not compatible
query I rowsort label-9042
SELECT - ( + 86 ) / col1 FROM tab2 AS cor0
----
-1
-2
-5

query I rowsort
SELECT ALL + col1 * 25 * col0 AS col2 FROM tab0 AS cor0
----
202475
51600
84875

query I rowsort
SELECT ALL ( - 0 ) * - col0 + - col2 * - col0 AS col2 FROM tab2
----
189
2028
3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9045
SELECT ALL - CAST( NULL AS DECIMAL ) + col2 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9045
SELECT ALL - CAST ( NULL AS REAL ) + col2 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9046
SELECT col1 + + tab0.col2 DIV col0 AS col1 FROM tab0
----
87
91
97

skipif mysql # not compatible
query I rowsort label-9046
SELECT col1 + + tab0.col2 / col0 AS col1 FROM tab0
----
87
91
97

query I rowsort
SELECT DISTINCT - + 86 * + col2 AS col0 FROM tab1 AS cor0
----
-4644
-4902
-8256

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col2 col1 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT ( col0 ) * col0 * 61 FROM tab2 AS cor0
----
2989
371124
380701

query I rowsort
SELECT ALL col1 + + col1 * ( + 87 ) AS col0 FROM tab2 AS cor0
----
1496
2728
5192

onlyif mysql # use DIV operator for integer division
query I rowsort label-9051
SELECT ALL - - ( - col0 ) DIV + 18 FROM tab1 AS cor0
----
-3
-4
0

skipif mysql # not compatible
query I rowsort label-9051
SELECT ALL - - ( - col0 ) / + 18 FROM tab1 AS cor0
----
-3
-4
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col0 * + 56 col0 FROM tab2 AS cor0
----
399
4446
4503

onlyif mysql # use DIV operator for integer division
query I rowsort label-9053
SELECT 9 DIV - col0 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9053
SELECT 9 / - col0 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT + - 96 * col0 FROM tab0 cor0
----
-2304
-3360
-8544

query I rowsort
SELECT ( tab2.col0 + col1 ) FROM tab2
----
137
38
96

query I rowsort
SELECT ALL + cor0.col1 AS col1 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT ALL col1 * - col0 + - col2 FROM tab2
----
-1381
-244
-4628

query I rowsort
SELECT DISTINCT - col0 * - cor0.col1 + + col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT ALL + - col2 * col0 + - col0 AS col1 FROM tab1 cor0
----
-165
-3712
-7760

query I rowsort
SELECT col2 + - 10 FROM tab2 AS cor0
----
16
17
28

query I rowsort
SELECT ALL - + cor0.col0 * + cor0.col2 * cor0.col2 - - col0 AS col2 FROM tab1 AS cor0
----
-207872
-737200
-8745

query I rowsort
SELECT - col1 - + 84 FROM tab1 AS cor0
----
-110
-94
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-9063
SELECT col2 DIV - col0 - - 96 FROM tab2 AS cor0
----
93
96
96

skipif mysql # not compatible
query I rowsort label-9063
SELECT col2 / - col0 - - 96 FROM tab2 AS cor0
----
93
96
96

query I rowsort
SELECT ALL + - cor0.col2 * 68 + cor0.col1 * - col1 AS col0 FROM tab0 AS cor0
----
-13857
-9477
-9640

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9065
SELECT + cor0.col1 + - CAST( - col2 AS SIGNED ) * + col2 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9065
SELECT + cor0.col1 + - CAST ( - col2 AS INTEGER ) * + col2 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 - - 33 * + col2 AS col2 FROM tab1 AS cor0
----
1779
1817
3088

query I rowsort
SELECT DISTINCT - col1 * + col0 + - cor0.col2 AS col1 FROM tab1 cor0
----
-1136
-132
-697

query I rowsort
SELECT DISTINCT col2 * + 75 FROM tab0 AS cor0
----
2475
6150
75

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9069
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab1, tab0 AS cor0, tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9069
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab1, tab0 AS cor0, tab2 AS cor1
----
NULL

query I rowsort
SELECT ALL - 28 - - col2 * col1 FROM tab2
----
1506
618
809

query I rowsort
SELECT tab2.col1 * - col0 + + ( + tab2.col0 ) - tab2.col1 FROM tab2
----
-1281
-241
-4583

query I rowsort
SELECT DISTINCT 25 - col2 FROM tab1
----
-29
-32
-71

query I rowsort
SELECT + 93 * - col0 + - 29 - + tab2.col2 AS col1 FROM tab2
----
-707
-7309
-7414

query I rowsort
SELECT ALL 73 AS col1 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 3933a906d17a820ccf95467e2206df8f

query I rowsort
SELECT - + 98 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

query I rowsort
SELECT DISTINCT tab1.col2 AS col2 FROM tab1, tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL col1 * + col1 + - col2 AS col0 FROM tab2
----
251
3455
934

query I rowsort
SELECT col2 - ( col0 ) * - col2 * col0 AS col1 FROM tab0 cor0
----
1226
19041
649604

onlyif mysql # use DIV operator for integer division
query I rowsort label-9079
SELECT col2 * - col0 + - col2 DIV col0 FROM tab1 AS cor0
----
-180
-3648
-7681

skipif mysql # not compatible
query I rowsort label-9079
SELECT col2 * - col0 + - col2 / col0 FROM tab1 AS cor0
----
-180
-3648
-7681

query I rowsort
SELECT ALL col2 * cor0.col1 * col0 AS col0 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT DISTINCT - + col1 + - 12 * - col2 FROM tab2 AS cor0
----
253
293
439

query I rowsort
SELECT + col2 * ( col0 ) + col1 FROM tab0 cor0
----
132
7389
878

query I rowsort
SELECT DISTINCT - col1 + col0 * + col2 + - col1 * - col1 FROM tab2
----
1119
3274
5450

query I rowsort
SELECT DISTINCT + 94 * 95 AS col0 FROM tab1, tab1 AS cor0
----
8930

query I rowsort
SELECT ALL + + col0 - + col0 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 66 * + col0 + col2 + + col2 AS col1 FROM tab0 AS cor0
----
1650
2312
6038

query I rowsort
SELECT ALL - + 77 - col0 FROM tab2 AS cor0
----
-155
-156
-84

onlyif mysql # use DIV operator for integer division
query I rowsort label-9088
SELECT ALL col1 + col0 DIV + col1 + cor0.col2 * - col2 * col2 AS col1 FROM tab0 AS cor0
----
-35851
-551277
96

skipif mysql # not compatible
query I rowsort label-9088
SELECT ALL col1 + col0 / + col1 + cor0.col2 * - col2 * col2 AS col1 FROM tab0 AS cor0
----
-35851
-551277
96

query I rowsort
SELECT tab0.col2 + ( + col1 ) * + col0 FROM tab0
----
2097
3396
8181

query I rowsort
SELECT ( - col0 ) * - col2 * - col0 AS col0 FROM tab1
----
-233472
-486
-614400

query I rowsort
SELECT ALL + col1 * col2 + col1 AS col2 FROM tab0
----
194
2924
7553

query I rowsort
SELECT ALL + 44 * col2 FROM tab1 cor0
----
2376
2508
4224

query I rowsort
SELECT DISTINCT - - 31 + col1 + - col0 * cor0.col1 FROM tab1 AS cor0
----
-21
-599
-996

query I rowsort
SELECT DISTINCT - + cor0.col0 + - col1 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT ALL + + col1 + + col0 FROM tab0 AS cor0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-9096
SELECT DISTINCT + col2 DIV col0 + cor0.col0 * cor0.col1 FROM tab1 AS cor0
----
1041
640
96

skipif mysql # not compatible
query I rowsort label-9096
SELECT DISTINCT + col2 / col0 + cor0.col0 * cor0.col1 FROM tab1 AS cor0
----
1041
640
96

query I rowsort
SELECT ALL - col0 * col0 - cor0.col2 FROM tab2 AS cor0
----
-6110
-6279
-76

query I rowsort
SELECT ALL 96 * + tab1.col0 * col1 + + tab1.col2 * col1 + - col1 FROM tab1
----
101075
62000
8866

query I rowsort
SELECT DISTINCT ( - tab0.col1 ) + col1 FROM tab0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9100
SELECT + 4 DIV col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9100
SELECT + 4 / col0 FROM tab0
----
0
0
0

query I rowsort
SELECT col0 - col0 * 40 AS col1 FROM tab2
----
-273
-3042
-3081

query I rowsort
SELECT + 2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT DISTINCT tab2.col2 + ( col1 ) * - col2 + - col2 FROM tab2
----
-1534
-646
-837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9104
SELECT + + CAST( - ( col0 ) AS SIGNED ) * col0 + col2 FROM tab0 AS cor0
----
-1224
-543
-7839

skipif mysql # not compatible
query I rowsort label-9104
SELECT + + CAST ( - ( col0 ) AS INTEGER ) * col0 + col2 FROM tab0 AS cor0
----
-1224
-543
-7839

query I rowsort
SELECT DISTINCT tab2.col1 + 37 AS col1 FROM tab2
----
54
68
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-9106
SELECT - col2 DIV + ( - col1 ) + tab2.col0 FROM tab2
----
7
78
81

skipif mysql # not compatible
query I rowsort label-9106
SELECT - col2 / + ( - col1 ) + tab2.col0 FROM tab2
----
7
78
81

query I rowsort
SELECT ( + 56 ) FROM tab1
----
56
56
56

query I rowsort
SELECT ( - col1 ) * + col0 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-9109
SELECT col1 DIV + col1 + tab1.col1 FROM tab1
----
11
14
27

skipif mysql # not compatible
query I rowsort label-9109
SELECT col1 / + col1 + tab1.col1 FROM tab1
----
11
14
27

query I rowsort
SELECT DISTINCT + 28 * col0 AS col2 FROM tab2
----
196
2184
2212

query I rowsort
SELECT DISTINCT 29 + 96 FROM tab0 AS cor0
----
125

query I rowsort
SELECT ALL col1 + + col2 * cor0.col2 AS col1 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT ALL + - col2 * cor0.col1 + + cor0.col1 * - cor0.col2 FROM tab0 AS cor0
----
-14924
-194
-5676

query I rowsort
SELECT - + col2 + col2 * col0 AS col0 FROM tab0 cor0
----
34
7216
759

query I rowsort
SELECT DISTINCT col2 * + cor0.col0 - + cor0.col2 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT - 44 * - 6 FROM tab0 cor0
----
264
264
264

query I rowsort
SELECT tab1.col0 + tab1.col2 AS col2 FROM tab1 WHERE NOT col1 * col0 * - col0 >= ( - col0 )
----
121
176
57

query I rowsort
SELECT - - col0 * col2 FROM tab1 cor0
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col2 * - col0 col0 FROM tab2 cor0
----
-158
-1969
-2985

query I rowsort
SELECT cor0.col2 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT - + col2 + col2 * - col2 FROM tab2 AS cor0
----
-1482
-702
-756

query III rowsort
SELECT * FROM tab2 WHERE col0 * - col1 <= col2 * + col1
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT cor0.col1 * + col2 AS col0 FROM tab2 AS cor0
----
1534
646
837

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 >= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = col2
----

query I rowsort
SELECT DISTINCT + + cor0.col1 * - cor0.col1 - + col0 FROM tab2 AS cor0
----
-3559
-368
-968

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - tab0.col2 col2 FROM tab0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-9128
SELECT ALL - cor0.col1 DIV - cor0.col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif mysql # not compatible
query I rowsort label-9128
SELECT ALL - cor0.col1 / - cor0.col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT + col1 - + col1 * + col2 AS col0 FROM tab0 cor0
----
-2752
-7371
0

query I rowsort
SELECT DISTINCT + col0 * col1 * - cor0.col0 + col1 * col0 FROM tab1 cor0
----
-156
-40320
-82160

query I rowsort
SELECT ALL - col0 * tab2.col1 * tab2.col1 + col2 FROM tab2
----
-22793
-271492
-6700

query I rowsort
SELECT + cor0.col0 * col0 + col0 - - cor0.col0 FROM tab1 AS cor0
----
15
4224
6560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * - cor0.col1 * - col1 + - col0 col1 FROM tab1 AS cor0
----
-1064
-17579
-2277

query I rowsort
SELECT ALL tab2.col2 + - tab2.col0 * - col2 AS col0 FROM tab2
----
2054
216
3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-9135
SELECT + col0 + - cor0.col1 DIV - col1 FROM tab2 AS cor0
----
79
8
80

skipif mysql # not compatible
query I rowsort label-9135
SELECT + col0 + - cor0.col1 / - col1 FROM tab2 AS cor0
----
79
8
80

query I rowsort
SELECT tab2.col2 + tab2.col2 AS col2 FROM tab2
----
52
54
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-9137
SELECT ALL + col0 + tab1.col0 DIV + col2 AS col1 FROM tab1
----
3
65
80

skipif mysql # not compatible
query I rowsort label-9137
SELECT ALL + col0 + tab1.col0 / + col2 AS col1 FROM tab1
----
3
65
80

query I rowsort
SELECT + col2 * - ( col1 ) + col2 * col0 FROM tab0 AS cor0
----
-164
-2046
-62

query I rowsort
SELECT DISTINCT - 97 FROM tab0, tab1 AS cor0
----
-97

query I rowsort
SELECT ALL cor1.col1 FROM tab0, tab1 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91

onlyif mysql # use DIV operator for integer division
query I rowsort label-9141
SELECT ALL + col0 DIV - 44 FROM tab0 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-9141
SELECT ALL + col0 / - 44 FROM tab0 AS cor0
----
-2
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 + col2 + + 57 col2 FROM tab2 AS cor0
----
24
53
78

query I rowsort
SELECT DISTINCT col1 + + ( + col2 ) * + cor0.col0 - - col1 * 22 AS col2 FROM tab1 cor0
----
3878
760
7979

onlyif mysql # use DIV operator for integer division
query I rowsort label-9144
SELECT DISTINCT + col0 - + 87 DIV 18 FROM tab0 cor0
----
20
31
85

skipif mysql # not compatible
query I rowsort label-9144
SELECT DISTINCT + col0 - + 87 / 18 FROM tab0 cor0
----
20
31
85

query I rowsort
SELECT + 46 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

query I rowsort
SELECT + col2 - + ( - col1 ) FROM tab0
----
119
173
98

query I rowsort
SELECT - - col0 * 80 AS col2 FROM tab2 AS cor0
----
560
6240
6320

query I rowsort
SELECT 6 - - col0 AS col1 FROM tab0 AS cor0
----
30
41
95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9149
SELECT 59 + - col1 * col1 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9149
SELECT 59 + - col1 * col1 * + 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-9150
SELECT DISTINCT CAST( 1 AS SIGNED ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-9150
SELECT DISTINCT CAST ( 1 AS INTEGER ) FROM tab1
----
1

query I rowsort
SELECT - + col1 + - col2 + ( 20 ) AS col1 FROM tab1 AS cor0
----
-47
-60
-89

query I rowsort
SELECT + - cor0.col0 * col0 * 56 AS col1 FROM tab0 AS cor0
----
-32256
-443576
-68600

query I rowsort
SELECT + + col2 * + col1 + col1 AS col1 FROM tab0 AS cor0
----
194
2924
7553

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 68 col0 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to 6fbba7db5bccb533a35aa5125a231f88

query I rowsort
SELECT ALL - col0 + col0 * col2 AS col2 FROM tab2 cor0
----
182
1950
2923

query I rowsort
SELECT ALL col2 + tab1.col1 AS col2 FROM tab1
----
109
67
80

query I rowsort
SELECT + col1 * col0 + 90 - - col2 FROM tab1
----
1226
222
787

query I rowsort
SELECT DISTINCT - ( - tab1.col0 ) FROM tab1, tab2, tab2 AS cor0
----
3
64
80

query I rowsort
SELECT - col1 + cor0.col2 * 92 AS col0 FROM tab2 AS cor0
----
2333
2453
3479

query I rowsort
SELECT DISTINCT + + 32 * + col2 AS col2 FROM tab2 AS cor0
----
1216
832
864

query I rowsort
SELECT - col1 - + col0 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT + col1 + + col0 * ( col1 ) AS col2 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT ALL - 70 * + col1 + cor0.col1 AS col0 FROM tab2 AS cor0
----
-1173
-2139
-4071

query I rowsort
SELECT ALL 61 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55

onlyif mysql # use DIV operator for integer division
query I rowsort label-9165
SELECT - col1 - + col1 DIV col0 AS col1 FROM tab1 AS cor0
----
-10
-13
-34

skipif mysql # not compatible
query I rowsort label-9165
SELECT - col1 - + col1 / col0 AS col1 FROM tab1 AS cor0
----
-10
-13
-34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + col0 col2 FROM tab1 AS cor0
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col0 * ( - col0 ) + + col1 + col1 col0 FROM tab0 AS cor0
----
-1031
-404
-7739

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - + col0 * - CAST ( + col0 AS REAL ) AS col1 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT col0 * + col0 + + cor0.col0 + + col2 AS col2 FROM tab2 AS cor0
----
6188
6358
83

query I rowsort
SELECT - cor0.col2 * 31 FROM tab1 AS cor0
----
-1674
-1767
-2976

query I rowsort
SELECT col2 * 95 + + col2 FROM tab1 AS cor0
----
5184
5472
9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-9172
SELECT + col1 DIV col1 AS col0 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9172
SELECT + col1 / col1 AS col0 FROM tab0 cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - + col0 * + 27 AS col2 FROM tab0 cor0
----
-2403
-648
-945

query I rowsort
SELECT - - col2 + - col1 * 62 + col0 AS col1 FROM tab0 AS cor0
----
-5275
-5471
-5978

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col2 * col2 * - ( + col0 ) col2 FROM tab2
----
-114076
-5103
-52728

query I rowsort
SELECT DISTINCT col0 + - col1 + col1 FROM tab1
----
3
64
80

query I rowsort
SELECT col0 + + tab0.col0 * col1 + + col2 * col1 AS col1 FROM tab0
----
15650
3527
4926

query I rowsort
SELECT DISTINCT + 17 + - col2 AS col1 FROM tab0
----
-16
-65
16

query I rowsort
SELECT ALL - cor0.col1 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT col2 * - col1 + - 4 + col1 FROM tab1 AS cor0
----
-1239
-1382
-564

query I rowsort
SELECT ALL col1 * 14 FROM tab2 AS cor0
----
238
434
826

query I rowsort
SELECT ALL + col0 * + ( - col0 ) * ( col2 ) - cor0.col2 AS col2 FROM tab1 cor0
----
-233529
-540
-614496

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9183
SELECT - CAST( 13 AS SIGNED ) * col0 FROM tab1 AS cor0
----
-1040
-39
-832

skipif mysql # not compatible
query I rowsort label-9183
SELECT - CAST ( 13 AS INTEGER ) * col0 FROM tab1 AS cor0
----
-1040
-39
-832

query I rowsort
SELECT - + 80 AS col2 FROM tab1 AS cor0
----
-80
-80
-80

query I rowsort
SELECT DISTINCT col2 * - cor0.col1 AS col0 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT + + ( col1 ) + col0 AS col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL - + cor0.col1 AS col1 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT - - col1 * - 27 * col2 FROM tab1 cor0
----
-15390
-33696
-37908

query I rowsort
SELECT + cor0.col2 + col1 * - col1 FROM tab2 AS cor0
----
-251
-3455
-934

onlyif mysql # use DIV operator for integer division
query I rowsort label-9190
SELECT ALL + col1 DIV cor0.col2 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9190
SELECT ALL + col1 / cor0.col2 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + col1 AS REAL ) * cor0.col2 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT + - col1 + - 60 FROM tab0 AS cor0
----
-146
-151
-157

onlyif mysql # use DIV operator for integer division
query I rowsort label-9193
SELECT ALL + - 99 DIV 19 + col1 * col0 * col1 AS col2 FROM tab2 AS cor0
----
22826
271513
6722

skipif mysql # not compatible
query I rowsort label-9193
SELECT ALL + - 99 / 19 + col1 * col0 * col1 AS col2 FROM tab2 AS cor0
----
22826
271513
6722

query I rowsort
SELECT col2 * col0 * col0 AS col0 FROM tab1
----
233472
486
614400

query I rowsort
SELECT DISTINCT - + ( col2 ) * - cor0.col2 AS col1 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT DISTINCT 1 - tab0.col0 * col0 FROM tab0
----
-1224
-575
-7920

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9197
SELECT ALL CAST( NULL AS SIGNED ) * col1 + col0 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9197
SELECT ALL CAST ( NULL AS INTEGER ) * col1 + col0 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 42 FROM tab1, tab2 cor0
----
42

query I rowsort
SELECT ALL + 86 FROM tab0, tab2, tab2 AS cor0, tab1
----
81 values hashing to e219687f6f4ab6f7ee442792edcebca9

query I rowsort
SELECT - 52 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9201
SELECT ALL - CAST( NULL AS SIGNED ) / 57 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9201
SELECT ALL - CAST ( NULL AS INTEGER ) / 57 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 5 * - col2 + col1 AS col1 FROM tab2 cor0
----
-104
-173
-71

query I rowsort
SELECT DISTINCT - + 33 * + col2 + - col0 FROM tab2 AS cor0
----
-1333
-898
-936

query I rowsort
SELECT + cor0.col1 + - col2 * col1 AS col0 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT + + col0 * + col2 * cor0.col0 AS col2 FROM tab1 AS cor0
----
233472
486
614400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 99 + col0 col2 FROM tab0
----
-10
-64
-75

query I rowsort
SELECT - ( - col2 ) + col0 FROM tab1
----
121
176
57

query I rowsort
SELECT + col2 * + 27 FROM tab2 AS cor0
----
1026
702
729

query I rowsort
SELECT ALL - col0 * - 96 + - 98 + - col1 FROM tab1 cor0
----
164
6036
7569

query I rowsort
SELECT + - cor0.col1 * col0 - - cor0.col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT DISTINCT - cor0.col2 + 84 AS col2 FROM tab1 AS cor0
----
-12
27
30

query I rowsort
SELECT - col2 + - 42 FROM tab2 AS cor0
----
-68
-69
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9213
SELECT cor0.col0 + CAST( NULL AS SIGNED ) * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9213
SELECT cor0.col0 + CAST ( NULL AS INTEGER ) * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col1 + 60 * 4 FROM tab0 AS cor0
----
143
149
154

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9215
SELECT ALL + cor0.col1 * - CAST( NULL AS SIGNED ) + col2 * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9215
SELECT ALL + cor0.col1 * - CAST ( NULL AS INTEGER ) + col2 * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 * 6 FROM tab2 AS cor0
----
102
186
354

query I rowsort
SELECT ALL - col0 * - 34 + - ( cor0.col0 ) * - cor0.col0 FROM tab0 AS cor0
----
10947
1392
2415

query I rowsort
SELECT 30 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 6c98840ed134c765d56389f4150075f0

query I rowsort
SELECT DISTINCT 39 + + tab0.col0 FROM tab0
----
128
63
74

query I rowsort
SELECT + - col2 * + col2 + 12 AS col2 FROM tab1 cor0
----
-2904
-3237
-9204

query I rowsort
SELECT col0 + - col0 * 24 FROM tab0 AS cor0
----
-2047
-552
-805

onlyif mysql # use DIV operator for integer division
query I rowsort label-9222
SELECT + - col0 * + 38 + + col2 - cor0.col0 DIV 92 col0 FROM tab1 AS cor0
----
-2375
-2944
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9222
SELECT + - col0 * + 38 + + col2 - cor0.col0 / 92 col0 FROM tab1 AS cor0
----
-2375
-2944
-60

query I rowsort
SELECT - 44 FROM tab2, tab1 AS cor0
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

onlyif mysql # use DIV operator for integer division
query I rowsort label-9224
SELECT - + 8 DIV - 37 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9224
SELECT - + 8 / - 37 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col2 + ( + col2 + col0 ) * - col1 FROM tab0
----
-15643
-3493
-4935

query I rowsort
SELECT DISTINCT 7 AS col0 FROM tab0, tab0 AS cor0
----
7

query I rowsort
SELECT DISTINCT - col2 + 89 FROM tab2 AS cor0
----
51
62
63

query I rowsort
SELECT ALL - col1 + 23 + col1 FROM tab2 AS cor0
----
23
23
23

query I rowsort
SELECT - col2 + cor0.col1 * + col2 AS col0 FROM tab1 AS cor0
----
1152
1350
513

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9230
SELECT - CAST( col1 AS SIGNED ) * col0 + ( cor0.col2 ) * + col0 FROM tab1 AS cor0
----
3008
6640
84

skipif mysql # not compatible
query I rowsort label-9230
SELECT - CAST ( col1 AS INTEGER ) * col0 + ( cor0.col2 ) * + col0 FROM tab1 AS cor0
----
3008
6640
84

query I rowsort
SELECT - ( 97 ) * + col2 + cor0.col1 AS col2 FROM tab2 AS cor0
----
-2463
-2588
-3669

query I rowsort
SELECT + 39 + - 75 * + col0 FROM tab2 AS cor0
----
-486
-5811
-5886

query I rowsort
SELECT 23 FROM tab1, tab0 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query I rowsort
SELECT ALL col0 * 21 FROM tab1
----
1344
1680
63

query I rowsort
SELECT DISTINCT - 95 FROM tab1, tab2 AS cor0
----
-95

query I rowsort
SELECT - col2 * col0 + + col2 FROM tab2 cor0
----
-162
-2002
-2964

query I rowsort
SELECT 27 * + 2 FROM tab1 AS cor0
----
54
54
54

onlyif mysql # use DIV operator for integer division
query I rowsort label-9238
SELECT + cor0.col1 * col1 DIV + col0 + ( + col2 ) DIV col2 AS col0 FROM tab1 AS cor0
----
2
226
3

skipif mysql # not compatible
query I rowsort label-9238
SELECT + cor0.col1 * col1 / + col0 + ( + col2 ) / col2 AS col0 FROM tab1 AS cor0
----
2
226
3

query I rowsort
SELECT - 77 + cor0.col1 AS col2 FROM tab2 cor0
----
-18
-46
-60

query I rowsort
SELECT - ( - col2 ) * col2 FROM tab2
----
1444
676
729

query I rowsort
SELECT DISTINCT col1 + col0 * + ( - 99 ) AS col2 FROM tab2
----
-662
-7663
-7804

query I rowsort
SELECT ALL 64 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

onlyif mysql # use DIV operator for integer division
query I rowsort label-9243
SELECT ALL - + 61 DIV 53 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

skipif mysql # not compatible
query I rowsort label-9243
SELECT ALL - + 61 / 53 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query I rowsort
SELECT ALL - - 90 * col2 + ( col1 ) + + col2 AS col1 FROM tab0 AS cor0
----
188
3089
7553

query I rowsort
SELECT ALL + + ( col1 ) * - col0 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL + + 96 * + cor0.col2 FROM tab1 AS cor0
----
5184
5472
9216

query I rowsort
SELECT + cor0.col1 * - 66 FROM tab1 cor0
----
-1716
-660
-858

onlyif mysql # use DIV operator for integer division
query I rowsort label-9248
SELECT DISTINCT col0 DIV - col0 FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9248
SELECT DISTINCT col0 / - col0 FROM tab2 cor0
----
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-9249
SELECT - - col2 * col1 DIV cor0.col0 - - col0 * - col2 col2 FROM tab0 AS cor0
----
-33
-674
-7215

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9249
SELECT - - col2 * col1 / cor0.col0 - - col0 * - col2 col2 FROM tab0 AS cor0
----
-33
-674
-7215

query I rowsort
SELECT DISTINCT - 26 * cor0.col0 FROM tab2, tab1 AS cor0
----
-1664
-2080
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-9251
SELECT - tab1.col2 DIV - tab1.col0 AS col2 FROM tab1
----
0
1
18

skipif mysql # not compatible
query I rowsort label-9251
SELECT - tab1.col2 / - tab1.col0 AS col2 FROM tab1
----
0
1
18

query I rowsort
SELECT + col1 * + ( col2 ) FROM tab1
----
1248
1404
570

query I rowsort
SELECT + + col0 + + ( - 40 ) FROM tab0 AS cor0
----
-16
-5
49

query I rowsort
SELECT cor0.col1 * ( - col1 ) AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT - col1 * - 46 FROM tab1 AS cor0
----
1196
460
598

query I rowsort
SELECT - col1 + col2 * col0 + col0 AS col2 FROM tab2 AS cor0
----
165
2047
3064

query I rowsort
SELECT + - col1 - + col1 AS col1 FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT - + col1 + - col0 * - col1 FROM tab1 AS cor0
----
1027
52
630

onlyif mysql # use DIV operator for integer division
query I rowsort label-9259
SELECT DISTINCT + - col1 + - col1 DIV - col0 FROM tab2 AS cor0
----
-17
-27
-59

skipif mysql # not compatible
query I rowsort label-9259
SELECT DISTINCT + - col1 + - col1 / - col0 FROM tab2 AS cor0
----
-17
-27
-59

query I rowsort
SELECT 43 + - col0 * col2 AS col0 FROM tab0 AS cor0
----
-7255
-749
8

query I rowsort
SELECT - ( - cor0.col2 ) + col0 + - 24 FROM tab1 AS cor0
----
152
33
97

query I rowsort
SELECT + - cor0.col2 * col2 + col1 + col0 AS col1 FROM tab2 AS cor0
----
-1348
-539
-691

query I rowsort
SELECT ALL cor0.col2 + + col2 * + 42 FROM tab2 AS cor0
----
1118
1161
1634

query I rowsort
SELECT DISTINCT - 67 AS col1 FROM tab2 AS cor0
----
-67

query I rowsort
SELECT col1 + + col0 * + 73 + + col0 * col1 * col1 AS col1 FROM tab2 AS cor0
----
277271
28615
7269

query I rowsort
SELECT ALL - col2 + 60 AS col2 FROM tab2 AS cor0
----
22
33
34

query I rowsort
SELECT - + col1 * 24 + - ( + col2 ) FROM tab1 cor0
----
-297
-408
-678

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9268
SELECT - col0 * CAST( - col0 AS SIGNED ) + + col2 + 49 FROM tab0 AS cor0
----
1275
658
8052

skipif mysql # not compatible
query I rowsort label-9268
SELECT - col0 * CAST ( - col0 AS INTEGER ) + + col2 + 49 FROM tab0 AS cor0
----
1275
658
8052

query I rowsort
SELECT + col0 + + col0 * col0 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT DISTINCT 96 - + 32 * - col2 FROM tab1 AS cor0
----
1824
1920
3168

query I rowsort
SELECT ALL - col1 * + cor0.col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT - 65 FROM tab0, tab1 AS cor0
----
-65

query I rowsort
SELECT DISTINCT - 27 AS col0 FROM tab0, tab2 AS cor0
----
-27

query I rowsort
SELECT ALL 38 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT ALL + cor1.col1 AS col2 FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9276
SELECT DISTINCT col0 + - col1 * + col2 * - CAST( col0 AS SIGNED ) - + col2 AS col0 FROM tab0
----
3429
664125
68103

skipif mysql # not compatible
query I rowsort label-9276
SELECT DISTINCT col0 + - col1 * + col2 * - CAST ( col0 AS INTEGER ) - + col2 AS col0 FROM tab0
----
3429
664125
68103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 83 * col0 + col2 + col1 col0 FROM tab2 cor0
----
639
6559
6612

query I rowsort
SELECT DISTINCT + col0 - col2 * col1 FROM tab1
----
-1168
-1401
-506

query I rowsort
SELECT col2 + col2 + - col2 AS col1 FROM tab2
----
26
27
38

query I rowsort
SELECT col0 * col1 * + col1 + col0 + + col1 FROM tab0
----
177614
329447
737189

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * + tab1.col1 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to caacfddf5ee462b9acbfc3086a7ab4e5

query I rowsort
SELECT DISTINCT + col1 + cor0.col0 * + col0 AS col0 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT ALL + + col0 - - col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT + 89 + - col2 AS col0 FROM tab2
----
51
62
63

query I rowsort
SELECT + 87 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 8661ffbd1a72897c495405c53b816e50

query I rowsort
SELECT col0 * + col0 * - col2 AS col2 FROM tab2
----
-1323
-158184
-237158

query I rowsort
SELECT DISTINCT + 3 AS col0 FROM tab2, tab1, tab0 AS cor0
----
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-9288
SELECT - ( - 50 ) DIV + cor0.col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif mysql # not compatible
query I rowsort label-9288
SELECT - ( - 50 ) / + cor0.col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT + 76 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da

query I rowsort
SELECT DISTINCT col1 + col2 * - col2 FROM tab0
----
-1003
-6633
96

query I rowsort
SELECT DISTINCT - - 19 AS col2 FROM tab1, tab0, tab2 AS cor0
----
19

query I rowsort
SELECT ALL + ( - col1 ) * - col0 + - col2 FROM tab2
----
1305
190
4576

query I rowsort
SELECT ( cor0.col2 ) * col1 - - ( col2 ) AS col1 FROM tab1 AS cor0
----
1344
1458
627

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9294
SELECT ALL + col1 * col0 - CAST( NULL AS SIGNED ) / - col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9294
SELECT ALL + col1 * col0 - CAST ( NULL AS INTEGER ) / - col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col2 * col0 - col0 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT ALL - col0 * ( col2 * - col2 ) FROM tab0
----
26136
35
598436

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9297
SELECT ALL col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9297
SELECT ALL col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab0, tab1, tab2 AS cor0
----
26
27
38

query I rowsort
SELECT - col0 - ( col0 + col1 * + ( 57 ) ) AS col0 FROM tab0
----
-4950
-5365
-5599

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab2 cor1, tab2, tab2 AS cor2
----
3645 values hashing to 677ef6b86493a7e48d2f6a3cfd7eea4c

query I rowsort
SELECT ALL + - col2 * + ( col2 ) FROM tab1 AS cor0
----
-2916
-3249
-9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-9302
SELECT ALL - tab1.col1 DIV - 60 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9302
SELECT ALL - tab1.col1 / - 60 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - + col1 * + 63 AS col1 FROM tab1 AS cor0
----
-1638
-630
-819

query I rowsort
SELECT + 27 * + col2 AS col0 FROM tab0 AS cor0
----
2214
27
891

onlyif mysql # use DIV operator for integer division
query I rowsort label-9305
SELECT ALL + - cor0.col1 * col0 DIV col0 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-9305
SELECT ALL + - cor0.col1 * col0 / col0 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT ALL - + ( + ( col0 ) ) FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT + ( ( + col2 ) ) * col2 FROM tab0 AS cor0
----
1
1089
6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 74 col0 FROM tab1 AS cor0
----
-1924
-740
-962

query I rowsort
SELECT + - col2 + - cor0.col0 AS col2 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT ( - 73 ) AS col1 FROM tab0 AS cor0
----
-73
-73
-73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9311
SELECT DISTINCT + + CAST( - col2 AS SIGNED ) * col1 + CAST( + col2 AS SIGNED ) FROM tab1 cor0
----
-1152
-1350
-513

skipif mysql # not compatible
query I rowsort label-9311
SELECT DISTINCT + + CAST ( - col2 AS INTEGER ) * col1 + CAST ( + col2 AS INTEGER ) FROM tab1 cor0
----
-1152
-1350
-513

query I rowsort
SELECT DISTINCT + 22 * + col2 - + col1 FROM tab2 AS cor0
----
513
563
819

query I rowsort
SELECT - + col1 * - ( + col2 ) FROM tab1 AS cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 91 col0 FROM tab2, tab2 cor0
----
91

query I rowsort
SELECT col0 + + col0 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT ALL + - cor0.col1 * 25 FROM tab0 cor0
----
-2150
-2275
-2425

query I rowsort
SELECT ALL - + col0 + + 93 + - col2 AS col2 FROM tab0 AS cor0
----
-78
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-9318
SELECT DISTINCT - ( + col0 ) DIV col1 - + ( - col0 ) FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-9318
SELECT DISTINCT - ( + col0 ) / col1 - + ( - col0 ) FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT + 73 * - col1 AS col1 FROM tab2 AS cor0
----
-1241
-2263
-4307

query I rowsort
SELECT ( + tab1.col2 ) AS col0 FROM tab1, tab0, tab0 cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT ALL - + 87 AS col1 FROM tab0 AS cor0
----
-87
-87
-87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9322
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-9322
SELECT ALL - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT - 82 * - col0 AS col1 FROM tab2 AS cor0
----
574
6396
6478

onlyif mysql # use DIV operator for integer division
query I rowsort label-9324
SELECT ALL col0 DIV ( cor0.col2 ) FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-9324
SELECT ALL col0 / ( cor0.col2 ) FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT ALL + + cor0.col0 * cor0.col0 FROM tab0 cor0
----
1225
576
7921

query I rowsort
SELECT - - col2 * - col0 * - 44 FROM tab2 AS cor0
----
132088
8316
89232

query I rowsort
SELECT + cor0.col1 + 97 AS col0 FROM tab0 AS cor0
----
183
188
194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col0 ) + ( col2 ) * col1 * col0 col2 FROM tab2
----
119730
51113
5866

query I rowsort
SELECT DISTINCT - cor0.col0 * 25 FROM tab1, tab0 cor0
----
-2225
-600
-875

query I rowsort
SELECT + - col2 + + 96 FROM tab0 cor0
----
14
63
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-9331
SELECT + cor0.col0 DIV col2 - - col1 DIV col0 AS col2 FROM tab1 AS cor0
----
0
1
8

skipif mysql # not compatible
query I rowsort label-9331
SELECT + cor0.col0 / col2 - - col1 / col0 AS col2 FROM tab1 AS cor0
----
0
1
8

query I rowsort
SELECT DISTINCT + + col2 + col0 * + col2 AS col2 FROM tab2 AS cor0
----
2054
216
3040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 73 + col1 col0 FROM tab2 AS cor0
----
104
132
90

query I rowsort
SELECT ALL - 68 * col2 * - cor0.col0 FROM tab1 AS cor0
----
11016
248064
522240

query I rowsort
SELECT DISTINCT - col2 * + 89 * + cor0.col2 + + col1 * col1 AS col2 FROM tab0 cor0
----
-590155
-89525
9320

query I rowsort
SELECT DISTINCT + + ( col1 ) * col2 + ( col2 ) AS col0 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT DISTINCT tab1.col0 + col2 + + tab1.col2 FROM tab1
----
111
178
272

query I rowsort
SELECT ALL + 65 + + 6 * col2 FROM tab0 cor0
----
263
557
71

query I rowsort
SELECT ALL + - ( - col1 ) + col2 AS col2 FROM tab2 AS cor0
----
55
58
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9340
SELECT ALL ( 97 ) + cor0.col1 / - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9340
SELECT ALL ( 97 ) + cor0.col1 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + 34 + col2 FROM tab1 AS cor0
----
20
23
62

query I rowsort
SELECT + + 34 * 57 + + col1 AS col2 FROM tab2 AS cor0
----
1955
1969
1997

onlyif mysql # use DIV operator for integer division
query I rowsort label-9343
SELECT + col0 DIV 66 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9343
SELECT + col0 / 66 FROM tab1 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col1 + + cor0.col2 + col0 col0 FROM tab2 AS cor0
----
100
3
45

query I rowsort
SELECT DISTINCT + - 48 AS col2 FROM tab0 cor0
----
-48

query I rowsort
SELECT ALL - + 8 - + cor0.col0 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 4aa7117558ef9dfea98692884dac96cb

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + tab1.col1 + + col1 col2 FROM tab1
----
106
55
84

query I rowsort
SELECT ALL - ( ( col0 ) ) * + ( col1 * - col2 ) + col2 FROM tab2
----
119678
51072
5886

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9349
SELECT CAST( NULL AS SIGNED ) + + col2 + - col0 * col1 / - col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9349
SELECT CAST ( NULL AS INTEGER ) + + col2 + - col0 * col1 / - col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * + col2 - - 94 * col1 AS col2 FROM tab1 AS cor0
----
-26
1040
370

onlyif mysql # use DIV operator for integer division
query I rowsort label-9351
SELECT col0 + - col2 DIV col0 FROM tab1 AS cor0
----
-15
64
79

skipif mysql # not compatible
query I rowsort label-9351
SELECT col0 + - col2 / col0 FROM tab1 AS cor0
----
-15
64
79

query I rowsort
SELECT ( col1 ) * + col2 - 69 * - col2 FROM tab1 AS cor0
----
4503
5130
7872

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9353
SELECT - CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9353
SELECT - CAST ( NULL AS REAL ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 12 * + col2 + + col1 FROM tab1
----
-1139
-622
-674

query I rowsort
SELECT + - 76 * cor0.col1 - + cor0.col0 * - col1 FROM tab2 AS cor0
----
-2139
118
51

query I rowsort
SELECT + 77 * + col0 FROM tab1
----
231
4928
6160

query I rowsort
SELECT DISTINCT + 66 + - 24 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
42

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9358
SELECT - CAST( NULL AS SIGNED ) 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-9358
SELECT - CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + cor0.col2 FROM tab2, tab0 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05

query I rowsort
SELECT DISTINCT + 27 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
27

query I rowsort
SELECT 17 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query I rowsort
SELECT 54 AS col1 FROM tab0 AS cor0
----
54
54
54

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9363
SELECT ALL CAST( NULL AS SIGNED ) / 61 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9363
SELECT ALL CAST ( NULL AS INTEGER ) / 61 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( - 34 ) + + col2 AS col1 FROM tab1 AS cor0
----
20
23
62

query I rowsort
SELECT ALL col1 * + 15 FROM tab0 AS cor0
----
1290
1365
1455

query I rowsort
SELECT ALL + - col2 * 90 AS col2 FROM tab2 AS cor0
----
-2340
-2430
-3420

query I rowsort
SELECT DISTINCT - col2 * col1 * col1 FROM tab1 AS cor0
----
-16224
-36504
-5700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - ( col2 ) * - cor0.col1 col2 FROM tab0 AS cor0
----
2871
7544
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9369
SELECT CAST( 77 AS SIGNED ) * - col1 AS col2 FROM tab1 AS cor0
----
-1001
-2002
-770

skipif mysql # not compatible
query I rowsort label-9369
SELECT CAST ( 77 AS INTEGER ) * - col1 AS col2 FROM tab1 AS cor0
----
-1001
-2002
-770

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( - 17 AS REAL ) FROM tab1 AS cor0
----
17

query I rowsort
SELECT - cor1.col1 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

query I rowsort
SELECT + col1 * 69 FROM tab0 AS cor0
----
5934
6279
6693

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9373
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + cor0.col1 + col0 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9373
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + cor0.col1 + col0 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - cor0.col2 - + 70 FROM tab1, tab0 AS cor0
----
9 values hashing to 53b7a51bc3f909dcf8a82dd8c00ebcb6

query I rowsort
SELECT DISTINCT - 9 FROM tab2, tab0 cor0, tab2 AS cor1
----
-9

query I rowsort
SELECT DISTINCT + + 3 FROM tab2, tab0, tab0 AS cor0
----
3

query I rowsort
SELECT ALL - col1 + - col1 * 33 AS col1 FROM tab1 AS cor0
----
-340
-442
-884

query I rowsort
SELECT + col2 * col2 + col2 AS col2 FROM tab1 AS cor0
----
2970
3306
9312

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9379
SELECT - + 11 + - col1 * + CAST( col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-2075
-3406
-8110

skipif mysql # not compatible
query I rowsort label-9379
SELECT - + 11 + - col1 * + CAST ( col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-2075
-3406
-8110

query I rowsort
SELECT ALL + col2 + - col2 * col2 AS col2 FROM tab0 AS cor0
----
-1056
-6642
0

query I rowsort
SELECT DISTINCT cor1.col2 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-9382
SELECT ALL - + col2 * col1 + + col0 + + col0 DIV - 75 AS col1 FROM tab2 AS cor0
----
-1457
-568
-830

skipif mysql # not compatible
query I rowsort label-9382
SELECT ALL - + col2 * col1 + + col0 + + col0 / - 75 AS col1 FROM tab2 AS cor0
----
-1457
-568
-830

query I rowsort
SELECT + col2 * - 86 FROM tab0 AS cor0
----
-2838
-7052
-86

onlyif mysql # use DIV operator for integer division
query I rowsort label-9384
SELECT col0 DIV - ( - col0 ) AS col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9384
SELECT col0 / - ( - col0 ) AS col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL cor0.col0 * cor0.col0 AS col0 FROM tab0 cor0
----
1225
576
7921

query I rowsort
SELECT + + col2 * 75 FROM tab2 AS cor0
----
1950
2025
2850

query I rowsort
SELECT DISTINCT - + col1 + - cor0.col0 * col2 AS col2 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT ALL col1 + col1 AS col2 FROM tab0 cor0
----
172
182
194

query I rowsort
SELECT - col2 * 67 FROM tab2 AS cor0
----
-1742
-1809
-2546

query I rowsort
SELECT DISTINCT + cor0.col2 * 84 FROM tab2 AS cor0
----
2184
2268
3192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 90 col0 FROM tab2
----
90
90
90

query I rowsort
SELECT ALL 37 * col0 FROM tab2
----
259
2886
2923

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 96 * - col0 col0 FROM tab0
----
-2304
-3360
-8544

query I rowsort
SELECT DISTINCT - cor0.col2 * 17 + + col1 FROM tab1 AS cor0
----
-1619
-892
-959

query I rowsort
SELECT DISTINCT - + col2 + col0 * col0 FROM tab0 AS cor0
----
1224
543
7839

query I rowsort
SELECT ALL - 10 + + 51 FROM tab0, tab1 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col0 - col0 col2 FROM tab1 AS cor0
----
4032
6
6320

query I rowsort
SELECT DISTINCT + - col2 + - ( - col1 ) FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT ALL - col1 * col2 + - 43 * col0 - col0 AS col0 FROM tab2 AS cor0
----
-1145
-4122
-4966

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9400
SELECT CAST( - 88 AS SIGNED ) AS col0 FROM tab2, tab1, tab0 AS cor0, tab0
----
81 values hashing to 00f4aded8ec5b6d9904061ce3da09e20

skipif mysql # not compatible
query I rowsort label-9400
SELECT CAST ( - 88 AS INTEGER ) AS col0 FROM tab2, tab1, tab0 AS cor0, tab0
----
81 values hashing to 00f4aded8ec5b6d9904061ce3da09e20

query I rowsort
SELECT + col1 - - 79 FROM tab1
----
105
89
92

query I rowsort
SELECT - col1 - + tab2.col1 * col0 AS col2 FROM tab2
----
-1360
-248
-4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-9403
SELECT col2 - + ( col0 ) DIV - col0 AS col2 FROM tab2
----
27
28
39

skipif mysql # not compatible
query I rowsort label-9403
SELECT col2 - + ( col0 ) / - col0 AS col2 FROM tab2
----
27
28
39

query I rowsort
SELECT - cor0.col1 * - 50 FROM tab1 AS cor0
----
1300
500
650

query I rowsort
SELECT DISTINCT + - col1 + + cor0.col0 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT ALL - + col2 + ( col0 ) * - col2 FROM tab2 AS cor0
----
-2054
-216
-3040

query I rowsort
SELECT ALL + col1 * + 41 + ( col2 ) * 64 AS col2 FROM tab1 AS cor0
----
4058
4522
6677

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9408
SELECT tab1.col0 + - CAST( - col1 AS SIGNED ) * col1 AS col0 FROM tab1
----
164
249
679

skipif mysql # not compatible
query I rowsort label-9408
SELECT tab1.col0 + - CAST ( - col1 AS INTEGER ) * col1 AS col0 FROM tab1
----
164
249
679

query I rowsort
SELECT DISTINCT col1 * - ( - col2 + tab0.col0 ) FROM tab0
----
-3298
-637
774

onlyif mysql # use DIV operator for integer division
query I rowsort label-9410
SELECT DISTINCT - col1 DIV - 80 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9410
SELECT DISTINCT - col1 / - 80 FROM tab1
----
0

query I rowsort
SELECT DISTINCT col0 * + col0 + col1 * + 3 + col1 FROM tab0 AS cor0
----
1613
8285
920

query I rowsort
SELECT DISTINCT col1 * col2 - - col1 * 44 AS col2 FROM tab0 cor0
----
11466
4365
6622

query I rowsort
SELECT ALL 90 * - tab2.col2 FROM tab2
----
-2340
-2430
-3420

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9414
SELECT DISTINCT ( + ( + col2 ) * - CAST( 31 AS SIGNED ) + - col2 ) AS col0 FROM tab0
----
-1056
-2624
-32

skipif mysql # not compatible
query I rowsort label-9414
SELECT DISTINCT ( + ( + col2 ) * - CAST ( 31 AS INTEGER ) + - col2 ) AS col0 FROM tab0
----
-1056
-2624
-32

query I rowsort
SELECT ALL + col2 + + col0 AS col0 FROM tab1
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-9416
SELECT + col0 DIV + cor0.col2 - col1 * ( - cor0.col1 ) AS col0 FROM tab0 AS cor0
----
7396
8282
9444

skipif mysql # not compatible
query I rowsort label-9416
SELECT + col0 / + cor0.col2 - col1 * ( - cor0.col1 ) AS col0 FROM tab0 AS cor0
----
7396
8282
9444

query I rowsort
SELECT DISTINCT - col1 + - tab2.col1 * col1 FROM tab2
----
-306
-3540
-992

onlyif mysql # use DIV operator for integer division
query I rowsort label-9418
SELECT 95 + col1 DIV + col2 + - col0 * - col1 * - tab1.col0 AS col0 FROM tab1
----
-139
-40865
-83105

skipif mysql # not compatible
query I rowsort label-9418
SELECT 95 + col1 / + col2 + - col0 * - col1 * - tab1.col0 AS col0 FROM tab1
----
-139
-40865
-83105

onlyif mysql # use DIV operator for integer division
query I rowsort label-9419
SELECT col2 DIV 84 + - col1 + - col2 AS col0 FROM tab1
----
-108
-67
-80

skipif mysql # not compatible
query I rowsort label-9419
SELECT col2 / 84 + - col1 + - col2 AS col0 FROM tab1
----
-108
-67
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-9420
SELECT col1 DIV tab0.col0 + - tab0.col1 AS col2 FROM tab0
----
-83
-90
-95

skipif mysql # not compatible
query I rowsort label-9420
SELECT col1 / tab0.col0 + - tab0.col1 AS col2 FROM tab0
----
-83
-90
-95

query I rowsort
SELECT tab0.col2 - cor0.col0 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 2874e4b5a308db8cb58c103c3df9d308

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9422
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-9422
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL - col2 + col2 + + 3 FROM tab1 AS cor0
----
3
3
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-9424
SELECT ALL + col0 + col1 DIV - 92 + - 75 FROM tab2 AS cor0
----
-68
3
4

skipif mysql # not compatible
query I rowsort label-9424
SELECT ALL + col0 + col1 / - 92 + - 75 FROM tab2 AS cor0
----
-68
3
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-9425
SELECT col1 + + col1 DIV cor0.col1 FROM tab1 AS cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-9425
SELECT col1 + + col1 / cor0.col1 FROM tab1 AS cor0
----
11
14
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * cor0.col0 col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT + - 79 * cor0.col1 AS col1 FROM tab2 AS cor0
----
-1343
-2449
-4661

query I rowsort
SELECT + + cor0.col1 FROM tab0, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT - ( - 59 ) + col2 * + col1 AS col1 FROM tab2 AS cor0
----
1593
705
896

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9430
SELECT ALL - col0 + CAST( NULL AS SIGNED ) + - col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9430
SELECT ALL - col0 + CAST ( NULL AS INTEGER ) + - col1 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * col1 + col2 * + tab2.col0 FROM tab2
----
1026
3562
3648

query I rowsort
SELECT ALL + 59 AS col0 FROM tab0
----
59
59
59

query I rowsort
SELECT ALL - ( 49 ) FROM tab0 AS cor0
----
-49
-49
-49

query I rowsort
SELECT DISTINCT + col1 * col0 + col1 AS col2 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT DISTINCT + - col1 * col0 * col0 + col2 FROM tab1 AS cor0
----
-180
-40903
-83104

query I rowsort
SELECT ( col1 ) * tab2.col2 AS col1 FROM tab2
----
1534
646
837

query I rowsort
SELECT - col1 * - 73 FROM tab0
----
6278
6643
7081

onlyif mysql # use DIV operator for integer division
query I rowsort label-9438
SELECT + 89 DIV + col1 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9438
SELECT + 89 / + col1 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT + 15 + col0 AS col1 FROM tab2
----
22
93
94

query I rowsort
SELECT - col0 * + tab2.col1 + - ( + 15 + col2 ) * + tab2.col1 * col0 FROM tab2
----
-193284
-72522
-9331

query I rowsort
SELECT - col0 + col0 * 44 * 22 AS col1 FROM tab1 AS cor0
----
2901
61888
77360

query I rowsort
SELECT DISTINCT + + 1 * + col2 + col0 * ( col0 + + col0 ) FROM tab2 AS cor0
----
12194
125
12520

query I rowsort
SELECT - 39 AS col0 FROM tab1
----
-39
-39
-39

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9444
SELECT DISTINCT + + cor0.col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9444
SELECT DISTINCT + + cor0.col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col0 - 45 FROM tab2 cor0
----
-123
-124
-52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9446
SELECT ALL - col1 * + CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort label-9446
SELECT ALL - col1 * + CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT - cor0.col0 * - 94 AS col1 FROM tab2 AS cor0
----
658
7332
7426

query I rowsort
SELECT ALL + cor0.col2 + - col1 + - col2 * col1 FROM tab1 AS cor0
----
-1165
-1376
-523

query I rowsort
SELECT + col2 + cor0.col1 * cor0.col0 FROM tab0 AS cor0
----
2097
3396
8181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - + ( - col2 ) * cor0.col0 col2 FROM tab2 cor0
----
2054
216
3040

query I rowsort
SELECT + col1 * 35 * + col0 FROM tab0 cor0
----
118825
283465
72240

query I rowsort
SELECT - cor0.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-9453
SELECT + col2 * CAST( - 68 AS SIGNED ) * col2 AS col2 FROM tab2 AS cor0
----
-45968
-49572
-98192

skipif mysql # not compatible
query I rowsort label-9453
SELECT + col2 * CAST ( - 68 AS INTEGER ) * col2 AS col2 FROM tab2 AS cor0
----
-45968
-49572
-98192

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 + + col0 * + col0 NOT IN ( col2 * + tab1.col1 * - tab1.col1 ) AND NOT ( NULL ) IN ( col2 * col1 )
----

query I rowsort
SELECT - col0 * col2 + col1 FROM tab1 cor0
----
-136
-3638
-7667

query I rowsort
SELECT DISTINCT + cor0.col0 - col1 FROM tab2 cor0
----
-24
19
62

query I rowsort
SELECT - col2 * tab1.col2 + - col2 FROM tab1
----
-2970
-3306
-9312

query I rowsort
SELECT - cor0.col1 * + col2 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL + col0 * + cor0.col2 + + col1 * col2 * col1 FROM tab1 AS cor0
----
23904
36666
9348

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + col2 col0 FROM tab2 AS cor0
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-9461
SELECT ALL + + cor0.col1 + - col0 * - col2 * col1 + + col1 DIV cor0.col1 FROM tab1 cor0
----
36491
4239
99854

skipif mysql # not compatible
query I rowsort label-9461
SELECT ALL + + cor0.col1 + - col0 * - col2 * col1 + + col1 / cor0.col1 FROM tab1 cor0
----
36491
4239
99854

query I rowsort
SELECT - col0 + col2 * - col1 * cor0.col2 AS col0 FROM tab0 AS cor0
----
-132
-611973
-93678

query I rowsort
SELECT ALL 58 * + col2 AS col2 FROM tab1
----
3132
3306
5568

query I rowsort
SELECT col0 * - col0 + col2 AS col0 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT col1 * + col1 + col0 AS col2 FROM tab0 AS cor0
----
7420
8370
9444

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * - col0 + cor0.col0 col0 FROM tab2 AS cor0
----
-42
-6006
-6162

query I rowsort
SELECT - cor0.col1 * col1 + - col0 FROM tab2 AS cor0
----
-3559
-368
-968

query III rowsort
SELECT * FROM tab0 WHERE ( NULL IN ( + col1 ) ) AND NULL NOT IN ( - tab0.col0 + col0 )
----

query I rowsort
SELECT DISTINCT - + col1 + + col2 FROM tab0 AS cor0
----
-53
-9
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - col2 col0 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT ALL - col0 * - col0 + ( + cor0.col0 + - col1 ) * 30 * col0 AS col0 FROM tab2 cor0
----
-4991
153181
50544

query I rowsort
SELECT DISTINCT + - col1 + + col2 AS col1 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT - 6 FROM tab2, tab1 cor0
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

onlyif mysql # use DIV operator for integer division
query I rowsort label-9474
SELECT + - 47 DIV col0 AS col0 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9474
SELECT + - 47 / col0 AS col0 FROM tab0 AS cor0
----
-1
-1
0

query I rowsort
SELECT ALL col2 + + cor0.col2 FROM tab0 cor0
----
164
2
66

query I rowsort
SELECT ALL col2 * - col0 + + col1 * col2 AS col1 FROM tab2 cor0
----
-2356
-494
648

query I rowsort
SELECT - 29 + cor0.col1 FROM tab2 AS cor0
----
-12
2
30

query I rowsort
SELECT DISTINCT 7 AS col0 FROM tab0 AS cor0
----
7

query I rowsort
SELECT + 19 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 66 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88

query I rowsort
SELECT + col1 - + 33 FROM tab1
----
-20
-23
-7

query I rowsort
SELECT ALL + col1 + col1 + + col1 FROM tab2
----
177
51
93

query I rowsort
SELECT + 55 * + 20 + - col2 * - 66 FROM tab2 AS cor0
----
2816
2882
3608

query I rowsort
SELECT + 39 * - col1 FROM tab1 AS cor0
----
-1014
-390
-507

query I rowsort
SELECT DISTINCT + col0 * + 91 + - cor0.col1 FROM tab2 cor0
----
606
7039
7172

query I rowsort
SELECT ALL + cor0.col1 - - col2 * col2 AS col0 FROM tab0 AS cor0
----
1175
6815
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col0 ) + + cor0.col2 col1 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT - 19 * + cor0.col0 AS col0 FROM tab0, tab1 AS cor0
----
-1216
-1520
-57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9489
SELECT DISTINCT - CAST( + col0 AS SIGNED ) col1 FROM tab1 AS cor0
----
-3
-64
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9489
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) col1 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT ALL + col0 + - col1 * + col1 FROM tab2 AS cor0
----
-210
-3403
-954

query I rowsort
SELECT 17 + + col0 FROM tab1
----
20
81
97

query I rowsort
SELECT - col1 + - 6 + + col0 FROM tab1 AS cor0
----
-29
48
61

query I rowsort
SELECT col0 * - 10 + tab2.col1 AS col2 FROM tab2
----
-39
-721
-773

query I rowsort
SELECT DISTINCT - - 80 + - 82 AS col0 FROM tab1 AS cor0
----
-2

query I rowsort
SELECT DISTINCT - col0 * cor0.col2 + + col1 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT DISTINCT - ( + 31 ) FROM tab2 cor0
----
-31

query I rowsort
SELECT + cor0.col2 + - 57 * cor0.col2 AS col0 FROM tab1 AS cor0
----
-3024
-3192
-5376

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 77 col1 FROM tab1 AS cor0
----
77

query I rowsort
SELECT + 9 * - col2 + col2 AS col2 FROM tab1 AS cor0
----
-432
-456
-768

query I rowsort
SELECT DISTINCT + col0 + 67 FROM tab0 AS cor0
----
102
156
91

query I rowsort
SELECT - - ( col0 ) * + col1 + col1 * + col0 FROM tab1 cor0
----
1280
156
2080

query I rowsort
SELECT ALL + col1 * + 57 FROM tab0 AS cor0
----
4902
5187
5529

query I rowsort
SELECT DISTINCT - + ( + ( + col0 ) ) AS col2 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT ALL + + ( - col2 ) FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT ALL - 8 * - col1 + + col1 AS col2 FROM tab2
----
153
279
531

query I rowsort
SELECT ALL col2 + - tab1.col1 FROM tab1
----
28
47
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-9507
SELECT DISTINCT col0 DIV ( col0 ) + col1 AS col1 FROM tab2 cor0
----
18
32
60

skipif mysql # not compatible
query I rowsort label-9507
SELECT DISTINCT col0 / ( col0 ) + col1 AS col1 FROM tab2 cor0
----
18
32
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - col1 col1 FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT ALL + col0 * - ( col1 ) + cor0.col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT ALL + col1 * ( + 87 ) AS col1 FROM tab2 AS cor0
----
1479
2697
5133

query I rowsort
SELECT DISTINCT + - cor0.col0 * 91 FROM tab2 AS cor0
----
-637
-7098
-7189

query I rowsort
SELECT - cor0.col2 - + col0 AS col2 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT DISTINCT col1 + + col2 * + col0 FROM tab1 cor0
----
188
3658
7693

query I rowsort
SELECT ALL col1 + col0 * col1 + + col0 FROM tab2
----
1439
255
4739

query I rowsort
SELECT + col1 + + tab0.col1 * col2 AS col2 FROM tab0
----
194
2924
7553

query I rowsort
SELECT DISTINCT col1 + ( col2 ) AS col0 FROM tab1
----
109
67
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9517
SELECT + col2 + CAST( NULL AS SIGNED ) / - col2 - col0 * + col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9517
SELECT + col2 + CAST ( NULL AS INTEGER ) / - col2 - col0 * + col1 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 62 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query I rowsort
SELECT - col1 + col0 * + col2 + ( + col1 ) * + col0 AS col2 FROM tab2 AS cor0
----
375
4328
6571

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + col2 + + col1 col2 FROM tab0
----
195
205
264

onlyif mysql # use DIV operator for integer division
query I rowsort label-9521
SELECT tab1.col0 DIV 48 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9521
SELECT tab1.col0 / 48 FROM tab1
----
0
1
1

query I rowsort
SELECT ALL col2 * + 18 + ( + col2 ) + + 74 AS col1 FROM tab0
----
1632
701
93

query I rowsort
SELECT DISTINCT - + col2 * 40 FROM tab0 AS cor0
----
-1320
-3280
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 94 col1 FROM tab1 AS cor0
----
282
6016
7520

query I rowsort
SELECT DISTINCT cor1.col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
3
64
80

query I rowsort
SELECT DISTINCT 32 AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
32

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9527
SELECT - col0 * + CAST( - col1 AS SIGNED ) + col1 * ( col0 ) FROM tab0
----
16198
4128
6790

skipif mysql # not compatible
query I rowsort label-9527
SELECT - col0 * + CAST ( - col1 AS INTEGER ) + col1 * ( col0 ) FROM tab0
----
16198
4128
6790

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9528
SELECT ALL col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9528
SELECT ALL col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + col1 + col1 AS col1 FROM tab2
----
-4
35
92

query I rowsort
SELECT - col0 * 22 FROM tab0 AS cor0
----
-1958
-528
-770

query I rowsort
SELECT - col1 * 40 - - col0 * ( + 19 ) * col0 FROM tab2 AS cor0
----
-309
113236
117899

query I rowsort
SELECT - - col1 * + 36 - cor0.col1 FROM tab0 AS cor0
----
3010
3185
3395

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + 85 col1 FROM tab2
----
1445
2635
5015

skipif mysql # not compatible
query I rowsort
SELECT ALL - tab2.col1 * - CAST ( col2 + + col1 * - 2 AS REAL ) FROM tab2
----
-1085
-5428
68

onlyif mysql # use DIV operator for integer division
query I rowsort label-9535
SELECT ALL tab0.col0 DIV 91 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9535
SELECT ALL tab0.col0 / 91 AS col1 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9536
SELECT DISTINCT - tab1.col1 + + ( + col2 ) DIV + col1 + + col1 * - col0 * col1 col2 FROM tab1
----
-13526
-2052
-6405

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9536
SELECT DISTINCT - tab1.col1 + + ( + col2 ) / + col1 + + col1 * - col0 * col1 col2 FROM tab1
----
-13526
-2052
-6405

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 15 ) * col0 + col0 col0 FROM tab0
----
1424
384
560

onlyif mysql # use DIV operator for integer division
query I rowsort label-9538
SELECT DISTINCT - 38 * + col0 * - col0 + + col1 * col1 DIV + ( + 58 ) + col2 FROM tab1 AS cor0
----
155706
243298
407

skipif mysql # not compatible
query I rowsort label-9538
SELECT DISTINCT - 38 * + col0 * - col0 + + col1 * col1 / + ( + 58 ) + col2 FROM tab1 AS cor0
----
155706
243298
407

onlyif mysql # use DIV operator for integer division
query I rowsort label-9539
SELECT + + col0 * - col2 * + col1 + col1 DIV - col0 FROM tab2 AS cor0
----
-119652
-51034
-5863

skipif mysql # not compatible
query I rowsort label-9539
SELECT + + col0 * - col2 * + col1 + col1 / - col0 FROM tab2 AS cor0
----
-119652
-51034
-5863

query I rowsort
SELECT + col2 + 44 FROM tab0
----
126
45
77

query I rowsort
SELECT DISTINCT ( 77 ) AS col1 FROM tab0
----
77

query I rowsort
SELECT ALL 94 + + 90 AS col1 FROM tab2
----
184
184
184

query I rowsort
SELECT ( - ( col2 ) ) * col0 + 67 FROM tab0
----
-7231
-725
32

query I rowsort
SELECT DISTINCT - col0 * + col0 * 56 AS col0 FROM tab0 AS cor0
----
-32256
-443576
-68600

query I rowsort
SELECT 24 AS col1 FROM tab2 cor0
----
24
24
24

query I rowsort
SELECT ALL - - 17 + + col1 + - col2 FROM tab0 AS cor0
----
113
26
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col2 ) col0 FROM tab1 AS cor0
----
-54
-57
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9548
SELECT + + col1 * col2 + - CAST( NULL AS SIGNED ) * + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9548
SELECT + + col1 * col2 + - CAST ( NULL AS INTEGER ) * + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col1 + - cor0.col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col1 * + col1 + + col1 AS col2 FROM tab0 cor0
----
-7310
-8190
-9312

query I rowsort
SELECT ALL - cor0.col0 * - col1 * - col1 + cor0.col1 AS col0 FROM tab2 AS cor0
----
-22814
-271459
-6696

query I rowsort
SELECT DISTINCT + 46 AS col0 FROM tab2 cor0
----
46

query I rowsort
SELECT ALL - col2 + cor0.col0 + col1 FROM tab2 AS cor0
----
11
111
58

query I rowsort
SELECT ALL + - col2 * - col2 - col1 * col1 FROM tab2 AS cor0
----
-232
-2805
1155

query I rowsort
SELECT ALL - col1 + 82 * - col1 * - col2 AS col1 FROM tab0 AS cor0
----
232630
611793
7857

query I rowsort
SELECT col2 * col0 * 17 AS col1 FROM tab2
----
3213
34476
51034

query I rowsort
SELECT ALL - col2 * col2 * - 96 FROM tab1
----
279936
311904
884736

query I rowsort
SELECT - col1 * col1 * - ( - cor0.col1 * col0 ) FROM tab1 AS cor0
----
-175760
-52728
-64000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col0 col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL cor0.col1 + col0 AS col0 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT col0 * + 76 FROM tab2 AS cor0
----
532
5928
6004

query I rowsort
SELECT + 92 * col2 AS col2 FROM tab0 AS cor0
----
3036
7544
92

query I rowsort
SELECT + col0 + + cor0.col1 + - col2 * 1 FROM tab1 AS cor0
----
-25
-3
17

query I rowsort
SELECT - ( ( col0 ) ) * + 22 AS col2 FROM tab0 cor0
----
-1958
-528
-770

onlyif mysql # use DIV operator for integer division
query I rowsort label-9565
SELECT ALL + CAST( - col1 AS SIGNED ) + col1 DIV + col2 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-9565
SELECT ALL + CAST ( - col1 AS INTEGER ) + col1 / + col2 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT - ( 72 ) + col2 + - 15 AS col0 FROM tab1 AS cor0
----
-30
-33
9

query I rowsort
SELECT + - col2 + - col1 * + col2 FROM tab0 AS cor0
----
-2871
-7544
-98

query I rowsort
SELECT + + 45 FROM tab0, tab0 AS cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 = + col1
----

query I rowsort
SELECT col1 * - tab1.col1 + col0 AS col2 FROM tab1
----
-36
-673
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col0 + - col0 col2 FROM tab0
----
2040
3360
8010

query I rowsort
SELECT col0 * col0 + + tab0.col1 FROM tab0
----
1322
662
8012

query III rowsort
SELECT * FROM tab1 WHERE ( + col1 * col2 * + col1 ) >= col1
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 NOT BETWEEN + col0 AND NULL
----

query I rowsort
SELECT ALL col0 * col1 - - col2 * + col1 AS col2 FROM tab2
----
1054
1989
6136

query I rowsort
SELECT - col0 * col1 - + col1 AS col1 FROM tab2
----
-1360
-248
-4661

query I rowsort
SELECT tab1.col1 - col1 AS col0 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col0 / - col0 ) >= col0
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col2 - col1 col0 FROM tab0
----
-53
-9
-96

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL < col0 * + col2 / col2
----

query I rowsort
SELECT + col1 - - col2 AS col2 FROM tab2
----
55
58
85

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN col1 / col2 AND - col2 - col0
----

query I rowsort
SELECT + col0 + + col0 * col0 * col0 FROM tab0
----
13848
42910
705058

query I rowsort
SELECT - tab2.col2 + col2 * - col1 + tab2.col0 AS col1 FROM tab2
----
-1482
-605
-857

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE NULL IN ( col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 + - col1 BETWEEN ( - col1 ) AND col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col1 col1 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-9588
SELECT DISTINCT col1 DIV - col0 - tab0.col1 FROM tab0
----
-89
-92
-99

skipif mysql # not compatible
query I rowsort label-9588
SELECT DISTINCT col1 / - col0 - tab0.col1 FROM tab0
----
-89
-92
-99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 + col2 BETWEEN + col1 AND col0 * + col1
----

query I rowsort
SELECT ALL col1 + col1 - col1 AS col2 FROM tab0
----
86
91
97

query I rowsort
SELECT DISTINCT tab2.col2 * + col2 FROM tab2
----
1444
676
729

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col0 + col2 ) <> NULL
----

query I rowsort
SELECT tab1.col1 + tab1.col2 * - col1 + tab1.col0 FROM tab1
----
-1155
-1375
-496

query I rowsort
SELECT ALL + col0 + col0 FROM tab1 WHERE NOT NULL NOT IN ( + col1 * col0 + + col1 / col0 )
----

query I rowsort
SELECT - col2 * - col0 * col2 + col2 + col2 FROM tab0
----
26202
37
598600

query I rowsort
SELECT col1 * + col1 + col2 * col0 AS col0 FROM tab2 AS cor0
----
1150
3291
5509

query I rowsort
SELECT 39 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT - tab1.col2 + - col0 + - col1 * - col1 * + ( + col0 ) AS col0 FROM tab1
----
13344
1971
6279

query I rowsort
SELECT ALL - col2 * - ( col0 ) - - col2 * 77 AS col2 FROM tab2 AS cor0
----
2268
4030
5928

query I rowsort
SELECT + col2 + + cor0.col0 * + 70 FROM tab2 AS cor0
----
517
5486
5568

query I rowsort
SELECT ALL + - col0 + 46 FROM tab0 cor0
----
-43
11
22

onlyif mysql # use DIV operator for integer division
query I rowsort label-9602
SELECT ALL + col0 DIV + 22 + 12 FROM tab2 AS cor0
----
12
15
15

skipif mysql # not compatible
query I rowsort label-9602
SELECT ALL + col0 / + 22 + 12 FROM tab2 AS cor0
----
12
15
15

onlyif mysql # use DIV operator for integer division
query I rowsort label-9603
SELECT DISTINCT - col2 DIV ( ( col2 ) ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9603
SELECT DISTINCT - col2 / ( ( col2 ) ) FROM tab1 AS cor0
----
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9604
SELECT col0 - CAST( - col2 AS SIGNED ) * cor0.col1 AS col2 FROM tab0 AS cor0
----
132
2862
7551

skipif mysql # not compatible
query I rowsort label-9604
SELECT col0 - CAST ( - col2 AS INTEGER ) * cor0.col1 AS col2 FROM tab0 AS cor0
----
132
2862
7551

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + col2 col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 10 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
10

query I rowsort
SELECT DISTINCT col1 + + col1 + - col2 FROM tab1 AS cor0
----
-2
-37
-70

query I rowsort
SELECT DISTINCT - ( col0 ) * + col2 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ( col2 + - col0 * + col1 ) FROM tab1
----
-24
-583
-944

query I rowsort
SELECT ALL - 21 FROM tab2, tab1 cor0
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

onlyif mysql # use DIV operator for integer division
query I rowsort label-9611
SELECT ALL + 21 DIV - col0 AS col1 FROM tab2 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-9611
SELECT ALL + 21 / - col0 AS col1 FROM tab2 AS cor0
----
-3
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9612
SELECT DISTINCT CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9612
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + + 7 + - col0 FROM tab1 cor0
----
-57
-73
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 47 col2 FROM tab1
----
47
47
47

query I rowsort
SELECT DISTINCT - tab1.col2 * - col2 AS col1 FROM tab1
----
2916
3249
9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-9616
SELECT + col1 DIV - col1 + - col0 * + col1 AS col1 FROM tab2
----
-1344
-218
-4603

skipif mysql # not compatible
query I rowsort label-9616
SELECT + col1 / - col1 + - col0 * + col1 AS col1 FROM tab2
----
-1344
-218
-4603

query I rowsort
SELECT DISTINCT 33 AS col2 FROM tab0 cor0
----
33

onlyif mysql # use DIV operator for integer division
query I rowsort label-9618
SELECT + 41 DIV + cor0.col0 AS col0 FROM tab2 AS cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-9618
SELECT + 41 / + cor0.col0 AS col0 FROM tab2 AS cor0
----
0
0
5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9619
SELECT DISTINCT 86 * col1 + CAST( - 33 + col0 AS SIGNED ) FROM tab1 AS cor0
----
1165
2206
891

skipif mysql # not compatible
query I rowsort label-9619
SELECT DISTINCT 86 * col1 + CAST ( - 33 + col0 AS INTEGER ) FROM tab1 AS cor0
----
1165
2206
891

query I rowsort
SELECT DISTINCT + 68 * col0 + col2 + 90 AS col1 FROM tab0 AS cor0
----
1755
2471
6224

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 * - ( - col1 ) col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL - - col0 * ( col1 ) FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT + col0 + + col1 - col2 AS col2 FROM tab1 AS cor0
----
-25
-3
17

query I rowsort
SELECT - - col0 - col2 FROM tab0 AS cor0
----
-9
34
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-9625
SELECT ALL - cor0.col0 DIV - ( col2 ) FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-9625
SELECT ALL - cor0.col0 / - ( col2 ) FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT DISTINCT + col2 * col2 FROM tab0 cor0
----
1
1089
6724

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9627
SELECT cor0.col1 + CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9627
SELECT cor0.col1 + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + 22 col0 FROM tab0 AS cor0
----
-13
-2
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col1 ) + + col2 col0 FROM tab1
----
28
47
83

query I rowsort
SELECT ALL 55 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT DISTINCT + cor1.col0 AS col0 FROM tab2, tab1 AS cor0, tab0, tab1 AS cor1
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-9632
SELECT - CAST( + col1 AS SIGNED ) DIV + col0 + col0 * 4 * + col2 + 67 AS col0 FROM tab1 AS cor0
----
14659
30787
707

skipif mysql # not compatible
query I rowsort label-9632
SELECT - CAST ( + col1 AS INTEGER ) / + col0 + col0 * 4 * + col2 + 67 AS col0 FROM tab1 AS cor0
----
14659
30787
707

query I rowsort
SELECT ( + cor0.col1 ) * + col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT ( col2 ) * col0 AS col1 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-9635
SELECT - col2 DIV + col1 col2 FROM tab2 cor0
----
-2
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9635
SELECT - col2 / + col1 col2 FROM tab2 cor0
----
-2
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9636
SELECT ALL CAST( col0 AS SIGNED ) * + col2 FROM tab1 AS cor0
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-9636
SELECT ALL CAST ( col0 AS INTEGER ) * + col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT - 69 + - cor0.col2 FROM tab0 cor0
----
-102
-151
-70

query I rowsort
SELECT ALL + col0 * col0 AS col2 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT ALL col1 * col0 + - 20 FROM tab1 cor0
----
1020
58
620

query I rowsort
SELECT tab2.col2 * 26 AS col0 FROM tab2
----
676
702
988

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 94 * - col1 col2 FROM tab1
----
-15886
-63544
-9400

query I rowsort
SELECT + - cor0.col0 + - col1 * + col0 AS col0 FROM tab1 cor0
----
-1120
-704
-81

query I rowsort
SELECT - col0 + 60 * col1 AS col2 FROM tab1 AS cor0
----
1557
536
700

query I rowsort
SELECT col0 * + 43 AS col1 FROM tab0 AS cor0
----
1032
1505
3827

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9645
SELECT ( 6 ) + + col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9645
SELECT ( 6 ) + + col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( + 38 ) + + cor0.col1 + col2 * - col2 AS col1 FROM tab0 AS cor0
----
-6595
-965
134

query I rowsort
SELECT - cor0.col1 * col2 + + col1 AS col0 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT ( + 23 ) AS col1 FROM tab2 AS cor0
----
23
23
23

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9649
SELECT - - CAST( NULL AS DECIMAL ) + ( col0 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9649
SELECT - - CAST ( NULL AS REAL ) + ( col0 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( - tab0.col1 ) FROM tab0, tab1 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT ( cor0.col1 * tab2.col1 ) + 71 FROM tab2, tab0 AS cor0
----
9 values hashing to e3d757f0da330ecdf8fcc9aef114f45b

query I rowsort
SELECT col1 * 97 + + col2 AS col2 FROM tab0
----
8375
8909
9410

onlyif mysql # use DIV operator for integer division
query I rowsort label-9653
SELECT DISTINCT col2 DIV ( tab1.col0 ) AS col0 FROM tab1
----
0
1
18

skipif mysql # not compatible
query I rowsort label-9653
SELECT DISTINCT col2 / ( tab1.col0 ) AS col0 FROM tab1
----
0
1
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( - 71 ) col2 FROM tab2 AS cor0
----
71
71
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 21 col2 FROM tab2 AS cor0
----
21
21
21

query I rowsort
SELECT DISTINCT - 35 AS col1 FROM tab0, tab0 AS cor0
----
-35

query I rowsort
SELECT + tab0.col2 * tab0.col2 * col2 AS col1 FROM tab0
----
1
35937
551368

query I rowsort
SELECT DISTINCT + - 29 + - col1 * - cor0.col0 FROM tab0 AS cor0
----
2035
3366
8070

query I rowsort
SELECT + 30 * - col1 AS col0 FROM tab0
----
-2580
-2730
-2910

query I rowsort
SELECT DISTINCT + - col0 * + col2 + + col2 AS col2 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT DISTINCT ( - col2 ) + col0 AS col0 FROM tab0 cor0
----
-9
34
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9662
SELECT - cor0.col0 * - col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9662
SELECT - cor0.col0 * - col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9663
SELECT - ( col2 ) DIV 19 AS col0 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-9663
SELECT - ( col2 ) / 19 AS col0 FROM tab2 AS cor0
----
-1
-1
-2

query I rowsort
SELECT 39 - + col2 * col2 AS col0 FROM tab0
----
-1050
-6685
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 40 ) * col1 * + col1 col1 FROM tab1
----
-27040
-4000
-6760

onlyif mysql # use DIV operator for integer division
query I rowsort label-9666
SELECT ALL + col1 + col1 DIV + 79 + col1 AS col2 FROM tab0 AS cor0
----
173
183
195

skipif mysql # not compatible
query I rowsort label-9666
SELECT ALL + col1 + col1 / + 79 + col1 AS col2 FROM tab0 AS cor0
----
173
183
195

query I rowsort
SELECT + 73 + + col2 FROM tab2
----
100
111
99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9668
SELECT col2 * CAST( NULL AS DECIMAL ) + 72 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9668
SELECT col2 * CAST ( NULL AS REAL ) + 72 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - col2 col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9670
SELECT CAST( 44 AS SIGNED ) AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b

skipif mysql # not compatible
query I rowsort label-9670
SELECT CAST ( 44 AS INTEGER ) AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b

query I rowsort
SELECT - col0 * - col2 + - tab1.col2 + + col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT - col1 * ( - col1 ) FROM tab1
----
100
169
676

query I rowsort
SELECT - col0 + col0 * 1 + col2 * + col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT - col1 * col0 + 91 + col1 * cor0.col2 FROM tab2 AS cor0
----
-2977
-606
711

query I rowsort
SELECT + col2 * + 74 + col2 AS col2 FROM tab0 AS cor0
----
2475
6150
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - ( + col1 ) + + cor0.col2 col2 FROM tab1 AS cor0
----
-24
-583
-944

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9677
SELECT ALL 1 * col2 * CAST( - 46 AS SIGNED ) + + col1 FROM tab2
----
-1137
-1211
-1731

skipif mysql # not compatible
query I rowsort label-9677
SELECT ALL 1 * col2 * CAST ( - 46 AS INTEGER ) + + col1 FROM tab2
----
-1137
-1211
-1731

query I rowsort
SELECT col1 * col0 * + 39 AS col1 FROM tab0
----
132405
315861
80496

query I rowsort
SELECT 51 + - col0 + 20 FROM tab2
----
-7
-8
64

query I rowsort
SELECT - 66 - col1 * + 25 FROM tab1
----
-316
-391
-716

query I rowsort
SELECT 4 + + col0 + - 95 AS col0 FROM tab2
----
-12
-13
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col0 col0 FROM tab0
----
171
36
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9683
SELECT + col1 / col1 - ( + 93 + - col1 ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9683
SELECT + col1 / col1 - ( + 93 + - col1 ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col0 + col1 AS col0 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT ALL 90 FROM tab1, tab1 cor0, tab2 AS cor1, tab1 cor2
----
81 values hashing to 3b4644ef0734ed220952cae7e0648c4b

query I rowsort
SELECT + + 20 * col2 FROM tab1 AS cor0
----
1080
1140
1920

query I rowsort
SELECT DISTINCT - - cor0.col1 * - col2 + + col1 * - col0 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
-1023
-1972
-6077

query I rowsort
SELECT DISTINCT cor0.col1 + - cor0.col1 + + col0 * col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT ALL col1 - ( - cor0.col1 ) * - cor0.col2 AS col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT - cor0.col2 * - col1 + col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT - col1 * col2 * 26 FROM tab0 AS cor0
----
-194012
-2522
-73788

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 36 col1 FROM tab1 AS cor0
----
108
2304
2880

query I rowsort
SELECT DISTINCT col0 - col0 * 6 * col1 AS col1 FROM tab2 AS cor0
----
-1295
-27534
-7979

query I rowsort
SELECT DISTINCT col2 + ( 44 ) AS col1 FROM tab1 AS cor0
----
101
140
98

query I rowsort
SELECT - - col2 * col2 + col2 AS col0 FROM tab0 AS cor0
----
1122
2
6806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * cor0.col2 + - 39 * - col2 + - 26 * + 98 col1 FROM tab2 cor0
----
-1306
1936
494

query I rowsort
SELECT - + col2 * cor0.col1 + + cor0.col2 FROM tab2 AS cor0
----
-1508
-608
-810

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9698
SELECT DISTINCT + + col2 * + CAST( NULL AS DECIMAL ) + - col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9698
SELECT DISTINCT + + col2 * + CAST ( NULL AS REAL ) + - col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col2 + ( ( cor0.col2 ) ) AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT tab1.col2 * col0 - tab1.col2 FROM tab1
----
108
3591
7584

query I rowsort
SELECT + tab2.col2 * - col2 * - 45 AS col2 FROM tab2
----
30420
32805
64980

query I rowsort
SELECT DISTINCT - 91 + tab2.col1 * col2 FROM tab2
----
1443
555
746

query I rowsort
SELECT col1 * - col1 + - col1 FROM tab0
----
-7482
-8372
-9506

query I rowsort
SELECT ALL - col2 * - 95 AS col1 FROM tab2 AS cor0
----
2470
2565
3610

query I rowsort
SELECT ALL - cor0.col2 * + col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT + col2 + col2 * col1 AS col1 FROM tab2 cor0
----
1560
684
864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 67 + + 85 * - col1 * - col0 col1 FROM tab0 cor0
----
175507
288642
688482

query I rowsort
SELECT ALL ( - col1 ) * col0 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9709
SELECT - CAST( - 65 AS SIGNED ) FROM tab2 cor0
----
65
65
65

skipif mysql # not compatible
query I rowsort label-9709
SELECT - CAST ( - 65 AS INTEGER ) FROM tab2 cor0
----
65
65
65

query I rowsort
SELECT ALL - 2 + col1 + + col2 FROM tab1 AS cor0
----
107
65
78

query I rowsort
SELECT DISTINCT + + ( 52 ) AS col2 FROM tab2 AS cor0
----
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-9712
SELECT col2 DIV + 12 FROM tab1 AS cor0
----
4
4
8

skipif mysql # not compatible
query I rowsort label-9712
SELECT col2 / + 12 FROM tab1 AS cor0
----
4
4
8

query I rowsort
SELECT - - 74 * - col2 AS col1 FROM tab0 cor0
----
-2442
-6068
-74

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9714
SELECT + + CAST( NULL AS DECIMAL ) + + ( cor0.col0 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9714
SELECT + + CAST ( NULL AS REAL ) + + ( cor0.col0 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( 40 ) AS col1 FROM tab0 AS cor0
----
40

query I rowsort
SELECT ALL - 41 + ( cor0.col2 ) FROM tab1 AS cor0
----
13
16
55

query I rowsort
SELECT ALL - 42 + + col2 * col0 FROM tab1 AS cor0
----
120
3606
7638

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col2 + + ( col1 + 19 ) col2 FROM tab2 AS cor0
----
-2
23
52

query I rowsort
SELECT DISTINCT - cor0.col1 * - col0 + cor0.col1 + 97 AS col0 FROM tab0 AS cor0
----
2247
3589
8287

query I rowsort
SELECT DISTINCT - + 21 + - col2 AS col0 FROM tab2 cor0
----
-47
-48
-59

query I rowsort
SELECT ALL - + col0 * cor0.col2 FROM tab1 cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-9722
SELECT ALL - 42 DIV + col0 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9722
SELECT ALL - 42 / + col0 FROM tab0 AS cor0
----
-1
-1
0

query I rowsort
SELECT + 38 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT + - 10 AS col0 FROM tab0 cor0
----
-10
-10
-10

query I rowsort
SELECT DISTINCT 47 + + col1 AS col1 FROM tab1 AS cor0
----
57
60
73

query I rowsort
SELECT ALL col2 + col1 * + 52 AS col1 FROM tab1 cor0
----
1406
577
772

query I rowsort
SELECT ALL + 60 * 75 FROM tab1
----
4500
4500
4500

query I rowsort
SELECT ( - col1 ) + + ( col2 ) FROM tab0 AS cor0
----
-53
-9
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9729
SELECT + col2 + + col0 * + CAST( col1 AS SIGNED ) AS col1 FROM tab0 cor0
----
2097
3396
8181

skipif mysql # not compatible
query I rowsort label-9729
SELECT + col2 + + col0 * + CAST ( col1 AS INTEGER ) AS col1 FROM tab0 cor0
----
2097
3396
8181

query I rowsort
SELECT ALL - ( - cor0.col0 ) AS col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT ALL col1 * col0 + + col2 AS col2 FROM tab2
----
1381
244
4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-9732
SELECT ALL col0 DIV col2 + col0 + tab0.col2 AS col2 FROM tab0
----
172
57
71

skipif mysql # not compatible
query I rowsort label-9732
SELECT ALL col0 / col2 + col0 + tab0.col2 AS col2 FROM tab0
----
172
57
71

query I rowsort
SELECT ALL 30 * col1 AS col1 FROM tab2 AS cor0
----
1770
510
930

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9734
SELECT DISTINCT + col0 * col2 * CAST( col1 * col2 AS SIGNED ) FROM tab1 AS cor0
----
2079360
227448
9584640

skipif mysql # not compatible
query I rowsort label-9734
SELECT DISTINCT + col0 * col2 * CAST ( col1 * col2 AS INTEGER ) FROM tab1 AS cor0
----
2079360
227448
9584640

query I rowsort
SELECT + col1 + - cor0.col2 + + col0 AS col2 FROM tab2 AS cor0
----
11
111
58

query I rowsort
SELECT ALL - ( col0 ) * - ( ( cor0.col0 ) ) AS col2 FROM tab1 AS cor0
----
4096
6400
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * cor0.col1 + col1 + + col0 * col0 col0 FROM tab1 AS cor0
----
1439
4676
7661

query I rowsort
SELECT DISTINCT 66 * col1 AS col2 FROM tab0 cor0
----
5676
6006
6402

onlyif mysql # use DIV operator for integer division
query I rowsort label-9739
SELECT ALL + 4 DIV col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9739
SELECT ALL + 4 / col1 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col0 * - col1 col1 FROM tab2
----
1422
224
4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-9741
SELECT + 14 * tab0.col2 + + tab0.col2 DIV - 53 AS col0 FROM tab0
----
1147
14
462

skipif mysql # not compatible
query I rowsort label-9741
SELECT + 14 * tab0.col2 + + tab0.col2 / - 53 AS col0 FROM tab0
----
1147
14
462

query I rowsort
SELECT DISTINCT 41 AS col0 FROM tab1
----
41

query I rowsort
SELECT ALL + 98 + cor0.col0 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 962b1590ab4ad04f4d0639edf40c8678

onlyif mysql # use DIV operator for integer division
query I rowsort label-9744
SELECT ALL + col1 + col2 DIV - col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-9744
SELECT ALL + col1 + col2 / - col1 FROM tab0 AS cor0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-9745
SELECT ALL + 61 * - col0 + + col2 + - 74 DIV + col2 col0 FROM tab0 AS cor0
----
-1433
-2208
-5347

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9745
SELECT ALL + 61 * - col0 + + col2 + - 74 / + col2 col0 FROM tab0 AS cor0
----
-1433
-2208
-5347

onlyif mysql # use DIV operator for integer division
query I rowsort label-9746
SELECT ALL - 38 DIV cor0.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to b2e225572af74ba853e10fb5414ea67f

skipif mysql # not compatible
query I rowsort label-9746
SELECT ALL - 38 / cor0.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to b2e225572af74ba853e10fb5414ea67f

query I rowsort
SELECT ALL - + ( col2 ) * col2 + col2 FROM tab2 cor0
----
-1406
-650
-702

query I rowsort
SELECT DISTINCT + 13 + col2 FROM tab0 cor0
----
14
46
95

query I rowsort
SELECT ALL - - cor0.col1 * col1 + col0 AS col0 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT - + 63 * 39 AS col0 FROM tab1 AS cor0
----
-2457
-2457
-2457

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 - + 18 col2 FROM tab1 AS cor0
----
-15
46
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 * + 7 + cor0.col2 col1 FROM tab2 AS cor0
----
572
591
76

skipif mysql # not compatible
query I rowsort
SELECT + col2 + + CAST ( - cor0.col1 AS REAL ) * - col1 FROM tab0 cor0
----
7429
8363
9410

query I rowsort
SELECT - 83 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 77a48ad722db122f51d5ef36604ad843

query I rowsort
SELECT ALL + ( + 14 ) AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query I rowsort
SELECT DISTINCT - 11 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
-11

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 cor0, tab0 AS cor1, tab2, tab1 cor2
----
3645 values hashing to b2cff03af5bc7306c5e3322cc78563c1

query I rowsort
SELECT DISTINCT col1 * ( col2 + + col2 ) FROM tab0 AS cor0
----
14924
194
5676

query I rowsort
SELECT col0 * - col1 * - tab2.col0 AS col1 FROM tab2
----
106097
1519
358956

query I rowsort
SELECT - 88 FROM tab0, tab1 AS cor0, tab2 cor1, tab1, tab2 cor2
----
243 values hashing to ef165d16d142b2f086d00ab2ab052e67

query I rowsort
SELECT ALL col2 + - col0 + + col1 * 0 FROM tab1
----
-7
16
51

query I rowsort
SELECT ALL + 52 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9763
SELECT ALL CAST( - col2 AS SIGNED ) * col2 FROM tab2
----
-1444
-676
-729

skipif mysql # not compatible
query I rowsort label-9763
SELECT ALL CAST ( - col2 AS INTEGER ) * col2 FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT - 98 + col0 FROM tab0
----
-63
-74
-9

query I rowsort
SELECT ALL + - tab0.col2 AS col0 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

onlyif mysql # use DIV operator for integer division
query I rowsort label-9766
SELECT 39 DIV col1 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-9766
SELECT 39 / col1 FROM tab2
----
0
1
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-9767
SELECT - ( - col1 ) DIV tab1.col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9767
SELECT - ( - col1 ) / tab1.col2 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT ( col1 ) - - col1 AS col0 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT 46 * + col2 FROM tab1 AS cor0
----
2484
2622
4416

query I rowsort
SELECT 96 * + ( - col0 + 5 ) * + col0 FROM tab0 AS cor0
----
-100800
-43776
-717696

onlyif mysql # use DIV operator for integer division
query I rowsort label-9771
SELECT + + col1 + col1 - + col1 DIV col2 FROM tab0 cor0
----
170
181
97

skipif mysql # not compatible
query I rowsort label-9771
SELECT + + col1 + col1 - + col1 / col2 FROM tab0 cor0
----
170
181
97

query I rowsort
SELECT ALL - - 28 + - ( + col1 ) AS col0 FROM tab2 AS cor0
----
-3
-31
11

query I rowsort
SELECT + col0 * + 27 AS col0 FROM tab1 AS cor0
----
1728
2160
81

query I rowsort
SELECT - + col0 * + 10 AS col2 FROM tab0 AS cor0
----
-240
-350
-890

query I rowsort
SELECT + 57 + - col1 FROM tab2 AS cor0
----
-2
26
40

query I rowsort
SELECT col2 * col2 + ( 72 ) * - cor0.col1 FROM tab1 AS cor0
----
1044
2529
8280

query I rowsort
SELECT DISTINCT - ( col0 ) - col1 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT col0 * 26 FROM tab1
----
1664
2080
78

query I rowsort
SELECT - col0 + - col1 * col2 FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT + col1 - + col2 * - 85 AS col0 FROM tab2 cor0
----
2269
2326
3247

query I rowsort
SELECT DISTINCT col1 - tab1.col1 FROM tab1
----
0

query I rowsort
SELECT 0 * col2 - + ( - 17 * col0 ) AS col0 FROM tab0
----
1513
408
595

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9783
SELECT - 53 + + col2 - - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9783
SELECT - 53 + + col2 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * tab1.col2 * col2 - tab1.col2 AS col1 FROM tab1
----
-207993
-737376
-8802

query I rowsort
SELECT - col2 - col1 * 89 AS col1 FROM tab0 cor0
----
-7687
-8181
-8634

query I rowsort
SELECT - 58 AS col1 FROM tab0 AS cor0
----
-58
-58
-58

query I rowsort
SELECT col0 + - col0 + + col2 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT ALL - col2 * + 40 + - 23 FROM tab1 AS cor0
----
-2183
-2303
-3863

onlyif mysql # use DIV operator for integer division
query I rowsort label-9789
SELECT - col1 + + 57 + + 43 DIV col1 FROM tab2 AS cor0
----
-2
27
42

skipif mysql # not compatible
query I rowsort label-9789
SELECT - col1 + + 57 + + 43 / col1 FROM tab2 AS cor0
----
-2
27
42

query I rowsort
SELECT + - col2 + col1 + - 33 FROM tab1 cor0
----
-116
-61
-80

query I rowsort
SELECT DISTINCT - - col2 + - ( 98 ) AS col0 FROM tab1 cor0
----
-2
-41
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - col2 * + col1 col2 FROM tab2 AS cor0
----
-1593
-663
-868

query I rowsort
SELECT - col1 * 88 AS col1 FROM tab1 AS cor0
----
-1144
-2288
-880

query I rowsort
SELECT - + col0 + ( + 82 + - col1 ) * + ( - col1 ) AS col1 FROM tab2 AS cor0
----
-1184
-1435
-1588

query I rowsort
SELECT - col1 * + 43 AS col0 FROM tab1 AS cor0
----
-1118
-430
-559

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9796
SELECT + col1 + CAST( NULL AS SIGNED ) * + 25 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9796
SELECT + col1 + CAST ( NULL AS INTEGER ) * + 25 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * + tab2.col1 AS col2 FROM tab2
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-9798
SELECT tab1.col0 DIV + col2 AS col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9798
SELECT tab1.col0 / + col2 AS col2 FROM tab1
----
0
0
1

query I rowsort
SELECT - 61 * - col2 FROM tab2 AS cor0
----
1586
1647
2318

onlyif mysql # use DIV operator for integer division
query I rowsort label-9800
SELECT - 1 DIV - col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9800
SELECT - 1 / - col2 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col2 col0 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 2 * + col2 + - tab2.col1 col0 FROM tab2
----
1275
1643
3009

query I rowsort
SELECT DISTINCT 4 FROM tab2, tab1 AS cor0
----
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9804
SELECT CAST( col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-9804
SELECT CAST ( col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT + 12 * - col2 AS col2 FROM tab2
----
-312
-324
-456

query I rowsort
SELECT DISTINCT + col0 - 4 FROM tab1
----
-1
60
76

query I rowsort
SELECT + col0 + ( - col0 ) AS col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL col1 * col0 * col1 FROM tab2
----
22831
271518
6727

query I rowsort
SELECT ALL - col1 + - 76 FROM tab2 cor0
----
-107
-135
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 3 * col2 col0 FROM tab2 AS cor0
----
-114
-78
-81

query I rowsort
SELECT ALL 75 + cor0.col2 AS col0 FROM tab2 AS cor0
----
101
102
113

query I rowsort
SELECT + ( col2 ) * col2 - + col1 AS col2 FROM tab2 AS cor0
----
1427
617
698

query I rowsort
SELECT ALL + 5 + + col1 AS col0 FROM tab0 AS cor0
----
102
91
96

query I rowsort
SELECT DISTINCT col0 - 91 FROM tab0 AS cor0
----
-2
-56
-67

query I rowsort
SELECT ALL + cor0.col0 * col1 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT + col1 + - cor0.col2 * - col1 AS col0 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT DISTINCT - col2 + - 58 * + col0 FROM tab0 AS cor0
----
-1425
-2031
-5244

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9818
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col1 + cor0.col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9818
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col1 + cor0.col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col0 + 56 AS col0 FROM tab0 AS cor0
----
145
80
91

query I rowsort
SELECT ALL - 61 * col1 + - col0 FROM tab2 cor0
----
-1116
-1898
-3677

query I rowsort
SELECT DISTINCT + - 24 * + col1 - + col2 FROM tab2 AS cor0
----
-1442
-446
-771

query I rowsort
SELECT col1 - 94 * col0 FROM tab0 AS cor0
----
-2170
-3193
-8275

query I rowsort
SELECT DISTINCT + col2 * + col1 + col2 * - col2 AS col1 FROM tab2 cor0
----
-798
108
858

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( 50 AS REAL ) + col1 * 30 FROM tab0 AS cor0
----
2630
2780
2960

query I rowsort
SELECT DISTINCT + col1 - - 89 AS col1 FROM tab0 AS cor0
----
175
180
186

query I rowsort
SELECT cor0.col2 * 19 + col1 * - col1 AS col0 FROM tab2 AS cor0
----
-2987
-448
433

query I rowsort
SELECT ALL - cor0.col1 * col1 + - col0 AS col2 FROM tab2 AS cor0
----
-3559
-368
-968

query I rowsort
SELECT + + col0 - - col1 AS col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL col1 * + 34 * col2 AS col0 FROM tab1 AS cor0
----
19380
42432
47736

query I rowsort
SELECT ALL + col0 + 66 * - col0 FROM tab2 AS cor0
----
-455
-5070
-5135

query I rowsort
SELECT - - col2 + - ( + cor0.col2 ) AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9832
SELECT - col0 DIV - col2 + 33 FROM tab1 AS cor0
----
33
33
34

skipif mysql # not compatible
query I rowsort label-9832
SELECT - col0 / - col2 + 33 FROM tab1 AS cor0
----
33
33
34

query I rowsort
SELECT - col1 + + col2 * + 43 * - col0 FROM tab2 AS cor0
----
-129103
-8158
-87263

query I rowsort
SELECT ALL - ( col1 + ( col1 ) ) AS col0 FROM tab0
----
-172
-182
-194

query I rowsort
SELECT ALL + - ( - 52 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7f4ae30893ab330784829711032ae599

onlyif mysql # use DIV operator for integer division
query I rowsort label-9836
SELECT + col2 + - col2 DIV 29 FROM tab1 AS cor0
----
53
56
93

skipif mysql # not compatible
query I rowsort label-9836
SELECT + col2 + - col2 / 29 FROM tab1 AS cor0
----
53
56
93

query I rowsort
SELECT DISTINCT 27 + - col2 * + col0 FROM tab0 AS cor0
----
-7271
-765
-8

query I rowsort
SELECT ALL - col0 * cor0.col2 AS col2 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT + - col2 * + col2 + cor0.col0 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
-1226
-14645
-1665

onlyif mysql # use DIV operator for integer division
query I rowsort label-9840
SELECT + col2 + col1 DIV + cor0.col2 AS col1 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-9840
SELECT + col2 + col1 / + cor0.col2 AS col1 FROM tab1 AS cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-9841
SELECT ALL + + col1 DIV - 45 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9841
SELECT ALL + + col1 / - 45 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 * 93 FROM tab2 AS cor0
----
-651
-7254
-7347

query I rowsort
SELECT - - col0 * - col1 + 54 FROM tab1 AS cor0
----
-24
-586
-986

query I rowsort
SELECT - 83 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 77a48ad722db122f51d5ef36604ad843

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + cor0.col0 * col0 - col2 col0 FROM tab2 cor0
----
53
6117
6220

query I rowsort
SELECT ALL + col1 * col0 - col2 AS col2 FROM tab1 AS cor0
----
24
583
944

onlyif mysql # use DIV operator for integer division
query I rowsort label-9847
SELECT - col2 DIV + col2 - 79 * ( + col1 + + tab1.col2 ) DIV - 6 FROM tab1
----
1052
1434
881

skipif mysql # not compatible
query I rowsort label-9847
SELECT - col2 / + col2 - 79 * ( + col1 + + tab1.col2 ) / - 6 FROM tab1
----
1052
1434
881

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9848
SELECT ALL ( + 75 ) * - cor0.col2 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9848
SELECT ALL ( + 75 ) * - cor0.col2 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL - - col0 + - col0 * col1 FROM tab1 cor0
----
-576
-75
-960

query I rowsort
SELECT + col0 + 29 * + col1 FROM tab0 AS cor0
----
2518
2728
2848

onlyif mysql # use DIV operator for integer division
query I rowsort label-9851
SELECT ALL cor0.col0 + col0 DIV - cor0.col2 AS col1 FROM tab0 AS cor0
----
0
24
88

skipif mysql # not compatible
query I rowsort label-9851
SELECT ALL cor0.col0 + col0 / - cor0.col2 AS col1 FROM tab0 AS cor0
----
0
24
88

query I rowsort
SELECT DISTINCT - - col1 + + col1 * cor0.col1 AS col0 FROM tab2 AS cor0
----
306
3540
992

query I rowsort
SELECT ALL - col2 + + ( - cor0.col0 ) FROM tab1 cor0
----
-121
-176
-57

query I rowsort
SELECT - col2 * 37 AS col2 FROM tab0 AS cor0
----
-1221
-3034
-37

query I rowsort
SELECT ALL col1 * + tab0.col1 + tab0.col0 AS col2 FROM tab0
----
7420
8370
9444

query I rowsort
SELECT DISTINCT - col1 * 90 + col0 * col2 FROM tab1 AS cor0
----
-2178
2748
6510

query I rowsort
SELECT DISTINCT + cor0.col2 * - col2 + col2 + - col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT col1 - 71 * col2 * - col1 FROM tab2
----
108973
45883
59458

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9859
SELECT + CAST( NULL AS DECIMAL ) * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9859
SELECT + CAST ( NULL AS REAL ) * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 47 col2 FROM tab0, tab1 AS cor0, tab1 cor1
----
47

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab0 cor1, tab1, tab2 AS cor2
----
3645 values hashing to 47906197307eee6829150d762058792a

query I rowsort
SELECT ALL + col1 * col1 * - col1 + col0 * - col2 AS col0 FROM tab0 AS cor0
----
-636848
-760869
-912708

query I rowsort
SELECT ALL - + cor0.col0 + + col1 AS col2 FROM tab2 AS cor0
----
-19
-62
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 19 * + col2 + col1 col1 FROM tab0 AS cor0
----
116
1649
713

query I rowsort
SELECT + 60 + col0 FROM tab2 AS cor0
----
138
139
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 19 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query I rowsort
SELECT + 85 + 90 + cor0.col0 AS col2 FROM tab0, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to e9501908054cd277dc7e5b0195b6590f

query I rowsort
SELECT - 72 + tab2.col2 FROM tab2, tab0 AS cor0
----
9 values hashing to d17141049b1d1a84e3f4a4fac74220f0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col1 col0 FROM tab2
----
137
38
96

query I rowsort
SELECT ALL + 80 AS col1 FROM tab0
----
80
80
80

query I rowsort
SELECT ALL - 88 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to eb8cbefa7d831e1a0183e919e2caef32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 35 col0 FROM tab2, tab1 AS cor0
----
-35

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9873
SELECT ALL col1 + col0 * + CAST( - 81 AS SIGNED ) FROM tab0 cor0
----
-1858
-2738
-7118

skipif mysql # not compatible
query I rowsort label-9873
SELECT ALL col1 + col0 * + CAST ( - 81 AS INTEGER ) FROM tab0 cor0
----
-1858
-2738
-7118

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9874
SELECT ALL col0 + + cor0.col1 * CAST( col0 AS SIGNED ) * col1 FROM tab0 AS cor0
----
177528
329350
737098

skipif mysql # not compatible
query I rowsort label-9874
SELECT ALL col0 + + cor0.col1 * CAST ( col0 AS INTEGER ) * col1 FROM tab0 AS cor0
----
177528
329350
737098

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col2 + + col2 col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - 49 + - col2 * 68 + - 37 AS col2 FROM tab1 AS cor0
----
-3758
-3962
-6614

query I rowsort
SELECT col1 - col2 * ( + col2 ) * col0 AS col0 FROM tab2 AS cor0
----
-114059
-5072
-52669

query I rowsort
SELECT DISTINCT - col2 + - tab2.col1 * col2 FROM tab2
----
-1560
-684
-864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 87 + col2 * + col1 + + col2 * col2 col0 FROM tab1
----
10551
3906
4407

onlyif mysql # use DIV operator for integer division
query I rowsort label-9880
SELECT ( 27 ) DIV - col1 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9880
SELECT ( 27 ) / - col1 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT 16 * - col0 AS col0 FROM tab1
----
-1024
-1280
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + tab1.col2 col0 FROM tab1
----
121
176
57

query I rowsort
SELECT + - col2 * + cor0.col2 AS col1 FROM tab2 cor0
----
-1444
-676
-729

query I rowsort
SELECT + + 12 * col2 - + 10 FROM tab0 cor0
----
2
386
974

onlyif mysql # use DIV operator for integer division
query I rowsort label-9885
SELECT DISTINCT + col1 DIV 83 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9885
SELECT DISTINCT + col1 / 83 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL - tab0.col0 AS col2 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - col2 ) * col2 col0 FROM tab1 AS cor0
----
-2916
-3249
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 34 * col0 * col0 col0 FROM tab2 AS cor0
----
1666
206856
212194

onlyif mysql # use DIV operator for integer division
query I rowsort label-9889
SELECT - ( 29 ) DIV - cor0.col2 AS col0 FROM tab0 cor0
----
0
0
29

skipif mysql # not compatible
query I rowsort label-9889
SELECT - ( 29 ) / - cor0.col2 AS col0 FROM tab0 cor0
----
0
0
29

query I rowsort
SELECT - - 8 * col0 * - col2 AS col2 FROM tab1 AS cor0
----
-1296
-29184
-61440

query I rowsort
SELECT 24 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT ( + 33 ) AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

onlyif mysql # use DIV operator for integer division
query I rowsort label-9893
SELECT DISTINCT + tab2.col2 DIV col1 AS col1 FROM tab2
----
0
2

skipif mysql # not compatible
query I rowsort label-9893
SELECT DISTINCT + tab2.col2 / col1 AS col1 FROM tab2
----
0
2

query I rowsort
SELECT - 24 AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to ad9e2feda1bc3d52e1a836279e031a8b

query I rowsort
SELECT col1 + 33 * - col1 AS col2 FROM tab1 AS cor0
----
-320
-416
-832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 1 col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - cor0.col0 * col1 + 16 AS col0 FROM tab1 AS cor0
----
-1024
-62
-624

query I rowsort
SELECT + - ( - col2 ) * col1 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-9899
SELECT col1 + + col1 * col2 DIV col2 FROM tab0
----
172
182
194

skipif mysql # not compatible
query I rowsort label-9899
SELECT col1 + + col1 * col2 / col2 FROM tab0
----
172
182
194

query I rowsort
SELECT DISTINCT col1 - col0 * ( col0 ) * - col2 AS col1 FROM tab2 AS cor0
----
1354
158243
237175

query I rowsort
SELECT ALL - - 30 + + col0 FROM tab1 cor0
----
110
33
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-9902
SELECT ALL col1 DIV col0 + + col1 FROM tab1 AS cor0
----
10
13
34

skipif mysql # not compatible
query I rowsort label-9902
SELECT ALL col1 / col0 + + col1 FROM tab1 AS cor0
----
10
13
34

query I rowsort
SELECT ALL col2 * col1 * - col1 - + cor0.col0 AS col2 FROM tab0 AS cor0
----
-244092
-679131
-9444

query I rowsort
SELECT DISTINCT + 5 * + col1 AS col2 FROM tab0 AS cor0
----
430
455
485

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9905
SELECT + tab0.col0 + - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9905
SELECT + tab0.col0 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + + cor0.col2 AS col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT - col1 * - tab2.col2 * col0 AS col2 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT DISTINCT col1 - col2 AS col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT DISTINCT - cor0.col2 + + col2 * + cor0.col1 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT + + ( + cor0.col0 ) AS col2 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT ALL - ( + 29 ) * col2 AS col2 FROM tab0 cor0
----
-2378
-29
-957

query I rowsort
SELECT DISTINCT + tab0.col2 * 27 FROM tab0
----
2214
27
891

query I rowsort
SELECT ALL - col2 * col0 * col1 AS col2 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT ALL col2 * col1 * col0 + col0 + col1 FROM tab1 AS cor0
----
36554
4241
99933

query I rowsort
SELECT col1 + col2 + + col2 FROM tab1
----
124
134
205

query I rowsort
SELECT ALL col1 / col2 + + tab2.col1 AS col2 FROM tab2 WHERE + col0 >= col1 + + col0
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 * - col1 IN ( col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT NULL NOT IN ( col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( + col0 * col0 * col2 )
----

query I rowsort
SELECT - col1 + col1 * + col0 + - col2 AS col2 FROM tab2
----
1288
159
4517

query I rowsort
SELECT DISTINCT - col2 + + col2 * col0 AS col1 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT ALL col0 * - col2 - col0 * + col0 AS col2 FROM tab0 WHERE NOT ( NULL ) = col0 * + col0 + col2 + col2 * col0
----

query I rowsort
SELECT + col1 - col1 * tab0.col2 FROM tab0
----
-2752
-7371
0

query I rowsort
SELECT col0 * + tab1.col2 + tab1.col1 AS col2 FROM tab1
----
188
3658
7693

onlyif mysql # use DIV operator for integer division
query I rowsort label-9925
SELECT - + col2 DIV col1 AS col1 FROM tab2 cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-9925
SELECT - + col2 / col1 AS col1 FROM tab2 cor0
----
-2
0
0

query I rowsort
SELECT DISTINCT + col0 + col2 * + col0 AS col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT - col1 + + cor0.col1 * col0 FROM tab1 AS cor0
----
1027
52
630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + col2 col1 FROM tab0
----
119
173
98

query I rowsort
SELECT - col2 * - tab0.col2 * + col2 + col1 AS col1 FROM tab0
----
36023
551459
98

query I rowsort
SELECT ALL tab1.col0 + tab1.col1 * col0 FROM tab1
----
1120
704
81

query I rowsort
SELECT ALL - tab0.col1 + + col2 * - col0 AS col1 FROM tab0
----
-132
-7389
-878

query I rowsort
SELECT DISTINCT - col2 * cor0.col1 + col2 AS col1 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT ALL + - col0 * cor0.col2 - - col1 * col2 AS col0 FROM tab1 AS cor0
----
-3078
-6432
1242

query I rowsort
SELECT DISTINCT - - col0 + cor0.col1 + - col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT + col2 + + col0 AS col0 FROM tab1 cor0
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-9936
SELECT - col1 DIV cor0.col2 + col1 AS col2 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-9936
SELECT - col1 / cor0.col2 + col1 AS col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT + col0 * - col0 + + cor0.col0 FROM tab2 AS cor0
----
-42
-6006
-6162

query I rowsort
SELECT DISTINCT + - col2 * col1 + + cor0.col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT ALL - - cor0.col2 + col0 FROM tab0 cor0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + tab0.col0 * 60 ) col1 FROM tab0
----
1440
2100
5340

query I rowsort
SELECT - 80 * + tab0.col0 FROM tab0
----
-1920
-2800
-7120

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9942
SELECT ALL col2 + CAST( + ( + col0 ) AS SIGNED ) FROM tab0 AS cor0
----
171
36
57

skipif mysql # not compatible
query I rowsort label-9942
SELECT ALL col2 + CAST ( + ( + col0 ) AS INTEGER ) FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT DISTINCT col2 * 87 * 44 FROM tab0 AS cor0
----
126324
313896
3828

query I rowsort
SELECT + col0 * 45 FROM tab0 AS cor0
----
1080
1575
4005

query I rowsort
SELECT + col0 + + col1 * + col0 AS col2 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT col2 * - col2 + + col2 * - col1 AS col0 FROM tab1 AS cor0
----
-10464
-3819
-4320

query I rowsort
SELECT tab2.col0 * col0 * col1 AS col0 FROM tab2
----
106097
1519
358956

query I rowsort
SELECT DISTINCT col0 * col0 + - col2 AS col2 FROM tab1
----
-45
4039
6304

query I rowsort
SELECT tab2.col0 * - col2 * col2 FROM tab2
----
-114076
-5103
-52728

query I rowsort
SELECT - col1 * col0 + + col1 AS col1 FROM tab1
----
-1027
-52
-630

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NOT NULL NOT IN ( + col2 / col2 - - col2 * + col1 * + tab2.col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-9952
SELECT + col1 DIV - col0 + + col0 AS col1 FROM tab0
----
21
33
88

skipif mysql # not compatible
query I rowsort label-9952
SELECT + col1 / - col0 + + col0 AS col1 FROM tab0
----
21
33
88

query I rowsort
SELECT ALL - col2 AS col0 FROM tab0 WHERE NOT NULL <= col1 * col1 / col0 + col2
----

query I rowsort
SELECT - col2 * + col1 - - col0 FROM tab2
----
-1456
-567
-830

query I rowsort
SELECT + ( col2 ) + col0 * col0 AS col1 FROM tab2 cor0
----
6110
6279
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + - col1 * ( - col0 ) + col1 col0 FROM tab0 AS cor0
----
2236
3589
8281

query I rowsort
SELECT ALL + col0 + + col2 + - col2 AS col0 FROM tab1
----
3
64
80

query I rowsort
SELECT ALL - col2 * + col0 * + col2 FROM tab2
----
-114076
-5103
-52728

query I rowsort
SELECT col0 FROM tab0 WHERE NOT NULL NOT IN ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - tab1.col2 * col0 col2 FROM tab1
----
-136
-3638
-7667

query I rowsort
SELECT + col0 + + col2 * + tab1.col1 AS col0 FROM tab1
----
1328
1407
634

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) IN ( + col2 + col2 * + col1 )
----

query I rowsort
SELECT ALL + col2 * col2 * + col1 FROM tab2
----
22599
24548
39884

query I rowsort
SELECT + tab1.col0 * col1 * + col2 AS col1 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT col2 * + col0 * col0 FROM tab1
----
233472
486
614400

query I rowsort
SELECT ALL col0 + col0 - - col2 AS col2 FROM tab1
----
185
256
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab0.col2 * - col2 col1 FROM tab0
----
1
1089
6724

query I rowsort
SELECT col1 * + col1 - + col0 AS col0 FROM tab0
----
7372
8192
9374

query I rowsort
SELECT + cor0.col1 + 52 * col2 AS col1 FROM tab2 cor0
----
1411
1435
1993

onlyif mysql # use DIV operator for integer division
query I rowsort label-9970
SELECT - + col1 DIV 66 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9970
SELECT - + col1 / 66 FROM tab2 cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9971
SELECT + col2 * - CAST( + col2 * + col1 AS SIGNED ) FROM tab0 AS cor0
----
-611884
-93654
-97

skipif mysql # not compatible
query I rowsort label-9971
SELECT + col2 * - CAST ( + col2 * + col1 AS INTEGER ) FROM tab0 AS cor0
----
-611884
-93654
-97

query I rowsort
SELECT - col0 + ( + col2 ) * col0 AS col0 FROM tab2 cor0
----
182
1950
2923

query I rowsort
SELECT + - 1 - + ( col2 ) FROM tab0 AS cor0
----
-2
-34
-83

query I rowsort
SELECT - - cor0.col2 * col0 + col2 AS col1 FROM tab1 AS cor0
----
216
3705
7776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * col1 col2 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT + cor1.col1 - 76 AS col0 FROM tab0, tab1 AS cor0 CROSS JOIN tab1, tab0 cor1, tab0 AS cor2
----
10
15
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 70 * + col2 + + col2 * col0 col0 FROM tab1 AS cor0
----
-342
-3618
960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * tab2.col1 * - col0 col1 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT + col1 * 51 AS col1 FROM tab0 AS cor0
----
4386
4641
4947

onlyif mysql # use DIV operator for integer division
query I rowsort label-9980
SELECT ALL - - col1 * + col1 DIV ( - col1 ) AS col1 FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-9980
SELECT ALL - - col1 * + col1 / ( - col1 ) AS col1 FROM tab2 AS cor0
----
-17
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-9981
SELECT ALL - col0 + + ( col1 ) DIV + col1 AS col1 FROM tab0 AS cor0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-9981
SELECT ALL - col0 + + ( col1 ) / + col1 AS col1 FROM tab0 AS cor0
----
-23
-34
-88

query I rowsort
SELECT DISTINCT + + cor0.col1 + + col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT - col2 * 26 + - cor0.col2 + - col0 FROM tab1 AS cor0
----
-1461
-1603
-2672

query I rowsort
SELECT DISTINCT + - col2 * - col1 + - col2 + - col2 FROM tab0 AS cor0
----
2772
7298
95

query I rowsort
SELECT cor0.col0 * + 98 FROM tab1, tab1 AS cor0
----
9 values hashing to d563a5d9e7912a5d57f1fc690dabd821

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 32 col0 FROM tab2, tab2 AS cor0, tab1 cor1
----
32

query I rowsort
SELECT ALL - 62 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to d2579f9395350eda865ff3a2d38a74f6

query I rowsort
SELECT DISTINCT + 37 FROM tab1, tab1 AS cor0
----
37

onlyif mysql # use DIV operator for integer division
query I rowsort label-9989
SELECT col1 DIV cor0.col2 FROM tab0 cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-9989
SELECT col1 / cor0.col2 FROM tab0 cor0
----
1
2
97

query I rowsort
SELECT DISTINCT + - ( - 89 ) + cor0.col0 * 5 FROM tab1, tab0, tab1 AS cor0
----
104
409
489

onlyif mysql # use DIV operator for integer division
query I rowsort label-9991
SELECT - + CAST( - 96 AS SIGNED ) DIV - cor0.col1 - - cor0.col1 FROM tab2 AS cor0
----
12
28
58

skipif mysql # not compatible
query I rowsort label-9991
SELECT - + CAST ( - 96 AS INTEGER ) / - cor0.col1 - - cor0.col1 FROM tab2 AS cor0
----
12
28
58

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9992
SELECT - col0 * col2 + - CAST( col0 + col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-105
-7476
-840

skipif mysql # not compatible
query I rowsort label-9992
SELECT - col0 * col2 + - CAST ( col0 + col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-105
-7476
-840

query I rowsort
SELECT + 20 + col2 AS col1 FROM tab1 AS cor0
----
116
74
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 90 + col0 col0 FROM tab2 AS cor0
----
168
169
97

query I rowsort
SELECT + cor1.col2 + - 91 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 0b85697f439b11fe7d84613c000301e1

query I rowsort
SELECT ( - col1 ) - col2 FROM tab0
----
-119
-173
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-9997
SELECT ALL - 0 * + col0 DIV - col0 + - ( col0 ) FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-9997
SELECT ALL - 0 * + col0 / - col0 + - ( col0 ) FROM tab2 AS cor0
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-9998
SELECT ALL - col1 DIV col0 col0 FROM tab2 cor0
----
-4
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9998
SELECT ALL - col1 / col0 col0 FROM tab2 cor0
----
-4
0
0