sqllogictest
Artifact Content
Not logged in

Artifact c14325cba2edff1b77ba9583e2fecda9e7c86e7d:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

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

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
972 values hashing to 980274175fafec015a83080672486a9a

query I rowsort
SELECT ALL - cor0.col0 + cor0.col1 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to c99cbeca6e6fdb3507b2e08470c1cda6

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-4
SELECT ALL + col2 * col1 DIV - 27 FROM tab2
----
-23
-31
-56

skipif mysql # not compatible
query I rowsort label-4
SELECT ALL + col2 * col1 / - 27 FROM tab2
----
-23
-31
-56

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

query I rowsort
SELECT + 48 - + col2 AS col0 FROM tab1
----
-48
-6
-9

query I rowsort
SELECT DISTINCT - cor0.col0 * - col1 * col0 AS col2 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT ALL col1 + - col2 + col1 AS col1 FROM tab2 cor0
----
-4
35
92

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-13
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-13
SELECT ALL + col1 / + col1 col1 FROM tab0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-14
SELECT + col0 DIV - col2 + col0 FROM tab1
----
3
63
80

skipif mysql # not compatible
query I rowsort label-14
SELECT + col0 / - col2 + col0 FROM tab1
----
3
63
80

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

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

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

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 cor0 WHERE NULL NOT IN ( tab2.col2 )
----

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

query I rowsort
SELECT DISTINCT tab0.col0 * + 77 + col1 * - col0 FROM tab0
----
-1246
-216
-700

query I rowsort
SELECT DISTINCT 41 + - tab2.col0 + col2 * col0 * - tab2.col2 AS col0 FROM tab2
----
-114114
-5069
-52765

onlyif mysql # use DIV operator for integer division
query I rowsort label-23
SELECT + 99 + col0 DIV - col0 - tab0.col0 FROM tab0
----
63
74
9

skipif mysql # not compatible
query I rowsort label-23
SELECT + 99 + col0 / - col0 - tab0.col0 FROM tab0
----
63
74
9

query I rowsort
SELECT + col2 + col1 * + col1 * col1 FROM tab1
----
1057
17630
2293

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

query I rowsort
SELECT + ( col0 + - col1 ) * - col1 FROM tab1
----
-540
-871
598

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-28
SELECT + col2 * - col0 + col1 DIV - col1 + col2 FROM tab2
----
-163
-2003
-2965

skipif mysql # not compatible
query I rowsort label-28
SELECT + col2 * - col0 + col1 / - col1 + col2 FROM tab2
----
-163
-2003
-2965

query I rowsort
SELECT - col1 + + 78 * + col1 + col2 FROM tab1 AS cor0
----
1097
2056
827

query I rowsort
SELECT - ( 66 ) * + col0 + - col1 FROM tab1 AS cor0
----
-224
-4234
-5293

query I rowsort
SELECT + 9 * ( col0 ) AS col0 FROM tab1
----
27
576
720

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-32
SELECT DISTINCT CAST( + col0 AS SIGNED ) * tab2.col2 + - col0 AS col2 FROM tab2
----
182
1950
2923

skipif mysql # not compatible
query I rowsort label-32
SELECT DISTINCT CAST ( + col0 AS INTEGER ) * tab2.col2 + - col0 AS col2 FROM tab2
----
182
1950
2923

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

query I rowsort
SELECT ( col2 ) + col1 * col2 * col2 AS col0 FROM tab1
----
119904
32547
75870

query I rowsort
SELECT DISTINCT 75 + - col1 FROM tab1
----
49
62
65

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 49 + col2 col2 FROM tab2 AS cor0
----
75
76
87

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

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

query I rowsort
SELECT DISTINCT + 34 + + col1 * - col1 - col1 * + col2 FROM tab0 AS cor0
----
-10200
-15709
-9472

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

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

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

query I rowsort
SELECT DISTINCT col0 * + cor0.col0 + - col0 + + col0 * - col1 FROM tab1 cor0
----
-72
3392
5280

query I rowsort
SELECT ALL - + 15 + col2 AS col1 FROM tab1 AS cor0
----
39
42
81

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

query I rowsort
SELECT 89 * col2 FROM tab1 AS cor0
----
4806
5073
8544

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

query I rowsort
SELECT ALL 79 AS col0 FROM tab1 cor0
----
79
79
79

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-57
SELECT + 22 + - ( col1 ) DIV - 36 FROM tab2 AS cor0
----
22
22
23

skipif mysql # not compatible
query I rowsort label-57
SELECT + 22 + - ( col1 ) / - 36 FROM tab2 AS cor0
----
22
22
23

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

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

query I rowsort
SELECT - - col1 * 84 AS col1 FROM tab1 AS cor0
----
1092
2184
840

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

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

query I rowsort
SELECT ALL + col1 + + 20 FROM tab2 AS cor0
----
37
51
79

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 49 + cor0.col0 col1 FROM tab0 cor0
----
138
73
84

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

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

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

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

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

query I rowsort
SELECT DISTINCT + + col2 + - 16 * cor0.col2 AS col1 FROM tab2 AS cor0
----
-390
-405
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-72
SELECT DISTINCT + + cor0.col0 + col0 DIV col1 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-72
SELECT DISTINCT + + cor0.col0 + col0 / col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT col0 * - 29 AS col1 FROM tab0 AS cor0
----
-1015
-2581
-696

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-76
SELECT col0 + - col1 * + cor0.col0 DIV col0 FROM tab1 AS cor0
----
-23
54
67

skipif mysql # not compatible
query I rowsort label-76
SELECT col0 + - col1 * + cor0.col0 / col0 FROM tab1 AS cor0
----
-23
54
67

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-78
SELECT + tab2.col2 DIV + col1 + + 57 * + 8 - - col1 * - col0 AS col1 FROM tab2
----
-4146
-885
239

skipif mysql # not compatible
query I rowsort label-78
SELECT + tab2.col2 / + col1 + + 57 * + 8 - - col1 * - col0 AS col1 FROM tab2
----
-4146
-885
239

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

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

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

query I rowsort
SELECT DISTINCT col2 * + col1 + 33 FROM tab2
----
1567
679
870

query I rowsort
SELECT DISTINCT - 66 + col0 AS col0 FROM tab0
----
-31
-42
23

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

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

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

query I rowsort
SELECT ALL 16 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc

query I rowsort
SELECT ALL + ( 59 ) FROM tab0, tab2 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

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

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

query I rowsort
SELECT ALL + cor0.col1 * + 98 AS col1 FROM tab1 AS cor0
----
1274
2548
980

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-91
SELECT DISTINCT + - col2 * col2 DIV col2 FROM tab0 cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-91
SELECT DISTINCT + - col2 * col2 / col2 FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT ALL - col1 * col1 + col1 * + cor0.col2 * cor0.col2 AS col0 FROM tab0 AS cor0
----
-9312
603603
86258

query I rowsort
SELECT - col0 + ( + col0 ) * col0 AS col2 FROM tab0
----
1190
552
7832

query I rowsort
SELECT 83 FROM tab1, tab1 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

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

query I rowsort
SELECT - 68 * + cor0.col0 FROM tab2 cor0
----
-476
-5304
-5372

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

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

query I rowsort
SELECT DISTINCT - + col2 - + 61 FROM tab2 AS cor0
----
-87
-88
-99

query I rowsort
SELECT ALL - col1 * - 18 AS col0 FROM tab1
----
180
234
468

query I rowsort
SELECT DISTINCT 66 FROM tab2
----
66

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

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

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

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

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

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

query I rowsort
SELECT 81 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

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

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

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

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

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

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

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

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

query I rowsort
SELECT - ( + col2 ) * - 90 FROM tab1 cor0
----
4860
5130
8640

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

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

query I rowsort
SELECT ALL - + 24 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

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

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

query I rowsort
SELECT + col1 * - col0 + + col2 * - col2 FROM tab1 AS cor0
----
-10256
-2994
-3889

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + - col1 col0 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT + col0 * - ( col2 ) + col1 AS col0 FROM tab1 AS cor0
----
-136
-3638
-7667

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

query I rowsort
SELECT + col1 + col0 * 84 FROM tab0 AS cor0
----
2102
3037
7567

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

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

query I rowsort
SELECT - 77 * col0 FROM tab1 cor0
----
-231
-4928
-6160

query I rowsort
SELECT - col0 + 73 * - 17 * col1 + + tab1.col1 FROM tab1
----
-12464
-16200
-32243

query I rowsort
SELECT col1 * col0 + 30 FROM tab0
----
2094
3425
8129

onlyif mysql # use DIV operator for integer division
query I rowsort label-127
SELECT cor0.col0 * + col2 - col0 DIV col2 AS col0 FROM tab0 cor0
----
0
7297
792

skipif mysql # not compatible
query I rowsort label-127
SELECT cor0.col0 * + col2 - col0 / col2 AS col0 FROM tab0 cor0
----
0
7297
792

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

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

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

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

query I rowsort
SELECT DISTINCT + col0 * 47 AS col1 FROM tab1 AS cor0
----
141
3008
3760

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

query I rowsort
SELECT 32 + - 37 FROM tab2 AS cor0
----
-5
-5
-5

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-135
SELECT + ( col0 ) DIV col1 - + 39 * + ( - col1 ) AS col2 FROM tab0
----
3354
3549
3783

skipif mysql # not compatible
query I rowsort label-135
SELECT + ( col0 ) / col1 - + 39 * + ( - col1 ) AS col2 FROM tab0
----
3354
3549
3783

query I rowsort
SELECT ALL + + ( - 40 ) AS col0 FROM tab0 AS cor0
----
-40
-40
-40

query I rowsort
SELECT + - 10 + + col0 + - col2 * cor0.col1 FROM tab0 AS cor0
----
-2824
-72
-7383

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

query I rowsort
SELECT ALL - - 66 * - col0 + col2 AS col0 FROM tab1 cor0
----
-144
-4167
-5184

query I rowsort
SELECT ALL - 22 * + col0 AS col2 FROM tab0 AS cor0
----
-1958
-528
-770

onlyif mysql # use DIV operator for integer division
query I rowsort label-141
SELECT DISTINCT 59 DIV col0 AS col2 FROM tab2 AS cor0
----
0
8

skipif mysql # not compatible
query I rowsort label-141
SELECT DISTINCT 59 / col0 AS col2 FROM tab2 AS cor0
----
0
8

query I rowsort
SELECT 23 * + col1 FROM tab0 AS cor0
----
1978
2093
2231

query I rowsort
SELECT DISTINCT + 9 * col2 + 28 FROM tab1 AS cor0
----
514
541
892

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

query I rowsort
SELECT DISTINCT 56 + - col1 * - ( + col1 ) FROM tab2 AS cor0
----
1017
345
3537

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

query I rowsort
SELECT ALL + + ( col1 ) + ( + col0 + + col2 ) FROM tab2 AS cor0
----
134
163
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-148
SELECT DISTINCT col2 * - col1 * + col0 + ( 50 ) DIV - col1 AS col0 FROM tab1
----
-36485
-4213
-99843

skipif mysql # not compatible
query I rowsort label-148
SELECT DISTINCT col2 * - col1 * + col0 + ( 50 ) / - col1 AS col0 FROM tab1
----
-36485
-4213
-99843

query I rowsort
SELECT ALL - col0 + col0 * 4 FROM tab2 AS cor0
----
21
234
237

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-152
SELECT col2 DIV + col2 + + col2 AS col0 FROM tab0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-152
SELECT col2 / + col2 + + col2 AS col0 FROM tab0
----
2
34
83

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

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

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

query I rowsort
SELECT - - col0 + 64 * + col1 * + col2 FROM tab2 AS cor0
----
41423
53575
98254

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

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

query I rowsort
SELECT - + col1 + - 21 AS col2 FROM tab0 AS cor0
----
-107
-112
-118

query I rowsort
SELECT ALL + 62 + + col0 FROM tab2 AS cor0
----
140
141
69

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-160
SELECT DISTINCT - col1 - - col2 / - col1 col0 FROM tab2 AS cor0
----
-19
-31
-59

query I rowsort
SELECT + col1 * + 73 AS col2 FROM tab1
----
1898
730
949

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col2 * col1 col0 FROM tab0 AS cor0
----
2871
7544
98

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

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

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

query I rowsort
SELECT - + ( - 59 ) + - col0 FROM tab2 AS cor0
----
-19
-20
52

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-169
SELECT DISTINCT + - CAST( + col1 AS SIGNED ) FROM tab1 cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-169
SELECT DISTINCT + - CAST ( + col1 AS INTEGER ) FROM tab1 cor0
----
-10
-13
-26

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

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

query I rowsort
SELECT ALL - col2 - - 10 AS col1 FROM tab1
----
-44
-47
-86

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col0 * col2 col1 FROM tab2 AS cor0
----
2054
216
3040

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

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

skipif mysql # not compatible
query I rowsort label-176
SELECT + 71 / + col2 - col2 / + col1 FROM tab1 AS cor0
----
-1
-4
-7

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 + + 90 AS col1 FROM tab1 cor0
----
90
90
90

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

query I rowsort
SELECT 76 * - col2 FROM tab1 AS cor0
----
-4104
-4332
-7296

query I rowsort
SELECT 41 * - ( col0 ) + + ( col2 ) FROM tab1 AS cor0
----
-2567
-3184
-69

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 * col2 IN ( col1 )
----

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 * col1 IN ( col0 + - col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

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

query I rowsort
SELECT cor0.col0 * + col2 * + col0 + - col0 + col1 FROM tab0 AS cor0
----
1287
19070
649524

query I rowsort
SELECT col2 AS col2 FROM tab0 AS cor0 WHERE NULL < col1
----

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col0 + - col2 ) IN ( col1 * + col1 )
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN col2 AND NULL
----

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col2 + col0 * - col2 col0 FROM tab1 AS cor0
----
-399
1536
2754

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

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

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

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-208
SELECT col2 DIV col0 + - col2 * - cor0.col2 FROM tab0 AS cor0
----
1
1090
6724

skipif mysql # not compatible
query I rowsort label-208
SELECT col2 / col0 + - col2 * - cor0.col2 FROM tab0 AS cor0
----
1
1090
6724

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

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

query I rowsort
SELECT + + col0 * col0 - col1 AS col1 FROM tab0 AS cor0
----
1128
490
7830

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-213
SELECT DISTINCT + + col0 + - col2 DIV + col0 AS col2 FROM tab0 cor0
----
23
35
89

skipif mysql # not compatible
query I rowsort label-213
SELECT DISTINCT + + col0 + - col2 / + col0 AS col2 FROM tab0 cor0
----
23
35
89

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

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

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

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

query I rowsort
SELECT col1 + cor0.col0 + + cor0.col2 FROM tab0 cor0
----
133
143
262

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 + + col0 col1 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT col1 * + col1 + col0 + + col1 FROM tab0 AS cor0
----
7506
8461
9541

query I rowsort
SELECT ALL + col2 * + tab0.col2 * col0 + + col2 FROM tab0
----
26169
36
598518

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

query I rowsort
SELECT DISTINCT - col2 + + col1 FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col0 AS col1 FROM tab0 WHERE ( NULL ) <= NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-226
SELECT ALL + col2 * - col2 * col2 + - col2 * tab1.col1 DIV - col2 FROM tab1
----
-157438
-185183
-884723

skipif mysql # not compatible
query I rowsort label-226
SELECT ALL + col2 * - col2 * col2 + - col2 * tab1.col1 / - col2 FROM tab1
----
-157438
-185183
-884723

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

query I rowsort
SELECT - col2 * + 13 * + col0 + col0 AS col2 FROM tab0 AS cor0
----
-10272
-420
-94785

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

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

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

query I rowsort
SELECT + col1 * - 58 + col2 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
-1394
-1609
2016

query I rowsort
SELECT - - col0 * + col1 - + 72 * col0 AS col2 FROM tab0 AS cor0
----
1691
336
875

query I rowsort
SELECT - col2 - - 2 * col0 * - col2 FROM tab2 cor0
----
-405
-4082
-6042

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

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

query I rowsort
SELECT DISTINCT 47 AS col2 FROM tab2
----
47

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

query I rowsort
SELECT DISTINCT - ( col2 ) * 28 + - col2 FROM tab0
----
-2378
-29
-957

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-240
SELECT + - col2 + CAST ( - cor0.col2 AS INTEGER ) col0 FROM tab0 AS cor0
----
-164
-2
-66

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

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

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col0 * - col1 col1 FROM tab1
----
104
1053
650

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

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

query I rowsort
SELECT ALL + 92 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817

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

query I rowsort
SELECT DISTINCT - 96 FROM tab0, tab2 cor0, tab1 cor1
----
-96

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

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

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

query I rowsort
SELECT ALL - 81 * - ( col1 ) + col1 FROM tab0 cor0
----
7052
7462
7954

query I rowsort
SELECT DISTINCT - - ( col2 ) + + col2 * - 34 * col2 FROM tab1 AS cor0
----
-110409
-313248
-99090

query I rowsort
SELECT 69 + col2 FROM tab2 AS cor0
----
107
95
96

query I rowsort
SELECT ALL ( ( col1 ) ) + 12 AS col1 FROM tab1 AS cor0
----
22
25
38

query I rowsort
SELECT ALL - + ( + col0 ) + cor0.col2 * 74 AS col0 FROM tab0 cor0
----
2418
39
5979

query I rowsort
SELECT DISTINCT + ( + col2 ) - cor0.col0 * 75 * 80 AS col0 FROM tab0 AS cor0
----
-143967
-209999
-533918

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-264
SELECT ALL + ( - 65 ) * cor0.col1 + 69 DIV + cor0.col2 FROM tab0 AS cor0
----
-5588
-5915
-6236

skipif mysql # not compatible
query I rowsort label-264
SELECT ALL + ( - 65 ) * cor0.col1 + 69 / + cor0.col2 FROM tab0 AS cor0
----
-5588
-5915
-6236

query I rowsort
SELECT ALL + + 83 + 57 AS col0 FROM tab0 cor0
----
140
140
140

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

query I rowsort
SELECT ALL + 7 * col0 + + col0 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
238
2574
3555

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

query I rowsort
SELECT 64 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query I rowsort
SELECT ALL col0 + 23 AS col2 FROM tab1
----
103
26
87

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-272
SELECT DISTINCT - col0 + tab2.col1 DIV 48 FROM tab2
----
-7
-77
-79

skipif mysql # not compatible
query I rowsort label-272
SELECT DISTINCT - col0 + tab2.col1 / 48 FROM tab2
----
-7
-77
-79

query I rowsort
SELECT ( 97 ) FROM tab2
----
97
97
97

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

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

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

query I rowsort
SELECT DISTINCT 63 * tab0.col0 AS col0 FROM tab0
----
1512
2205
5607

query I rowsort
SELECT ALL - col1 + + ( - col1 ) FROM tab0 AS cor0
----
-172
-182
-194

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-279
SELECT - cor0.col0 + col1 / - col0 col2 FROM tab2 AS cor0
----
-11
-78
-79

query I rowsort
SELECT + 58 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query I rowsort
SELECT ALL + - 67 AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

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

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

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

query I rowsort
SELECT ALL + 53 * + 11 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 58b98d5c2c4ff3c3be54b9e257cf030d

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

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

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

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

query I rowsort
SELECT col0 * 36 AS col1 FROM tab0 AS cor0
----
1260
3204
864

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

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT 63 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT cor0.col0 * 88 + cor0.col0 * col1 FROM tab1 AS cor0
----
342
6272
8080

query I rowsort
SELECT - cor0.col2 + 13 * 57 + col0 FROM tab2 AS cor0
----
721
782
793

query I rowsort
SELECT ALL + - col2 + 82 * cor0.col2 FROM tab1 AS cor0
----
4374
4617
7776

query I rowsort
SELECT DISTINCT - ( + 42 ) AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1, tab0 AS cor2
----
-42

onlyif mysql # use DIV operator for integer division
query I rowsort label-305
SELECT ALL + + ( cor0.col0 ) * cor0.col0 DIV + col1 - + col1 AS col2 FROM tab2 AS cor0
----
-30
350
44

skipif mysql # not compatible
query I rowsort label-305
SELECT ALL + + ( cor0.col0 ) * cor0.col0 / + col1 - + col1 AS col2 FROM tab2 AS cor0
----
-30
350
44

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

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

query I rowsort
SELECT DISTINCT + col1 + ( col1 ) + + col1 AS col1 FROM tab0 AS cor0
----
258
273
291

query I rowsort
SELECT ALL - 22 + + col0 FROM tab0 cor0
----
13
2
67

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

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

query I rowsort
SELECT + + cor1.col0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT ALL tab2.col2 * ( + col0 ) + + col1 * 2 FROM tab2
----
2146
251
3036

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

query I rowsort
SELECT + col1 * col2 + + col2 + ( + 60 ) AS col1 FROM tab2 AS cor0
----
1620
744
924

query I rowsort
SELECT - col1 + cor0.col2 * - 15 * + col1 AS col1 FROM tab0 AS cor0
----
-112021
-1552
-42656

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

query I rowsort
SELECT ALL - 82 + col0 AS col2 FROM tab1 AS cor0
----
-18
-2
-79

query I rowsort
SELECT DISTINCT - col2 * col1 * 65 AS col2 FROM tab2 cor0
----
-41990
-54405
-99710

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-321
SELECT col2 + + cor0.col0 DIV - CAST( + col0 AS SIGNED ) FROM tab1 cor0
----
53
56
95

skipif mysql # not compatible
query I rowsort label-321
SELECT col2 + + cor0.col0 / - CAST ( + col0 AS INTEGER ) FROM tab1 cor0
----
53
56
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-322
SELECT - 24 DIV col0 FROM tab2 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-322
SELECT - 24 / col0 FROM tab2 AS cor0
----
-3
0
0

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

query I rowsort
SELECT tab0.col2 * tab0.col0 AS col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 421c686606be6ea267ac0dc7521bf659

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

query I rowsort
SELECT 54 AS col1 FROM tab1 cor0
----
54
54
54

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

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

query I rowsort
SELECT ALL + 95 + - col2 FROM tab1 AS cor0
----
-1
38
41

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col1 col2 FROM tab0 AS cor0
----
7396
8281
9409

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-335
SELECT 20 DIV - tab2.col0 AS col0 FROM tab2
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-335
SELECT 20 / - tab2.col0 AS col0 FROM tab2
----
-2
0
0

query I rowsort
SELECT ALL - col2 * col2 - + col2 * + col1 FROM tab2 AS cor0
----
-1566
-2090
-2210

query I rowsort
SELECT - - col1 * + 7 + - 90 FROM tab1 AS cor0
----
-20
1
92

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

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

query I rowsort
SELECT DISTINCT - + col1 + + 56 * + ( col0 ) FROM tab1 AS cor0
----
142
3574
4467

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - 50 * - col0 col1 FROM tab1 AS cor0
----
147
3136
3920

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

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

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

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-350
SELECT - ( 50 ) * col0 DIV 83 FROM tab1
----
-1
-38
-48

skipif mysql # not compatible
query I rowsort label-350
SELECT - ( 50 ) * col0 / 83 FROM tab1
----
-1
-38
-48

query I rowsort
SELECT DISTINCT + 17 + ( + col2 * - 10 ) FROM tab2
----
-243
-253
-363

query I rowsort
SELECT ALL 20 * col0 + - col1 AS col1 FROM tab0
----
1689
394
603

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

query I rowsort
SELECT ALL 19 AS col0 FROM tab1
----
19
19
19

query I rowsort
SELECT 47 + + tab0.col0 FROM tab0
----
136
71
82

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

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

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

query I rowsort
SELECT - - col0 * ( - 9 ) AS col0 FROM tab2 AS cor0
----
-63
-702
-711

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

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

query I rowsort
SELECT ALL + col2 * 65 AS col1 FROM tab2 AS cor0
----
1690
1755
2470

query I rowsort
SELECT ALL 70 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c76157a7a7ec18de56823b2058b49f32

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 48 + + 14 * col0 col2 FROM tab0 AS cor0
----
1294
384
538

query I rowsort
SELECT ALL - 34 * - col1 + + col0 FROM tab2 AS cor0
----
1061
2084
657

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-367
SELECT - - CAST( + 9 AS SIGNED ) * cor0.col1 * col1 - col2 FROM tab0 AS cor0
----
66531
74447
84680

skipif mysql # not compatible
query I rowsort label-367
SELECT - - CAST ( + 9 AS INTEGER ) * cor0.col1 * col1 - col2 FROM tab0 AS cor0
----
66531
74447
84680

query I rowsort
SELECT DISTINCT - 27 + + col1 FROM tab2 AS cor0
----
-10
32
4

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

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

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

query I rowsort
SELECT - ( + ( col0 ) ) + - col0 * 4 FROM tab0 AS cor0
----
-120
-175
-445

query I rowsort
SELECT + - 27 * + col0 - + col1 * - 92 FROM tab0 AS cor0
----
5969
7264
7979

query I rowsort
SELECT ALL + col2 + + 12 FROM tab2 AS cor0
----
38
39
50

query I rowsort
SELECT ALL - - cor0.col1 * 39 * col0 AS col1 FROM tab0 AS cor0
----
132405
315861
80496

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

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

query I rowsort
SELECT - cor0.col1 - 54 AS col1 FROM tab2 cor0
----
-113
-71
-85

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

query I rowsort
SELECT - ( 40 ) AS col1 FROM tab1, tab0 cor0
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

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

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

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

query I rowsort
SELECT ALL - 20 FROM tab2
----
-20
-20
-20

query I rowsort
SELECT + 9 AS col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to ebef7303942834ca1e6ca8604ec18a07

query I rowsort
SELECT + 37 * + cor0.col1 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to 94de0e41710bf3fdbda3e5ce4b23e12d

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

query I rowsort
SELECT + - col1 * col2 - + col1 * col1 FROM tab0 AS cor0
----
-10234
-15743
-9506

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-388
SELECT DISTINCT 22 DIV col2 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-388
SELECT DISTINCT 22 / col2 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL 42 + + cor0.col0 FROM tab2 AS cor0
----
120
121
49

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

query I rowsort
SELECT + - 62 * col0 + col0 * ( col0 ) AS col2 FROM tab1 AS cor0
----
-177
128
1440

query I rowsort
SELECT + 19 FROM tab1, tab1 cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

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

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

query I rowsort
SELECT DISTINCT 3 * col1 AS col2 FROM tab2 cor0
----
177
51
93

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

query I rowsort
SELECT - col0 * 90 + + col1 FROM tab1 AS cor0
----
-244
-5750
-7187

query I rowsort
SELECT - col2 + ( 14 ) FROM tab1 AS cor0
----
-40
-43
-82

query I rowsort
SELECT + col1 + - 45 * ( - col0 ) FROM tab2 AS cor0
----
346
3569
3572

onlyif mysql # use DIV operator for integer division
query I rowsort label-400
SELECT - col2 + + col1 * col0 DIV col0 FROM tab1 AS cor0
----
-28
-47
-83

skipif mysql # not compatible
query I rowsort label-400
SELECT - col2 + + col1 * col0 / col0 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT ALL ( cor1.col1 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

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

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

query I rowsort
SELECT ALL - ( - 88 ) + - col2 FROM tab1 AS cor0
----
-8
31
34

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

query I rowsort
SELECT ALL col1 + + 55 AS col1 FROM tab2
----
114
72
86

query I rowsort
SELECT DISTINCT tab2.col1 - 14 FROM tab2, tab0 AS cor0
----
17
3
45

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

query I rowsort
SELECT col0 * + col1 + col0 FROM tab2 cor0
----
1422
224
4680

query I rowsort
SELECT ALL - + 8 * col0 + - ( 25 ) + col2 FROM tab0 cor0
----
-184
-304
-655

onlyif mysql # use DIV operator for integer division
query I rowsort label-411
SELECT ALL - ( col1 ) + + col2 DIV col0 + + col1 * 25 FROM tab2 AS cor0
----
1416
408
747

skipif mysql # not compatible
query I rowsort label-411
SELECT ALL - ( col1 ) + + col2 / col0 + + col1 * 25 FROM tab2 AS cor0
----
1416
408
747

query I rowsort
SELECT + ( + col1 ) * + 53 AS col0 FROM tab0 AS cor0
----
4558
4823
5141

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

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

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

query I rowsort
SELECT - 32 * col2 + + cor0.col1 * + col2 + col0 AS col2 FROM tab1 AS cor0
----
-1190
-1744
-321

onlyif mysql # use DIV operator for integer division
query I rowsort label-416
SELECT - col1 DIV + cor0.col2 + 24 AS col2 FROM tab0 AS cor0
----
-73
22
23

skipif mysql # not compatible
query I rowsort label-416
SELECT - col1 / + cor0.col2 + 24 AS col2 FROM tab0 AS cor0
----
-73
22
23

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

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

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

query I rowsort
SELECT + 73 + col0 FROM tab1 AS cor0
----
137
153
76

query I rowsort
SELECT DISTINCT + + 95 * col2 FROM tab0 AS cor0
----
3135
7790
95

query I rowsort
SELECT ALL - - 44 * col1 * + col2 + col0 FROM tab0 cor0
----
124896
328417
4303

query I rowsort
SELECT - 83 + + col1 FROM tab0 AS cor0
----
14
3
8

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-425
SELECT ALL col2 + col0 DIV col0 + - col1 FROM tab0 cor0
----
-52
-8
-95

skipif mysql # not compatible
query I rowsort label-425
SELECT ALL col2 + col0 / col0 + - col1 FROM tab0 cor0
----
-52
-8
-95

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

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

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

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

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

query I rowsort
SELECT DISTINCT - - col1 * 6 FROM tab1 AS cor0
----
156
60
78

query I rowsort
SELECT ALL - + col2 + + col1 * 32 * + col1 AS col2 FROM tab1 AS cor0
----
21578
3143
5312

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

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

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

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

query I rowsort
SELECT - 4 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

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

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

query I rowsort
SELECT DISTINCT - - 95 + - col0 * - col2 FROM tab0 AS cor0
----
130
7393
887

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( + col1 AS REAL ) * col0 + - col1 FROM tab2 AS cor0
----
-1360
-248
-4661

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

query I rowsort
SELECT - 75 + 35 FROM tab2, tab0 AS cor0
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

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

query I rowsort
SELECT - 88 + cor0.col0 * + cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 0da634ae513c22a2aa1349732a3f3358

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col2 - col1 col2 FROM tab0
----
-1175
-6815
-98

query I rowsort
SELECT DISTINCT - 79 * col1 - col1 * ( + col0 ) * - col0 FROM tab1
----
-1820
40170
82173

query I rowsort
SELECT ALL + 13 + + tab0.col0 - col2 * + col2 FROM tab0
----
-1052
-6622
47

query I rowsort
SELECT tab2.col1 * + 12 * tab2.col1 FROM tab2
----
11532
3468
41772

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

query I rowsort
SELECT 79 * + col2 FROM tab1
----
4266
4503
7584

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-454
SELECT DISTINCT CAST( 69 AS SIGNED ) DIV - col2 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-454
SELECT DISTINCT CAST ( 69 AS INTEGER ) / - col2 FROM tab1 AS cor0
----
-1
0

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

query I rowsort
SELECT DISTINCT - 22 * col1 + - col1 FROM tab1
----
-230
-299
-598

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

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

query I rowsort
SELECT DISTINCT - 61 + + col1 AS col2 FROM tab2 AS cor0
----
-2
-30
-44

query I rowsort
SELECT 12 * col2 + - col2 * + col0 * col1 FROM tab0 AS cor0
----
-3383
-663134
-67716

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

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

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

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

query I rowsort
SELECT DISTINCT col0 * 12 FROM tab2
----
84
936
948

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + + col0 + 3 col2 FROM tab0 AS cor0
----
181
51
73

query I rowsort
SELECT DISTINCT + - col1 * - 94 + col2 AS col2 FROM tab1 AS cor0
----
1318
2498
997

query I rowsort
SELECT ALL - col0 * - col2 + col1 * col0 FROM tab0 AS cor0
----
15397
2856
3430

query I rowsort
SELECT DISTINCT col2 + + 34 AS col0 FROM tab2 AS cor0
----
60
61
72

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-476
SELECT ALL + CAST( - cor0.col2 AS SIGNED ) FROM tab2 AS cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-476
SELECT ALL + CAST ( - cor0.col2 AS INTEGER ) FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT DISTINCT + - col2 * - col0 * + col1 + col1 + col0 * col1 FROM tab2 AS cor0
----
124313
52394
6107

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

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

skipif mysql # not compatible
query I rowsort label-479
SELECT ( - ( col2 ) ) + 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 - - col1 + 36 * - col0 col2 FROM tab1 cor0
----
-2294
-2867
-82

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

query I rowsort
SELECT col1 + + col2 * col2 AS col1 FROM tab2 cor0
----
1461
735
760

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

query I rowsort
SELECT - - 84 FROM tab1 AS cor0
----
84
84
84

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

query I rowsort
SELECT + col2 + col1 * col1 AS col2 FROM tab2
----
327
3507
988

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

query I rowsort
SELECT col2 * tab2.col2 - - ( col2 ) FROM tab2
----
1482
702
756

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

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

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

query I rowsort
SELECT ALL 43 * col2 AS col1 FROM tab2 AS cor0
----
1118
1161
1634

query I rowsort
SELECT ALL - col2 * 69 FROM tab0 cor0
----
-2277
-5658
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col0 * - 23 col1 FROM tab2 AS cor0
----
-105846
-30889
-4991

query I rowsort
SELECT col0 + + 99 * - col1 AS col1 FROM tab0 AS cor0
----
-8490
-8920
-9568

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - 39 + col0 col1 FROM tab0
----
-3
132
18

query I rowsort
SELECT col1 * 88 + - col1 + - col0 * - 31 AS col2 FROM tab1
----
2355
2854
3611

onlyif mysql # use DIV operator for integer division
query I rowsort label-500
SELECT DISTINCT + col0 + 3 + + col1 * col2 DIV tab2.col1 FROM tab2
----
107
120
37

skipif mysql # not compatible
query I rowsort label-500
SELECT DISTINCT + col0 + 3 + + col1 * col2 / tab2.col1 FROM tab2
----
107
120
37

query I rowsort
SELECT DISTINCT - col2 * + col0 + + 7 AS col1 FROM tab2
----
-182
-2021
-2995

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-503
SELECT ALL col0 DIV - col0 + 89 FROM tab1
----
88
88
88

skipif mysql # not compatible
query I rowsort label-503
SELECT ALL col0 / - col0 + 89 FROM tab1
----
88
88
88

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

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

query I rowsort
SELECT DISTINCT col2 * + 32 AS col0 FROM tab0 AS cor0
----
1056
2624
32

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

query I rowsort
SELECT ALL - + cor0.col2 - 35 AS col1 FROM tab1 AS cor0
----
-131
-89
-92

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 2 col2 FROM tab1
----
-2

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

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

query I rowsort
SELECT - ( cor0.col0 * + 5 ) FROM tab0, tab0 AS cor0
----
9 values hashing to bf2a6a073c31819cdf08b64e59720a97

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 63 + col1 FROM tab2 AS cor0
----
122
80
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-525
SELECT DISTINCT + - col0 + col0 DIV ( - col1 ) AS col0 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-525
SELECT DISTINCT + - col0 + col0 / ( - col1 ) AS col0 FROM tab0 AS cor0
----
-24
-35
-89

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

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

query I rowsort
SELECT ALL - 86 + col0 - cor0.col2 FROM tab1 AS cor0
----
-102
-137
-79

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

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

query I rowsort
SELECT - ( col2 ) * + 53 AS col1 FROM tab2
----
-1378
-1431
-2014

query I rowsort
SELECT ALL 89 AS col0 FROM tab2
----
89
89
89

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

query I rowsort
SELECT DISTINCT cor1.col2 * - cor0.col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
9 values hashing to 6e956995b57dab53690e9e5feefd0b3a

query I rowsort
SELECT + ( + col2 ) - 32 FROM tab1
----
22
25
64

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

query I rowsort
SELECT 64 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query I rowsort
SELECT ALL + - col1 + - 72 AS col1 FROM tab0 AS cor0
----
-158
-163
-169

query I rowsort
SELECT DISTINCT + col1 + + col1 * + cor0.col0 * col1 FROM tab1 AS cor0
----
13533
2054
6410

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * cor0.col0 * + col1 col0 FROM tab0 AS cor0
----
-3395
-664118
-68112

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-547
SELECT col2 + + ( + cor0.col1 ) + CAST( col2 AS SIGNED ) DIV - col1 FROM tab1 AS cor0
----
102
62
78

skipif mysql # not compatible
query I rowsort label-547
SELECT col2 + + ( + cor0.col1 ) + CAST ( col2 AS INTEGER ) / - col1 FROM tab1 AS cor0
----
102
62
78

query I rowsort
SELECT - ( + cor0.col1 ) * col0 - - 27 FROM tab0 AS cor0
----
-2037
-3368
-8072

query I rowsort
SELECT 57 + col2 + col2 AS col0 FROM tab1 AS cor0
----
165
171
249

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

query I rowsort
SELECT + 10 * - col0 + ( ( col0 ) ) AS col2 FROM tab2 AS cor0
----
-63
-702
-711

onlyif mysql # use DIV operator for integer division
query I rowsort label-552
SELECT ALL + col1 DIV - 3 - - tab0.col1 AS col0 FROM tab0
----
58
61
65

skipif mysql # not compatible
query I rowsort label-552
SELECT ALL + col1 / - 3 - - tab0.col1 AS col0 FROM tab0
----
58
61
65

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-554
SELECT - CAST( col0 AS SIGNED ) FROM tab0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-554
SELECT - CAST ( col0 AS INTEGER ) FROM tab0
----
-24
-35
-89

query I rowsort
SELECT cor0.col0 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

onlyif mysql # use DIV operator for integer division
query I rowsort label-556
SELECT + + 72 DIV col1 col0 FROM tab0 AS cor0
----
0
0
0

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

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( col1 AS REAL ) FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL tab0.col1 + + 96 FROM tab0
----
182
187
193

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 60 * 18 + col2 col0 FROM tab2 AS cor0
----
1106
1107
1118

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

query I rowsort
SELECT - col1 + - col1 AS col0 FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT ALL + 18 * + col2 AS col0 FROM tab1 AS cor0
----
1026
1728
972

onlyif mysql # use DIV operator for integer division
query I rowsort label-563
SELECT DISTINCT - - col0 * col1 + col1 * col2 DIV col2 AS col2 FROM tab1 AS cor0
----
104
1053
650

skipif mysql # not compatible
query I rowsort label-563
SELECT DISTINCT - - col0 * col1 + col1 * col2 / col2 AS col2 FROM tab1 AS cor0
----
104
1053
650

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

query I rowsort
SELECT 58 + col1 * cor0.col0 FROM tab0 cor0
----
2122
3453
8157

query I rowsort
SELECT ALL 7 + - col1 AS col1 FROM tab1
----
-19
-3
-6

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

skipif mysql # not compatible
query I rowsort label-567
SELECT DISTINCT + - col1 * col2 + CAST ( col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-2805
-7380
-96

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

query I rowsort
SELECT DISTINCT - 0 * col0 + + col1 - ( - cor0.col1 * 26 ) FROM tab2 AS cor0
----
1593
459
837

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 35 - col2 col2 FROM tab2 AS cor0
----
-3
8
9

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

skipif mysql # not compatible
query I rowsort label-573
SELECT + col2 * + col2 + CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
0
1056
6642

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

query I rowsort
SELECT DISTINCT - - col1 * - col0 + ( 45 ) FROM tab0 AS cor0
----
-2019
-3350
-8054

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

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

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

skipif mysql # not compatible
query I rowsort label-578
SELECT - + cor0.col1 + col2 / 47 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT + 41 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to f6a440b478f0d00f8326a8c51fe094b8

onlyif mysql # use DIV operator for integer division
query I rowsort label-580
SELECT col0 + col2 DIV - col0 FROM tab2 AS cor0
----
4
78
79

skipif mysql # not compatible
query I rowsort label-580
SELECT col0 + col2 / - col0 FROM tab2 AS cor0
----
4
78
79

query I rowsort
SELECT DISTINCT - col2 + - ( cor0.col2 ) * - cor0.col1 * cor0.col2 AS col1 FROM tab2 AS cor0
----
22572
24510
39858

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 7 col1 FROM tab1 AS cor0
----
182
70
91

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

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

query I rowsort
SELECT - col1 * 37 FROM tab0 cor0
----
-3182
-3367
-3589

query I rowsort
SELECT DISTINCT cor0.col2 + - 46 FROM tab2 AS cor0
----
-19
-20
-8

query I rowsort
SELECT DISTINCT cor0.col1 + + 21 FROM tab1 AS cor0
----
31
34
47

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

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

query I rowsort
SELECT col2 * + col1 * 14 FROM tab2 AS cor0
----
11718
21476
9044

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

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

query I rowsort
SELECT ALL 0 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1, tab1 cor2
----
81 values hashing to 1f117f467f45d8c6b7553e2e3c842942

query I rowsort
SELECT DISTINCT - ( col1 ) + col0 * + ( + col2 + col1 ) FROM tab0 AS cor0
----
15306
2770
3333

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 20 * - 37 col2 FROM tab1 AS cor0
----
740
740
740

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

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

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

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

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

query I rowsort
SELECT DISTINCT - col1 * 81 FROM tab1 AS cor0
----
-1053
-2106
-810

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-603
SELECT + 63 DIV 22 AS col0 FROM tab1 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-603
SELECT + 63 / 22 AS col0 FROM tab1 AS cor0
----
2
2
2

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

query I rowsort
SELECT DISTINCT - ( - 48 ) * + col0 + + col2 FROM tab2 AS cor0
----
363
3770
3830

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

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

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

query I rowsort
SELECT ALL + 20 + col1 * - cor0.col2 FROM tab1 AS cor0
----
-1228
-1384
-550

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

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

skipif mysql # not compatible
query I rowsort label-611
SELECT ALL - ( col1 ) / + col2 FROM tab1 AS cor0
----
0
0
0

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-613
SELECT tab0.col2 * CAST( col2 AS SIGNED ) FROM tab0
----
1
1089
6724

skipif mysql # not compatible
query I rowsort label-613
SELECT tab0.col2 * CAST ( col2 AS INTEGER ) FROM tab0
----
1
1089
6724

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-615
SELECT - ( col1 ) DIV - col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-615
SELECT - ( col1 ) / - col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT 64 AS col1 FROM tab1
----
64
64
64

query I rowsort
SELECT col1 * + 25 + + col2 AS col2 FROM tab2
----
1501
463
802

query I rowsort
SELECT ALL - cor0.col1 FROM tab2, tab2 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to b7a1b38fe8e4f34388e3be1f52601ae5

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

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

query I rowsort
SELECT DISTINCT - col2 * + 30 AS col1 FROM tab1
----
-1620
-1710
-2880

query I rowsort
SELECT ALL 81 * + tab0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to d978491f1f731dfbcdb7a39b597dea4a

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

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

skipif mysql # not compatible
query I rowsort label-623
SELECT + - cor0.col1 + col0 * col2 / + col2 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT + col1 - col1 * 56 FROM tab0
----
-4730
-5005
-5335

onlyif mysql # use DIV operator for integer division
query I rowsort label-625
SELECT col0 * + 99 + col1 DIV col2 AS col0 FROM tab0 cor0
----
2378
3562
8812

skipif mysql # not compatible
query I rowsort label-625
SELECT col0 * + 99 + col1 / col2 AS col0 FROM tab0 cor0
----
2378
3562
8812

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-627
SELECT DISTINCT + col0 - CAST( 13 AS SIGNED ) * col2 FROM tab1 cor0
----
-1168
-677
-699

skipif mysql # not compatible
query I rowsort label-627
SELECT DISTINCT + col0 - CAST ( 13 AS INTEGER ) * col2 FROM tab1 cor0
----
-1168
-677
-699

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-629
SELECT DISTINCT - col1 * - CAST( col2 + + col2 AS SIGNED ) * + ( col2 ) FROM tab0
----
1223768
187308
194

skipif mysql # not compatible
query I rowsort label-629
SELECT DISTINCT - col1 * - CAST ( col2 + + col2 AS INTEGER ) * + ( col2 ) FROM tab0
----
1223768
187308
194

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-633
SELECT col1 * - CAST ( col0 * - col2 AS INTEGER ) + - col0 * - cor0.col0 * - col0 FROM tab1 AS cor0
----
-225664
-412160
4185

query I rowsort
SELECT ALL + 2 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT DISTINCT + col1 * ( ( col0 ) ) + - ( + 61 ) FROM tab1 AS cor0
----
17
579
979

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

query I rowsort
SELECT col0 * 16 FROM tab1 AS cor0
----
1024
1280
48

query I rowsort
SELECT + + col2 + ( + 5 ) FROM tab1 AS cor0
----
101
59
62

query I rowsort
SELECT DISTINCT - - col1 * - col0 + 30 * col2 + - col1 * col0 FROM tab1 cor0
----
1464
430
800

query I rowsort
SELECT - col1 + col2 FROM tab2 WHERE ( col1 ) <> ( col1 * + col0 )
----
-33
-4
21

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

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 AS cor0 WHERE cor0.col2 * col1 * col2 NOT IN ( col0 / + col1 + + col0 * - col1 ) OR NULL >= ( - col1 )
----
-26
-27
-38

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 + + col1 + + col1 * - col1 < ( NULL )
----

query I rowsort
SELECT + col0 * + col0 + col1 * col0 FROM tab1 AS cor0
----
4736
7440
87

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

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

query I rowsort
SELECT + + col1 + + col2 * + cor0.col2 + col1 FROM tab1 AS cor0
----
2968
3269
9242

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

query I rowsort
SELECT + col0 * col2 + tab0.col1 * + col0 * col2 FROM tab0
----
3430
671416
68904

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

query IIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

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

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

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

query I rowsort
SELECT DISTINCT + 45 * col2 FROM tab1 AS cor0
----
2430
2565
4320

onlyif mysql # use DIV operator for integer division
query I rowsort label-659
SELECT + 62 + - col1 DIV + ( + 16 ) FROM tab1 AS cor0
----
61
62
62

skipif mysql # not compatible
query I rowsort label-659
SELECT + 62 + - col1 / + ( + 16 ) FROM tab1 AS cor0
----
61
62
62

query I rowsort
SELECT ALL - 47 + col2 FROM tab2 AS cor0
----
-20
-21
-9

query I rowsort
SELECT + 32 + cor0.col2 AS col1 FROM tab1 AS cor0
----
128
86
89

query I rowsort
SELECT ALL - col2 * - col2 + col0 * col2 FROM tab2
----
2704
4446
918

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

query I rowsort
SELECT col2 FROM tab2 WHERE ( NULL ) < NULL
----

query I rowsort
SELECT DISTINCT - col1 * - col0 - col0 * - tab0.col2 FROM tab0
----
15397
2856
3430

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

query I rowsort
SELECT - col1 + - col1 AS col2 FROM tab2
----
-118
-34
-62

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

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

query I rowsort
SELECT DISTINCT + 8 + + col1 AS col2 FROM tab0
----
105
94
99

query I rowsort
SELECT - col1 * col1 * - col2 + + col2 * col0 AS col0 FROM tab2 cor0
----
13984
26136
92534

query I rowsort
SELECT 2 * - col0 + 47 AS col2 FROM tab0
----
-1
-131
-23

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

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

query I rowsort
SELECT - col1 * col0 + - col0 * + tab2.col2 FROM tab2
----
-406
-4345
-6630

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

query I rowsort
SELECT + col0 * + col0 + + tab1.col2 FROM tab1
----
4153
63
6496

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

query I rowsort
SELECT DISTINCT + col1 * - col0 * - col0 - - col0 * col0 FROM tab1
----
243
45056
89600

onlyif mysql # use DIV operator for integer division
query I rowsort label-679
SELECT col2 DIV col1 - - col0 AS col1 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-679
SELECT col2 / col1 - - col0 AS col1 FROM tab0
----
24
35
89

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col1 col0 FROM tab1
----
-100
-169
-676

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col0 + col2 * tab1.col1 * - col0 FROM tab1
----
-36544
-4215
-99920

query I rowsort
SELECT DISTINCT col1 * col1 FROM tab2 WHERE NOT ( col0 ) BETWEEN ( NULL ) AND col1 * - col2
----
289
3481
961

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab1 WHERE NULL BETWEEN ( + col2 * col0 ) AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-687
SELECT DISTINCT col2 DIV tab1.col0 FROM tab1
----
0
1
18

skipif mysql # not compatible
query I rowsort label-687
SELECT DISTINCT col2 / tab1.col0 FROM tab1
----
0
1
18

query I rowsort
SELECT ALL + tab1.col0 FROM tab1 WHERE - col1 - - col2 * + col0 >= ( + col2 )
----
3
64
80

query I rowsort
SELECT + col2 + col1 + col1 AS col0 FROM tab2
----
144
72
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-690
SELECT ALL col1 DIV + col2 FROM tab0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-690
SELECT ALL col1 / + col2 FROM tab0
----
1
2
97

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

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

query I rowsort
SELECT ALL - col2 * - col0 FROM tab1 WHERE NULL < ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col2 * col2 * - col2 + col2 * - tab1.col0 col0 FROM tab1
----
-157626
-188841
-892416

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col2 FROM tab0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

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

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

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

query I rowsort
SELECT col0 * col0 - ( - 21 ) FROM tab2
----
6105
6262
70

skipif mysql # not compatible
query I rowsort
SELECT + col2 * CAST ( col2 AS REAL ) FROM tab0 cor0
----
1
1089
6724

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

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

query I rowsort
SELECT col1 * + col0 + 70 + - tab1.col2 FROM tab1
----
1014
653
94

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

query I rowsort
SELECT DISTINCT - + col0 * 32 + + col2 FROM tab0 AS cor0
----
-1119
-2766
-735

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col0 + + ( col1 ) col2 FROM tab2 AS cor0
----
-1326
-186
-4543

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * ( col1 ) + + cor0.col0 + col1 col0 FROM tab0 AS cor0
----
7506
8461
9541

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

query I rowsort
SELECT ALL - col1 * + col1 + - col1 FROM tab1 AS cor0
----
-110
-182
-702

query I rowsort
SELECT DISTINCT - col2 + + 7 AS col0 FROM tab0 AS cor0
----
-26
-75
6

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-714
SELECT ALL cor0.col1 + - 89 DIV cor0.col2 + col2 col1 FROM tab1 AS cor0
----
109
66
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-714
SELECT ALL cor0.col1 + - 89 / cor0.col2 + col2 col1 FROM tab1 AS cor0
----
109
66
79

query I rowsort
SELECT DISTINCT + col0 + col0 * - cor0.col0 FROM tab1 cor0
----
-4032
-6
-6320

query I rowsort
SELECT - ( + col0 ) + - col0 + - 67 FROM tab2 AS cor0
----
-223
-225
-81

query I rowsort
SELECT col2 + cor0.col1 * col0 + col0 * 90 AS col0 FROM tab1 cor0
----
402
6457
8336

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

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

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

query I rowsort
SELECT ALL - 14 + - col2 AS col1 FROM tab0 cor0
----
-15
-47
-96

query I rowsort
SELECT DISTINCT - 47 AS col1 FROM tab2 AS cor0
----
-47

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-723
SELECT DISTINCT - col2 DIV col2 - - 55 FROM tab0 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-723
SELECT DISTINCT - col2 / col2 - - 55 FROM tab0 AS cor0
----
54

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

skipif mysql # not compatible
query I rowsort label-724
SELECT DISTINCT - col1 + col2 / - col0 AS col2 FROM tab2 AS cor0
----
-17
-34
-59

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

query I rowsort
SELECT ALL col2 + col0 * ( - 69 * cor0.col0 + col0 ) AS col1 FROM tab1 AS cor0
----
-278471
-435104
-558

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT - col2 + col0 + col0 AS col0 FROM tab2 AS cor0
----
-13
120
130

query I rowsort
SELECT ALL - col1 + col1 * 68 AS col2 FROM tab1 AS cor0
----
1742
670
871

query I rowsort
SELECT DISTINCT col1 + col1 + - col1 * + col0 FROM tab2 AS cor0
----
-1309
-155
-4484

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 55 + + col0 col2 FROM tab1 AS cor0
----
119
135
58

query I rowsort
SELECT + col2 * cor0.col0 * - 85 + + col2 FROM tab2 AS cor0
----
-16038
-172354
-255132

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

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

query I rowsort
SELECT col0 * col1 + + 54 + cor0.col2 FROM tab2 AS cor0
----
1435
298
4682

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

query I rowsort
SELECT - + 57 + col1 + 40 * col0 FROM tab1 AS cor0
----
2513
3156
89

query I rowsort
SELECT 5 + 23 * + col1 + col0 FROM tab1 AS cor0
----
299
384
606

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

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

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

query I rowsort
SELECT DISTINCT - - ( - 71 ) * - col1 FROM tab2 AS cor0
----
1207
2201
4189

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

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

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

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

skipif mysql # not compatible
query I rowsort label-753
SELECT DISTINCT CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + + 37 * 72 FROM tab1 AS cor0
----
2664
2664
2664

query I rowsort
SELECT col1 * 76 * col2 + col2 + 42 * - col1 FROM tab0 AS cor0
----
212109
3299
563372

query I rowsort
SELECT DISTINCT + col0 - col2 * + 0 AS col1 FROM tab2
----
7
78
79

query I rowsort
SELECT - col0 + + col1 + - tab0.col0 * - col1 AS col1 FROM tab0
----
2126
3457
8101

onlyif mysql # use DIV operator for integer division
query I rowsort label-758
SELECT col2 * col1 DIV col2 + col2 * + col2 - 1 * + tab0.col1 col1 FROM tab0
----
1
1089
6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-758
SELECT col2 * col1 / col2 + col2 * + col2 - 1 * + tab0.col1 col1 FROM tab0
----
1
1089
6724

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

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

query I rowsort
SELECT DISTINCT - col0 * col1 + - tab2.col0 AS col0 FROM tab2
----
-1422
-224
-4680

query I rowsort
SELECT DISTINCT tab0.col0 + - tab0.col2 * col1 * - col2 AS col2 FROM tab0
----
132
611973
93678

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - - 91 + 82 FROM tab1 AS cor0
----
173

query I rowsort
SELECT col0 * + 80 FROM tab2
----
560
6240
6320

query I rowsort
SELECT - ( 73 ) AS col1 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 2931474b870c05694e446771031a6949

query I rowsort
SELECT DISTINCT + col1 * - tab1.col2 + col2 * + ( ( + col2 ) ) FROM tab1
----
1512
2679
7968

query I rowsort
SELECT - + cor0.col0 * ( - 54 ) FROM tab2 AS cor0
----
378
4212
4266

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

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

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

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

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

query I rowsort
SELECT ALL 15 FROM tab0, tab1 AS cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query I rowsort
SELECT ALL - 59 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

query I rowsort
SELECT - ( 75 ) * - col1 + 62 * + ( + cor0.col1 ) FROM tab1 AS cor0
----
1370
1781
3562

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

query I rowsort
SELECT - 37 * + col2 + col2 * col2 FROM tab0 AS cor0
----
-132
-36
3690

query I rowsort
SELECT ( 52 ) * cor0.col1 + - 44 * + 58 FROM tab1 cor0
----
-1200
-1876
-2032

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

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

query I rowsort
SELECT + + col0 * + cor0.col1 * col0 FROM tab2 AS cor0
----
106097
1519
358956

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

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

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

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

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

query I rowsort
SELECT ALL cor0.col1 + + col1 FROM tab1 AS cor0
----
20
26
52

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

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

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

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

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

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

query I rowsort
SELECT - tab1.col1 + - tab1.col1 AS col0 FROM tab1
----
-20
-26
-52

query I rowsort
SELECT + 25 * + col1 FROM tab2
----
1475
425
775

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

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-800
SELECT ALL + col1 * + CAST( col0 AS SIGNED ) * col0 - + col2 AS col2 FROM tab1
----
180
40903
83104

skipif mysql # not compatible
query I rowsort label-800
SELECT ALL + col1 * + CAST ( col0 AS INTEGER ) * col0 - + col2 AS col2 FROM tab1
----
180
40903
83104

query I rowsort
SELECT + 11 * + cor0.col0 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 1eedf57ff58098142d86b7e4cb839f74

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-804
SELECT - + col1 DIV + cor0.col0 + + col1 FROM tab1 cor0
----
10
13
18

skipif mysql # not compatible
query I rowsort label-804
SELECT - + col1 / + cor0.col0 + + col1 FROM tab1 cor0
----
10
13
18

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

query I rowsort
SELECT 10 + + col0 AS col2 FROM tab2 AS cor0
----
17
88
89

query I rowsort
SELECT - 81 FROM tab2, tab0 AS cor0
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

query I rowsort
SELECT - + 99 + col0 * col2 AS col1 FROM tab2 AS cor0
----
1929
2903
90

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

query I rowsort
SELECT DISTINCT + ( cor0.col2 ) * col1 + - 98 * cor0.col1 - - col0 FROM tab1 AS cor0
----
-1141
-346
54

onlyif mysql # use DIV operator for integer division
query I rowsort label-811
SELECT ALL + + 88 DIV - 93 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-811
SELECT ALL + + 88 / - 93 FROM tab2 AS cor0
----
0
0
0

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

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

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

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

query I rowsort
SELECT - col1 * - col2 + - 52 * - col1 AS col0 FROM tab1
----
1090
1924
2756

query I rowsort
SELECT col0 + - 59 FROM tab0
----
-24
-35
30

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-818
SELECT ALL + col2 / col1 col1 FROM tab1
----
2
5
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-819
SELECT 73 DIV + col0 col0 FROM tab0 AS cor0
----
0
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-819
SELECT 73 / + col0 col0 FROM tab0 AS cor0
----
0
2
3

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

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

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

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

query I rowsort
SELECT + 41 FROM tab0
----
41
41
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 77 col2 FROM tab1
----
77
77
77

query I rowsort
SELECT - - cor1.col1 + 20 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1845f477154fae821e86c0a21619ffc4

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

query I rowsort
SELECT - col0 + + 47 FROM tab2 AS cor0
----
-31
-32
40

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

query I rowsort
SELECT DISTINCT - + col1 * + ( col1 ) + + 6 FROM tab2 cor0
----
-283
-3475
-955

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

query I rowsort
SELECT 76 * - col0 FROM tab0 cor0
----
-1824
-2660
-6764

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-832
SELECT DISTINCT - - CAST( - 36 AS SIGNED ) + + col1 AS col2 FROM tab2 AS cor0
----
-19
-5
23

skipif mysql # not compatible
query I rowsort label-832
SELECT DISTINCT - - CAST ( - 36 AS INTEGER ) + + col1 AS col2 FROM tab2 AS cor0
----
-19
-5
23

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

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

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

query I rowsort
SELECT DISTINCT - + 41 * + col2 AS col1 FROM tab0 AS cor0
----
-1353
-3362
-41

query I rowsort
SELECT tab2.col2 - + 5 FROM tab2
----
21
22
33

query I rowsort
SELECT - ( 88 ) FROM tab2
----
-88
-88
-88

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

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

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

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

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 - col0 + + col1 AS col1 FROM tab2 AS cor0
----
-19
-62
24

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-844
SELECT DISTINCT 5 / col0 col0 FROM tab0 AS cor0
----
0

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-846
SELECT + CAST( - col1 AS SIGNED ) AS col2 FROM tab1
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-846
SELECT + CAST ( - col1 AS INTEGER ) AS col2 FROM tab1
----
-10
-13
-26

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

query I rowsort
SELECT - - cor0.col0 * col2 + col2 - + col0 AS col2 FROM tab1 AS cor0
----
213
3641
7696

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

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

query I rowsort
SELECT + col0 + + 46 FROM tab1 AS cor0
----
110
126
49

query I rowsort
SELECT DISTINCT + col2 + - 35 FROM tab2 AS cor0
----
-8
-9
3

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-853
SELECT ALL col2 DIV - 30 FROM tab1 AS cor0
----
-1
-1
-3

skipif mysql # not compatible
query I rowsort label-853
SELECT ALL col2 / - 30 FROM tab1 AS cor0
----
-1
-1
-3

query I rowsort
SELECT ALL + col2 + - ( - 37 ) FROM tab2 AS cor0
----
63
64
75

query I rowsort
SELECT + col0 * - 1 * - col0 + col2 * col2 * col1 FROM tab1 AS cor0
----
126208
36586
75825

query I rowsort
SELECT ALL col1 * + col0 - tab1.col2 * - col1 FROM tab1
----
1210
1482
2288

onlyif mysql # use DIV operator for integer division
query I rowsort label-857
SELECT ALL tab1.col0 - + col1 DIV col1 FROM tab1
----
2
63
79

skipif mysql # not compatible
query I rowsort label-857
SELECT ALL tab1.col0 - + col1 / col1 FROM tab1
----
2
63
79

query I rowsort
SELECT + 81 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360

query I rowsort
SELECT ALL col2 - col2 * + 52 * 77 AS col2 FROM tab2
----
-104078
-108081
-152114

query I rowsort
SELECT DISTINCT + ( + col1 ) * + 80 - - tab0.col1 * - col0 AS col2 FROM tab0
----
-819
4365
4816

query I rowsort
SELECT ALL + 36 AS col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 4d1892e880125dc90345721151acb22c

query I rowsort
SELECT ALL col2 * col1 + + 94 FROM tab2
----
1628
740
931

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

query I rowsort
SELECT DISTINCT tab0.col2 + + 35 FROM tab0
----
117
36
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + ( - col0 ) + - col2 col2 FROM tab1 cor0
----
-4153
-63
-6496

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

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

query I rowsort
SELECT DISTINCT + col2 * 89 + 51 + + col2 * 52 AS col2 FROM tab0 AS cor0
----
11613
192
4704

query I rowsort
SELECT col2 * cor0.col1 + 29 AS col1 FROM tab2 cor0
----
1563
675
866

query I rowsort
SELECT DISTINCT + col0 + + ( 73 * - col1 ) FROM tab1 AS cor0
----
-1895
-666
-869

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-872
SELECT - col0 + col0 DIV col1 AS col2 FROM tab2 AS cor0
----
-7
-75
-77

skipif mysql # not compatible
query I rowsort label-872
SELECT - col0 + col0 / col1 AS col2 FROM tab2 AS cor0
----
-7
-75
-77

query I rowsort
SELECT DISTINCT - col0 + ( col0 + - tab2.col0 * 89 ) FROM tab2
----
-623
-6942
-7031

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * 72 col2 FROM tab2
----
-504
-5616
-5688

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

skipif mysql # not compatible
query I rowsort label-877
SELECT DISTINCT - + col2 / col2 FROM tab1 cor0
----
-1

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

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

skipif mysql # not compatible
query I rowsort label-879
SELECT ALL col1 / - ( + col0 ) + col0 AS col0 FROM tab2
----
3
78
79

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

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

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

query I rowsort
SELECT - ( + 9 ) * col1 + 48 FROM tab0 AS cor0
----
-726
-771
-825

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( 72 AS REAL ) col1 FROM tab1 AS cor0
----
72

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

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

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

skipif mysql # not compatible
query I rowsort label-888
SELECT - 48 + - 10 / - col1 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

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

skipif mysql # not compatible
query I rowsort
SELECT CAST ( col0 AS REAL ) FROM tab0
----
24
35
89

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

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

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

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

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

query I rowsort
SELECT ALL + - col0 * + col0 + col0 FROM tab1 cor0
----
-4032
-6
-6320

query I rowsort
SELECT DISTINCT - 28 * + col2 AS col1 FROM tab1 AS cor0
----
-1512
-1596
-2688

query I rowsort
SELECT 81 * col0 + - col0 AS col1 FROM tab1 AS cor0
----
240
5120
6400

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-900
SELECT DISTINCT + col1 + col1 * col1 * 1 + col1 DIV col0 AS col0 FROM tab2 AS cor0
----
306
3540
996

skipif mysql # not compatible
query I rowsort label-900
SELECT DISTINCT + col1 + col1 * col1 * 1 + col1 / col0 AS col0 FROM tab2 AS cor0
----
306
3540
996

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

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

query I rowsort
SELECT DISTINCT - 88 * tab2.col2 AS col2 FROM tab2
----
-2288
-2376
-3344

query I rowsort
SELECT - 64 AS col2 FROM tab0 AS cor0
----
-64
-64
-64

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

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

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

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

query I rowsort
SELECT - col2 * 95 FROM tab1 AS cor0
----
-5130
-5415
-9120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 95 * col0 col1 FROM tab2
----
665
7410
7505

onlyif mysql # use DIV operator for integer division
query I rowsort label-910
SELECT col1 + 98 DIV + 40 AS col2 FROM tab0 cor0
----
88
93
99

skipif mysql # not compatible
query I rowsort label-910
SELECT col1 + 98 / + 40 AS col2 FROM tab0 cor0
----
88
93
99

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

query I rowsort
SELECT + 78 * col0 AS col2 FROM tab0 AS cor0
----
1872
2730
6942

query I rowsort
SELECT 82 + + col2 * 44 + + col2 * - col0 AS col1 FROM tab2 AS cor0
----
-1248
-802
1081

query I rowsort
SELECT + ( cor0.col2 ) + 47 + - cor0.col1 AS col2 FROM tab0 AS cor0
----
-49
-6
38

query I rowsort
SELECT - - ( col1 ) + col1 * 57 FROM tab2 AS cor0
----
1798
3422
986

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

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

query I rowsort
SELECT 28 * - col1 - cor0.col2 FROM tab2 AS cor0
----
-1678
-514
-895

query I rowsort
SELECT ALL + col1 * col2 + - col1 * + col0 AS col2 FROM tab2
----
-3068
-697
620

query I rowsort
SELECT ALL ( 60 ) AS col2 FROM tab0
----
60
60
60

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-921
SELECT + CAST( + col0 + + col0 AS SIGNED ) FROM tab1
----
128
160
6

skipif mysql # not compatible
query I rowsort label-921
SELECT + CAST ( + col0 + + col0 AS INTEGER ) FROM tab1
----
128
160
6

query I rowsort
SELECT DISTINCT col2 * + 76 * col0 + col0 + + col0 FROM tab0
----
2730
554826
60240

query I rowsort
SELECT 48 - col1 * + 39 FROM tab2 cor0
----
-1161
-2253
-615

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

skipif mysql # not compatible
query I rowsort label-924
SELECT col0 / 94 AS col1 FROM tab1
----
0
0
0

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

query I rowsort
SELECT DISTINCT - 78 + ( - cor1.col2 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-111
-160
-79

query I rowsort
SELECT + 72 - col1 * + col1 AS col0 FROM tab0
----
-7324
-8209
-9337

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

query I rowsort
SELECT - 25 AS col2 FROM tab0
----
-25
-25
-25

query I rowsort
SELECT - ( + cor0.col0 ) FROM tab2 cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 AS cor2, tab1 AS cor3
----
243 values hashing to b2b584cb071e1d63bf99874835e1bfc4

query I rowsort
SELECT DISTINCT + + col2 + - 47 AS col2 FROM tab0 AS cor0
----
-14
-46
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-932
SELECT 58 DIV col0 AS col2 FROM tab1
----
0
0
19

skipif mysql # not compatible
query I rowsort label-932
SELECT 58 / col0 AS col2 FROM tab1
----
0
0
19

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

query I rowsort
SELECT 22 AS col2 FROM tab0
----
22
22
22

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

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

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

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

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

query I rowsort
SELECT - ( col1 ) * col1 AS col2 FROM tab2 AS cor0
----
-289
-3481
-961

query IIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 WHERE NULL >= + cor0.col0
----

query I rowsort
SELECT 66 - col2 FROM tab1
----
-30
12
9

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

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

query I rowsort
SELECT + 11 * - 34 FROM tab1 AS cor0
----
-374
-374
-374

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-947
SELECT - col1 DIV col2 + - cor0.col0 * + col0 col0 FROM tab0 cor0
----
-1322
-578
-7922

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-947
SELECT - col1 / col2 + - cor0.col0 * + col0 col0 FROM tab0 cor0
----
-1322
-578
-7922

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col1 + 96 col1 FROM tab1
----
-544
-944
18

query I rowsort
SELECT ALL - 22 * col2 FROM tab2 AS cor0
----
-572
-594
-836

onlyif mysql # use DIV operator for integer division
query I rowsort label-951
SELECT DISTINCT + cor0.col0 DIV col0 + + col2 AS col0 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-951
SELECT DISTINCT + cor0.col0 / col0 + + col2 AS col0 FROM tab0 AS cor0
----
2
34
83

query I rowsort
SELECT DISTINCT + - col1 * - col0 * + 73 + - 15 AS col0 FROM tab1 AS cor0
----
46705
5679
75905

query I rowsort
SELECT - - 75 + col0 AS col1 FROM tab2 cor0
----
153
154
82

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

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

query I rowsort
SELECT - - tab0.col0 + + 49 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 425606bfeaa5b39db2db20aaec8e7470

query I rowsort
SELECT DISTINCT + col1 + + 93 + + col1 * col0 AS col1 FROM tab2
----
1453
341
4754

query I rowsort
SELECT DISTINCT + col0 + + 65 AS col1 FROM tab2
----
143
144
72

query I rowsort
SELECT - col0 * + col0 + col2 + col2 * + 78 FROM tab0 cor0
----
-1146
-1443
2031

query I rowsort
SELECT + col2 + 37 * - 85 + col1 * + col2 FROM tab2 cor0
----
-1585
-2281
-2461

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-961
SELECT - cor0.col2 * CAST( 97 AS SIGNED ) + + col1 AS col0 FROM tab0 AS cor0
----
-3115
-7863
0

skipif mysql # not compatible
query I rowsort label-961
SELECT - cor0.col2 * CAST ( 97 AS INTEGER ) + + col1 AS col0 FROM tab0 AS cor0
----
-3115
-7863
0

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

query I rowsort
SELECT ALL + + 87 - cor0.col0 AS col0 FROM tab1 cor0
----
23
7
84

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

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

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

query I rowsort
SELECT ALL cor0.col2 - 80 AS col1 FROM tab1 AS cor0
----
-23
-26
16

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

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

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

query I rowsort
SELECT - 2 * - 1 AS col1 FROM tab1 cor0
----
2
2
2

query I rowsort
SELECT ALL 67 + col1 AS col2 FROM tab0 AS cor0
----
153
158
164

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

query I rowsort
SELECT DISTINCT + 22 * - ( - col1 ) AS col1 FROM tab1 AS cor0
----
220
286
572

query I rowsort
SELECT ALL col1 * + 69 * + col0 FROM tab0
----
142416
234255
558831

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

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1, tab2 cor0, tab0
----
972 values hashing to 58757c5bbbd4217c03cf2ac0b6126e55

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-981
SELECT DISTINCT 78 + - col1 + ( tab1.col1 ) DIV col2 FROM tab1
----
52
65
68

skipif mysql # not compatible
query I rowsort label-981
SELECT DISTINCT 78 + - col1 + ( tab1.col1 ) / col2 FROM tab1
----
52
65
68

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

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

query I rowsort
SELECT ALL ( + 59 ) AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3

onlyif mysql # use DIV operator for integer division
query I rowsort label-984
SELECT col2 + col0 DIV - col0 + ( - col0 ) AS col0 FROM tab0 AS cor0
----
-35
-8
8

skipif mysql # not compatible
query I rowsort label-984
SELECT col2 + col0 / - col0 + ( - col0 ) AS col0 FROM tab0 AS cor0
----
-35
-8
8

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

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

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

query I rowsort
SELECT 35 + + col0 + - 4 AS col0 FROM tab0 AS cor0
----
120
55
66

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

query I rowsort
SELECT + 77 + + col0 FROM tab2 AS cor0
----
155
156
84

query I rowsort
SELECT DISTINCT + 89 * - col1 FROM tab0 AS cor0
----
-7654
-8099
-8633

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

query I rowsort
SELECT ALL + col1 * - col0 + - col0 - - col2 FROM tab2 cor0
----
-1384
-197
-4654

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

query I rowsort
SELECT ALL col2 * cor0.col2 + + col1 * cor0.col2 FROM tab0 AS cor0
----
14186
3927
98

query I rowsort
SELECT DISTINCT - col2 * + col2 * + col1 FROM tab0 AS cor0
----
-611884
-93654
-97

query I rowsort
SELECT DISTINCT col2 * 12 + col2 FROM tab0 cor0
----
1066
13
429

onlyif mysql # use DIV operator for integer division
query I rowsort label-997
SELECT - + col0 DIV + 9 + + col1 FROM tab1 AS cor0
----
26
3
5

skipif mysql # not compatible
query I rowsort label-997
SELECT - + col0 / + 9 + + col1 FROM tab1 AS cor0
----
26
3
5

onlyif mysql # use DIV operator for integer division
query I rowsort label-998
SELECT ALL + + col2 - 40 DIV + 39 col0 FROM tab2 cor0
----
25
26
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-998
SELECT ALL + + col2 - 40 / + 39 col0 FROM tab2 cor0
----
25
26
37

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

query I rowsort
SELECT col2 + col2 + - col0 FROM tab2
----
-26
-3
47

query I rowsort
SELECT ALL col1 + - col1 * 10 FROM tab2
----
-153
-279
-531

query I rowsort
SELECT col2 - + tab2.col0 * - 8 AS col2 FROM tab2
----
650
670
83

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

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

query I rowsort
SELECT DISTINCT col2 * 28 FROM tab1 AS cor0
----
1512
1596
2688

query I rowsort
SELECT DISTINCT - - 78 * col0 FROM tab2 cor0
----
546
6084
6162

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

skipif mysql # not compatible
query I rowsort label-1007
SELECT + - CAST ( + col2 AS INTEGER ) * - col2 AS col2 FROM tab0 cor0
----
1
1089
6724

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - cor0.col2 * - col1 col2 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT ALL + + cor0.col2 + 18 AS col0 FROM tab2 AS cor0
----
44
45
56

onlyif mysql # use DIV operator for integer division
query I rowsort label-1011
SELECT DISTINCT - col0 * col1 DIV col0 + cor0.col2 AS col0 FROM tab2 AS cor0
----
-33
-4
21

skipif mysql # not compatible
query I rowsort label-1011
SELECT DISTINCT - col0 * col1 / col0 + cor0.col2 AS col0 FROM tab2 AS cor0
----
-33
-4
21

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

query I rowsort
SELECT DISTINCT + col2 * + 62 AS col2 FROM tab1 AS cor0
----
3348
3534
5952

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

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

query I rowsort
SELECT ALL + + 87 + cor0.col0 AS col1 FROM tab2 AS cor0
----
165
166
94

query I rowsort
SELECT DISTINCT ( - 14 ) * cor0.col2 + ( - col2 ) FROM tab2 AS cor0
----
-390
-405
-570

query I rowsort
SELECT ALL - col2 + col1 - col0 AS col0 FROM tab0
----
-80
29
61

query I rowsort
SELECT ALL col1 - 10 AS col0 FROM tab2
----
21
49
7

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

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

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

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

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

query I rowsort
SELECT + + 40 + col1 * col0 + col2 AS col1 FROM tab2 AS cor0
----
1421
284
4668

query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab1, tab1 cor0 CROSS JOIN tab2
----
54
57
96

query I rowsort
SELECT + 81 * + col1 FROM tab2 AS cor0
----
1377
2511
4779

onlyif mysql # use DIV operator for integer division
query I rowsort label-1026
SELECT col0 * + col2 * + col1 + - col2 DIV - col2 + col1 AS col0 FROM tab1 cor0
----
36491
4239
99854

skipif mysql # not compatible
query I rowsort label-1026
SELECT col0 * + col2 * + col1 + - col2 / - col2 + col1 AS col0 FROM tab1 cor0
----
36491
4239
99854

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

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

query I rowsort
SELECT 23 * - cor0.col2 + + cor0.col2 * col0 FROM tab1 AS cor0
----
-1080
2337
5472

query I rowsort
SELECT cor0.col2 + + col2 + col0 AS col2 FROM tab1 cor0
----
111
178
272

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1032
SELECT ALL + CAST( ( + col2 ) * col0 AS SIGNED ) FROM tab1
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-1032
SELECT ALL + CAST ( ( + col2 ) * col0 AS INTEGER ) FROM tab1
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-1033
SELECT DISTINCT + 51 + + col0 DIV col1 FROM tab1
----
51
57

skipif mysql # not compatible
query I rowsort label-1033
SELECT DISTINCT + 51 + + col0 / col1 FROM tab1
----
51
57

query I rowsort
SELECT col1 * - col2 + - col0 + col0 * - col2 FROM tab2
----
-1033
-3640
-3727

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1037
SELECT DISTINCT - + col2 DIV cor0.col2 + + col0 * cor0.col2 AS col0 FROM tab1 AS cor0
----
161
3647
7679

skipif mysql # not compatible
query I rowsort label-1037
SELECT DISTINCT - + col2 / cor0.col2 + + col0 * cor0.col2 AS col0 FROM tab1 AS cor0
----
161
3647
7679

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

query I rowsort
SELECT ALL - 52 * + col2 * + col1 AS col0 FROM tab1 cor0
----
-29640
-64896
-73008

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

query I rowsort
SELECT DISTINCT - col0 * col0 + col1 * - col1 FROM tab2 AS cor0
----
-1010
-6530
-9565

query I rowsort
SELECT ALL + + ( + col2 ) * col0 + col2 * col2 AS col0 FROM tab2 AS cor0
----
2704
4446
918

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

query I rowsort
SELECT DISTINCT + 59 * - col1 + col1 * col2 AS col1 FROM tab1 AS cor0
----
-130
-20
481

query I rowsort
SELECT ALL + - 20 * + col0 AS col1 FROM tab1 cor0
----
-1280
-1600
-60

query I rowsort
SELECT 85 FROM tab2, tab0 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query I rowsort
SELECT - col2 * 64 AS col1 FROM tab0 AS cor0
----
-2112
-5248
-64

query I rowsort
SELECT DISTINCT + + col1 + + 91 AS col2 FROM tab2 cor0
----
108
122
150

query I rowsort
SELECT ALL + - col0 * 33 * col0 FROM tab1 AS cor0
----
-135168
-211200
-297

query I rowsort
SELECT + 93 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7

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

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

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

query I rowsort
SELECT ALL + 89 FROM tab1, tab0 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

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

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

query I rowsort
SELECT DISTINCT + ( 80 ) * col0 FROM tab0 AS cor0
----
1920
2800
7120

query I rowsort
SELECT - ( 41 ) + + col1 FROM tab1 AS cor0
----
-15
-28
-31

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

query I rowsort
SELECT DISTINCT + col2 - 91 FROM tab0 AS cor0
----
-58
-9
-90

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

query I rowsort
SELECT + - col1 * 20 FROM tab0 cor0
----
-1720
-1820
-1940

query I rowsort
SELECT col0 + col2 * + 79 FROM tab0 AS cor0
----
114
2631
6567

query I rowsort
SELECT ALL + 44 FROM tab2, tab1 cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

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

skipif mysql # not compatible
query I rowsort
SELECT cor0.col1 + + CAST ( - col0 AS REAL ) FROM tab2 cor0
----
-19
-62
24

query I rowsort
SELECT - + col0 * ( + ( - col2 ) + + col0 * - cor0.col1 ) FROM tab2 AS cor0
----
109099
1708
360984

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

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

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

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

query I rowsort
SELECT col0 * ( 92 ) AS col1 FROM tab1
----
276
5888
7360

query I rowsort
SELECT col1 * - 51 * + col0 + - col0 FROM tab2 AS cor0
----
-11074
-234780
-68572

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col0 * - col1 * col0 col1 FROM tab0
----
-118825
-49536
-720811

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

skipif mysql # not compatible
query I rowsort label-1075
SELECT col1 * - col1 * ( ( col2 ) ) + CAST ( 24 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-10958
-25923
-90482

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

query I rowsort
SELECT col2 + cor0.col1 * 0 FROM tab2 AS cor0
----
26
27
38

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

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

query I rowsort
SELECT + ( 3 ) + col1 AS col2 FROM tab1
----
13
16
29

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

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

query I rowsort
SELECT ALL + ( + col2 ) * - col2 + cor0.col0 + col1 AS col1 FROM tab2 AS cor0
----
-1348
-539
-691

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

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

query I rowsort
SELECT - 32 * cor0.col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 49d50fb62aa4411b197b4b6e8b28ee38

query I rowsort
SELECT ALL - ( 0 ) FROM tab1, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort
SELECT + - col2 * + CAST ( + col1 AS REAL ) + col2 AS col2 FROM tab1 AS cor0
----
-1152
-1350
-513

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1088
SELECT DISTINCT - + cor0.col1 - CAST( 60 AS SIGNED ) FROM tab0 AS cor0
----
-146
-151
-157

skipif mysql # not compatible
query I rowsort label-1088
SELECT DISTINCT - + cor0.col1 - CAST ( 60 AS INTEGER ) FROM tab0 AS cor0
----
-146
-151
-157

query I rowsort
SELECT + - col1 + col2 * 77 FROM tab2 AS cor0
----
1943
2048
2909

query I rowsort
SELECT ALL 76 * + col0 * 99 + - col1 FROM tab0
----
180490
263243
669545

query I rowsort
SELECT ALL col0 * + 93 * 15 FROM tab2
----
108810
110205
9765

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

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

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

query I rowsort
SELECT - col1 + tab1.col1 FROM tab1
----
0
0
0

query I rowsort
SELECT - tab1.col1 + col1 * - col1 FROM tab1
----
-110
-182
-702

query I rowsort
SELECT 52 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599

onlyif mysql # use DIV operator for integer division
query I rowsort label-1097
SELECT ALL col0 * 78 DIV + col0 FROM tab1
----
78
78
78

skipif mysql # not compatible
query I rowsort label-1097
SELECT ALL col0 * 78 / + col0 FROM tab1
----
78
78
78

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

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

query I rowsort
SELECT cor1.col1 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT ALL - 88 * - 24 AS col1 FROM tab2
----
2112
2112
2112

onlyif mysql # use DIV operator for integer division
query I rowsort label-1102
SELECT + 30 DIV col0 + + col1 FROM tab0 cor0
----
87
91
97

skipif mysql # not compatible
query I rowsort label-1102
SELECT + 30 / col0 + + col1 FROM tab0 cor0
----
87
91
97

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + - col2 * - 88 * cor0.col2 col0 FROM tab1 AS cor0
----
256582
285902
810995

query I rowsort
SELECT + 10 * - col2 + + 36 * - col0 FROM tab1 cor0
----
-2874
-3840
-648

query I rowsort
SELECT + 4 * col0 + 36 AS col1 FROM tab1 AS cor0
----
292
356
48

query I rowsort
SELECT DISTINCT col0 * col2 + - 78 + 93 FROM tab2 AS cor0
----
204
2043
3017

query I rowsort
SELECT ALL 46 - col1 AS col2 FROM tab0 AS cor0
----
-40
-45
-51

query I rowsort
SELECT col1 * - 14 FROM tab1
----
-140
-182
-364

query I rowsort
SELECT + 11 * col2 FROM tab2
----
286
297
418

query I rowsort
SELECT - 21 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * col1 + ( - col0 ) * col0 col0 FROM tab0 AS cor0
----
-1322
-15383
-3414

query I rowsort
SELECT DISTINCT + - col0 * + col2 + + col2 * - col2 AS col2 FROM tab2 AS cor0
----
-2704
-4446
-918

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

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

query I rowsort
SELECT ALL - 17 - col1 * cor0.col1 AS col2 FROM tab1 cor0
----
-117
-186
-693

query I rowsort
SELECT + 57 * col2 + + col2 FROM tab0 AS cor0
----
1914
4756
58

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1122
SELECT DISTINCT tab0.col1 * col1 / + CAST ( NULL AS INTEGER ) + 78 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - 18 AS col1 FROM tab1
----
-18

query I rowsort
SELECT ALL + - col1 + col0 * 64 FROM tab0 AS cor0
----
1450
2143
5605

query I rowsort
SELECT 33 * + cor0.col2 FROM tab2 cor0
----
1254
858
891

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

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

query I rowsort
SELECT ALL col1 * + 63 AS col1 FROM tab1
----
1638
630
819

query I rowsort
SELECT + ( 75 ) AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query I rowsort
SELECT col0 * + 58 AS col2 FROM tab0 AS cor0
----
1392
2030
5162

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

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

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

query I rowsort
SELECT ALL col0 * col0 + - 66 FROM tab1 AS cor0
----
-57
4030
6334

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1134
SELECT ALL col0 * - CAST( - col2 AS SIGNED ) + - col2 FROM tab2 AS cor0
----
162
2002
2964

skipif mysql # not compatible
query I rowsort label-1134
SELECT ALL col0 * - CAST ( - col2 AS INTEGER ) + - col2 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT DISTINCT + - cor0.col0 * 68 FROM tab2 AS cor0
----
-476
-5304
-5372

query I rowsort
SELECT ALL - col1 * 87 + - col2 FROM tab2 AS cor0
----
-1517
-2724
-5159

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

query I rowsort
SELECT DISTINCT + 83 + + col0 AS col0 FROM tab0 AS cor0
----
107
118
172

query I rowsort
SELECT - col2 * + 37 + cor0.col1 FROM tab2 cor0
----
-1389
-903
-968

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

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

query I rowsort
SELECT DISTINCT + col2 * + col0 + col0 + + col0 * col0 FROM tab2 AS cor0
----
245
8190
9322

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

query I rowsort
SELECT ALL - + 83 - cor0.col2 FROM tab2 cor0
----
-109
-110
-121

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1146
SELECT ALL + 61 DIV col1 + - col2 FROM tab1 AS cor0
----
-51
-52
-92

skipif mysql # not compatible
query I rowsort label-1146
SELECT ALL + 61 / col1 + - col2 FROM tab1 AS cor0
----
-51
-52
-92

query I rowsort
SELECT DISTINCT + cor0.col1 + tab0.col0 AS col1 FROM tab0, tab2, tab1 AS cor0
----
9 values hashing to 5b7e2a7b66ad60562d4872f7ae5eab2b

query I rowsort
SELECT ALL + ( - col1 ) * + col2 + - cor0.col1 * 8 FROM tab1 AS cor0
----
-1352
-1612
-650

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

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

skipif mysql # not compatible
query I rowsort label-1150
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col1 - - 8 * - col0 FROM tab2 AS cor0
----
-25
-565
-615

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

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

query I rowsort
SELECT DISTINCT + 33 * col2 FROM tab0
----
1089
2706
33

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

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

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

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

query I rowsort
SELECT + 81 + + col0 * - col0 AS col2 FROM tab1 AS cor0
----
-4015
-6319
72

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

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

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

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

query I rowsort
SELECT - col1 + 99 FROM tab2 AS cor0
----
40
68
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1164
SELECT - col2 * + CAST( - col2 AS SIGNED ) + + col2 * + 96 FROM tab1 AS cor0
----
18432
8100
8721

skipif mysql # not compatible
query I rowsort label-1164
SELECT - col2 * + CAST ( - col2 AS INTEGER ) + + col2 * + 96 FROM tab1 AS cor0
----
18432
8100
8721

query I rowsort
SELECT cor0.col0 + + 38 FROM tab0 AS cor0
----
127
62
73

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

query I rowsort
SELECT + - col0 + - 88 FROM tab0 AS cor0
----
-112
-123
-177

query I rowsort
SELECT ALL - col1 + + col1 * - col1 FROM tab1 AS cor0
----
-110
-182
-702

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

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

query I rowsort
SELECT ALL col2 + col2 + col2 * 18 AS col0 FROM tab0
----
1640
20
660

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1172
SELECT ALL ( + col0 ) + CAST( col0 AS SIGNED ) * col1 AS col2 FROM tab2
----
1422
224
4680

skipif mysql # not compatible
query I rowsort label-1172
SELECT ALL ( + col0 ) + CAST ( col0 AS INTEGER ) * col1 AS col2 FROM tab2
----
1422
224
4680

query I rowsort
SELECT DISTINCT + 91 + tab1.col0 FROM tab1
----
155
171
94

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

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

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

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

query I rowsort
SELECT DISTINCT - col0 + ( 78 ) * + col0 * + ( + col1 ) FROM tab0 AS cor0
----
160968
264775
631633

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

query I rowsort
SELECT + + 59 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT ALL + col2 * 6 AS col2 FROM tab1
----
324
342
576

onlyif mysql # use DIV operator for integer division
query I rowsort label-1182
SELECT DISTINCT col0 DIV col0 + col2 FROM tab1
----
55
58
97

skipif mysql # not compatible
query I rowsort label-1182
SELECT DISTINCT col0 / col0 + col2 FROM tab1
----
55
58
97

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1186
SELECT - - col0 / + CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

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

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

query I rowsort
SELECT DISTINCT - col0 * - col1 + col1 * cor0.col0 FROM tab2 AS cor0
----
2686
434
9204

query I rowsort
SELECT DISTINCT - col0 + + 80 * - col1 AS col0 FROM tab1 AS cor0
----
-1120
-2083
-864

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

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

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

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

query I rowsort
SELECT ALL + - col0 * - col2 + col2 * cor0.col2 * col1 AS col1 FROM tab2 AS cor0
----
22788
27550
41912

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

query I rowsort
SELECT + col2 + - ( + col0 + col0 ) * 87 FROM tab1 AS cor0
----
-11079
-13824
-468

query I rowsort
SELECT col0 + + 45 FROM tab1 AS cor0
----
109
125
48

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col2 * col2 col1 FROM tab1 AS cor0
----
2862
3192
9120

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1202
SELECT - col1 DIV col1 + - 23 FROM tab2 AS cor0
----
-24
-24
-24

skipif mysql # not compatible
query I rowsort label-1202
SELECT - col1 / col1 + - 23 FROM tab2 AS cor0
----
-24
-24
-24

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

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

query I rowsort
SELECT - 69 + cor0.col2 + + col0 * - ( + col0 ) AS col2 FROM tab1 cor0
----
-24
-4108
-6373

query I rowsort
SELECT - 65 AS col2 FROM tab1
----
-65
-65
-65

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

query I rowsort
SELECT + col0 + cor0.col0 * - 12 + col1 AS col0 FROM tab0 AS cor0
----
-178
-288
-888

query I rowsort
SELECT DISTINCT + + 78 + + col0 FROM tab0 AS cor0
----
102
113
167

query I rowsort
SELECT + 86 * - col0 FROM tab0 AS cor0
----
-2064
-3010
-7654

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 68 * - col0 + - cor0.col1 + 73 col2 FROM tab1 AS cor0
----
-157
-4289
-5380

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

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

query I rowsort
SELECT ALL 56 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200

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

skipif mysql # not compatible
query I rowsort label-1215
SELECT - col1 / col0 + + col0 + col2 FROM tab1 AS cor0
----
121
176
49

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

query I rowsort
SELECT 63 * col0 AS col1 FROM tab0
----
1512
2205
5607

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1221
SELECT DISTINCT - 32 DIV + cor0.col2 FROM tab2, tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1221
SELECT DISTINCT - 32 / + cor0.col2 FROM tab2, tab1 AS cor0
----
0

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

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

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

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

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

query I rowsort
SELECT col1 * 42 AS col2 FROM tab1 AS cor0
----
1092
420
546

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

skipif mysql # not compatible
query I rowsort label-1226
SELECT DISTINCT - cor0.col2 * CAST ( 80 AS INTEGER ) AS col2 FROM tab0 cor0
----
-2640
-6560
-80

query I rowsort
SELECT DISTINCT col0 + col0 * 99 FROM tab0
----
2400
3500
8900

query I rowsort
SELECT ALL + 60 * + col0 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
34560
475260
73500

query I rowsort
SELECT DISTINCT tab1.col1 * + 63 AS col0 FROM tab1
----
1638
630
819

query I rowsort
SELECT DISTINCT - - col1 * 93 * - col0 AS col1 FROM tab2 AS cor0
----
-124899
-20181
-427986

query I rowsort
SELECT - 37 * - col0 FROM tab0 AS cor0
----
1295
3293
888

query I rowsort
SELECT DISTINCT 22 * - col1 FROM tab0 AS cor0
----
-1892
-2002
-2134

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

query I rowsort
SELECT ALL + 65 * col2 + - col0 FROM tab1 AS cor0
----
3507
3641
6160

query I rowsort
SELECT - 59 AS col2 FROM tab0 AS cor0
----
-59
-59
-59

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1238
SELECT ALL tab0.col0 * - col0 * + tab0.col2 + + 14 * col2 DIV - tab0.col0 - col2 * col0 FROM tab0
----
-1260
-19819
-656832

skipif mysql # not compatible
query I rowsort label-1238
SELECT ALL tab0.col0 * - col0 * + tab0.col2 + + 14 * col2 / - tab0.col0 - col2 * col0 FROM tab0
----
-1260
-19819
-656832

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

skipif mysql # not compatible
query I rowsort label-1239
SELECT + CAST ( + col1 + + col1 AS INTEGER ) FROM tab0
----
172
182
194

query I rowsort
SELECT DISTINCT - col0 * + 13 FROM tab1
----
-1040
-39
-832

query I rowsort
SELECT + - col0 * 41 * - col2 + - col2 * col1 AS col2 FROM tab0 AS cor0
----
1338
291756
29634

query I rowsort
SELECT DISTINCT - col0 + - 50 AS col1 FROM tab1
----
-114
-130
-53

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

query I rowsort
SELECT DISTINCT cor0.col1 * - 95 AS col1 FROM tab1, tab2 AS cor0
----
-1615
-2945
-5605

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

query I rowsort
SELECT + - cor0.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT - ( cor0.col0 ) AS col1 FROM tab2, tab0 cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

query I rowsort
SELECT ALL - col1 + ( + col0 ) - + col1 AS col0 FROM tab1
----
-49
44
54

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1252
SELECT - col2 + col2 / col0 col1 FROM tab0 AS cor0
----
-1
-32
-82

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

query I rowsort
SELECT - 73 AS col2 FROM tab2, tab1 cor0, tab1 cor1
----
27 values hashing to 2931474b870c05694e446771031a6949

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

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

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

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

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

query I rowsort
SELECT DISTINCT col0 + + 37 FROM tab0
----
126
61
72

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

query I rowsort
SELECT + col2 * 6 FROM tab2
----
156
162
228

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - + 44 * col0 * col0 col0 FROM tab0
----
-25377
-348606
-53901

query I rowsort
SELECT DISTINCT 58 + col1 AS col1 FROM tab0
----
144
149
155

query I rowsort
SELECT + col1 + + tab0.col2 + + tab0.col1 AS col0 FROM tab0
----
195
205
264

query I rowsort
SELECT DISTINCT + col0 + col1 * + col2 + + cor0.col0 FROM tab1 AS cor0
----
1408
1410
698

query I rowsort
SELECT ALL + col2 + col0 * 9 AS col2 FROM tab0 AS cor0
----
249
316
883

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + cor0.col0 * - 4 col1 FROM tab2 AS cor0
----
-12008
-756
-8112

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

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

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

query I rowsort
SELECT DISTINCT - 27 + - col1 AS col0 FROM tab1 AS cor0
----
-37
-40
-53

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

query I rowsort
SELECT 40 + - col0 * + cor0.col2 FROM tab2 cor0
----
-149
-1988
-2962

onlyif mysql # use DIV operator for integer division
query I rowsort label-1276
SELECT ALL + col1 DIV - col1 - ( - 4 + + col2 ) FROM tab2 AS cor0
----
-23
-24
-35

skipif mysql # not compatible
query I rowsort label-1276
SELECT ALL + col1 / - col1 - ( - 4 + + col2 ) FROM tab2 AS cor0
----
-23
-24
-35

query I rowsort
SELECT DISTINCT 63 FROM tab1 cor0
----
63

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

query I rowsort
SELECT - 83 * + col0 FROM tab1 AS cor0
----
-249
-5312
-6640

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1281
SELECT DISTINCT + ( + col1 ) * - CAST( col2 * - col2 AS SIGNED ) FROM tab2 AS cor0
----
22599
24548
39884

skipif mysql # not compatible
query I rowsort label-1281
SELECT DISTINCT + ( + col1 ) * - CAST ( col2 * - col2 AS INTEGER ) FROM tab2 AS cor0
----
22599
24548
39884

query I rowsort
SELECT ALL + col2 * col2 * 79 AS col1 FROM tab1 AS cor0
----
230364
256671
728064

onlyif mysql # use DIV operator for integer division
query I rowsort label-1283
SELECT DISTINCT + 11 * + col1 + 97 DIV col1 + - cor0.col2 FROM tab1 cor0
----
235
54
62

skipif mysql # not compatible
query I rowsort label-1283
SELECT DISTINCT + 11 * + col1 + 97 / col1 + - cor0.col2 FROM tab1 cor0
----
235
54
62

query I rowsort
SELECT ALL + 20 + col1 AS col2 FROM tab1 AS cor0
----
30
33
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col2 * col2 col0 FROM tab1
----
-119808
-32490
-75816

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

query I rowsort
SELECT DISTINCT - + 54 + cor0.col0 FROM tab1 AS cor0
----
-51
10
26

query I rowsort
SELECT + col2 + - cor0.col1 * - ( + 52 ) AS col1 FROM tab2 cor0
----
1639
3094
922

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

query I rowsort
SELECT DISTINCT col0 * col0 - ( + col1 + col0 ) * 54 AS col1 FROM tab1 cor0
----
-1557
100
1378

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

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

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

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

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

query I rowsort
SELECT 39 * col2 * tab0.col0 + - col1 AS col1 FROM tab0
----
1268
284531
30802

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

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

query I rowsort
SELECT col1 + - 97 AS col0 FROM tab0 cor0
----
-11
-6
0

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

query I rowsort
SELECT DISTINCT - 48 * 23 FROM tab0 AS cor0
----
-1104

query I rowsort
SELECT ALL 54 * + col2 + col0 FROM tab1 cor0
----
2919
3142
5264

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

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

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

query I rowsort
SELECT + + 42 * + 93 FROM tab0 AS cor0
----
3906
3906
3906

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

query I rowsort
SELECT DISTINCT + + 74 + 96 * + col2 FROM tab0 AS cor0
----
170
3242
7946

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

skipif mysql # not compatible
query I rowsort label-1307
SELECT ALL + - CAST ( + col0 AS INTEGER ) * col0 AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT + col2 - - 48 * col2 FROM tab1 cor0
----
2646
2793
4704

query I rowsort
SELECT - cor0.col2 * - 10 + + col0 AS col2 FROM tab0 AS cor0
----
354
45
909

onlyif mysql # use DIV operator for integer division
query I rowsort label-1310
SELECT + - 17 DIV - cor0.col1 AS col1 FROM tab2 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1310
SELECT + - 17 / - cor0.col1 AS col1 FROM tab2 cor0
----
0
0
1

query I rowsort
SELECT col2 + - col1 + 64 AS col2 FROM tab0
----
-32
11
55

query I rowsort
SELECT col2 + - 12 * + col0 FROM tab0
----
-255
-419
-986

query I rowsort
SELECT + cor0.col2 * 83 - col0 FROM tab0 AS cor0
----
2715
48
6717

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

query I rowsort
SELECT - col0 + - 67 AS col1 FROM tab0 AS cor0
----
-102
-156
-91

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

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

query I rowsort
SELECT + + ( col0 ) + cor0.col2 * + ( + cor0.col2 * + col2 ) FROM tab2 AS cor0
----
17654
19690
54951

query I rowsort
SELECT DISTINCT + ( - col2 ) * + col0 + + cor0.col2 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
-34
-574
297

query I rowsort
SELECT - - ( + 85 ) - + col0 FROM tab0 AS cor0
----
-4
50
61

query I rowsort
SELECT - 1 * col0 FROM tab0
----
-24
-35
-89

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

query I rowsort
SELECT 10 FROM tab2, tab2 AS cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1325
SELECT DISTINCT - 40 DIV + cor1.col0 FROM tab2, tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-13
0

skipif mysql # not compatible
query I rowsort label-1325
SELECT DISTINCT - 40 / + cor1.col0 FROM tab2, tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-13
0

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

query I rowsort
SELECT ALL - + 92 + + col2 * + col2 AS col1 FROM tab1 AS cor0
----
2824
3157
9124

query I rowsort
SELECT - 19 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

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

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

skipif mysql # not compatible
query I rowsort label-1330
SELECT + CAST ( + col1 AS INTEGER ) + - col2 FROM tab0 AS cor0
----
53
9
96

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

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

query I rowsort
SELECT ALL + ( col0 ) * + col0 - 74 * - col1 FROM tab2 AS cor0
----
10450
2343
7499

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col0 * - 44 + - 60 col0 FROM tab0, tab1, tab1 cor0
----
27 values hashing to 30394d45f0ad296754235eb291354c9d

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

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

skipif mysql # not compatible
query I rowsort label-1336
SELECT - col2 / - 65 AS col2 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT - + 15 + cor0.col1 * cor0.col0 * ( + cor0.col2 * cor0.col1 + ( col0 ) ) FROM tab2 cor0
----
183133
7418409
973660

onlyif mysql # use DIV operator for integer division
query I rowsort label-1338
SELECT + col1 DIV + col2 - col2 * + cor0.col2 FROM tab0 AS cor0
----
-1087
-6723
96

skipif mysql # not compatible
query I rowsort label-1338
SELECT + col1 / + col2 - col2 * + cor0.col2 FROM tab0 AS cor0
----
-1087
-6723
96

query I rowsort
SELECT - 11 * cor0.col2 FROM tab1 AS cor0
----
-1056
-594
-627

query I rowsort
SELECT ALL + col2 * col1 + - ( col0 ) * - col1 - 53 AS col0 FROM tab2 AS cor0
----
1001
1936
6083

query I rowsort
SELECT + cor0.col1 * + 42 + + col1 * col1 * + col2 AS col1 FROM tab2 AS cor0
----
11696
27249
92984

onlyif mysql # use DIV operator for integer division
query I rowsort label-1342
SELECT + - col1 DIV - col0 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
26
31
38

skipif mysql # not compatible
query I rowsort label-1342
SELECT + - col1 / - col0 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
26
31
38

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

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

query I rowsort
SELECT - 22 FROM tab0, tab1 cor0, tab1 cor1
----
27 values hashing to 647e567609c5ada1d3454d2102819bfe

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

query I rowsort
SELECT - cor0.col1 * col1 + 21 * + col2 FROM tab1 AS cor0
----
1097
1847
458

onlyif mysql # use DIV operator for integer division
query I rowsort label-1348
SELECT DISTINCT + col0 DIV + 66 + col1 * + col0 FROM tab2
----
1344
217
4603

skipif mysql # not compatible
query I rowsort label-1348
SELECT DISTINCT + col0 / + 66 + col1 * + col0 FROM tab2
----
1344
217
4603

query I rowsort
SELECT col0 + 36 FROM tab2 AS cor0
----
114
115
43

onlyif mysql # use DIV operator for integer division
query I rowsort label-1350
SELECT - col0 DIV col1 - - 75 AS col1 FROM tab0 AS cor0
----
75
75
75

skipif mysql # not compatible
query I rowsort label-1350
SELECT - col0 / col1 - - 75 AS col1 FROM tab0 AS cor0
----
75
75
75

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

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

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

query I rowsort
SELECT + col1 * col1 + + ( - col0 * + ( col2 ) ) FROM tab2 AS cor0
----
-2713
1453
772

query I rowsort
SELECT + col0 * 85 - + 76 AS col1 FROM tab1 AS cor0
----
179
5364
6724

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1358
SELECT 77 DIV col2 + - col0 FROM tab1 cor0
----
-2
-63
-80

skipif mysql # not compatible
query I rowsort label-1358
SELECT 77 / col2 + - col0 FROM tab1 cor0
----
-2
-63
-80

query I rowsort
SELECT DISTINCT + - col2 * + col0 + col2 * + col2 FROM tab2 cor0
----
-1352
-1558
540

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1362
SELECT DISTINCT - + col0 DIV col1 + - cor0.col0 AS col2 FROM tab1 AS cor0
----
-3
-70
-86

skipif mysql # not compatible
query I rowsort label-1362
SELECT DISTINCT - + col0 / col1 + - cor0.col0 AS col2 FROM tab1 AS cor0
----
-3
-70
-86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1363
SELECT DISTINCT - ( - col0 ) * - col0 - + CAST( - col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-4039
-6304
45

skipif mysql # not compatible
query I rowsort label-1363
SELECT DISTINCT - ( - col0 ) * - col0 - + CAST ( - col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-4039
-6304
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-1364
SELECT ALL col0 DIV + col1 + + cor0.col0 * 16 AS col2 FROM tab1 AS cor0
----
1030
1286
48

skipif mysql # not compatible
query I rowsort label-1364
SELECT ALL col0 / + col1 + + cor0.col0 * 16 AS col2 FROM tab1 AS cor0
----
1030
1286
48

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

query IIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT DISTINCT + - 78 * + col2 AS col2 FROM tab1 AS cor0
----
-4212
-4446
-7488

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

query I rowsort
SELECT ALL + ( - 47 ) * col0 - col0 * col2 FROM tab2 AS cor0
----
-518
-5694
-6715

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

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

query I rowsort
SELECT DISTINCT - + col1 * + ( col0 * col1 ) + + 71 * col1 AS col2 FROM tab0 AS cor0
----
-171398
-322428
-730548

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

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

query I rowsort
SELECT + ( 2 + col1 * - 40 ) FROM tab2
----
-1238
-2358
-678

query I rowsort
SELECT DISTINCT - col1 + + col2 * + ( 31 * - col0 ) FROM tab1 AS cor0
----
-113098
-238093
-5048

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1378
SELECT - col2 DIV 18 AS col2 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-1378
SELECT - col2 / 18 AS col2 FROM tab2 AS cor0
----
-1
-1
-2

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

query I rowsort
SELECT ALL - col0 * + 68 AS col0 FROM tab2 AS cor0
----
-476
-5304
-5372

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL - col1 + col1 * + col2 AS col0 FROM tab2 AS cor0
----
1475
629
806

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 20 * + 83 col0 FROM tab1 AS cor0
----
1660

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

query I rowsort
SELECT col1 * - col1 + col0 + + 60 FROM tab0 AS cor0
----
-7312
-8132
-9314

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

query I rowsort
SELECT DISTINCT 13 * 88 AS col0 FROM tab1
----
1144

onlyif mysql # use DIV operator for integer division
query I rowsort label-1393
SELECT ALL + ( col2 ) * col1 DIV + cor0.col0 FROM tab1 AS cor0
----
15
468
8

skipif mysql # not compatible
query I rowsort label-1393
SELECT ALL + ( col2 ) * col1 / + cor0.col0 FROM tab1 AS cor0
----
15
468
8

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

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

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

query I rowsort
SELECT + - 99 + + 36 * col1 FROM tab1 cor0
----
261
369
837

query I rowsort
SELECT ALL - + 83 + - col1 AS col2 FROM tab0 AS cor0
----
-169
-174
-180

query I rowsort
SELECT DISTINCT + 98 * - col0 - col1 AS col1 FROM tab2 AS cor0
----
-717
-7703
-7759

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

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

query I rowsort
SELECT DISTINCT + 51 * 88 AS col1 FROM tab1 AS cor0
----
4488

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

query I rowsort
SELECT DISTINCT - cor0.col0 + - col1 * col1 - col2 FROM tab2 AS cor0
----
-3585
-406
-995

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 44 * + col0 col0 FROM tab2 AS cor0
----
-308
-3432
-3476

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

query I rowsort
SELECT ALL - 95 - + col1 FROM tab0 AS cor0
----
-181
-186
-192

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

query I rowsort
SELECT - col2 * 11 * col2 + col1 AS col0 FROM tab1 AS cor0
----
-101363
-32050
-35729

query I rowsort
SELECT - col0 + 9 * 34 AS col1 FROM tab1 cor0
----
226
242
303

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

skipif mysql # not compatible
query I rowsort label-1409
SELECT DISTINCT + col2 / - ( + col2 ) FROM tab1 AS cor0
----
-1

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

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

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

query I rowsort
SELECT col0 * col1 + - 14 * - col2 AS col0 FROM tab0
----
2526
3409
9247

query I rowsort
SELECT + + col1 * - cor0.col1 - - 2 AS col1 FROM tab1 cor0
----
-167
-674
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-1414
SELECT ALL - 47 - col1 DIV - 16 FROM tab1
----
-46
-47
-47

skipif mysql # not compatible
query I rowsort label-1414
SELECT ALL - 47 - col1 / - 16 FROM tab1
----
-46
-47
-47

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 52 col1 FROM tab2
----
1352
1404
1976

query I rowsort
SELECT DISTINCT col2 * 34 AS col2 FROM tab0 AS cor0
----
1122
2788
34

query I rowsort
SELECT - - col0 + 95 + + col0 AS col2 FROM tab2 AS cor0
----
109
251
253

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

query I rowsort
SELECT DISTINCT - col1 + 81 AS col1 FROM tab0
----
-10
-16
-5

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 78 col1 FROM tab0
----
111
160
79

query I rowsort
SELECT DISTINCT + tab0.col2 + + 3 FROM tab0
----
36
4
85

query I rowsort
SELECT DISTINCT col1 * col0 * col1 + + col1 AS col1 FROM tab2
----
22848
271577
6758

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1426
SELECT - + cor0.col0 + + 13 + + col0 DIV + cor0.col2 FROM tab1 AS cor0
----
-50
-67
10

skipif mysql # not compatible
query I rowsort label-1426
SELECT - + cor0.col0 + + 13 + + col0 / + cor0.col2 FROM tab1 AS cor0
----
-50
-67
10

query I rowsort
SELECT - + 90 + col2 AS col1 FROM tab0 cor0
----
-57
-8
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-1428
SELECT ALL col1 DIV ( 48 * col0 ) AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1428
SELECT ALL col1 / ( 48 * col0 ) AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL - col2 + + col1 + col1 AS col2 FROM tab2
----
-4
35
92

query I rowsort
SELECT + 45 FROM tab2, tab0 AS cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT + tab0.col0 * 70 FROM tab0
----
1680
2450
6230

query I rowsort
SELECT DISTINCT + 24 * - col0 FROM tab2
----
-168
-1872
-1896

query I rowsort
SELECT ALL - col2 * 99 FROM tab0
----
-3267
-8118
-99

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

query I rowsort
SELECT ALL - 20 * 25 AS col2 FROM tab1 AS cor0
----
-500
-500
-500

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

query I rowsort
SELECT ALL - col0 * - col2 FROM tab0
----
35
7298
792

query I rowsort
SELECT - tab1.col0 AS col0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 729c1edda9332398299f39cd174ed840

onlyif mysql # use DIV operator for integer division
query I rowsort label-1439
SELECT DISTINCT cor1.col1 DIV 51 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-1439
SELECT DISTINCT cor1.col1 / 51 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
1

query I rowsort
SELECT + col2 * col2 + + col0 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT ALL 90 * + col0 - 0 FROM tab2 AS cor0
----
630
7020
7110

query I rowsort
SELECT ALL + 34 * + col0 * ( - col2 ) FROM tab1 AS cor0
----
-124032
-261120
-5508

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - 17 col1 FROM tab2 AS cor0
----
-10
61
62

query I rowsort
SELECT + - col2 * col1 - - col0 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT ALL + col1 * col2 + 2 * col2 AS col0 FROM tab0 AS cor0
----
2904
7626
99

query I rowsort
SELECT DISTINCT - col2 - col1 AS col2 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT DISTINCT - col1 * - 7 AS col0 FROM tab0 AS cor0
----
602
637
679

query I rowsort
SELECT DISTINCT + - col2 * - cor0.col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT col2 + - ( - col0 ) * col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT DISTINCT col2 + 33 AS col2 FROM tab0 AS cor0
----
115
34
66

query I rowsort
SELECT - col1 + - 34 AS col2 FROM tab2 AS cor0
----
-51
-65
-93

query I rowsort
SELECT + col2 * cor0.col0 + col1 + cor0.col1 * + cor0.col2 FROM tab0 AS cor0
----
14851
229
3716

query I rowsort
SELECT - + col0 * col0 * + col2 FROM tab1 AS cor0
----
-233472
-486
-614400

query I rowsort
SELECT col1 - ( + col0 ) AS col1 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT 25 * + cor0.col0 + col1 AS col1 FROM tab1 cor0
----
101
1610
2013

query I rowsort
SELECT + 32 + col0 AS col2 FROM tab2 cor0
----
110
111
39

onlyif mysql # use DIV operator for integer division
query I rowsort label-1457
SELECT ALL - col0 DIV col0 + col1 FROM tab2
----
16
30
58

skipif mysql # not compatible
query I rowsort label-1457
SELECT ALL - col0 / col0 + col1 FROM tab2
----
16
30
58

query I rowsort
SELECT - - 96 + col2 AS col2 FROM tab1 AS cor0
----
150
153
192

query I rowsort
SELECT - 2 * cor0.col1 + col2 FROM tab2 AS cor0
----
-35
-92
4

query I rowsort
SELECT DISTINCT col2 + col0 AS col2 FROM tab1 AS cor0
----
121
176
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1461
SELECT col2 + cor0.col2 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1461
SELECT col2 + cor0.col2 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT + col0 + 81 + - col1 * col1 FROM tab2 AS cor0
----
-129
-3322
-873

onlyif mysql # use DIV operator for integer division
query I rowsort label-1464
SELECT cor0.col0 DIV - cor0.col0 AS col0 FROM tab0, tab2 cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

skipif mysql # not compatible
query I rowsort label-1464
SELECT cor0.col0 / - cor0.col0 AS col0 FROM tab0, tab2 cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query I rowsort
SELECT DISTINCT + + col2 + col2 FROM tab2 cor0
----
52
54
76

query I rowsort
SELECT DISTINCT + 35 AS col2 FROM tab1
----
35

query I rowsort
SELECT DISTINCT col0 * tab0.col2 AS col1 FROM tab0
----
35
7298
792

query I rowsort
SELECT ALL + + col2 + col2 AS col1 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT ALL col2 * + col1 - 55 AS col1 FROM tab0 AS cor0
----
2783
42
7407

query I rowsort
SELECT DISTINCT + - col0 * - col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT - + col0 + cor0.col2 * 1 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT ALL tab0.col2 + + 90 FROM tab0, tab0 AS cor0
----
9 values hashing to 8f6875b1fd56ec02cb31f8a7ae404604

query I rowsort
SELECT + 15 AS col1 FROM tab0 AS cor0
----
15
15
15

query I rowsort
SELECT ALL + cor0.col0 * cor0.col0 + + col1 AS col1 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT DISTINCT - 50 + col1 * + col0 FROM tab0 AS cor0
----
2014
3345
8049

query I rowsort
SELECT ALL ( cor0.col2 ) + col0 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT ALL + col2 + col2 AS col1 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT - col0 * + ( col1 ) FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-1479
SELECT 31 DIV + 93 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1479
SELECT 31 / + 93 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT 83 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 002a717a3d902d97220759065fb107c3

query I rowsort
SELECT ALL tab2.col1 * col2 * tab2.col1 AS col1 FROM tab2
----
10982
25947
90506

query I rowsort
SELECT tab0.col2 + ( + 53 ) AS col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 26db18549b5d213c6ba49fcaad5edacb

query I rowsort
SELECT ALL + tab1.col2 * col2 AS col0 FROM tab1
----
2916
3249
9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-1484
SELECT + ( 46 ) DIV col2 col1 FROM tab0 AS cor0
----
0
1
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1484
SELECT + ( 46 ) / col2 col1 FROM tab0 AS cor0
----
0
1
46

query I rowsort
SELECT col0 * 14 * col1 - ( col1 ) FROM tab0
----
113295
28810
47433

query I rowsort
SELECT ( + tab0.col1 ) AS col0 FROM tab0
----
86
91
97

query I rowsort
SELECT 3 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

onlyif mysql # use DIV operator for integer division
query I rowsort label-1488
SELECT ( 58 ) - col0 DIV - col2 AS col2 FROM tab0
----
58
59
93

skipif mysql # not compatible
query I rowsort label-1488
SELECT ( 58 ) - col0 / - col2 AS col2 FROM tab0
----
58
59
93

query I rowsort
SELECT ALL 52 FROM tab0 AS cor0
----
52
52
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-1490
SELECT ALL col0 * - col2 + + cor0.col2 * col1 DIV + col0 col1 FROM tab0 AS cor0
----
-33
-674
-7215

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1490
SELECT ALL col0 * - col2 + + cor0.col2 * col1 / + col0 col1 FROM tab0 AS cor0
----
-33
-674
-7215

query I rowsort
SELECT ALL + col0 * col0 + + ( + col2 ) FROM tab2 cor0
----
6110
6279
76

query I rowsort
SELECT ALL + cor0.col0 AS col1 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT 14 + - col0 FROM tab2 AS cor0
----
-64
-65
7

query I rowsort
SELECT ALL 14 AS col2 FROM tab0
----
14
14
14

query I rowsort
SELECT DISTINCT + col2 * col0 + col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT + col2 + + ( col2 ) * - 29 FROM tab1
----
-1512
-1596
-2688

query I rowsort
SELECT DISTINCT ( col2 ) * + col2 AS col1 FROM tab0
----
1
1089
6724

query I rowsort
SELECT + 65 - col2 AS col1 FROM tab2
----
27
38
39

onlyif mysql # use DIV operator for integer division
query I rowsort label-1499
SELECT ALL ( col1 ) * col1 DIV ( + col0 * - col0 ) FROM tab0
----
-1
-12
-7

skipif mysql # not compatible
query I rowsort label-1499
SELECT ALL ( col1 ) * col1 / ( + col0 * - col0 ) FROM tab0
----
-1
-12
-7

onlyif mysql # use DIV operator for integer division
query I rowsort label-1500
SELECT col0 DIV + col2 - + col2 AS col0 FROM tab0
----
-33
-81
34

skipif mysql # not compatible
query I rowsort label-1500
SELECT col0 / + col2 - + col2 AS col0 FROM tab0
----
-33
-81
34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1501
SELECT CAST( NULL AS SIGNED ) + - tab2.col0 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1501
SELECT CAST ( NULL AS INTEGER ) + - tab2.col0 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1502
SELECT DISTINCT ( + tab2.col2 ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1502
SELECT DISTINCT ( + tab2.col2 ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT ALL + ( - col0 ) + 36 AS col0 FROM tab2
----
-42
-43
29

query I rowsort
SELECT cor0.col0 * col1 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT 10 FROM tab0 AS cor0
----
10

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1506
SELECT - 44 * cor0.col0 - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1506
SELECT - 44 * cor0.col0 - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT tab1.col0 * 68 FROM tab1, tab2 AS cor0
----
9 values hashing to 11e7210f9a25842b6563b24e624b5361

onlyif mysql # use DIV operator for integer division
query I rowsort label-1508
SELECT col2 DIV tab1.col2 col2 FROM tab1
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1508
SELECT col2 / tab1.col2 col2 FROM tab1
----
1
1
1

query I rowsort
SELECT DISTINCT - - col2 * - col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT col2 + col2 * col2 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT - col2 + col1 * - col0 FROM tab0 AS cor0
----
-2097
-3396
-8181

query I rowsort
SELECT DISTINCT - 48 FROM tab1 AS cor0
----
-48

query I rowsort
SELECT DISTINCT 90 + - col0 AS col0 FROM tab0 AS cor0
----
1
55
66

query I rowsort
SELECT - 75 * + col1 AS col1 FROM tab0 AS cor0
----
-6450
-6825
-7275

query IIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0, tab2 cor1
----
243 values hashing to 2248b8c3b6efacb4e8fc6d9f81b7df8b

query I rowsort
SELECT - + col0 * + ( + 81 ) FROM tab2 AS cor0
----
-567
-6318
-6399

onlyif mysql # use DIV operator for integer division
query I rowsort label-1517
SELECT DISTINCT - col0 DIV CAST( 94 AS SIGNED ) - cor0.col1 AS col0 FROM tab2 cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-1517
SELECT DISTINCT - col0 / CAST ( 94 AS INTEGER ) - cor0.col1 AS col0 FROM tab2 cor0
----
-17
-31
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col2 + col2 col1 FROM tab2
----
2054
216
3040

query I rowsort
SELECT - col0 * col2 + - col1 FROM tab1 AS cor0
----
-188
-3658
-7693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor1.col0 col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT DISTINCT col1 * cor0.col2 - cor0.col1 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT 78 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT 16 + col0 AS col0 FROM tab0 AS cor0
----
105
40
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-1524
SELECT DISTINCT + col0 DIV 42 + - col1 DIV 7 + + cor0.col2 AS col0 FROM tab2 AS cor0
----
19
23
37

skipif mysql # not compatible
query I rowsort label-1524
SELECT DISTINCT + col0 / 42 + - col1 / 7 + + cor0.col2 AS col0 FROM tab2 AS cor0
----
19
23
37

query I rowsort
SELECT - + cor0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1526
SELECT + CAST( NULL AS SIGNED ) + 53 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1526
SELECT + CAST ( NULL AS INTEGER ) + 53 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 - - col2 * col2 * col0 FROM tab2 AS cor0
----
113997
5096
52650

query I rowsort
SELECT ALL + 84 + - col2 FROM tab1 AS cor0
----
-12
27
30

onlyif mysql # use DIV operator for integer division
query I rowsort label-1529
SELECT ( - col0 ) * col0 + - 0 DIV + 11 AS col2 FROM tab1 cor0
----
-4096
-6400
-9

skipif mysql # not compatible
query I rowsort label-1529
SELECT ( - col0 ) * col0 + - 0 / + 11 AS col2 FROM tab1 cor0
----
-4096
-6400
-9

query I rowsort
SELECT ALL 4 * + col1 + cor0.col0 FROM tab2 AS cor0
----
131
147
314

onlyif mysql # use DIV operator for integer division
query I rowsort label-1531
SELECT col0 DIV col1 FROM tab1 AS cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-1531
SELECT col0 / col1 FROM tab1 AS cor0
----
0
6
6

query I rowsort
SELECT DISTINCT 56 FROM tab0, tab0 cor0
----
56

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 AS cor2, tab2 AS cor3
----
3645 values hashing to 677ef6b86493a7e48d2f6a3cfd7eea4c

query I rowsort
SELECT DISTINCT - - 75 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-1535
SELECT + col1 DIV - col1 + - 81 + col1 * - col1 FROM tab2
----
-1043
-3563
-371

skipif mysql # not compatible
query I rowsort label-1535
SELECT + col1 / - col1 + - 81 + col1 * - col1 FROM tab2
----
-1043
-3563
-371

query I rowsort
SELECT DISTINCT + 64 AS col1 FROM tab1, tab1 AS cor0
----
64

query I rowsort
SELECT col2 * + col1 + - col2 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT DISTINCT - - col1 + + col2 FROM tab1 AS cor0
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-1539
SELECT ALL + col0 * 58 DIV - col1 - col0 FROM tab1 AS cor0
----
-435
-436
-9

skipif mysql # not compatible
query I rowsort label-1539
SELECT ALL + col0 * 58 / - col1 - col0 FROM tab1 AS cor0
----
-435
-436
-9

query I rowsort
SELECT - - cor0.col2 * + col1 * 40 AS col0 FROM tab1 cor0
----
22800
49920
56160

query I rowsort
SELECT DISTINCT - + col0 * + col2 - 40 FROM tab0 AS cor0
----
-7338
-75
-832

query I rowsort
SELECT + col1 * 94 AS col1 FROM tab2 AS cor0
----
1598
2914
5546

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col0 + + ( - col2 ) col0 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT ALL - col0 * + col2 + + 6 FROM tab2 AS cor0
----
-183
-2022
-2996

query I rowsort
SELECT DISTINCT + - col0 * cor0.col2 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT - 96 + + col2 * + cor0.col0 FROM tab1 AS cor0
----
3552
66
7584

query I rowsort
SELECT DISTINCT + col0 * col0 + col1 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT DISTINCT - col1 - col2 * cor0.col2 AS col1 FROM tab2 AS cor0
----
-1461
-735
-760

query I rowsort
SELECT 70 AS col2 FROM tab0 cor0
----
70
70
70

query IIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( cor0.col1 )
----

query I rowsort
SELECT col1 + col1 AS col1 FROM tab2 cor0
----
118
34
62

query I rowsort
SELECT DISTINCT + + 26 AS col0 FROM tab1 AS cor0
----
26

query I rowsort
SELECT DISTINCT + 33 FROM tab2, tab0, tab1 AS cor0
----
33

query I rowsort
SELECT DISTINCT + col2 * col0 + + col0 + - ( - cor0.col1 ) * col0 AS col1 FROM tab2 cor0
----
413
4424
6708

query I rowsort
SELECT col2 * 94 + + col2 FROM tab2 AS cor0
----
2470
2565
3610

query I rowsort
SELECT DISTINCT tab0.col0 * 99 + + col2 * - col1 * tab0.col0 FROM tab0
----
-655307
-65736
70

query I rowsort
SELECT + tab0.col2 * col0 + tab0.col0 AS col0 FROM tab0
----
70
7387
816

onlyif mysql # use DIV operator for integer division
query I rowsort label-1558
SELECT col1 * + col0 * col1 + col1 DIV + col0 FROM tab0 AS cor0
----
177507
329317
737010

skipif mysql # not compatible
query I rowsort label-1558
SELECT col1 * + col0 * col1 + col1 / + col0 FROM tab0 AS cor0
----
177507
329317
737010

query I rowsort
SELECT DISTINCT + 88 + - cor0.col0 * ( col0 ) AS col0 FROM tab2 AS cor0
----
-5996
-6153
39

query I rowsort
SELECT ALL - col2 * col2 + 17 * - 55 * + col0 AS col0 FROM tab2
----
-7274
-73606
-75309

query I rowsort
SELECT DISTINCT + 54 FROM tab2 AS cor0
----
54

query I rowsort
SELECT + 99 * col1 FROM tab1 cor0
----
1287
2574
990

query I rowsort
SELECT ALL - - ( - col2 ) FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT DISTINCT - col0 - - col2 AS col0 FROM tab0
----
-34
-7
9

query I rowsort
SELECT - + 7 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

query I rowsort
SELECT DISTINCT + col2 + col0 AS col2 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT DISTINCT + - cor0.col2 * - col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT col1 + - ( - 79 ) * - col2 FROM tab1 cor0
----
-4240
-4493
-7571

query I rowsort
SELECT DISTINCT - col1 - - col2 AS col1 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT ALL - col2 * col2 - + col0 FROM tab1
----
-2919
-3313
-9296

query I rowsort
SELECT col1 * - col1 * col0 AS col0 FROM tab1 cor0
----
-13520
-2028
-6400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col0 col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT - col0 - col1 * col0 FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT + col0 + ( 3 * col2 ) FROM tab1 AS cor0
----
165
235
368

query I rowsort
SELECT DISTINCT - + col2 + + 86 * + col0 FROM tab0 AS cor0
----
2031
3009
7572

query I rowsort
SELECT ALL ( cor0.col0 ) FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

onlyif mysql # use DIV operator for integer division
query I rowsort label-1577
SELECT - col2 - - col2 DIV col0 FROM tab2
----
-24
-26
-38

skipif mysql # not compatible
query I rowsort label-1577
SELECT - col2 - - col2 / col0 FROM tab2
----
-24
-26
-38

query I rowsort
SELECT ALL + col2 - col2 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL 0 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab1, tab2 cor2
----
243 values hashing to fa3d5b69e444df969b60da5e4c5c3507

query I rowsort
SELECT DISTINCT + 13 AS col0 FROM tab0, tab0 AS cor0
----
13

query I rowsort
SELECT cor0.col1 * + 6 FROM tab0 AS cor0
----
516
546
582

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1582
SELECT - + col1 + + CAST( NULL AS SIGNED ) / + ( cor0.col0 + ( + col2 ) * - col1 ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1582
SELECT - + col1 + + CAST ( NULL AS INTEGER ) / + ( cor0.col0 + ( + col2 ) * - col1 ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * - col0 AS col0 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT tab0.col1 * + col0 * + tab0.col0 + col0 AS col2 FROM tab0
----
118860
49560
720900

query I rowsort
SELECT - 67 * col2 + + col1 AS col2 FROM tab2
----
-1683
-1778
-2529

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * 83 + ( - tab1.col0 ) + - ( - col0 ) col2 FROM tab1
----
-4482
-4731
-7968

query I rowsort
SELECT - col2 + + ( - 99 ) FROM tab0
----
-100
-132
-181

query I rowsort
SELECT DISTINCT - col2 * - ( - 16 ) FROM tab1
----
-1536
-864
-912

query I rowsort
SELECT ALL + col1 * tab1.col0 + + col1 FROM tab1
----
104
1053
650

query I rowsort
SELECT - tab0.col1 + 65 FROM tab0, tab1 cor0
----
9 values hashing to b834f1381e72641ea6aad01db58429cb

query I rowsort
SELECT ALL - col2 * 28 FROM tab1
----
-1512
-1596
-2688

query I rowsort
SELECT ALL - 13 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

onlyif mysql # use DIV operator for integer division
query I rowsort label-1593
SELECT + col1 DIV - col2 AS col0 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1593
SELECT + col1 / - col2 AS col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 * - cor0.col1 * - 72 AS col1 FROM tab0 AS cor0
----
204336
537264
6984

query I rowsort
SELECT col1 * + 37 AS col1 FROM tab2
----
1147
2183
629

onlyif mysql # use DIV operator for integer division
query I rowsort label-1596
SELECT tab0.col1 DIV col1 col0 FROM tab0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1596
SELECT tab0.col1 / col1 col0 FROM tab0
----
1
1
1

query I rowsort
SELECT - col2 * - 67 AS col0 FROM tab1
----
3618
3819
6432

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col2 * 53 col2 FROM tab1
----
-2862
-3021
-5088

query I rowsort
SELECT ALL 20 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT - col0 * col1 + + tab2.col0 FROM tab2
----
-1264
-210
-4524

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1601
SELECT - CAST( 13 AS SIGNED ) AS col0 FROM tab0
----
-13
-13
-13

skipif mysql # not compatible
query I rowsort label-1601
SELECT - CAST ( 13 AS INTEGER ) AS col0 FROM tab0
----
-13
-13
-13

query I rowsort
SELECT + 41 AS col1 FROM tab0
----
41
41
41

query I rowsort
SELECT 57 * ( + col2 ) + - tab1.col2 * - col0 AS col2 FROM tab1
----
13152
3240
6897

query I rowsort
SELECT col2 + - col0 FROM tab0 cor0
----
-34
-7
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 17 * + col1 col1 FROM tab2 AS cor0
----
-1003
-289
-527

onlyif mysql # use DIV operator for integer division
query I rowsort label-1606
SELECT DISTINCT 71 DIV tab0.col1 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1606
SELECT DISTINCT 71 / tab0.col1 AS col1 FROM tab0
----
0

query I rowsort
SELECT 89 FROM tab2, tab2 cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query I rowsort
SELECT ALL + 68 FROM tab0, tab2 AS cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query I rowsort
SELECT 8 * - ( tab1.col0 ) FROM tab1
----
-24
-512
-640

query I rowsort
SELECT - 87 * cor0.col0 * 65 FROM tab0 AS cor0
----
-135720
-197925
-503295

query I rowsort
SELECT - - col0 * + cor0.col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT + col2 * cor0.col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-1613
SELECT - + cor0.col2 DIV col2 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1613
SELECT - + cor0.col2 / col2 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + col0 * col2 + ( - col1 ) FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT ( - col1 ) + 96 * + col0 AS col0 FROM tab2 AS cor0
----
641
7429
7567

query I rowsort
SELECT DISTINCT col2 * col2 + 76 AS col0 FROM tab0 cor0
----
1165
6800
77

query I rowsort
SELECT tab1.col0 * + col2 - col1 FROM tab1
----
136
3638
7667

query I rowsort
SELECT DISTINCT col2 * - col0 * - col2 FROM tab2
----
114076
5103
52728

query I rowsort
SELECT col1 * col2 - + col0 FROM tab1
----
1168
1401
506

query I rowsort
SELECT ALL - - col1 * + col0 * - col2 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT col0 + + col1 * + col1 AS col1 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT + + col0 * col2 + + col0 FROM tab1 cor0
----
165
3712
7760

query I rowsort
SELECT - - col0 + + col2 AS col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT + col1 * col0 * col0 + cor0.col0 FROM tab1 cor0
----
237
41024
83280

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT cor0.col2 * col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col2 * cor0.col0 col0 FROM tab1 AS cor0
----
165
3712
7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 col1 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT + col0 * cor0.col1 AS col1 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-1630
SELECT + + col1 DIV col2 col2 FROM tab0 AS cor0
----
1
2
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1630
SELECT + + col1 / col2 col2 FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT + col0 * - cor0.col2 + + col1 AS col1 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT - - 78 AS col2 FROM tab1 AS cor0
----
78
78
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - cor0.col0 * - col1 col2 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT DISTINCT - 85 AS col1 FROM tab0
----
-85

query I rowsort
SELECT DISTINCT - 58 * tab2.col2 AS col0 FROM tab2
----
-1508
-1566
-2204

query I rowsort
SELECT col1 + - cor0.col0 * - col0 AS col2 FROM tab1 AS cor0
----
35
4106
6413

onlyif mysql # use DIV operator for integer division
query I rowsort label-1637
SELECT + col0 * col1 * col1 + col0 DIV - col2 FROM tab1 AS cor0
----
13520
2028
6399

skipif mysql # not compatible
query I rowsort label-1637
SELECT + col0 * col1 * col1 + col0 / - col2 FROM tab1 AS cor0
----
13520
2028
6399

query I rowsort
SELECT ALL + col1 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT col0 * + col2 * - col0 FROM tab2 AS cor0
----
-1323
-158184
-237158

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN NULL AND - col2 + col2 * - col0
----

query I rowsort
SELECT + tab0.col1 * col2 AS col0 FROM tab0 WHERE + col2 * - col1 > col1
----

query I rowsort
SELECT ALL + col2 - - col2 * - col1 AS col2 FROM tab0
----
-2805
-7380
-96

query I rowsort
SELECT col0 + + tab0.col1 AS col0 FROM tab0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-1644
SELECT tab2.col2 DIV col0 FROM tab2
----
0
0
3

skipif mysql # not compatible
query I rowsort label-1644
SELECT tab2.col2 / col0 FROM tab2
----
0
0
3

query I rowsort
SELECT DISTINCT col0 * col2 * col2 FROM tab2
----
114076
5103
52728

query I rowsort
SELECT ALL - col1 * col0 * + col1 FROM tab2
----
-22831
-271518
-6727

query I rowsort
SELECT + col2 + col0 - - col2 FROM tab2
----
130
155
61

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col0 + - col0 * - col1 + col0 ) NOT IN ( col2 )
----

query I rowsort
SELECT + col0 AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND col2 + col0 * + col2 / col1
----

query I rowsort
SELECT ALL - col2 AS col1 FROM tab1 WHERE NOT NULL > NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1651
SELECT + col0 DIV tab1.col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1651
SELECT + col0 / tab1.col2 FROM tab1
----
0
0
1

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN + col2 AND + col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) IN ( + col0 )
----

query I rowsort
SELECT ALL - col2 - - col1 AS col1 FROM tab0
----
53
9
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 col1 FROM tab1
----
1040
640
78

query I rowsort
SELECT DISTINCT col1 - + col0 AS col1 FROM tab0
----
2
62

query I rowsort
SELECT col2 + col0 * tab2.col2 FROM tab2
----
2054
216
3040

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col0 * col1
----

query I rowsort
SELECT + col0 * col2 * col2 FROM tab0
----
26136
35
598436

query I rowsort
SELECT DISTINCT col0 + - col0 * - col1 FROM tab0 cor0
----
2088
3430
8188

query I rowsort
SELECT cor0.col1 * col1 + col0 * - col2 FROM tab2 AS cor0
----
-2713
1453
772

query I rowsort
SELECT ALL + col0 - col1 AS col0 FROM tab2 cor0
----
-24
19
62

query I rowsort
SELECT + col2 - + col1 AS col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT col1 * col2 + cor0.col1 AS col0 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT col2 + col1 * - tab1.col2 FROM tab1
----
-1152
-1350
-513

onlyif mysql # use DIV operator for integer division
query I rowsort label-1666
SELECT DISTINCT + tab0.col0 DIV - tab0.col1 - col1 FROM tab0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-1666
SELECT DISTINCT + tab0.col0 / - tab0.col1 - col1 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT - tab0.col2 - col0 FROM tab0
----
-171
-36
-57

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) IN ( + col0 * - col2 )
----

query I rowsort
SELECT ALL - col0 * tab0.col1 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT + col0 * + col2 FROM tab2
----
189
2028
3002

query I rowsort
SELECT DISTINCT tab0.col0 * col2 * + col2 FROM tab0
----
26136
35
598436

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - + col0 * + tab1.col0 col2 FROM tab1 WHERE NULL NOT IN ( + col2 )
----

query I rowsort
SELECT cor0.col0 + + col1 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT DISTINCT col1 + cor0.col0 AS col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL + col0 * col2 + - col1 * + col2 FROM tab2 AS cor0
----
-648
2356
494

query I rowsort
SELECT + ( - col1 ) + ( - cor0.col1 ) AS col2 FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT + + 67 * col0 - + ( - col2 ) * col0 AS col1 FROM tab2 cor0
----
658
7254
8295

query I rowsort
SELECT + 79 * col0 FROM tab1
----
237
5056
6320

query I rowsort
SELECT DISTINCT + 0 * - 90 - - col0 FROM tab0
----
24
35
89

query I rowsort
SELECT ( cor0.col0 ) * col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + - cor0.col0 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT col1 * col2 - + 59 AS col0 FROM tab1 AS cor0
----
1189
1345
511

query I rowsort
SELECT 39 - + col1 FROM tab2 AS cor0
----
-20
22
8

query I rowsort
SELECT ALL + 59 AS col1 FROM tab0
----
59
59
59

query I rowsort
SELECT DISTINCT + col1 - + 65 * tab1.col2 AS col0 FROM tab1
----
-3484
-3695
-6227

query I rowsort
SELECT tab1.col0 * 62 AS col1 FROM tab1, tab0 cor0, tab1 AS cor1
----
27 values hashing to 183774589f76b1df8f4e4eb29f012041

query I rowsort
SELECT col1 + col2 + + ( 0 ) FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT ALL 83 * col1 AS col0 FROM tab0 AS cor0
----
7138
7553
8051

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + cor0.col2 col2 FROM tab0 cor0
----
164
2
66

query I rowsort
SELECT ALL + cor0.col0 * col0 + col0 AS col1 FROM tab0 AS cor0
----
1260
600
8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 68 * + col2 col0 FROM tab2 AS cor0
----
1768
1836
2584

query I rowsort
SELECT DISTINCT + - cor0.col2 * + col1 * - ( 38 ) FROM tab2 cor0
----
24548
31806
58292

query I rowsort
SELECT ALL + 26 AS col1 FROM tab2 AS cor0
----
26
26
26

query I rowsort
SELECT + 15 * col2 * + col0 + - cor0.col0 FROM tab1 AS cor0
----
115120
2427
54656

query I rowsort
SELECT 64 * cor0.col2 + - 87 * - 6 FROM tab0 AS cor0
----
2634
5770
586

query I rowsort
SELECT ALL + col0 * + col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT ALL col1 * + 10 FROM tab2 cor0
----
170
310
590

onlyif mysql # use DIV operator for integer division
query I rowsort label-1698
SELECT ALL - col0 + 70 DIV + col2 FROM tab0 AS cor0
----
-22
-89
35

skipif mysql # not compatible
query I rowsort label-1698
SELECT ALL - col0 + 70 / + col2 FROM tab0 AS cor0
----
-22
-89
35

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1699
SELECT ALL + col0 / CAST( NULL AS SIGNED ) + 14 * col0 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1699
SELECT ALL + col0 / CAST ( NULL AS INTEGER ) + 14 * col0 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col2 * + ( + 99 ) FROM tab0 AS cor0
----
-3267
-8118
-99

query I rowsort
SELECT DISTINCT 57 * + col0 + + cor0.col0 * + col2 + + col2 AS col0 FROM tab0 AS cor0
----
12453
2031
2193

query I rowsort
SELECT - - col0 * 4 FROM tab2 cor0
----
28
312
316

query I rowsort
SELECT ALL - - col0 * col0 + col1 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT ALL col2 + - 22 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
1925
2084
2135

onlyif mysql # use DIV operator for integer division
query I rowsort label-1705
SELECT + 76 + col0 DIV + col2 FROM tab0
----
111
76
77

skipif mysql # not compatible
query I rowsort label-1705
SELECT + 76 + col0 / + col2 FROM tab0
----
111
76
77

query I rowsort
SELECT DISTINCT + 18 * col0 AS col0 FROM tab1 AS cor0
----
1152
1440
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - col0 ) col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ( - col2 ) + col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + + 99 AS col1 FROM tab0 AS cor0
----
99
99
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-1710
SELECT ALL col0 + - 72 DIV - col0 AS col0 FROM tab1 AS cor0
----
27
65
80

skipif mysql # not compatible
query I rowsort label-1710
SELECT ALL col0 + - 72 / - col0 AS col0 FROM tab1 AS cor0
----
27
65
80

query I rowsort
SELECT DISTINCT - 12 + col2 * cor0.col2 FROM tab0 AS cor0
----
-11
1077
6712

query I rowsort
SELECT - 44 AS col1 FROM tab1
----
-44
-44
-44

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0 CROSS JOIN tab2, tab1, tab0 AS cor1
----
3645 values hashing to b225d3765f33551c12574f545c8c91eb

query I rowsort
SELECT + - col0 * col2 + + col0 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT 29 FROM tab0 cor0
----
29
29
29

query I rowsort
SELECT ALL 65 * - col1 FROM tab1
----
-1690
-650
-845

query I rowsort
SELECT 44 AS col0 FROM tab2 AS cor0
----
44
44
44

query I rowsort
SELECT 94 FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089

query I rowsort
SELECT - + col2 * - col2 AS col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT ALL + - 73 * + col2 FROM tab0 AS cor0
----
-2409
-5986
-73

query I rowsort
SELECT ALL - - col2 + ( col1 ) * + col1 AS col1 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT - cor0.col1 + - col2 + - col0 AS col1 FROM tab2 AS cor0
----
-134
-163
-65

query I rowsort
SELECT + col2 + - ( - col2 ) + col1 FROM tab1 AS cor0
----
124
134
205

query I rowsort
SELECT + col2 * ( 40 * - col0 ) FROM tab0 AS cor0
----
-1400
-291920
-31680

query I rowsort
SELECT cor0.col2 * + 74 + col0 FROM tab2 AS cor0
----
2002
2005
2891

query I rowsort
SELECT - + cor0.col1 + 15 AS col0 FROM tab0 cor0
----
-71
-76
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1727
SELECT col2 + - CAST( - col1 + - col1 AS SIGNED ) FROM tab0 AS cor0
----
195
205
264

skipif mysql # not compatible
query I rowsort label-1727
SELECT col2 + - CAST ( - col1 + - col1 AS INTEGER ) FROM tab0 AS cor0
----
195
205
264

query I rowsort
SELECT + 84 + col1 AS col1 FROM tab0 AS cor0
----
170
175
181

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1729
SELECT ALL - CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1729
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT - tab0.col2 * col2 * - tab0.col0 AS col0 FROM tab0
----
26136
35
598436

query I rowsort
SELECT + col2 * 42 FROM tab2
----
1092
1134
1596

query I rowsort
SELECT cor1.col0 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT ALL col1 + - 86 * cor0.col2 FROM tab2 AS cor0
----
-2177
-2291
-3251

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col0 * - col1 + - col1 col0 FROM tab0
----
-2150
-3492
-8190

query I rowsort
SELECT ALL - cor0.col0 FROM tab0, tab0 cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

query I rowsort
SELECT - cor1.col0 - 62 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9ffb54262b407b2a1881e14984e81978

query I rowsort
SELECT DISTINCT col2 * + col0 * - tab2.col0 FROM tab2
----
-1323
-158184
-237158

query I rowsort
SELECT tab1.col0 + 26 AS col1 FROM tab1
----
106
29
90

query I rowsort
SELECT ALL + - 74 AS col2 FROM tab1, tab2, tab2 AS cor0, tab0
----
81 values hashing to 83dc6c0e38784f5f5c6b91de33ab4ff1

query I rowsort
SELECT + col2 * 79 + + col2 FROM tab0
----
2640
6560
80

query I rowsort
SELECT DISTINCT col0 * - 40 AS col1 FROM tab1
----
-120
-2560
-3200

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0, tab2 cor1, tab0, tab0 cor2
----
3645 values hashing to 1713adaf687595322d888d4eeefdbbc8

query I rowsort
SELECT DISTINCT cor0.col1 * - col0 + col2 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT col0 * tab0.col2 AS col2 FROM tab0
----
35
7298
792

query I rowsort
SELECT DISTINCT cor0.col2 FROM tab1, tab2 cor0
----
26
27
38

query I rowsort
SELECT + col0 * + 31 + - col1 AS col1 FROM tab1 AS cor0
----
1974
2467
67

query I rowsort
SELECT + col0 * - ( - col1 ) + col1 FROM tab1 cor0
----
104
1053
650

query I rowsort
SELECT 89 + - col1 * - col2 AS col1 FROM tab2 AS cor0
----
1623
735
926

query I rowsort
SELECT 9 FROM tab1 AS cor0
----
9
9
9

query I rowsort
SELECT + + ( + col1 ) * + col2 AS col0 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-1751
SELECT ALL col2 DIV - col0 + + 94 FROM tab1 AS cor0
----
76
93
94

skipif mysql # not compatible
query I rowsort label-1751
SELECT ALL col2 / - col0 + + 94 FROM tab1 AS cor0
----
76
93
94

query I rowsort
SELECT ALL + ( cor0.col2 ) * 4 FROM tab1 AS cor0
----
216
228
384

query I rowsort
SELECT tab0.col2 * tab0.col0 AS col1 FROM tab0
----
35
7298
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1754
SELECT CAST( - col1 AS SIGNED ) AS col0 FROM tab1
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-1754
SELECT CAST ( - col1 AS INTEGER ) AS col0 FROM tab1
----
-10
-13
-26

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 ALL - - col0 * - col1 + ( + 6 * col2 ) AS col2 FROM tab1 cor0
----
-298
-464
246

query I rowsort
SELECT DISTINCT + ( - col1 ) FROM tab1 AS cor0
----
-10
-13
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-1758
SELECT col0 DIV col1 col1 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1758
SELECT col0 / col1 col1 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col2 col0 FROM tab1 AS cor0
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-1760
SELECT col1 DIV col2 + col0 * - col0 AS col2 FROM tab0 cor0
----
-1128
-574
-7920

skipif mysql # not compatible
query I rowsort label-1760
SELECT col1 / col2 + col0 * - col0 AS col2 FROM tab0 cor0
----
-1128
-574
-7920

onlyif mysql # use DIV operator for integer division
query I rowsort label-1761
SELECT + + col2 DIV + col1 AS col2 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-1761
SELECT + + col2 / + col1 AS col2 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT DISTINCT - col1 * cor0.col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT - ( tab2.col0 ) * col2 FROM tab2
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 59 + - col0 col1 FROM tab2 AS cor0
----
-19
-20
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-1765
SELECT DISTINCT + col0 DIV - cor0.col0 AS col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1765
SELECT DISTINCT + col0 / - cor0.col0 AS col2 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT + cor0.col0 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT col2 * col1 * col1 AS col2 FROM tab0 AS cor0
----
244068
679042
9409

query I rowsort
SELECT DISTINCT col0 * col2 + - col0 FROM tab1
----
159
3584
7600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col2 col0 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT DISTINCT - col2 * col0 + - col1 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT ALL - 80 * col2 + - 31 * col1 AS col1 FROM tab0 AS cor0
----
-3087
-5306
-9381

query I rowsort
SELECT ALL col1 - col1 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col2 + col2 * 10 AS col1 FROM tab2 AS cor0
----
286
297
418

query I rowsort
SELECT - col2 * - col2 + col1 * - col0 + col1 * + 5 AS col1 FROM tab2 AS cor0
----
-3631
186
667

query I rowsort
SELECT DISTINCT - - col1 + col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT DISTINCT - col0 + cor0.col2 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT col0 * col0 + col0 FROM tab0 cor0
----
1260
600
8010

query I rowsort
SELECT ALL - + col1 * 8 * + col2 + - col1 FROM tab1 cor0
----
-11258
-4570
-9997

query I rowsort
SELECT DISTINCT - col0 * + 10 - col0 AS col2 FROM tab1 AS cor0
----
-33
-704
-880

query I rowsort
SELECT - + col1 * col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL + col0 * + 98 * - col1 FROM tab0 cor0
----
-202272
-332710
-793702

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1782
SELECT DISTINCT + col2 * CAST( NULL AS SIGNED ) + + ( cor0.col2 ) + 9 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1782
SELECT DISTINCT + col2 * CAST ( NULL AS INTEGER ) + + ( cor0.col2 ) + 9 FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1783
SELECT ALL + + col0 - + col1 DIV + col1 AS col2 FROM tab0 AS cor0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-1783
SELECT ALL + + col0 - + col1 / + col1 AS col2 FROM tab0 AS cor0
----
23
34
88

query I rowsort
SELECT ALL - cor0.col1 * 97 + + col1 * col0 AS col1 FROM tab0 AS cor0
----
-6014
-6278
-728

query I rowsort
SELECT ALL + cor0.col1 + col0 + col1 * col0 FROM tab1 cor0
----
107
1133
714

query I rowsort
SELECT DISTINCT - + col1 * + col0 - + col2 FROM tab1 AS cor0
----
-1136
-132
-697

skipif mysql # not compatible
query I rowsort
SELECT ALL + col0 + - CAST ( + col1 AS REAL ) * col0 AS col2 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT - col2 * - ( - col0 ) + - col0 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT DISTINCT col2 + col2 * + 52 FROM tab0 AS cor0
----
1749
4346
53

query I rowsort
SELECT col0 + col1 * ( + col2 ) AS col2 FROM tab2
----
1612
725
844

query I rowsort
SELECT DISTINCT - ( col2 ) FROM tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT - - col2 * col0 * - col1 FROM tab0 AS cor0
----
-3395
-664118
-68112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) + + col2 * - col2 col1 FROM tab2 AS cor0
----
-1406
-650
-702

query I rowsort
SELECT ALL 47 + col0 AS col0 FROM tab2 AS cor0
----
125
126
54

query I rowsort
SELECT ( + col2 ) + cor0.col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT + - 97 + cor0.col0 AS col1 FROM tab1 cor0
----
-17
-33
-94

query I rowsort
SELECT DISTINCT + col2 * - cor0.col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT + col2 * - 87 + col0 FROM tab2 AS cor0
----
-2184
-2342
-3227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 45 col1 FROM tab1 AS cor0
----
2430
2565
4320

query I rowsort
SELECT DISTINCT - - ( + col0 ) AS col2 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT ALL - - col2 * 37 FROM tab2 AS cor0
----
1406
962
999

query I rowsort
SELECT ALL ( col1 ) * - cor0.col1 AS col2 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT - col2 * 59 AS col1 FROM tab0
----
-1947
-4838
-59

query I rowsort
SELECT ALL - + 83 + col0 + + col0 FROM tab2 AS cor0
----
-69
73
75

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1805
SELECT + CAST( NULL AS SIGNED ) / 98 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1805
SELECT + CAST ( NULL AS INTEGER ) / 98 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 28 * - cor0.col1 FROM tab0 AS cor0
----
2408
2548
2716

onlyif mysql # use DIV operator for integer division
query I rowsort label-1807
SELECT ALL + - col0 DIV 30 FROM tab2 AS cor0
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-1807
SELECT ALL + - col0 / 30 FROM tab2 AS cor0
----
-2
-2
0

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 cor0 CROSS JOIN tab2, tab1 AS cor1
----
972 values hashing to 9364ef7545b07c67767dceb70f02c643

query I rowsort
SELECT DISTINCT col2 - + col1 FROM tab2
----
-33
-4
21

query I rowsort
SELECT col2 + col2 - - col2 AS col0 FROM tab1
----
162
171
288

onlyif mysql # use DIV operator for integer division
query I rowsort label-1811
SELECT + col1 DIV col2 AS col1 FROM tab0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-1811
SELECT + col1 / col2 AS col1 FROM tab0
----
1
2
97

query I rowsort
SELECT ALL col0 - col0 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1813
SELECT - col0 DIV col0 AS col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1813
SELECT - col0 / col0 AS col2 FROM tab2
----
-1
-1
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1814
SELECT + CAST( NULL AS SIGNED ) / - tab0.col2 + + tab0.col2 * 65 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1814
SELECT + CAST ( NULL AS INTEGER ) / - tab0.col2 + + tab0.col2 * 65 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 - col1 FROM tab0
----
-110
-132
-180

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 CROSS JOIN tab2, tab0 cor1, tab1 AS cor2
----
3645 values hashing to b8435223668db186a5012e4112253f28

query I rowsort
SELECT col2 * cor0.col0 + - col2 * col1 FROM tab2 AS cor0
----
-648
2356
494

query I rowsort
SELECT col0 * ( col0 ) FROM tab2 AS cor0
----
49
6084
6241

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1819
SELECT DISTINCT - col2 * CAST( + col2 * col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-207936
-737280
-8748

skipif mysql # not compatible
query I rowsort label-1819
SELECT DISTINCT - col2 * CAST ( + col2 * col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-207936
-737280
-8748

onlyif mysql # use DIV operator for integer division
query I rowsort label-1820
SELECT DISTINCT + col0 DIV col0 AS col2 FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-1820
SELECT DISTINCT + col0 / col0 AS col2 FROM tab2 cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col2 * - col2 col1 FROM tab1
----
-2913
-3185
-9136

query I rowsort
SELECT - 99 AS col1 FROM tab0
----
-99
-99
-99

query I rowsort
SELECT - cor0.col1 * - 34 AS col0 FROM tab1 cor0
----
340
442
884

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1824
SELECT col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1824
SELECT col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0, tab1 cor1
----
243 values hashing to 9ed1a6a444254225f040123c46b7f70c

query I rowsort
SELECT DISTINCT tab2.col0 * + 27 FROM tab2
----
189
2106
2133

query I rowsort
SELECT + + col2 * + col1 + cor0.col2 FROM tab1 AS cor0
----
1344
1458
627

onlyif mysql # use DIV operator for integer division
query I rowsort label-1828
SELECT ALL - col0 DIV 32 AS col2 FROM tab1 AS cor0
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-1828
SELECT ALL - col0 / 32 AS col2 FROM tab1 AS cor0
----
-2
-2
0

query I rowsort
SELECT + col1 * 87 AS col0 FROM tab2 AS cor0
----
1479
2697
5133

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to c04c36412775e8805d6b3befa2f52917

query I rowsort
SELECT ALL 55 FROM tab2, tab2 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT ALL col2 * - ( col0 ) AS col0 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT - tab0.col1 * col2 + col1 - 33 AS col1 FROM tab0
----
-2785
-33
-7404

query I rowsort
SELECT 27 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 092918b9163061e291041d594b1a402a

query I rowsort
SELECT - 28 * - col2 + - col2 FROM tab1 AS cor0
----
1458
1539
2592

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 3 + + col1 col0 FROM tab1 AS cor0
----
13
16
29

query I rowsort
SELECT ALL - col2 * col1 * 74 FROM tab1 AS cor0
----
-103896
-42180
-92352

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1838
SELECT + - ( - cor0.col0 ) + CAST( col0 AS SIGNED ) AS col2 FROM tab0 cor0
----
178
48
70

skipif mysql # not compatible
query I rowsort label-1838
SELECT + - ( - cor0.col0 ) + CAST ( col0 AS INTEGER ) AS col2 FROM tab0 cor0
----
178
48
70

query I rowsort
SELECT ALL col0 * + col1 + col0 FROM tab2
----
1422
224
4680

query I rowsort
SELECT + - cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query I rowsort
SELECT col1 + + col1 * - ( 22 * col2 ) FROM tab2
----
-14195
-18383
-33689

query I rowsort
SELECT ALL col2 * col1 + - col1 FROM tab2 cor0
----
1475
629
806

query I rowsort
SELECT ALL - 36 FROM tab1 AS cor0
----
-36
-36
-36

query I rowsort
SELECT col0 * col0 + col1 FROM tab0 AS cor0
----
1322
662
8012

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab2 cor1, tab0 cor2
----
972 values hashing to 380241bbc503a31e70494611a87ffd99

onlyif mysql # use DIV operator for integer division
query I rowsort label-1846
SELECT DISTINCT col0 * col1 DIV - cor0.col0 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-1846
SELECT DISTINCT col0 * col1 / - cor0.col0 FROM tab1 AS cor0
----
-10
-13
-26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1847
SELECT - col1 + + col0 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1847
SELECT - col1 + + col0 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col0 * - col1 + + col1 AS col0 FROM tab0 AS cor0
----
-1978
-3298
-8008

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1849
SELECT - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1849
SELECT - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # use DIV operator for integer division
query I rowsort label-1850
SELECT DISTINCT + 52 DIV cor1.col0 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
0
1
2

skipif mysql # not compatible
query I rowsort label-1850
SELECT DISTINCT + 52 / cor1.col0 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
0
1
2

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 cor0, tab0 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to 181d902c42955a43a374f13a73d8b0a1

query I rowsort
SELECT - 86 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

query I rowsort
SELECT DISTINCT + col2 * - col2 FROM tab2 cor0
----
-1444
-676
-729

query I rowsort
SELECT ALL + + cor0.col1 * + col1 + - col1 AS col1 FROM tab2 AS cor0
----
272
3422
930

query I rowsort
SELECT ALL + col0 + col0 * col0 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT + - cor0.col2 AS col0 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT cor0.col0 * - col1 FROM tab0 cor0
----
-2064
-3395
-8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1858
SELECT + col0 + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1858
SELECT + col0 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 40 FROM tab2, tab0 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT DISTINCT col1 * col1 AS col1 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT 17 FROM tab2, tab2 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query I rowsort
SELECT + 56 * + col1 FROM tab1
----
1456
560
728

query I rowsort
SELECT col2 * 97 FROM tab2
----
2522
2619
3686

query I rowsort
SELECT + col2 * + 44 FROM tab2
----
1144
1188
1672

query I rowsort
SELECT DISTINCT - + 36 + 27 FROM tab1 AS cor0
----
-9

query I rowsort
SELECT DISTINCT - ( + 10 ) FROM tab0 AS cor0
----
-10

query I rowsort
SELECT + col0 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT + col1 * + cor0.col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT 74 * cor0.col2 AS col1 FROM tab2 AS cor0
----
1924
1998
2812

onlyif mysql # use DIV operator for integer division
query I rowsort label-1870
SELECT - cor0.col1 DIV cor0.col1 + - ( cor0.col0 ) * col0 DIV col0 FROM tab0 cor0
----
-25
-36
-90

skipif mysql # not compatible
query I rowsort label-1870
SELECT - cor0.col1 / cor0.col1 + - ( cor0.col0 ) * col0 / col0 FROM tab0 cor0
----
-25
-36
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-1871
SELECT col1 + col0 DIV + col0 FROM tab1 AS cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-1871
SELECT col1 + col0 / + col0 FROM tab1 AS cor0
----
11
14
27

query I rowsort
SELECT + col1 * col1 * - cor0.col0 + 17 AS col1 FROM tab0 cor0
----
-177487
-329298
-736992

query I rowsort
SELECT + 65 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 1c9d0bf96cd3361942fadad668138b9c

query I rowsort
SELECT DISTINCT col1 + 20 FROM tab0
----
106
111
117

query I rowsort
SELECT + col2 + 25 AS col1 FROM tab2
----
51
52
63

query I rowsort
SELECT - ( - col2 ) + col2 FROM tab1
----
108
114
192

query I rowsort
SELECT - 25 * tab2.col2 + col0 FROM tab2
----
-572
-668
-871

onlyif mysql # use DIV operator for integer division
query I rowsort label-1878
SELECT ALL - col1 * col2 + col1 DIV - 63 FROM tab2
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort label-1878
SELECT ALL - col1 * col2 + col1 / - 63 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT ALL ( ( - col0 ) ) + ( tab2.col2 + - col0 ) * + 49 FROM tab2
----
-2088
-2626
973

query I rowsort
SELECT - ( - 58 ) * col2 + 96 + + col1 * col2 FROM tab1 AS cor0
----
3972
4632
6912

query I rowsort
SELECT DISTINCT + col2 + - ( col1 ) AS col1 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT - col2 + col2 AS col1 FROM tab1 cor0
----
0

query I rowsort
SELECT + col2 + - col0 * - col1 * ( - col2 ) + col0 FROM tab2 cor0
----
-119548
-50917
-5825

query I rowsort
SELECT ( 68 ) AS col1 FROM tab2 AS cor0
----
68
68
68

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1885
SELECT col0 * + CAST( col2 AS SIGNED ) * + tab1.col2 AS col1 FROM tab1
----
207936
737280
8748

skipif mysql # not compatible
query I rowsort label-1885
SELECT col0 * + CAST ( col2 AS INTEGER ) * + tab1.col2 AS col1 FROM tab1
----
207936
737280
8748

query I rowsort
SELECT DISTINCT - 16 AS col0 FROM tab1, tab2, tab0 AS cor0
----
-16

query I rowsort
SELECT ALL + 82 * col1 * + col2 + + 26 + - col2 * col1 AS col0 FROM tab1
----
101114
113750
46196

query I rowsort
SELECT col0 - 77 AS col2 FROM tab2
----
-70
1
2

query I rowsort
SELECT ALL cor1.col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT 80 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query I rowsort
SELECT DISTINCT - tab2.col1 + 21 FROM tab2
----
-10
-38
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-1892
SELECT - col2 DIV 23 - - tab1.col0 AS col1 FROM tab1
----
1
62
76

skipif mysql # not compatible
query I rowsort label-1892
SELECT - col2 / 23 - - tab1.col0 AS col1 FROM tab1
----
1
62
76

query I rowsort
SELECT tab1.col1 - tab1.col2 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT - cor0.col1 + cor0.col0 * + 18 AS col1 FROM tab1, tab2, tab2 cor0
----
27 values hashing to 10dc63550d19d0aba072cd00b21bde27

query I rowsort
SELECT - col1 * - tab2.col0 AS col1 FROM tab2
----
1343
217
4602

query I rowsort
SELECT ALL col0 * col1 + 52 FROM tab1 cor0
----
1092
130
692

onlyif mysql # use DIV operator for integer division
query I rowsort label-1897
SELECT + col1 * cor0.col1 DIV - 14 + col2 FROM tab0 AS cor0
----
-495
-509
-671

skipif mysql # not compatible
query I rowsort label-1897
SELECT + col1 * cor0.col1 / - 14 + col2 FROM tab0 AS cor0
----
-495
-509
-671

query I rowsort
SELECT ALL + col1 * 10 AS col2 FROM tab2 AS cor0
----
170
310
590

query I rowsort
SELECT + col0 + col0 AS col1 FROM tab1
----
128
160
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + col1 col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT DISTINCT + 24 FROM tab2
----
24

query I rowsort
SELECT col0 * + col1 * 5 FROM tab1
----
3200
390
5200

query I rowsort
SELECT + cor0.col2 + + tab0.col1 + - cor1.col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 66f5fbf2179732c28f8897bfc420ed98

onlyif mysql # use DIV operator for integer division
query I rowsort label-1904
SELECT DISTINCT + col2 DIV col0 FROM tab2
----
0
3

skipif mysql # not compatible
query I rowsort label-1904
SELECT DISTINCT + col2 / col0 FROM tab2
----
0
3

query I rowsort
SELECT tab2.col1 + - tab2.col1 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + + col1 * + col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT + cor0.col1 + + col2 + - 25 FROM tab1 AS cor0
----
42
55
84

query I rowsort
SELECT + col2 - 66 FROM tab1 AS cor0
----
-12
-9
30

query I rowsort
SELECT + col0 - ( - col0 ) AS col1 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT col2 + + cor0.col1 + - col2 * - col2 AS col1 FROM tab0 AS cor0
----
1208
6897
99

query I rowsort
SELECT ALL col0 + col0 * tab0.col1 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT ALL col2 + - col1 AS col1 FROM tab1
----
28
47
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 74 + cor0.col2 col0 FROM tab0, tab1 cor0
----
128
131
170

query I rowsort
SELECT ALL - col2 * + 29 AS col2 FROM tab2 AS cor0
----
-1102
-754
-783

query I rowsort
SELECT ALL + tab2.col2 + - 83 FROM tab2
----
-45
-56
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-1916
SELECT ALL - col2 + ( col0 ) DIV col0 FROM tab0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-1916
SELECT ALL - col2 + ( col0 ) / col0 FROM tab0
----
-32
-81
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1917
SELECT DISTINCT + + cor0.col2 DIV col0 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-1917
SELECT DISTINCT + + cor0.col2 / col0 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT DISTINCT - col0 * - col2 AS col1 FROM tab0 AS cor0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * col1 - col0 col0 FROM tab1 cor0
----
-164
-249
-679

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1920
SELECT DISTINCT CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-1920
SELECT DISTINCT CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
17
31
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1921
SELECT DISTINCT + CAST( NULL AS SIGNED ) - 23 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1921
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - 23 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - - ( col0 ) * col0 + ( + col0 + - cor0.col1 ) * col1 FROM tab0 AS cor0
----
-4756
-4789
7739

query I rowsort
SELECT - 47 + col0 * col2 FROM tab1 AS cor0
----
115
3601
7633

query I rowsort
SELECT DISTINCT + + col1 + + 66 FROM tab0 AS cor0
----
152
157
163

query I rowsort
SELECT DISTINCT col2 * + 61 FROM tab2 AS cor0
----
1586
1647
2318

query I rowsort
SELECT DISTINCT + 15 + col2 AS col0 FROM tab1 AS cor0
----
111
69
72

query I rowsort
SELECT + cor0.col2 + - 80 AS col2 FROM tab0 cor0
----
-47
-79
2

query I rowsort
SELECT ALL + + ( 19 ) * - col2 FROM tab0 AS cor0
----
-1558
-19
-627

query I rowsort
SELECT + - col2 + + ( + col0 ) FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT + + 38 * - 4 AS col2 FROM tab0 AS cor0
----
-152
-152
-152

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col2 - 91 col2 FROM tab2
----
-53
-64
-65

query I rowsort
SELECT DISTINCT col1 - + col0 FROM tab2
----
-19
-62
24

query I rowsort
SELECT + ( col2 ) * + cor0.col1 - col2 AS col2 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT + + ( cor0.col0 ) * + col0 AS col2 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT ALL + + col0 + 74 + col1 FROM tab2 AS cor0
----
112
170
211

query I rowsort
SELECT - col2 + 31 FROM tab0 AS cor0
----
-2
-51
30

query I rowsort
SELECT + 84 - 89 * - col2 FROM tab2 AS cor0
----
2398
2487
3466

query I rowsort
SELECT - col1 * col1 * + 26 FROM tab1 cor0
----
-17576
-2600
-4394

query I rowsort
SELECT + - col1 * + cor0.col1 * col1 FROM tab1 AS cor0
----
-1000
-17576
-2197

query I rowsort
SELECT - 13 + + 62 * cor1.col0 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d309f1ad7930503ca10041200e90485c

query I rowsort
SELECT ALL - col0 + + col1 AS col0 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT DISTINCT + 44 - col0 AS col1 FROM tab1 AS cor0
----
-20
-36
41

query I rowsort
SELECT + + col1 * - col1 FROM tab1 cor0
----
-100
-169
-676

query I rowsort
SELECT DISTINCT col1 * - col1 FROM tab2 cor0
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT + 76 AS col2 FROM tab2 AS cor0
----
76

query I rowsort
SELECT ALL + 50 * + col2 FROM tab0 AS cor0
----
1650
4100
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 61 col2 FROM tab0 cor0
----
61
61
61

query I rowsort
SELECT col2 * col1 + 32 FROM tab1 AS cor0
----
1280
1436
602

query I rowsort
SELECT DISTINCT + + 77 * + cor0.col2 AS col2 FROM tab2 cor0
----
2002
2079
2926

query I rowsort
SELECT DISTINCT col0 * + col1 + 63 + + 76 FROM tab2 AS cor0
----
1482
356
4741

onlyif mysql # use DIV operator for integer division
query I rowsort label-1951
SELECT DISTINCT - col2 DIV col2 - - 41 AS col1 FROM tab1 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-1951
SELECT DISTINCT - col2 / col2 - - 41 AS col1 FROM tab1 AS cor0
----
40

query I rowsort
SELECT ALL + + col0 * + col0 AS col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT ALL + 41 + col1 AS col0 FROM tab2 cor0
----
100
58
72

query I rowsort
SELECT - - col1 + + ( - col1 ) AS col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL + + col0 * 68 FROM tab1 AS cor0
----
204
4352
5440

query I rowsort
SELECT DISTINCT - tab1.col1 AS col0 FROM tab1, tab0 cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT col0 + col2 AS col2 FROM tab0 AS cor0
----
171
36
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1958
SELECT ALL + - col2 + - CAST( col1 AS SIGNED ) * - col2 AS col2 FROM tab2 AS cor0
----
1508
608
810

skipif mysql # not compatible
query I rowsort label-1958
SELECT ALL + - col2 + - CAST ( col1 AS INTEGER ) * - col2 AS col2 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT DISTINCT + col2 * 54 + col0 + - col2 AS col2 FROM tab2 cor0
----
1438
1456
2093

query I rowsort
SELECT DISTINCT - cor0.col2 * + 17 FROM tab0 AS cor0
----
-1394
-17
-561

query I rowsort
SELECT DISTINCT 56 FROM tab1
----
56

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1962
SELECT CAST( + 37 AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

skipif mysql # not compatible
query I rowsort label-1962
SELECT CAST ( + 37 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1963
SELECT + 32 + col1 * - CAST( + col0 AS SIGNED ) AS col0 FROM tab2
----
-1311
-185
-4570

skipif mysql # not compatible
query I rowsort label-1963
SELECT + 32 + col1 * - CAST ( + col0 AS INTEGER ) AS col0 FROM tab2
----
-1311
-185
-4570

query I rowsort
SELECT ALL - 20 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to eb3a66728062963cccbd15bd2f5c9eee

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 57 col0 FROM tab2
----
57

query I rowsort
SELECT DISTINCT + 59 FROM tab1, tab0, tab1 AS cor0
----
59

query I rowsort
SELECT DISTINCT - ( - col2 ) AS col0 FROM tab2
----
26
27
38

query I rowsort
SELECT ALL col1 * + col2 * col0 + col2 * - cor0.col2 FROM tab2 AS cor0
----
118976
49590
5130

query I rowsort
SELECT + + 35 FROM tab1 AS cor0
----
35
35
35

query I rowsort
SELECT ALL + col0 * col2 + + col2 AS col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT + 11 AS col2 FROM tab2
----
11
11
11

query I rowsort
SELECT DISTINCT + - ( - col0 ) + + 95 FROM tab2 AS cor0
----
102
173
174

query I rowsort
SELECT - - ( + col2 ) + + col1 AS col2 FROM tab0 AS cor0
----
119
173
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-1974
SELECT DISTINCT + col0 DIV + col0 AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1974
SELECT DISTINCT + col0 / + col0 AS col1 FROM tab1 AS cor0
----
1

query I rowsort
SELECT ALL 88 + col1 FROM tab2 AS cor0
----
105
119
147

onlyif mysql # use DIV operator for integer division
query I rowsort label-1976
SELECT - + col2 DIV 3 FROM tab1 AS cor0
----
-18
-19
-32

skipif mysql # not compatible
query I rowsort label-1976
SELECT - + col2 / 3 FROM tab1 AS cor0
----
-18
-19
-32

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1977
SELECT DISTINCT + col1 + CAST( NULL AS SIGNED ) + - col1 * col0 col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1977
SELECT DISTINCT + col1 + CAST ( NULL AS INTEGER ) + - col1 * col0 col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 + ( cor0.col1 * col2 ) col0 FROM tab1 cor0
----
1328
1407
634

onlyif mysql # use DIV operator for integer division
query I rowsort label-1979
SELECT col0 DIV + col1 + + ( col2 ) AS col1 FROM tab1
----
102
54
63

skipif mysql # not compatible
query I rowsort label-1979
SELECT col0 / + col1 + + ( col2 ) AS col1 FROM tab1
----
102
54
63

query I rowsort
SELECT 67 * col0 AS col0 FROM tab0
----
1608
2345
5963

query I rowsort
SELECT + col0 * - 75 FROM tab2 AS cor0
----
-525
-5850
-5925

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col2 col2 FROM tab2
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-1983
SELECT col1 DIV + col1 + - col1 AS col1 FROM tab0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-1983
SELECT col1 / + col1 + - col1 AS col1 FROM tab0
----
-85
-90
-96

query I rowsort
SELECT DISTINCT col2 - col1 AS col0 FROM tab2
----
-33
-4
21

query I rowsort
SELECT ALL + tab1.col1 - col2 AS col0 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT + col0 + + col1 AS col2 FROM tab2
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-1987
SELECT ALL - col0 DIV + col2 FROM tab0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-1987
SELECT ALL - col0 / + col2 FROM tab0
----
-1
-35
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1988
SELECT DISTINCT col0 * col0 DIV tab2.col1 FROM tab2
----
1
103
367

skipif mysql # not compatible
query I rowsort label-1988
SELECT DISTINCT col0 * col0 / tab2.col1 FROM tab2
----
1
103
367

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE col2 - + col2 NOT BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1990
SELECT DISTINCT tab1.col2 DIV + tab1.col0 AS col2 FROM tab1
----
0
1
18

skipif mysql # not compatible
query I rowsort label-1990
SELECT DISTINCT tab1.col2 / + tab1.col0 AS col2 FROM tab1
----
0
1
18

query III rowsort
SELECT * FROM tab2 WHERE ( - col0 - col1 * + col1 * col1 ) NOT IN ( + col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

onlyif mysql # use DIV operator for integer division
query I rowsort label-1992
SELECT ALL + col2 DIV col1 col0 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1992
SELECT ALL + col2 / col1 col0 FROM tab0
----
0
0
0

query I rowsort
SELECT + col0 * - col2 + col0 AS col1 FROM tab1
----
-159
-3584
-7600

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) NOT IN ( + col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1995
SELECT - col2 DIV tab0.col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1995
SELECT - col2 / tab0.col0 FROM tab0
----
-1
0
0

query I rowsort
SELECT DISTINCT - ( + ( - cor0.col2 ) ) * 58 FROM tab2, tab2 AS cor0
----
1508
1566
2204

query I rowsort
SELECT DISTINCT + col0 * col2 + tab1.col2 FROM tab1
----
216
3705
7776

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( col1 + - col2 )
----

query I rowsort
SELECT ALL + col1 - col0 FROM tab1
----
-54
-67
23

query I rowsort
SELECT DISTINCT + col0 / tab1.col0 + + col0 * - tab1.col0 * + col1 AS col1 FROM tab1 WHERE NULL BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT + col1 * - col1 + 17 AS col1 FROM tab0 AS cor0
----
-7379
-8264
-9392

query I rowsort
SELECT - col0 + col0 * ( - col2 ) FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT - 15 + + col1 FROM tab0 AS cor0
----
71
76
82

query I rowsort
SELECT + tab2.col0 + - col2 FROM tab2
----
-20
41
52

query I rowsort
SELECT DISTINCT + col0 + - col0 AS col2 FROM tab1
----
0

query I rowsort
SELECT ALL - col2 + tab1.col1 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT col1 * col0 - col0 AS col0 FROM tab2
----
1264
210
4524

query I rowsort
SELECT DISTINCT - col0 - + tab1.col2 * - col0 * col2 FROM tab1
----
207872
737200
8745

query I rowsort
SELECT ALL + col1 * - col2 * - col1 FROM tab0
----
244068
679042
9409

query I rowsort
SELECT + 92 - col2 AS col0 FROM tab2 AS cor0
----
54
65
66

query I rowsort
SELECT - + cor0.col0 * - col1 * 78 - col2 * + col1 AS col2 FROM tab0 AS cor0
----
158154
264713
624260

query I rowsort
SELECT + 12 * - col2 FROM tab0 AS cor0
----
-12
-396
-984

query I rowsort
SELECT + tab1.col0 * 49 AS col1 FROM tab1
----
147
3136
3920

query I rowsort
SELECT 47 AS col0 FROM tab2
----
47
47
47

onlyif mysql # use DIV operator for integer division
query I rowsort label-2015
SELECT - ( col0 ) DIV + col0 AS col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2015
SELECT - ( col0 ) / + col0 AS col1 FROM tab1
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2016
SELECT - 3 DIV - col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2016
SELECT - 3 / - col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - 43 * col2 * 12 + + 84 + + col1 AS col2 FROM tab2 AS cor0
----
-13273
-13817
-19507

query I rowsort
SELECT ALL - 47 + col2 AS col2 FROM tab0 AS cor0
----
-14
-46
35

query I rowsort
SELECT DISTINCT 88 + col0 AS col1 FROM tab0 AS cor0
----
112
123
177

query I rowsort
SELECT ALL + - ( cor0.col1 ) + + 51 + col2 * col2 AS col2 FROM tab0 AS cor0
----
-45
1054
6684

query I rowsort
SELECT ALL + col1 - + 57 AS col2 FROM tab2 AS cor0
----
-26
-40
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-2022
SELECT DISTINCT + col1 DIV col2 + 43 * - col0 FROM tab1
----
-129
-2752
-3440

skipif mysql # not compatible
query I rowsort label-2022
SELECT DISTINCT + col1 / col2 + 43 * - col0 FROM tab1
----
-129
-2752
-3440

query I rowsort
SELECT + + 76 * - col1 AS col2 FROM tab0 AS cor0
----
-6536
-6916
-7372

query I rowsort
SELECT ALL cor0.col2 + 94 FROM tab1, tab1 AS cor0
----
9 values hashing to c7cada3662d7d6ab022e26625f2d9ba4

query I rowsort
SELECT + col0 + - ( 67 ) AS col1 FROM tab0
----
-32
-43
22

query I rowsort
SELECT - tab1.col1 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

onlyif mysql # use DIV operator for integer division
query I rowsort label-2027
SELECT - - 44 DIV - col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2027
SELECT - - 44 / - col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + - cor0.col1 * + col1 AS col2 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT - + col2 * + col2 * col0 FROM tab1 AS cor0
----
-207936
-737280
-8748

query I rowsort
SELECT - 28 AS col0 FROM tab1
----
-28
-28
-28

query I rowsort
SELECT - ( - col1 ) + col0 FROM tab2
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2032
SELECT ALL - - col1 DIV col0 + + col1 FROM tab1 AS cor0
----
10
13
34

skipif mysql # not compatible
query I rowsort label-2032
SELECT ALL - - col1 / col0 + + col1 FROM tab1 AS cor0
----
10
13
34

query I rowsort
SELECT - - col1 + col1 * col0 AS col2 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT ALL col2 * + col2 * col1 + col2 AS col1 FROM tab0 AS cor0
----
611966
93687
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-2035
SELECT DISTINCT + - 60 DIV - col2 + + cor0.col0 * - col2 + - col1 col1 FROM tab0 AS cor0
----
-72
-7389
-877

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2035
SELECT DISTINCT + - 60 / - col2 + + cor0.col0 * - col2 + - col1 col1 FROM tab0 AS cor0
----
-72
-7389
-877

query I rowsort
SELECT 26 * - col1 + + col0 FROM tab0 AS cor0
----
-2212
-2277
-2487

query I rowsort
SELECT - + cor0.col2 * col1 + - col0 * col0 AS col1 FROM tab1 AS cor0
----
-1413
-4666
-7648

query I rowsort
SELECT - col1 * col2 - + col1 AS col1 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT 82 * - cor0.col2 + + col0 FROM tab1 AS cor0
----
-4425
-4610
-7792

onlyif mysql # use DIV operator for integer division
query I rowsort label-2040
SELECT DISTINCT - - col2 DIV - col2 AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2040
SELECT DISTINCT - - col2 / - col2 AS col1 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT - col1 * col2 + - col0 * - col0 FROM tab0 AS cor0
----
-2262
1128
459

query I rowsort
SELECT ALL - - cor0.col2 + cor0.col0 * - col0 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT ALL + col1 * + col0 + - cor0.col2 * + col0 AS col2 FROM tab1 AS cor0
----
-3008
-6640
-84

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + - cor0.col1 FROM tab1 cor0
----
-10
-13
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-2046
SELECT col0 DIV col2 + cor0.col1 * + col0 * + col1 FROM tab1 AS cor0
----
13520
2028
6401

skipif mysql # not compatible
query I rowsort label-2046
SELECT col0 / col2 + cor0.col1 * + col0 * + col1 FROM tab1 AS cor0
----
13520
2028
6401

query I rowsort
SELECT - - col2 * col2 + - col2 AS col1 FROM tab0 AS cor0
----
0
1056
6642

query I rowsort
SELECT col2 * col2 + - col1 FROM tab1 AS cor0
----
2890
3239
9203

onlyif mysql # use DIV operator for integer division
query I rowsort label-2049
SELECT ALL + col1 DIV + col2 - tab1.col0 * - col1 FROM tab1
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-2049
SELECT ALL + col1 / + col2 - tab1.col0 * - col1 FROM tab1
----
1040
640
78

query I rowsort
SELECT DISTINCT + + col2 * - col1 - col1 AS col2 FROM tab0 cor0
----
-194
-2924
-7553

query I rowsort
SELECT col1 * col1 + col1 FROM tab2 AS cor0
----
306
3540
992

query I rowsort
SELECT DISTINCT + + col1 + cor0.col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT 6 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query I rowsort
SELECT DISTINCT - + 79 * col2 FROM tab0 cor0
----
-2607
-6478
-79

query I rowsort
SELECT - 93 * + col2 FROM tab1 cor0
----
-5022
-5301
-8928

query I rowsort
SELECT + + 63 AS col1 FROM tab2 cor0
----
63
63
63

query I rowsort
SELECT + col1 * col0 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT - - cor0.col1 * - 52 AS col1 FROM tab0 AS cor0
----
-4472
-4732
-5044

query I rowsort
SELECT - 99 FROM tab0, tab2 cor0
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

query I rowsort
SELECT ALL - 24 FROM tab0 cor0
----
-24
-24
-24

query I rowsort
SELECT ALL + - col1 * col0 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-2062
SELECT col0 DIV - col0 AS col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2062
SELECT col0 / - col0 AS col1 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + 51 * + 7 * + col1 FROM tab1
----
3570
4641
9282

query I rowsort
SELECT ( + 71 * + col0 + - col2 ) AS col2 FROM tab0
----
1671
2484
6237

query I rowsort
SELECT - cor0.col2 - col1 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT DISTINCT col2 + + cor0.col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL 38 AS col0 FROM tab0 AS cor0
----
38
38
38

query I rowsort
SELECT ALL + col2 + - col2 - - col1 FROM tab1 AS cor0
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col2 col2 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT tab1.col0 + + col0 AS col1 FROM tab1
----
128
160
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 41 + col1 col2 FROM tab0
----
127
132
138

query I rowsort
SELECT - 77 + + col0 FROM tab1
----
-13
-74
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - + col1 col1 FROM tab0
----
0
0
0

query I rowsort
SELECT 6 + 68 AS col2 FROM tab0
----
74
74
74

query I rowsort
SELECT - 62 * col0 * tab2.col2 + - col2 AS col0 FROM tab2
----
-11745
-125762
-186162

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 IN ( col0 + + col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT + cor0.col0 * + cor0.col2 FROM tab2 AS cor0
----
189
2028
3002

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2079
SELECT DISTINCT col1 DIV col2 AS col2 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2079
SELECT DISTINCT col1 / col2 AS col2 FROM tab1 cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - cor0.col0 IN ( col2 * col0 + - col2 )
----

query I rowsort
SELECT col1 * col0 + + col0 * + col2 AS col1 FROM tab1
----
240
4288
8720

query I rowsort
SELECT + col2 * col0 - - col1 AS col0 FROM tab2
----
2087
220
3019

query I rowsort
SELECT ALL - tab0.col0 * col2 AS col0 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT - col1 + col1 * + col0 * + col0 + col1 FROM tab1
----
234
40960
83200

query I rowsort
SELECT ALL col2 * + col2 * col2 AS col2 FROM tab1
----
157464
185193
884736

onlyif mysql # use DIV operator for integer division
query I rowsort label-2086
SELECT - col0 * tab0.col0 + col2 DIV + col2 FROM tab0
----
-1224
-575
-7920

skipif mysql # not compatible
query I rowsort label-2086
SELECT - col0 * tab0.col0 + col2 / + col2 FROM tab0
----
-1224
-575
-7920

query I rowsort
SELECT DISTINCT col1 * col2 * col2 FROM tab0
----
611884
93654
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2088
SELECT ALL - col2 * col2 DIV col2 + col1 + col2 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-2088
SELECT ALL - col2 * col2 / col2 + col1 + col2 FROM tab0
----
86
91
97

query I rowsort
SELECT - col0 * + col1 + col0 * col2 FROM tab1
----
3008
6640
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-2090
SELECT tab2.col2 DIV col1 - col1 AS col2 FROM tab2
----
-15
-31
-59

skipif mysql # not compatible
query I rowsort label-2090
SELECT tab2.col2 / col1 - col1 AS col2 FROM tab2
----
-15
-31
-59

query I rowsort
SELECT DISTINCT col1 * - col0 * + col1 FROM tab1
----
-13520
-2028
-6400

query I rowsort
SELECT ALL - col1 * - tab0.col2 AS col0 FROM tab0
----
2838
7462
97

query I rowsort
SELECT ALL col2 + + col2 - + col1 AS col0 FROM tab2 AS cor0
----
-7
23
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col1 col1 FROM tab0
----
0
0
0

query I rowsort
SELECT - col0 + col1 * + col0 AS col2 FROM tab1
----
576
75
960

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 NOT IN ( col2 * + col0 )
----

query I rowsort
SELECT ALL + tab2.col2 + - col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 + tab0.col2 * col0 FROM tab0
----
-62
706
7207

query I rowsort
SELECT DISTINCT tab2.col2 + col2 FROM tab2
----
52
54
76

query I rowsort
SELECT + col0 - - col0 AS col1 FROM tab0
----
178
48
70

query I rowsort
SELECT + col1 * - col1 + col1 AS col2 FROM tab1
----
-156
-650
-90

query I rowsort
SELECT DISTINCT cor0.col0 + + cor0.col2 FROM tab2 AS cor0
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-2103
SELECT + col2 DIV col2 + - col2 AS col0 FROM tab0 AS cor0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-2103
SELECT + col2 / col2 + - col2 AS col0 FROM tab0 AS cor0
----
-32
-81
0

query I rowsort
SELECT ALL - col2 + + tab2.col1 AS col1 FROM tab2
----
-21
33
4

query I rowsort
SELECT + col0 + col1 * + col1 AS col2 FROM tab0
----
7420
8370
9444

query I rowsort
SELECT ALL - col2 + tab2.col1 FROM tab2
----
-21
33
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col2 + col2 * - col2 col2 FROM tab1
----
-1536
-2754
399

onlyif mysql # use DIV operator for integer division
query I rowsort label-2108
SELECT + col0 DIV col0 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2108
SELECT + col0 / col0 FROM tab2 cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2109
SELECT ALL col2 + col1 * col2 DIV - col1 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2109
SELECT ALL col2 + col1 * col2 / - col1 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - cor0.col2 * - col0 * col1 AS col2 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT DISTINCT - col2 + + col0 * col1 AS col2 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT DISTINCT + col0 * + col1 FROM tab0 cor0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col1 col0 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE NULL IN ( + tab0.col2 )
----

query I rowsort
SELECT - cor0.col0 + - col2 * cor0.col0 * col1 FROM tab2 AS cor0
----
-119730
-51113
-5866

query I rowsort
SELECT ALL + cor0.col2 * - col2 FROM tab2 cor0
----
-1444
-676
-729

onlyif mysql # use DIV operator for integer division
query I rowsort label-2117
SELECT ALL - - col2 DIV col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2117
SELECT ALL - - col2 / col0 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT + col1 * - col0 AS col1 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT cor0.col2 * col2 + col0 AS col0 FROM tab1 AS cor0
----
2919
3313
9296

query I rowsort
SELECT ALL + col2 + - col2 + + col1 * - cor0.col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT ALL + col2 + col2 * col0 AS col2 FROM tab0 AS cor0
----
36
7380
825

onlyif mysql # use DIV operator for integer division
query I rowsort label-2122
SELECT DISTINCT col2 DIV - col1 + - tab2.col1 FROM tab2
----
-19
-31
-59

skipif mysql # not compatible
query I rowsort label-2122
SELECT DISTINCT col2 / - col1 + - tab2.col1 FROM tab2
----
-19
-31
-59

query I rowsort
SELECT ALL + col0 * 9 + col0 FROM tab1
----
30
640
800

onlyif mysql # use DIV operator for integer division
query I rowsort label-2124
SELECT DISTINCT col0 + + 32 DIV + 68 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-2124
SELECT DISTINCT col0 + + 32 / + 68 FROM tab0
----
24
35
89

query I rowsort
SELECT 13 FROM tab1, tab2 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT - ( 65 ) AS col1 FROM tab1 AS cor0
----
-65
-65
-65

query I rowsort
SELECT col1 + - col2 + - col0 AS col0 FROM tab1 AS cor0
----
-111
-163
-31

query I rowsort
SELECT + 87 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

onlyif mysql # use DIV operator for integer division
query I rowsort label-2129
SELECT DISTINCT cor0.col0 DIV 62 AS col1 FROM tab1, tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2129
SELECT DISTINCT cor0.col0 / 62 AS col1 FROM tab1, tab1 AS cor0
----
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2130
SELECT - col1 * col2 DIV - col0 FROM tab2
----
119
19
8

skipif mysql # not compatible
query I rowsort label-2130
SELECT - col1 * col2 / - col0 FROM tab2
----
119
19
8

query I rowsort
SELECT ALL col2 * 12 FROM tab1 cor0
----
1152
648
684

query I rowsort
SELECT DISTINCT col2 * - 55 FROM tab1
----
-2970
-3135
-5280

query I rowsort
SELECT - col1 * + 45 FROM tab1
----
-1170
-450
-585

query I rowsort
SELECT DISTINCT 25 + 24 AS col2 FROM tab1 AS cor0
----
49

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0 CROSS JOIN tab0 cor1
----
243 values hashing to b3323704f6873113d863f8e27386b356

query I rowsort
SELECT DISTINCT - 25 * + col0 AS col1 FROM tab1 AS cor0
----
-1600
-2000
-75

query I rowsort
SELECT + - col2 * - 15 + - col1 * - 74 FROM tab0 AS cor0
----
6859
7193
7964

query I rowsort
SELECT ALL + - 35 FROM tab0 AS cor0
----
-35
-35
-35

query I rowsort
SELECT ALL + - 37 + col1 AS col0 FROM tab2 AS cor0
----
-20
-6
22

query I rowsort
SELECT DISTINCT - + 34 + 80 * - col2 * - col1 FROM tab2 AS cor0
----
122686
51646
66926

onlyif mysql # use DIV operator for integer division
query I rowsort label-2141
SELECT + - 40 DIV 35 AS col1 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2141
SELECT + - 40 / 35 AS col1 FROM tab0 cor0
----
-1
-1
-1

query I rowsort
SELECT - col1 * - ( col2 ) * 66 + - col0 FROM tab2 AS cor0
----
101166
42557
55235

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2143
SELECT - + CAST( col0 AS SIGNED ) * + col1 FROM tab2 cor0
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort label-2143
SELECT - + CAST ( col0 AS INTEGER ) * + col1 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT - col0 + - col0 AS col2 FROM tab1 AS cor0
----
-128
-160
-6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2145
SELECT ALL - CAST( NULL AS SIGNED ) + col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2145
SELECT ALL - CAST ( NULL AS INTEGER ) + col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( 53 ) * cor0.col0 + + col1 FROM tab0 AS cor0
----
-1186
-1758
-4626

query I rowsort
SELECT + col1 * + col2 * - col1 FROM tab1 AS cor0
----
-16224
-36504
-5700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 86 * - col1 + col0 col0 FROM tab0 AS cor0
----
7420
7915
8377

query I rowsort
SELECT DISTINCT - - col2 * col2 + - ( + col1 ) FROM tab1 AS cor0
----
2890
3239
9203

query I rowsort
SELECT ALL col0 * + col0 AS col2 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT ALL + cor0.col1 * col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT - - 83 * col0 AS col2 FROM tab0 cor0
----
1992
2905
7387

query I rowsort
SELECT ALL - col2 * - col1 * - 65 AS col2 FROM tab0 AS cor0
----
-184470
-485030
-6305

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 47 + - col0 col1 FROM tab0 AS cor0
----
-42
12
23

query I rowsort
SELECT DISTINCT col1 * col0 + col1 AS col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT ALL - ( + col1 ) * cor0.col1 FROM tab1 AS cor0
----
-100
-169
-676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT col2 + - col1 * + col0 FROM tab0 AS cor0
----
-2031
-3394
-8017

onlyif mysql # use DIV operator for integer division
query I rowsort label-2159
SELECT ALL - col2 * cor0.col1 + col2 DIV ( col0 ) FROM tab1 AS cor0
----
-1247
-1386
-570

skipif mysql # not compatible
query I rowsort label-2159
SELECT ALL - col2 * cor0.col1 + col2 / ( col0 ) FROM tab1 AS cor0
----
-1247
-1386
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-2160
SELECT - - col2 + - col1 DIV - col1 col2 FROM tab2 AS cor0
----
27
28
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2160
SELECT - - col2 + - col1 / - col1 col2 FROM tab2 AS cor0
----
27
28
39

query I rowsort
SELECT ALL cor0.col2 * - 52 + - cor0.col1 FROM tab1 AS cor0
----
-2834
-2974
-5005

query I rowsort
SELECT DISTINCT + col1 * 73 AS col0 FROM tab0 AS cor0
----
6278
6643
7081

query I rowsort
SELECT col1 + + cor0.col2 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT DISTINCT col2 * 34 + cor0.col1 AS col1 FROM tab1 cor0
----
1862
1948
3277

query I rowsort
SELECT - col0 * 46 + + col1 AS col2 FROM tab2 AS cor0
----
-291
-3529
-3617

query I rowsort
SELECT ALL + col1 * col2 - + col1 AS col0 FROM tab1
----
1235
1378
560

query I rowsort
SELECT cor0.col0 - 19 AS col1 FROM tab1 AS cor0
----
-16
45
61

query I rowsort
SELECT ALL 4 FROM tab1, tab0 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query I rowsort
SELECT + col1 + - 90 * - col2 FROM tab2 cor0
----
2399
2461
3437

query I rowsort
SELECT ALL col0 - - col1 AS col0 FROM tab2
----
137
38
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col2 col0 FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT - cor0.col2 + + col0 * - ( cor0.col0 ) * col0 FROM tab0 AS cor0
----
-13857
-42876
-705051

query I rowsort
SELECT - col1 * - 67 + 24 FROM tab2 AS cor0
----
1163
2101
3977

query I rowsort
SELECT - + col1 + - 20 AS col1 FROM tab0 AS cor0
----
-106
-111
-117

query I rowsort
SELECT ALL + 13 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT DISTINCT - - col0 + col2 * col1 FROM tab1 cor0
----
1328
1407
634

query I rowsort
SELECT DISTINCT 85 + - cor0.col1 AS col2 FROM tab2, tab0 cor0
----
-1
-12
-6

query I rowsort
SELECT - - col2 + 45 FROM tab2 AS cor0
----
71
72
83

query I rowsort
SELECT + 84 + col0 AS col2 FROM tab0 AS cor0
----
108
119
173

query I rowsort
SELECT ( ( col1 ) ) + + 28 AS col1 FROM tab2 AS cor0
----
45
59
87

query I rowsort
SELECT DISTINCT col2 * 38 * - 20 AS col1 FROM tab2
----
-19760
-20520
-28880

query I rowsort
SELECT DISTINCT 35 AS col2 FROM tab1, tab1 AS cor0, tab1 cor1
----
35

query I rowsort
SELECT + cor0.col1 * col1 * 0 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT cor0.col1 * col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT - - tab1.col0 AS col0 FROM tab1, tab2, tab0 AS cor0
----
3
64
80

query I rowsort
SELECT 85 FROM tab1, tab0 cor0, tab0 cor1
----
27 values hashing to e4cf94cf0cc632acff30ad1dac617cb7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + tab1.col1 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to a842fe91e5dc1346a95ce3987ec1b2fb

query I rowsort
SELECT DISTINCT - cor1.col0 FROM tab0, tab0 cor0, tab1 AS cor1
----
-3
-64
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * col0 col2 FROM tab2 AS cor0
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 32 col1 FROM tab2 AS cor0
----
32
32
32

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2191
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2191
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT + 94 * col2 AS col0 FROM tab0 cor0
----
3102
7708
94

query I rowsort
SELECT + ( col1 ) - 53 * 80 FROM tab1 AS cor0
----
-4214
-4227
-4230

query I rowsort
SELECT - + 59 * cor0.col1 AS col0 FROM tab2 AS cor0
----
-1003
-1829
-3481

query I rowsort
SELECT ALL 80 + - col2 + 51 AS col0 FROM tab2
----
104
105
93

query I rowsort
SELECT - col2 + - col0 * ( col0 ) * - col1 AS col0 FROM tab2 AS cor0
----
106059
1492
358930

query I rowsort
SELECT col2 * - col0 + - col0 AS col0 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT ALL + cor0.col2 * col0 AS col0 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-2199
SELECT 66 DIV - cor0.col0 FROM tab2 AS cor0
----
-9
0
0

skipif mysql # not compatible
query I rowsort label-2199
SELECT 66 / - cor0.col0 FROM tab2 AS cor0
----
-9
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2200
SELECT ALL + + cor0.col2 * col2 DIV - col2 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-2200
SELECT ALL + + cor0.col2 * col2 / - col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT + col0 + 65 FROM tab1 AS cor0
----
129
145
68

query I rowsort
SELECT - cor0.col2 * - col1 + - 25 * + col2 AS col1 FROM tab0 AS cor0
----
2013
5412
72

query I rowsort
SELECT + col2 + col1 * - 78 * - col1 AS col0 FROM tab1 AS cor0
----
13278
52782
7857

query I rowsort
SELECT - col0 + ( + ( col1 ) ) AS col0 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT - col1 * - ( col2 ) + col0 AS col2 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT 50 + + ( cor0.col1 ) FROM tab1, tab1 AS cor0
----
9 values hashing to d13b74a6250a3d46b136fc3843ac271f

query I rowsort
SELECT DISTINCT col0 + - col0 * 19 FROM tab2 AS cor0
----
-126
-1404
-1422

query I rowsort
SELECT ALL + col0 - - ( - 70 ) * - col2 FROM tab0 AS cor0
----
105
2334
5829

query I rowsort
SELECT ALL col1 + col1 AS col0 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT col2 + + 92 AS col2 FROM tab0 cor0
----
125
174
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-2211
SELECT ALL + col2 DIV col0 + col1 AS col1 FROM tab2 AS cor0
----
17
34
59

skipif mysql # not compatible
query I rowsort label-2211
SELECT ALL + col2 / col0 + col1 AS col1 FROM tab2 AS cor0
----
17
34
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 42 * col2 * cor0.col2 + - col2 * col2 col0 FROM tab0 AS cor0
----
-289132
-43
-46827

query I rowsort
SELECT DISTINCT 52 - cor0.col1 * + col2 AS col0 FROM tab1 AS cor0
----
-1196
-1352
-518

onlyif mysql # use DIV operator for integer division
query I rowsort label-2214
SELECT ALL - 84 DIV cor0.col0 AS col0 FROM tab1 AS cor0
----
-1
-1
-28

skipif mysql # not compatible
query I rowsort label-2214
SELECT ALL - 84 / cor0.col0 AS col0 FROM tab1 AS cor0
----
-1
-1
-28

query I rowsort
SELECT DISTINCT col2 + col1 * + cor0.col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT ALL - + col2 * - col2 + + cor0.col0 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT + 25 + cor0.col2 AS col1 FROM tab2 AS cor0
----
51
52
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-2218
SELECT DISTINCT - CAST( col1 AS SIGNED ) DIV col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2218
SELECT DISTINCT - CAST ( col1 AS INTEGER ) / col1 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ALL - col2 + 17 AS col1 FROM tab0 AS cor0
----
-16
-65
16

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2220
SELECT DISTINCT + CAST( - 81 AS SIGNED ) * col2 - col0 col0 FROM tab1 AS cor0
----
-4377
-4681
-7856

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2220
SELECT DISTINCT + CAST ( - 81 AS INTEGER ) * col2 - col0 col0 FROM tab1 AS cor0
----
-4377
-4681
-7856

query I rowsort
SELECT col0 * - ( 9 ) + - col1 FROM tab0
----
-302
-412
-892

onlyif mysql # use DIV operator for integer division
query I rowsort label-2222
SELECT ALL col1 DIV - tab1.col1 + - col0 AS col2 FROM tab1
----
-4
-65
-81

skipif mysql # not compatible
query I rowsort label-2222
SELECT ALL col1 / - tab1.col1 + - col0 AS col2 FROM tab1
----
-4
-65
-81

query I rowsort
SELECT ALL + + 16 - col1 AS col2 FROM tab0 AS cor0
----
-70
-75
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 53 col2 FROM tab1, tab0 cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda

query I rowsort
SELECT DISTINCT 23 AS col2 FROM tab2, tab2 AS cor0
----
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-2226
SELECT + ( col0 ) * - col1 DIV + col1 + 56 + + col0 col2 FROM tab0 AS cor0
----
56
56
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2226
SELECT + ( col0 ) * - col1 / + col1 + 56 + + col0 col2 FROM tab0 AS cor0
----
56
56
56

query I rowsort
SELECT 5 + + cor0.col0 * - col2 AS col2 FROM tab2 AS cor0
----
-184
-2023
-2997

query I rowsort
SELECT DISTINCT col0 + + col0 * col0 AS col1 FROM tab2 AS cor0
----
56
6162
6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-2229
SELECT ALL + col1 DIV col1 AS col1 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2229
SELECT ALL + col1 / col1 AS col1 FROM tab1 cor0
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2230
SELECT ALL - CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-2230
SELECT ALL - CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ALL + 98 AS col0 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2

query I rowsort
SELECT ( + 18 ) FROM tab1, tab2 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT DISTINCT - col1 + + col1 - + cor0.col0 AS col0 FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT - - col0 + col1 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT 50 + - tab0.col0 AS col1 FROM tab0
----
-39
15
26

query I rowsort
SELECT DISTINCT ( col1 ) * col2 AS col0 FROM tab1
----
1248
1404
570

query I rowsort
SELECT + col1 * + col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT + ( col2 ) + - col2 * 25 FROM tab0
----
-1968
-24
-792

query I rowsort
SELECT DISTINCT + col1 * + 23 FROM tab2
----
1357
391
713

query I rowsort
SELECT 28 * col2 + + tab0.col2 AS col2 FROM tab0
----
2378
29
957

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2241
SELECT col1 + - col1 * col1 * - CAST( + col2 + + col0 AS SIGNED ) AS col2 FROM tab2
----
32705
33830
362083

skipif mysql # not compatible
query I rowsort label-2241
SELECT col1 + - col1 * col1 * - CAST ( + col2 + + col0 AS INTEGER ) AS col2 FROM tab2
----
32705
33830
362083

query I rowsort
SELECT DISTINCT - - col1 + col0 * 7 AS col0 FROM tab2 AS cor0
----
570
605
80

query I rowsort
SELECT DISTINCT col1 * 8 + col2 AS col2 FROM tab2 AS cor0
----
174
275
498

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2244
SELECT ALL + + col0 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2244
SELECT ALL + + col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2245
SELECT - + cor0.col0 - CAST( NULL AS SIGNED ) col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2245
SELECT - + cor0.col0 - CAST ( NULL AS INTEGER ) col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2246
SELECT ALL - col0 DIV col2 FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-2246
SELECT ALL - col0 / col2 FROM tab0 AS cor0
----
-1
-35
0

query I rowsort
SELECT DISTINCT col2 + + ( + cor0.col0 ) AS col2 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT - cor0.col0 + + col2 AS col0 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT + col0 + - col1 FROM tab2 cor0
----
-24
19
62

query I rowsort
SELECT DISTINCT col0 * ( - 0 ) AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2251
SELECT ALL + col2 * col1 + + CAST( NULL AS SIGNED ) + 46 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2251
SELECT ALL + col2 * col1 + + CAST ( NULL AS INTEGER ) + 46 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 - - col1 AS col0 FROM tab1
----
20
26
52

query I rowsort
SELECT - cor1.col2 * + 41 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to 37676c69ec9f9cc7e3d9ba1e062c3882

query I rowsort
SELECT DISTINCT + col1 + + col0 * col2 FROM tab1
----
188
3658
7693

query I rowsort
SELECT ALL + - 84 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f

query I rowsort
SELECT DISTINCT + col1 * col1 * + col0 AS col2 FROM tab2 AS cor0
----
22831
271518
6727

query I rowsort
SELECT DISTINCT - col1 * ( 19 ) FROM tab2 AS cor0
----
-1121
-323
-589

onlyif mysql # use DIV operator for integer division
query I rowsort label-2258
SELECT + col1 + - col2 DIV col0 + col2 AS col2 FROM tab1 AS cor0
----
108
62
67

skipif mysql # not compatible
query I rowsort label-2258
SELECT + col1 + - col2 / col0 + col2 AS col2 FROM tab1 AS cor0
----
108
62
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 + 97 col1 FROM tab1 AS cor0
----
71
84
87

query I rowsort
SELECT + + col0 * col0 + + col2 AS col2 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT col1 * 78 FROM tab1 AS cor0
----
1014
2028
780

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2262
SELECT - col2 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2262
SELECT - col2 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 79 + + col1 FROM tab2 AS cor0
----
-20
-48
-62

query I rowsort
SELECT ALL cor0.col2 + 1 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to a4eb83f40d87ef4bb021bb35a3b03309

query I rowsort
SELECT DISTINCT - + cor0.col2 + + 7 AS col2 FROM tab0, tab2 AS cor0
----
-19
-20
-31

query I rowsort
SELECT ( col0 ) * 1 FROM tab0
----
24
35
89

query I rowsort
SELECT DISTINCT + tab1.col1 + + col1 FROM tab1
----
20
26
52

query I rowsort
SELECT DISTINCT 9 AS col2 FROM tab1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 26 col2 FROM tab1, tab0 AS cor0, tab1 cor1
----
27 values hashing to 4e49eac022daeae6f88f610644ba3754

onlyif mysql # use DIV operator for integer division
query I rowsort label-2270
SELECT col1 DIV + col1 AS col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2270
SELECT col1 / + col1 AS col2 FROM tab0
----
1
1
1

query I rowsort
SELECT DISTINCT - col0 * tab0.col1 AS col0 FROM tab0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col2 col1 FROM tab2
----
189
2028
3002

query I rowsort
SELECT col2 * - col1 AS col2 FROM tab0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2274
SELECT + 14 DIV + tab0.col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2274
SELECT + 14 / + tab0.col0 FROM tab0
----
0
0
0

query I rowsort
SELECT - col2 + 51 AS col0 FROM tab1
----
-3
-45
-6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2276
SELECT col0 / CAST( NULL AS SIGNED ) + + col0 * col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2276
SELECT col0 / CAST ( NULL AS INTEGER ) + + col0 * col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * cor0.col2 AS col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT - col0 * - col0 * col2 AS col1 FROM tab0 AS cor0
----
1225
19008
649522

query I rowsort
SELECT ALL col0 * - 68 FROM tab1
----
-204
-4352
-5440

query I rowsort
SELECT 29 AS col2 FROM tab1, tab2 cor0, tab2 AS cor1
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2281
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * col2 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2281
SELECT DISTINCT + CAST ( NULL AS REAL ) * col2 AS col1 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 col1 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-2283
SELECT - + cor0.col2 DIV 58 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2283
SELECT - + cor0.col2 / 58 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2284
SELECT ALL 79 DIV col0 AS col2 FROM tab0 cor0
----
0
2
3

skipif mysql # not compatible
query I rowsort label-2284
SELECT ALL 79 / col0 AS col2 FROM tab0 cor0
----
0
2
3

query I rowsort
SELECT DISTINCT - col2 + cor0.col0 AS col0 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT ALL - ( cor0.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-2287
SELECT ALL CAST( NULL AS SIGNED ) * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2287
SELECT ALL CAST ( NULL AS INTEGER ) * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 63 FROM tab1, tab2 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT - + cor0.col2 AS col1 FROM tab2, tab0, tab2 cor0
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

onlyif mysql # use DIV operator for integer division
query I rowsort label-2290
SELECT ALL tab2.col0 DIV col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2290
SELECT ALL tab2.col0 / col0 FROM tab2
----
1
1
1

query I rowsort
SELECT ( ( col1 ) ) + 58 AS col2 FROM tab1
----
68
71
84

query I rowsort
SELECT - col1 * cor0.col2 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT 84 * col1 FROM tab1 AS cor0
----
1092
2184
840

query I rowsort
SELECT col2 + cor0.col2 * col0 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT + 94 * + cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fe51505b9810a540072688ce59832aa0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col1 * ( + ( col0 ) ) col0 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT - + col1 * + cor0.col0 * - 5 FROM tab0 AS cor0
----
10320
16975
40495

onlyif mysql # use DIV operator for integer division
query I rowsort label-2298
SELECT ALL + 68 DIV + col2 AS col0 FROM tab0 cor0
----
0
2
68

skipif mysql # not compatible
query I rowsort label-2298
SELECT ALL + 68 / + col2 AS col0 FROM tab0 cor0
----
0
2
68

query I rowsort
SELECT + 84 AS col0 FROM tab1 AS cor0
----
84
84
84

query I rowsort
SELECT + 14 FROM tab1 cor0
----
14
14
14

query I rowsort
SELECT + 35 FROM tab0 AS cor0
----
35
35
35

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2, tab2 cor1, tab0, tab1 AS cor2
----
3645 values hashing to d865c68b86e66898eeac28f450e48e70

onlyif mysql # use DIV operator for integer division
query I rowsort label-2303
SELECT col1 DIV col0 - + col0 FROM tab1
----
-64
-80
5

skipif mysql # not compatible
query I rowsort label-2303
SELECT col1 / col0 - + col0 FROM tab1
----
-64
-80
5

query I rowsort
SELECT - cor0.col1 * col0 + - col1 * + col2 FROM tab1 AS cor0
----
-1210
-1482
-2288

query I rowsort
SELECT - col2 * + ( col2 ) FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT + col0 * 14 FROM tab1 AS cor0
----
1120
42
896

query I rowsort
SELECT ALL cor0.col0 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT + cor1.col0 * + cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d678abade8bf70a0dcfdc79d6219306c

query I rowsort
SELECT col0 * ( - cor0.col1 ) + col1 AS col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT 33 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query I rowsort
SELECT ALL + + ( + col2 ) * + cor0.col1 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT DISTINCT + - ( + col0 ) AS col2 FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT + col2 + 66 * col2 AS col0 FROM tab2 AS cor0
----
1742
1809
2546

query I rowsort
SELECT cor1.col0 AS col1 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT ALL + 16 FROM tab2, tab0 AS cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * + 4 + - col0 col0 FROM tab2 AS cor0
----
-11
117
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 - col2 col2 FROM tab1 AS cor0
----
-28
-47
-83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2318
SELECT DISTINCT - CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-2318
SELECT DISTINCT - CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT - col0 * - 48 AS col0 FROM tab1 AS cor0
----
144
3072
3840

query I rowsort
SELECT - col2 * + cor0.col0 + col2 * col2 FROM tab0 AS cor0
----
-34
-574
297

query I rowsort
SELECT DISTINCT + col1 * - ( - 61 ) * - col1 FROM tab0 AS cor0
----
-451156
-505141
-573949

query I rowsort
SELECT + cor0.col2 * - col1 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT - col2 + + col2 * col0 AS col0 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT - + col1 AS col1 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT ALL + col2 - ( - col0 ) FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT DISTINCT col2 * + col0 AS col2 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-2327
SELECT DISTINCT + - col1 + col0 * - col0 DIV col0 FROM tab1 AS cor0
----
-29
-74
-93

skipif mysql # not compatible
query I rowsort label-2327
SELECT DISTINCT + - col1 + col0 * - col0 / col0 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT ALL + col1 + 17 * + col2 FROM tab1 AS cor0
----
1645
944
979

onlyif mysql # use DIV operator for integer division
query I rowsort label-2329
SELECT - col2 + - col2 DIV ( + col0 ) FROM tab2
----
-26
-30
-38

skipif mysql # not compatible
query I rowsort label-2329
SELECT - col2 + - col2 / ( + col0 ) FROM tab2
----
-26
-30
-38

query I rowsort
SELECT ALL - col0 + tab1.col1 * col1 FROM tab1
----
36
673
89

query I rowsort
SELECT ALL + col1 * col0 + col1 FROM tab2
----
1360
248
4661

query I rowsort
SELECT DISTINCT col1 + + tab1.col1 AS col1 FROM tab1
----
20
26
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-2333
SELECT DISTINCT + col1 + col1 DIV ( - 0 + + col0 ) FROM tab0
----
89
92
99

skipif mysql # not compatible
query I rowsort label-2333
SELECT DISTINCT + col1 + col1 / ( - 0 + + col0 ) FROM tab0
----
89
92
99

query I rowsort
SELECT DISTINCT + 14 FROM tab0, tab2, tab1 AS cor0
----
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 27 + - col2 col1 FROM tab0
----
-109
-28
-60

query I rowsort
SELECT ALL col1 + ( + col2 ) * col1 FROM tab1 AS cor0
----
1261
1430
580

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2337
SELECT + col2 * CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-2337
SELECT + col2 * CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2338
SELECT DISTINCT + col1 * CAST( - col1 AS SIGNED ) + + cor0.col0 * - 8 AS col0 FROM tab1 AS cor0
----
-612
-700
-809

skipif mysql # not compatible
query I rowsort label-2338
SELECT DISTINCT + col1 * CAST ( - col1 AS INTEGER ) + + cor0.col0 * - 8 AS col0 FROM tab1 AS cor0
----
-612
-700
-809

query I rowsort
SELECT DISTINCT + cor0.col0 * - 51 AS col2 FROM tab2 AS cor0
----
-357
-3978
-4029

query I rowsort
SELECT DISTINCT + col0 * col1 - col2 FROM tab0 cor0
----
2031
3394
8017

query I rowsort
SELECT - col2 * + cor0.col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL + col2 + 93 * col2 + + col1 AS col1 FROM tab0 AS cor0
----
191
3188
7799

query I rowsort
SELECT + col1 + - 99 FROM tab0
----
-13
-2
-8

query I rowsort
SELECT DISTINCT - col2 * - 90 AS col1 FROM tab1
----
4860
5130
8640

query I rowsort
SELECT ALL + 79 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

onlyif mysql # use DIV operator for integer division
query I rowsort label-2346
SELECT ALL 86 DIV - 46 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2346
SELECT ALL 86 / - 46 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT + cor0.col1 + - col0 * col1 * col2 + - col2 FROM tab0 AS cor0
----
-3299
-664109
-68059

query I rowsort
SELECT ( 21 ) + tab1.col0 FROM tab1
----
101
24
85

query I rowsort
SELECT ALL - cor1.col0 FROM tab1, tab0 AS cor0, tab1 AS cor1, tab2 cor2
----
81 values hashing to 08e380e50b0cb64601bc84e5254deef4

query I rowsort
SELECT col1 + col1 * - 18 AS col2 FROM tab1 cor0
----
-170
-221
-442

query I rowsort
SELECT DISTINCT col0 * cor0.col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL + - col1 * - col0 + col2 AS col0 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT cor0.col2 * - cor0.col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT - - col0 * - col1 AS col2 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL - + 45 * + col1 + + col0 FROM tab0 AS cor0
----
-3846
-4006
-4330

query I rowsort
SELECT col1 * col2 * ( 40 ) + col1 AS col1 FROM tab2 AS cor0
----
25857
33511
61419

query I rowsort
SELECT DISTINCT - cor0.col1 * cor0.col1 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT col2 * col0 + col2 FROM tab0 AS cor0
----
36
7380
825

onlyif mysql # use DIV operator for integer division
query I rowsort label-2359
SELECT - + col0 DIV + col2 + 95 + col1 * - col0 AS col2 FROM tab1 AS cor0
----
-546
-945
17

skipif mysql # not compatible
query I rowsort label-2359
SELECT - + col0 / + col2 + 95 + col1 * - col0 AS col2 FROM tab1 AS cor0
----
-546
-945
17

query I rowsort
SELECT DISTINCT - col2 * - col0 + - col2 FROM tab0 AS cor0
----
34
7216
759

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2361
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-2361
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT 41 AS col2 FROM tab0
----
41
41
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query I rowsort
SELECT DISTINCT + 43 + - col0 AS col2 FROM tab1
----
-21
-37
40

query I rowsort
SELECT DISTINCT - - col1 * - col1 + + 79 FROM tab0 cor0
----
-7317
-8202
-9330

query I rowsort
SELECT + 63 * col0 * col0 + col0 + - col0 * col0 FROM tab2 cor0
----
3045
377286
387021

query I rowsort
SELECT ALL - 86 AS col2 FROM tab1 AS cor0
----
-86
-86
-86

query I rowsort
SELECT 0 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + + col1 + + col0 * - cor0.col0 - + col0 * - col2 FROM tab1 AS cor0
----
-438
1293
179

query I rowsort
SELECT DISTINCT col0 + + col2 * col0 * ( + col2 ) FROM tab2 AS cor0
----
114155
5110
52806

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2371
SELECT DISTINCT - 48 * col2 + CAST( + 45 * col0 AS SIGNED ) + - 8 FROM tab2 AS cor0
----
-989
1723
2254

skipif mysql # not compatible
query I rowsort label-2371
SELECT DISTINCT - 48 * col2 + CAST ( + 45 * col0 AS INTEGER ) + - 8 FROM tab2 AS cor0
----
-989
1723
2254

query I rowsort
SELECT - - cor0.col2 * col0 + col0 AS col2 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT - + col1 + - col2 AS col0 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT ALL + + 29 + + col0 FROM tab0 AS cor0
----
118
53
64

query I rowsort
SELECT ALL + - col1 + col1 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 83 * + 4 * + cor0.col2 AS col1 FROM tab1, tab0 AS cor0
----
10956
27224
332

query I rowsort
SELECT ALL + + col2 * - col1 + col1 * col2 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT 71 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * ( 77 ) col1 FROM tab1 AS cor0
----
-4158
-4389
-7392

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2380
SELECT - col0 * CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2380
SELECT - col0 * CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col1 AS col1 FROM tab2 cor0
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-2382
SELECT DISTINCT col1 DIV + col2 + col0 + ( - 44 ) AS col2 FROM tab0 AS cor0
----
-18
46
88

skipif mysql # not compatible
query I rowsort label-2382
SELECT DISTINCT col1 / + col2 + col0 + ( - 44 ) AS col2 FROM tab0 AS cor0
----
-18
46
88

query I rowsort
SELECT ALL + col0 + 31 * - col1 FROM tab1 AS cor0
----
-246
-323
-803

query I rowsort
SELECT ALL - 22 + tab2.col0 * + col0 AS col1 FROM tab2
----
27
6062
6219

query I rowsort
SELECT - 55 * + 43 AS col0 FROM tab1 cor0
----
-2365
-2365
-2365

query I rowsort
SELECT DISTINCT - - 67 FROM tab2 AS cor0
----
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + cor0.col2 * col0 * col1 col2 FROM tab0 AS cor0
----
3492
664209
68198

query I rowsort
SELECT - + 60 + - col1 AS col2 FROM tab1 AS cor0
----
-70
-73
-86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2389
SELECT ALL - CAST( - cor0.col2 AS SIGNED ) FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-2389
SELECT ALL - CAST ( - cor0.col2 AS INTEGER ) FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT - 34 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

query I rowsort
SELECT ALL cor1.col2 + ( + 60 ) FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to e1fa031030238db7c2f33ebd5955033f

query I rowsort
SELECT ALL + col1 * cor0.col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL - col0 * + 36 AS col0 FROM tab1 AS cor0
----
-108
-2304
-2880

query I rowsort
SELECT + 92 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT - - 7 + - col0 AS col2 FROM tab2 AS cor0
----
-71
-72
0

query I rowsort
SELECT 84 AS col0 FROM tab1 cor0
----
84
84
84

query I rowsort
SELECT ALL 54 * + col2 - col0 FROM tab1
----
2913
3014
5104

query I rowsort
SELECT DISTINCT + col1 - col1 AS col0 FROM tab1
----
0

query I rowsort
SELECT - 32 * col2 + col0 FROM tab1 AS cor0
----
-1725
-1760
-2992

query I rowsort
SELECT ALL - 66 FROM tab2 AS cor0
----
-66
-66
-66

query I rowsort
SELECT - - ( col0 ) - col0 * - col1 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT - cor0.col0 * cor0.col0 + - ( - col0 + col1 ) AS col1 FROM tab2 AS cor0
----
-6065
-6179
-73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2403
SELECT DISTINCT + cor0.col0 * - col1 + CAST( NULL AS SIGNED ) * - 91 + col1 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2403
SELECT DISTINCT + cor0.col0 * - col1 + CAST ( NULL AS INTEGER ) * - 91 + col1 AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2404
SELECT ALL + + 91 DIV + col0 + col1 + col2 FROM tab1 AS cor0
----
110
110
68

skipif mysql # not compatible
query I rowsort label-2404
SELECT ALL + + 91 / + col0 + col1 + col2 FROM tab1 AS cor0
----
110
110
68

query I rowsort
SELECT ALL ( + tab0.col0 ) + col1 FROM tab0
----
110
132
180

query I rowsort
SELECT ALL - 24 + - col0 FROM tab1
----
-104
-27
-88

query I rowsort
SELECT + tab1.col2 + col1 + tab1.col1 FROM tab1
----
106
122
77

query I rowsort
SELECT ALL 1 - col0 AS col0 FROM tab0
----
-23
-34
-88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2409
SELECT CAST( NULL AS SIGNED ) + col0 * + col2 / + col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2409
SELECT CAST ( NULL AS INTEGER ) + col0 * + col2 / + col0 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + - 34 * 66 AS col0 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 5e7adec597d2a9afb400f1d2fc8e80e0

query I rowsort
SELECT ALL + 17 * + ( col1 ) + + 83 AS col0 FROM tab0
----
1545
1630
1732

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 * ( - cor0.col1 ) + - cor0.col0 col0 FROM tab0 AS cor0
----
7372
8192
9374

query I rowsort
SELECT DISTINCT + - col1 * - ( + 78 ) * + col0 - + cor0.col2 AS col1 FROM tab0 cor0
----
160959
264809
631640

query I rowsort
SELECT ALL - col0 - - ( + col0 ) * - col1 * 48 FROM tab1 AS cor0
----
-30784
-3747
-50000

query I rowsort
SELECT DISTINCT col0 * - ( - cor0.col2 * col1 ) AS col2 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT + col0 + + 65 * - 7 AS col2 FROM tab0 AS cor0
----
-366
-420
-431

query I rowsort
SELECT ALL + 44 FROM tab1, tab2 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT 89 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

onlyif mysql # use DIV operator for integer division
query I rowsort label-2419
SELECT - col2 DIV - col2 + cor0.col1 * col2 FROM tab0 AS cor0
----
2839
7463
98

skipif mysql # not compatible
query I rowsort label-2419
SELECT - col2 / - col2 + cor0.col1 * col2 FROM tab0 AS cor0
----
2839
7463
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) + col2 col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + - 15 * + 54 AS col2 FROM tab0 AS cor0
----
-810
-810
-810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 62 col1 FROM tab0, tab0 cor0
----
62

query I rowsort
SELECT + col2 + col2 + + 92 FROM tab0 AS cor0
----
158
256
94

query I rowsort
SELECT - 42 * - cor0.col1 FROM tab0 AS cor0
----
3612
3822
4074

query I rowsort
SELECT - + 40 + col2 * col0 + - col2 * + col2 FROM tab2 AS cor0
----
-580
1312
1518

query I rowsort
SELECT ALL - col0 * + col1 + ( - 20 ) - - cor0.col2 FROM tab0 AS cor0
----
-2051
-3414
-8037

query I rowsort
SELECT DISTINCT - ( + cor0.col0 ) + col1 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT - 12 + col2 FROM tab0 AS cor0
----
-11
21
70

query I rowsort
SELECT 76 + + tab0.col1 FROM tab0
----
162
167
173

query I rowsort
SELECT DISTINCT col0 + + col0 * col1 * + col1 FROM tab0
----
177528
329350
737098

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col0 + 44 col1 FROM tab2
----
122
123
51

query I rowsort
SELECT ALL + col2 + + tab0.col1 FROM tab0
----
119
173
98

query I rowsort
SELECT + 23 * col0 * + 65 + + 62 + col1 AS col2 FROM tab2 AS cor0
----
10558
116731
118184

query I rowsort
SELECT ALL 50 + tab0.col1 * col2 AS col1 FROM tab0
----
147
2888
7512

query I rowsort
SELECT - 5 + tab2.col2 + col1 FROM tab2
----
50
53
80

query I rowsort
SELECT - + col0 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 67 col0 FROM tab0
----
67
67
67

query I rowsort
SELECT ALL - col1 * cor0.col2 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2439
SELECT 9 * col1 DIV + cor0.col1 + + 41 AS col1 FROM tab2 AS cor0
----
50
50
50

skipif mysql # not compatible
query I rowsort label-2439
SELECT 9 * col1 / + cor0.col1 + + 41 AS col1 FROM tab2 AS cor0
----
50
50
50

query I rowsort
SELECT ALL + col2 - + col2 AS col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT - 28 AS col1 FROM tab2
----
-28
-28
-28

query I rowsort
SELECT ALL + - col2 + + 6 * - 21 FROM tab2 AS cor0
----
-152
-153
-164

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2443
SELECT DISTINCT col0 / CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2443
SELECT DISTINCT col0 / CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 col2 FROM tab1 AS cor0
----
-3
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2445
SELECT + - col1 * ( 69 ) DIV + col1 col2 FROM tab2 AS cor0
----
-69
-69
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2445
SELECT + - col1 * ( 69 ) / + col1 col2 FROM tab2 AS cor0
----
-69
-69
-69

query I rowsort
SELECT - cor0.col2 AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT 5 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d

query I rowsort
SELECT tab2.col1 - 77 FROM tab2
----
-18
-46
-60

query I rowsort
SELECT DISTINCT - col0 + - col0 * - col0 FROM tab1
----
4032
6
6320

query I rowsort
SELECT DISTINCT - tab2.col1 * tab2.col2 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT - 76 FROM tab2, tab1 AS cor0
----
-76

query I rowsort
SELECT + ( + 43 ) * + cor0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to ca3b5386786f44a3c284894966f3d484

query I rowsort
SELECT + + col1 + + col1 * - col1 FROM tab2 AS cor0
----
-272
-3422
-930

query I rowsort
SELECT - - col0 + 0 AS col2 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT 17 FROM tab1, tab0 AS cor0 CROSS JOIN tab2
----
27 values hashing to e0dd9155e4d67132637a04c18ef46b2a

query I rowsort
SELECT + - col1 * + ( cor0.col2 ) * col2 - ( col1 ) * col1 AS col1 FROM tab1 AS cor0
----
-119977
-32590
-76492

query I rowsort
SELECT + ( col2 ) - col0 * - col2 AS col2 FROM tab0 cor0
----
36
7380
825

query I rowsort
SELECT col1 * + col1 + col0 FROM tab1 AS cor0
----
164
249
679

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2459
SELECT DISTINCT CAST( NULL AS DECIMAL ) + + col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2459
SELECT DISTINCT CAST ( NULL AS REAL ) + + col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - ( - 39 ) * + col2 - ( col2 * col1 ) FROM tab0 cor0
----
-1551
-4264
-58

query I rowsort
SELECT col2 * - col0 + + ( col2 ) * col1 + - col2 * col1 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2462
SELECT DISTINCT CAST( col2 AS SIGNED ) * col2 + - col2 * + col2 + col0 AS col2 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-2462
SELECT DISTINCT CAST ( col2 AS INTEGER ) * col2 + - col2 * + col2 + col0 AS col2 FROM tab0
----
24
35
89

query I rowsort
SELECT - - col1 + col1 * cor0.col1 - col0 AS col1 FROM tab2 cor0
----
227
3462
985

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2464
SELECT DISTINCT + + ( col2 ) * - CAST( NULL AS SIGNED ) * - col1 col0 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2464
SELECT DISTINCT + + ( col2 ) * - CAST ( NULL AS INTEGER ) * - col1 col0 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col0 * col2 col1 FROM tab1
----
188
3658
7693

query I rowsort
SELECT + - col1 * - col1 * col2 + - col0 * - col0 FROM tab2 AS cor0
----
17223
25996
96590

query I rowsort
SELECT + + col2 + + col0 + col2 FROM tab0 AS cor0
----
253
37
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-2468
SELECT + ( col0 ) DIV + col2 + + col2 AS col1 FROM tab0 AS cor0
----
33
36
83

skipif mysql # not compatible
query I rowsort label-2468
SELECT + ( col0 ) / + col2 + + col2 AS col1 FROM tab0 AS cor0
----
33
36
83

query I rowsort
SELECT - 4 * + col0 FROM tab0 AS cor0
----
-140
-356
-96

query I rowsort
SELECT ALL - col0 + + cor0.col2 AS col2 FROM tab0 cor0
----
-34
-7
9

query I rowsort
SELECT ALL - - 6 * - 63 FROM tab0 cor0
----
-378
-378
-378

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2472
SELECT DISTINCT CAST( 62 AS SIGNED ) FROM tab1 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-2472
SELECT DISTINCT CAST ( 62 AS INTEGER ) FROM tab1 AS cor0
----
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col1 * col0 col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT + + col0 + + col0 AS col0 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT + cor0.col2 * col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT col1 + col0 * col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT DISTINCT 46 * col1 FROM tab2 AS cor0
----
1426
2714
782

query I rowsort
SELECT ALL + - col0 * col1 + + cor0.col1 AS col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

onlyif mysql # use DIV operator for integer division
query I rowsort label-2479
SELECT col0 DIV col0 AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2479
SELECT col0 / col0 AS col0 FROM tab1
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2480
SELECT ALL + CAST( NULL AS SIGNED ) + cor0.col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2480
SELECT ALL + CAST ( NULL AS INTEGER ) + cor0.col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * col2 * col2 AS col2 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT - ( - cor0.col0 ) * - col0 AS col2 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT - col1 + + ( + col2 ) + col0 FROM tab2 AS cor0
----
100
3
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-2484
SELECT ALL + - col1 DIV - ( - col2 ) AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2484
SELECT ALL + - col1 / - ( - col2 ) AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col0 * 63 AS col0 FROM tab0 AS cor0
----
1512
2205
5607

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * 83 + col0 col0 FROM tab2 AS cor0
----
1490
2580
4975

query I rowsort
SELECT ALL + 10 FROM tab1 AS cor0
----
10
10
10

query I rowsort
SELECT - - 2 * cor0.col1 AS col1 FROM tab1 AS cor0
----
20
26
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * + col2 + ( col0 ) col2 FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT tab1.col2 + 9 FROM tab1
----
105
63
66

query I rowsort
SELECT ALL + 15 * col1 + - ( - col0 + col0 ) * cor0.col1 AS col1 FROM tab0 AS cor0
----
1290
1365
1455

query I rowsort
SELECT DISTINCT - col0 + - col2 * ( col0 ) - cor0.col0 AS col0 FROM tab1 AS cor0
----
-168
-3776
-7840

query I rowsort
SELECT ALL + col1 * - cor0.col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT - + cor1.col1 + + ( 31 ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 097bcc3fdbfa313cfe42737379b42efa

onlyif mysql # use DIV operator for integer division
query I rowsort label-2495
SELECT ALL col0 * + col1 + - col2 DIV ( - col2 ) FROM tab1
----
1041
641
79

skipif mysql # not compatible
query I rowsort label-2495
SELECT ALL col0 * + col1 + - col2 / ( - col2 ) FROM tab1
----
1041
641
79

query I rowsort
SELECT DISTINCT col0 * + col2 AS col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT + col2 * col2 + cor0.col1 AS col2 FROM tab2 AS cor0
----
1461
735
760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 49 + col0 col0 FROM tab0 AS cor0
----
-1152
-1680
-4272

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2499
SELECT ALL - col1 * CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-2499
SELECT ALL - col1 * CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT + - col2 * col0 - + col0 AS col2 FROM tab0 AS cor0
----
-70
-7387
-816

query I rowsort
SELECT ALL + col1 + 23 * col1 + col1 * - col0 FROM tab2
----
-3186
-935
527

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2502
SELECT - CAST( NULL AS SIGNED ) FROM tab1, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2502
SELECT - CAST ( NULL AS INTEGER ) FROM tab1, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # use DIV operator for integer division
query I rowsort label-2503
SELECT ALL tab0.col0 DIV - col2 + + 21 * - col1 AS col1 FROM tab0
----
-1806
-1912
-2072

skipif mysql # not compatible
query I rowsort label-2503
SELECT ALL tab0.col0 / - col2 + + 21 * - col1 AS col1 FROM tab0
----
-1806
-1912
-2072

query I rowsort
SELECT cor0.col2 AS col1 FROM tab1, tab2, tab1 cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2505
SELECT DISTINCT - col2 + - CAST( NULL AS DECIMAL ) - + 2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2505
SELECT DISTINCT - col2 + - CAST ( NULL AS REAL ) - + 2 FROM tab2
----
NULL

query I rowsort
SELECT ALL 95 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query I rowsort
SELECT ALL col1 + col2 AS col2 FROM tab2
----
55
58
85

query I rowsort
SELECT col2 * + 8 FROM tab2 AS cor0
----
208
216
304

query I rowsort
SELECT - - 4 + ( + col2 ) + ( col1 * col0 ) AS col0 FROM tab0 AS cor0
----
2101
3400
8185

query I rowsort
SELECT DISTINCT - + col2 * 98 * + 62 FROM tab2 AS cor0
----
-157976
-164052
-230888

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 38 * col0 * - col0 col2 FROM tab2
----
-1862
-231192
-237158

query I rowsort
SELECT col1 * - 9 FROM tab2
----
-153
-279
-531

query I rowsort
SELECT 81 FROM tab1, tab2 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query I rowsort
SELECT DISTINCT - 80 * col1 FROM tab2 AS cor0
----
-1360
-2480
-4720

query I rowsort
SELECT col1 + 88 * - col1 + ( cor0.col1 ) * cor0.col0 FROM tab2 AS cor0
----
-136
-2480
-531

query I rowsort
SELECT + - col0 + - 50 * + col2 AS col2 FROM tab2 AS cor0
----
-1357
-1378
-1979

query I rowsort
SELECT DISTINCT 77 * ( col2 ) AS col0 FROM tab1 AS cor0
----
4158
4389
7392

query I rowsort
SELECT DISTINCT + - col2 * + ( col1 ) AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2519
SELECT - 82 * col0 + - col2 * - CAST( NULL AS SIGNED ) + - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2519
SELECT - 82 * col0 + - col2 * - CAST ( NULL AS INTEGER ) + - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 15 AS col1 FROM tab2
----
15
15
15

query I rowsort
SELECT ( + col1 ) * + col1 * 7 + - col2 FROM tab1
----
1087
4678
643

query I rowsort
SELECT 43 AS col1 FROM tab1
----
43
43
43

query I rowsort
SELECT DISTINCT - + 65 AS col1 FROM tab0, tab2, tab0 AS cor0
----
-65

query I rowsort
SELECT - col0 - - col2 AS col2 FROM tab1
----
-7
16
51

query I rowsort
SELECT ALL - - col0 + col1 + col2 * + col1 FROM tab0 AS cor0
----
229
2948
7642

query I rowsort
SELECT DISTINCT + ( cor1.col0 ) FROM tab1, tab0 AS cor0, tab0 cor1
----
24
35
89

query I rowsort
SELECT cor0.col1 * 79 FROM tab2, tab2 AS cor0
----
9 values hashing to be59d6d511c65c7f5007b61e1f39866f

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1, tab2 AS cor0, tab0 cor1
----
972 values hashing to 9a5ab925af18e11f7748f3b2e722ff3d

onlyif mysql # use DIV operator for integer division
query I rowsort label-2529
SELECT ALL + ( col0 ) DIV ( + 16 ) + + cor0.col1 * + col1 AS col1 FROM tab0 AS cor0
----
7397
8286
9411

skipif mysql # not compatible
query I rowsort label-2529
SELECT ALL + ( col0 ) / ( + 16 ) + + cor0.col1 * + col1 AS col1 FROM tab0 AS cor0
----
7397
8286
9411

query I rowsort
SELECT ALL + 44 * - col0 - - col0 AS col0 FROM tab2 AS cor0
----
-301
-3354
-3397

query I rowsort
SELECT DISTINCT + 83 * col0 AS col2 FROM tab1 AS cor0
----
249
5312
6640

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col1 * col2 col0 FROM tab2 AS cor0
----
1593
663
868

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2533
SELECT DISTINCT - col0 + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2533
SELECT DISTINCT - col0 + CAST ( NULL AS REAL ) AS col1 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL + col1 * + ( 88 ) * col0 AS col0 FROM tab2 AS cor0
----
118184
19096
404976

query I rowsort
SELECT ALL + col2 + 50 AS col1 FROM tab2 AS cor0
----
76
77
88

query I rowsort
SELECT DISTINCT - - col1 + - cor0.col0 AS col2 FROM tab1 cor0
----
-54
-67
23

query I rowsort
SELECT DISTINCT + col0 * + col1 + - 56 AS col0 FROM tab0 AS cor0
----
2008
3339
8043

onlyif mysql # use DIV operator for integer division
query I rowsort label-2538
SELECT col0 DIV col1 col0 FROM tab2 cor0
----
0
1
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2538
SELECT col0 / col1 col0 FROM tab2 cor0
----
0
1
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 + 86 col1 FROM tab1 AS cor0
----
112
96
99

query I rowsort
SELECT - col1 + col0 * - ( - col1 ) * - col2 AS col2 FROM tab1 AS cor0
----
-36490
-4238
-99853

query I rowsort
SELECT ALL - cor0.col1 + 48 AS col0 FROM tab2 AS cor0
----
-11
17
31

query I rowsort
SELECT - + col0 * + col0 + + 65 FROM tab1 AS cor0
----
-4031
-6335
56

query I rowsort
SELECT DISTINCT + col0 * 32 FROM tab0 cor0
----
1120
2848
768

query I rowsort
SELECT ALL + cor0.col1 * 29 AS col1 FROM tab1 AS cor0
----
290
377
754

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 + ( - 6 * + cor0.col1 + col1 ) col2 FROM tab0 cor0
----
-373
-397
-484

query I rowsort
SELECT DISTINCT cor0.col2 * - col0 + + 94 * + col0 * col0 FROM tab1 AS cor0
----
381376
593920
684

query I rowsort
SELECT ALL - tab0.col2 * col1 AS col0 FROM tab0
----
-2838
-7462
-97

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 cor0, tab1 AS cor1, tab0 AS cor2
----
972 values hashing to b51b4342db121ebc2d3d353dcd8ed521

query I rowsort
SELECT cor1.col0 * - cor1.col1 AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 0cea1be551fb4bd88f4da0b7d676ee2f

query I rowsort
SELECT - + 94 * - col0 FROM tab0 AS cor0
----
2256
3290
8366

query I rowsort
SELECT col2 + - cor0.col2 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - cor0.col1 AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT col1 * 56 FROM tab0 AS cor0
----
4816
5096
5432

query I rowsort
SELECT DISTINCT + tab1.col0 * col1 FROM tab1
----
1040
640
78

query I rowsort
SELECT - col1 + + ( + ( col0 ) ) AS col2 FROM tab0 cor0
----
-2
-62
-62

query I rowsort
SELECT + + col1 * 15 + col1 FROM tab0 AS cor0
----
1376
1456
1552

query I rowsort
SELECT - - col1 + - ( - col0 + col1 ) AS col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT - tab0.col2 AS col2 FROM tab0, tab2 AS cor0
----
-1
-33
-82

query I rowsort
SELECT - col1 * 89 FROM tab2 AS cor0
----
-1513
-2759
-5251

query I rowsort
SELECT DISTINCT + ( 2 ) AS col0 FROM tab0 AS cor0
----
2

query I rowsort
SELECT 13 + cor0.col2 FROM tab2 AS cor0
----
39
40
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2562
SELECT - col0 + + 24 * col1 + - CAST( col0 * - col1 AS SIGNED ) FROM tab2 AS cor0
----
1672
5940
954

skipif mysql # not compatible
query I rowsort label-2562
SELECT - col0 + + 24 * col1 + - CAST ( col0 * - col1 AS INTEGER ) FROM tab2 AS cor0
----
1672
5940
954

query I rowsort
SELECT ALL + col2 * 44 FROM tab2 cor0
----
1144
1188
1672

onlyif mysql # use DIV operator for integer division
query I rowsort label-2564
SELECT + col1 DIV - col0 col2 FROM tab1 cor0
----
-8
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2564
SELECT + col1 / - col0 col2 FROM tab1 cor0
----
-8
0
0

query I rowsort
SELECT + + 40 FROM tab0 AS cor0
----
40
40
40

query I rowsort
SELECT - + col2 + cor0.col2 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 16 * col0 + - col1 col1 FROM tab2 AS cor0
----
1189
1247
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2568
SELECT ALL CAST( col0 AS SIGNED ) + col2 AS col1 FROM tab2
----
104
117
34

skipif mysql # not compatible
query I rowsort label-2568
SELECT ALL CAST ( col0 AS INTEGER ) + col2 AS col1 FROM tab2
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-2569
SELECT cor0.col2 DIV col1 + + col0 * - col1 col2 FROM tab2 AS cor0
----
-1341
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2569
SELECT cor0.col2 / col1 + + col0 * - col1 col2 FROM tab2 AS cor0
----
-1341
-217
-4602

query I rowsort
SELECT + + col1 + - col0 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT DISTINCT 2 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
2

query I rowsort
SELECT ALL 20 + col2 FROM tab2
----
46
47
58

query I rowsort
SELECT DISTINCT + ( - cor0.col1 ) + 42 FROM tab1 AS cor0
----
16
29
32

query I rowsort
SELECT ALL cor0.col1 + - col1 * col0 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT ALL col2 + cor0.col1 * col0 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT ALL - ( + col2 ) AS col0 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT DISTINCT col2 + col0 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT ALL - col0 * + ( 37 ) AS col1 FROM tab1 AS cor0
----
-111
-2368
-2960

query I rowsort
SELECT ALL - - col0 + - col2 * + col1 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT + 99 AS col2 FROM tab2
----
99
99
99

query I rowsort
SELECT ALL col0 * - ( col2 ) + - cor0.col0 FROM tab2 AS cor0
----
-196
-2106
-3081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col0 col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col2 * - col2 * cor0.col2 FROM tab0 AS cor0
----
-1
-35937
-551368

query I rowsort
SELECT DISTINCT col1 * col0 + - col2 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT ALL - + col0 * 77 AS col0 FROM tab2 AS cor0
----
-539
-6006
-6083

query I rowsort
SELECT col1 * + 48 + col0 AS col1 FROM tab1 AS cor0
----
1251
544
704

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * + ( 5 ) + - col1 col1 FROM tab2 cor0
----
104
173
71

query I rowsort
SELECT DISTINCT - - cor0.col0 + + cor0.col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT + ( col1 ) + col0 FROM tab2
----
137
38
96

query I rowsort
SELECT DISTINCT + 56 - col2 AS col2 FROM tab1
----
-1
-40
2

query I rowsort
SELECT + 98 AS col2 FROM tab0
----
98
98
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2592
SELECT - CAST( 31 AS SIGNED ) * + col0 AS col1 FROM tab0 AS cor0
----
-1085
-2759
-744

skipif mysql # not compatible
query I rowsort label-2592
SELECT - CAST ( 31 AS INTEGER ) * + col0 AS col1 FROM tab0 AS cor0
----
-1085
-2759
-744

query I rowsort
SELECT DISTINCT - col1 * ( col0 ) AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT - 75 AS col2 FROM tab1 AS cor0
----
-75

query I rowsort
SELECT ALL - col0 * cor0.col0 * col1 FROM tab2 AS cor0
----
-106097
-1519
-358956

query I rowsort
SELECT 51 FROM tab1 cor0
----
51
51
51

query I rowsort
SELECT ALL + 6 + cor0.col1 * - col1 FROM tab0 AS cor0
----
-7390
-8275
-9403

query I rowsort
SELECT ALL - col1 * + col2 AS col1 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT ALL - col2 * + 60 AS col2 FROM tab0
----
-1980
-4920
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - cor0.col1 col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT - 96 * + 7 AS col1 FROM tab2 AS cor0
----
-672
-672
-672

query I rowsort
SELECT ALL - col1 + col2 + - col2 FROM tab2
----
-17
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-2603
SELECT DISTINCT col0 + 61 DIV + col1 AS col2 FROM tab1 AS cor0
----
5
70
84

skipif mysql # not compatible
query I rowsort label-2603
SELECT DISTINCT col0 + 61 / + col1 AS col2 FROM tab1 AS cor0
----
5
70
84

query I rowsort
SELECT DISTINCT + - col2 + 48 * col2 AS col0 FROM tab1 AS cor0
----
2538
2679
4512

query I rowsort
SELECT - - ( + col1 ) FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT - ( col2 ) * - col2 FROM tab0 AS cor0
----
1
1089
6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 col0 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT - col0 * col0 + cor0.col2 + ( col0 * col1 + col1 * col2 ) AS col1 FROM tab0 AS cor0
----
2268
4359
7722

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2609
SELECT ALL CAST( NULL AS DECIMAL ) * + 99 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2609
SELECT ALL CAST ( NULL AS REAL ) * + 99 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + - 6 + col1 AS col0 FROM tab2 AS cor0
----
131
32
90

query I rowsort
SELECT DISTINCT + 96 + col2 + cor0.col1 AS col2 FROM tab1 AS cor0
----
163
176
205

query I rowsort
SELECT ALL - ( col0 ) FROM tab2 cor0
----
-7
-78
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2613
SELECT ALL CAST( NULL AS SIGNED ) * + col2 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2613
SELECT ALL CAST ( NULL AS INTEGER ) * + col2 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 * + cor0.col2 AS col0 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL col0 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT ALL col2 + col0 * + col0 + 19 * - col0 * - col1 AS col2 FROM tab1 AS cor0
----
1545
16313
26256

query I rowsort
SELECT - ( 62 ) * cor0.col0 AS col1 FROM tab0 AS cor0
----
-1488
-2170
-5518

query I rowsort
SELECT DISTINCT + + col0 + + col1 * col2 AS col0 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT + tab0.col1 + tab0.col1 * 30 + + col0 FROM tab0
----
2690
2910
3042

query I rowsort
SELECT ALL - - ( - ( - col1 ) ) FROM tab0 AS cor0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2621
SELECT col1 * + col1 + - col1 DIV + ( - ( col1 ) ) + col2 AS col2 FROM tab2 AS cor0
----
328
3508
989

skipif mysql # not compatible
query I rowsort label-2621
SELECT col1 * + col1 + - col1 / + ( - ( col1 ) ) + col2 AS col2 FROM tab2 AS cor0
----
328
3508
989

query I rowsort
SELECT DISTINCT - 35 AS col1 FROM tab1 AS cor0
----
-35

query I rowsort
SELECT DISTINCT - + col1 * - col1 + col2 AS col0 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT - col0 + + col2 + - col0 * col2 AS col1 FROM tab0 AS cor0
----
-69
-7305
-783

query I rowsort
SELECT DISTINCT 37 * - ( col0 + 42 ) FROM tab0 AS cor0
----
-2442
-2849
-4847

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2626
SELECT ALL - + col2 + - col1 + col1 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2626
SELECT ALL - + col2 + - col1 + col1 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - ( - cor0.col1 ) AS col0 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT + - cor0.col2 AS col2 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT DISTINCT + + col1 + + col1 FROM tab2 cor0
----
118
34
62

query I rowsort
SELECT DISTINCT - col1 * + col0 + col1 AS col0 FROM tab1 cor0
----
-1027
-52
-630

query I rowsort
SELECT ALL - col0 - col1 AS col1 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT col2 + - cor0.col0 * ( - col0 ) FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT DISTINCT + - 6 * col0 FROM tab1 AS cor0
----
-18
-384
-480

query I rowsort
SELECT ALL + col2 * col1 * col0 AS col0 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT 7 * - col2 FROM tab0 AS cor0
----
-231
-574
-7

query I rowsort
SELECT DISTINCT col0 + col0 * + 16 FROM tab2 AS cor0
----
119
1326
1343

query I rowsort
SELECT ALL + col1 + col1 * + 61 + col1 FROM tab2 cor0
----
1071
1953
3717

query I rowsort
SELECT ALL 83 * col1 FROM tab2 AS cor0
----
1411
2573
4897

query I rowsort
SELECT - col0 + col1 * col0 AS col1 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT DISTINCT + col1 + - col0 * + col0 FROM tab2 cor0
----
-18
-6025
-6224

onlyif mysql # use DIV operator for integer division
query I rowsort label-2641
SELECT ALL + cor0.col1 * - col1 DIV col1 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-2641
SELECT ALL + cor0.col1 * - col1 / col1 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT - col2 + col2 * - ( cor0.col2 ) AS col1 FROM tab1 AS cor0
----
-2970
-3306
-9312

query I rowsort
SELECT ALL - col1 - col2 * col1 FROM tab0 AS cor0
----
-194
-2924
-7553

query I rowsort
SELECT - - col0 * + col0 AS col2 FROM tab0 cor0
----
1225
576
7921

query I rowsort
SELECT ALL - cor0.col2 * + col0 - col2 AS col0 FROM tab2 AS cor0
----
-2054
-216
-3040

query I rowsort
SELECT ALL col1 * + 79 AS col1 FROM tab0 AS cor0
----
6794
7189
7663

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2647
SELECT ALL + col2 * + CAST( col0 AS SIGNED ) + - col2 * - 32 FROM tab0 AS cor0
----
1848
67
9922

skipif mysql # not compatible
query I rowsort label-2647
SELECT ALL + col2 * + CAST ( col0 AS INTEGER ) + - col2 * - 32 FROM tab0 AS cor0
----
1848
67
9922

onlyif mysql # use DIV operator for integer division
query I rowsort label-2648
SELECT ALL col1 * col2 DIV cor0.col0 FROM tab2 AS cor0
----
119
19
8

skipif mysql # not compatible
query I rowsort label-2648
SELECT ALL col1 * col2 / cor0.col0 FROM tab2 AS cor0
----
119
19
8

query I rowsort
SELECT - - col2 * ( col1 ) FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT col2 + + 74 + - col1 * - cor0.col0 FROM tab0 AS cor0
----
2171
3470
8255

query I rowsort
SELECT DISTINCT + + col1 * col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT + + col0 + 92 + + cor0.col0 FROM tab2 AS cor0
----
106
248
250

query I rowsort
SELECT DISTINCT col0 + + 33 * ( col2 ) AS col1 FROM tab0 AS cor0
----
1113
2795
68

query I rowsort
SELECT + col0 * + ( + ( col1 ) ) FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL - - cor0.col2 * - col1 + + col0 FROM tab2 AS cor0
----
-1456
-567
-830

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 ALL - + col0 + cor0.col1 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT ALL - col1 + - ( + col2 ) + - cor0.col1 * col0 AS col0 FROM tab1 AS cor0
----
-1149
-158
-707

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2659
SELECT DISTINCT + col0 * + CAST( col2 AS SIGNED ) + col1 * - 87 FROM tab1 AS cor0
----
-2100
2778
6549

skipif mysql # not compatible
query I rowsort label-2659
SELECT DISTINCT + col0 * + CAST ( col2 AS INTEGER ) + col1 * - 87 FROM tab1 AS cor0
----
-2100
2778
6549

query I rowsort
SELECT ALL col0 * + 96 - + col0 AS col1 FROM tab1 AS cor0
----
285
6080
7600

query I rowsort
SELECT ALL + 93 AS col1 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7

query I rowsort
SELECT DISTINCT - tab1.col1 FROM tab1, tab0, tab0 AS cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT 30 AS col1 FROM tab0
----
30

query I rowsort
SELECT + 18 AS col1 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to 903ac227935c1532300db45a8537c595

query I rowsort
SELECT DISTINCT - tab1.col0 + + ( tab1.col1 ) FROM tab1
----
-54
-67
23

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2666
SELECT CAST( 39 AS SIGNED ) + + col2 AS col1 FROM tab1 AS cor0
----
135
93
96

skipif mysql # not compatible
query I rowsort label-2666
SELECT CAST ( 39 AS INTEGER ) + + col2 AS col1 FROM tab1 AS cor0
----
135
93
96

query I rowsort
SELECT + cor0.col2 + - col0 AS col1 FROM tab1 cor0
----
-7
16
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2668
SELECT + CAST( NULL AS SIGNED ) + - col2 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2668
SELECT + CAST ( NULL AS INTEGER ) + - col2 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * col2 AS col0 FROM tab0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-2670
SELECT col1 + CAST( 89 + - col1 AS SIGNED ) DIV 19 FROM tab1
----
14
17
29

skipif mysql # not compatible
query I rowsort label-2670
SELECT col1 + CAST ( 89 + - col1 AS INTEGER ) / 19 FROM tab1
----
14
17
29

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2671
SELECT ALL + ( col0 ) + CAST( NULL AS SIGNED ) - + 9 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2671
SELECT ALL + ( col0 ) + CAST ( NULL AS INTEGER ) - + 9 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 + - 22 AS col1 FROM tab2
----
16
4
5

query I rowsort
SELECT DISTINCT + - tab0.col1 FROM tab0, tab1 AS cor0, tab1, tab0 cor1
----
-86
-91
-97

query I rowsort
SELECT 35 + 78 FROM tab0
----
113
113
113

query I rowsort
SELECT col0 + + 47 FROM tab1
----
111
127
50

query I rowsort
SELECT - col1 + + col0 * + col1 AS col1 FROM tab2
----
1326
186
4543

query I rowsort
SELECT + + 6 AS col1 FROM tab1, tab0, tab0 cor0
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04

onlyif mysql # use DIV operator for integer division
query I rowsort label-2678
SELECT + col1 DIV - col2 + - col1 AS col0 FROM tab1
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-2678
SELECT + col1 / - col2 + - col1 AS col0 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT - - col1 + col0 AS col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT - - ( - col2 ) * + ( - col1 ) FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT 51 * - col2 + col2 * col0 FROM tab0 AS cor0
----
-16
-891
3116

query I rowsort
SELECT col0 * col1 * cor0.col0 + col1 FROM tab0 AS cor0
----
118922
49622
720902

onlyif mysql # use DIV operator for integer division
query I rowsort label-2683
SELECT + col1 DIV + 9 FROM tab0
----
10
10
9

skipif mysql # not compatible
query I rowsort label-2683
SELECT + col1 / + 9 FROM tab0
----
10
10
9

query I rowsort
SELECT + - 31 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

query I rowsort
SELECT DISTINCT + + cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
24
35
89

query I rowsort
SELECT - 69 * - col2 FROM tab2
----
1794
1863
2622

query I rowsort
SELECT 29 AS col0 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318

query I rowsort
SELECT + col1 * 4 * col0 AS col1 FROM tab1
----
2560
312
4160

query I rowsort
SELECT 34 FROM tab1, tab0 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2690
SELECT - CAST( NULL AS SIGNED ) * 5 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2690
SELECT - CAST ( NULL AS INTEGER ) * 5 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2691
SELECT + col0 + col1 * col2 DIV col0 FROM tab1 AS cor0
----
471
72
95

skipif mysql # not compatible
query I rowsort label-2691
SELECT + col0 + col1 * col2 / col0 FROM tab1 AS cor0
----
471
72
95

query I rowsort
SELECT col2 * 70 AS col1 FROM tab1 AS cor0
----
3780
3990
6720

query I rowsort
SELECT ALL + 92 FROM tab0
----
92
92
92

query I rowsort
SELECT ( - tab0.col0 ) AS col1 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT + - 39 * - col2 FROM tab0 AS cor0
----
1287
3198
39

query I rowsort
SELECT 33 - cor1.col0 FROM tab0, tab2 cor0, tab0 cor1
----
27 values hashing to 9b3a415cdc2343fc899255fcaf5b9c04

onlyif mysql # use DIV operator for integer division
query I rowsort label-2697
SELECT + col2 * col2 DIV - col1 FROM tab2 AS cor0
----
-11
-23
-84

skipif mysql # not compatible
query I rowsort label-2697
SELECT + col2 * col2 / - col1 FROM tab2 AS cor0
----
-11
-23
-84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2698
SELECT ALL + + col1 * CAST( NULL AS SIGNED ) + col0 * cor0.col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2698
SELECT ALL + + col1 * CAST ( NULL AS INTEGER ) + col0 * cor0.col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2699
SELECT col1 - CAST( - 64 * col1 AS SIGNED ) FROM tab0 AS cor0
----
5590
5915
6305

skipif mysql # not compatible
query I rowsort label-2699
SELECT col1 - CAST ( - 64 * col1 AS INTEGER ) FROM tab0 AS cor0
----
5590
5915
6305

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2700
SELECT ALL cor0.col0 + CAST( col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
14
156
158

skipif mysql # not compatible
query I rowsort label-2700
SELECT ALL cor0.col0 + CAST ( col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
14
156
158

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2701
SELECT + + col0 * CAST( NULL AS SIGNED ) + - col0 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-2701
SELECT + + col0 * CAST ( NULL AS INTEGER ) + - col0 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT cor0.col1 * col0 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT + col0 + 77 FROM tab2 AS cor0
----
155
156
84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2704
SELECT + col1 + CAST( - col0 AS SIGNED ) * + col0 AS col1 FROM tab2 AS cor0
----
-18
-6025
-6224

skipif mysql # not compatible
query I rowsort label-2704
SELECT + col1 + CAST ( - col0 AS INTEGER ) * + col0 AS col1 FROM tab2 AS cor0
----
-18
-6025
-6224

query I rowsort
SELECT + col0 - col2 * - col0 AS col2 FROM tab1 cor0
----
165
3712
7760

query I rowsort
SELECT - col1 * + 99 FROM tab0 AS cor0
----
-8514
-9009
-9603

query I rowsort
SELECT tab2.col2 + + 79 FROM tab2, tab2 AS cor0
----
9 values hashing to 188d19e577d242e7173c43bd8e9fd1cc

query I rowsort
SELECT + - col2 + - cor0.col1 * + col1 AS col2 FROM tab2 AS cor0
----
-327
-3507
-988

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col1 + - col0 col0 FROM tab1 AS cor0
----
-164
-249
-679

query I rowsort
SELECT + - col0 + - 91 AS col1 FROM tab1 AS cor0
----
-155
-171
-94

onlyif mysql # use DIV operator for integer division
query I rowsort label-2711
SELECT - col1 - col2 * col0 DIV + col0 AS col2 FROM tab1
----
-109
-67
-80

skipif mysql # not compatible
query I rowsort label-2711
SELECT - col1 - col2 * col0 / + col0 AS col2 FROM tab1
----
-109
-67
-80

query I rowsort
SELECT tab1.col0 * - 83 - col0 FROM tab1
----
-252
-5376
-6720

query I rowsort
SELECT 15 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query I rowsort
SELECT 82 AS col0 FROM tab0 AS cor0
----
82
82
82

query I rowsort
SELECT col0 - - 60 FROM tab0 AS cor0
----
149
84
95

query I rowsort
SELECT ALL + cor0.col1 * - col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + ( col0 ) col2 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT DISTINCT + 73 * 16 FROM tab1 AS cor0
----
1168

query I rowsort
SELECT 24 * col0 + + col2 AS col1 FROM tab2 AS cor0
----
1898
1934
195

onlyif mysql # use DIV operator for integer division
query I rowsort label-2720
SELECT - - col2 DIV 16 - + col2 col0 FROM tab0 AS cor0
----
-1
-31
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2720
SELECT - - col2 / 16 - + col2 col0 FROM tab0 AS cor0
----
-1
-31
-77

query I rowsort
SELECT ALL - - cor0.col1 AS col1 FROM tab2 AS cor0
----
17
31
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2722
SELECT DISTINCT - cor0.col1 * col0 + col0 * CAST( - col2 * - cor0.col0 + col0 AS SIGNED ) AS col2 FROM tab2 cor0
----
1155
159666
242056

skipif mysql # not compatible
query I rowsort label-2722
SELECT DISTINCT - cor0.col1 * col0 + col0 * CAST ( - col2 * - cor0.col0 + col0 AS INTEGER ) AS col2 FROM tab2 cor0
----
1155
159666
242056

query I rowsort
SELECT col0 * 26 + col1 + 28 AS col0 FROM tab2 AS cor0
----
2099
2115
241

query I rowsort
SELECT - col1 + col0 * - cor0.col0 FROM tab2 AS cor0
----
-6143
-6258
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 74 * - 86 + col1 * ( + col2 ) + col2 col0 FROM tab0 AS cor0
----
13908
6462
9235

query I rowsort
SELECT - - cor0.col1 * - col2 * + col0 AS col2 FROM tab2 AS cor0
----
-119652
-51034
-5859

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2727
SELECT - col2 * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2727
SELECT - col2 * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * ( col1 ) * - tab1.col0 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT col0 - - cor0.col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT DISTINCT + + col2 + cor0.col0 * col0 + - ( cor0.col0 ) AS col1 FROM tab0 AS cor0
----
1191
585
7914

query I rowsort
SELECT ALL + - 52 * + 38 FROM tab0 AS cor0
----
-1976
-1976
-1976

query I rowsort
SELECT col2 * ( - col0 ) + col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT 48 + ( + col2 ) FROM tab1 cor0
----
102
105
144

query I rowsort
SELECT 83 * - cor0.col1 + col2 * col0 FROM tab0 AS cor0
----
-255
-6346
-8016

query I rowsort
SELECT - 94 + + col2 * col0 AS col2 FROM tab1 AS cor0
----
3554
68
7586

query I rowsort
SELECT ALL + 15 AS col2 FROM tab1 AS cor0
----
15
15
15

query I rowsort
SELECT DISTINCT - + 30 * col0 AS col2 FROM tab1 AS cor0
----
-1920
-2400
-90

query I rowsort
SELECT ALL - - 31 FROM tab1 AS cor0
----
31
31
31

query I rowsort
SELECT - + cor0.col2 + - cor0.col2 FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT DISTINCT + col2 * 7 AS col1 FROM tab1 AS cor0
----
378
399
672

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 + 71 col0 FROM tab0 cor0
----
-15
-20
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-2742
SELECT col1 DIV - col0 + col1 AS col1 FROM tab2
----
17
27
59

skipif mysql # not compatible
query I rowsort label-2742
SELECT col1 / - col0 + col1 AS col1 FROM tab2
----
17
27
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2743
SELECT - CAST( + col0 + col2 * col2 AS SIGNED ) AS col0 FROM tab0
----
-1113
-36
-6813

skipif mysql # not compatible
query I rowsort label-2743
SELECT - CAST ( + col0 + col2 * col2 AS INTEGER ) AS col0 FROM tab0
----
-1113
-36
-6813

query I rowsort
SELECT DISTINCT - + 21 + + col2 * cor0.col2 AS col2 FROM tab0 AS cor0
----
-20
1068
6703

query I rowsort
SELECT DISTINCT - cor0.col2 + - col0 AS col1 FROM tab2 AS cor0
----
-104
-117
-34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col0 * - col1 col0 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT - col1 * - col1 * 18 FROM tab1 cor0
----
12168
1800
3042

query I rowsort
SELECT 12 + col1 FROM tab0
----
103
109
98

query I rowsort
SELECT ALL 52 FROM tab1, tab2 AS cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599

onlyif mysql # use DIV operator for integer division
query I rowsort label-2750
SELECT DISTINCT 70 DIV 10 FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-2750
SELECT DISTINCT 70 / 10 FROM tab1
----
7

query I rowsort
SELECT col1 * col0 - + col1 FROM tab0
----
1978
3298
8008

query I rowsort
SELECT DISTINCT + - 78 FROM tab0 AS cor0
----
-78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2753
SELECT DISTINCT - col1 * col0 + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2753
SELECT DISTINCT - col1 * col0 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col0 - + 33 col2 FROM tab1 AS cor0
----
-27
127
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 + + col1 col0 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT ALL - 4 FROM tab2 AS cor0
----
-4
-4
-4

onlyif mysql # use DIV operator for integer division
query I rowsort label-2757
SELECT col2 + - cor0.col1 DIV - col2 col0 FROM tab1 AS cor0
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2757
SELECT col2 + - cor0.col1 / - col2 col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL col0 * col0 + + ( + col1 ) AS col2 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT + 55 * - cor0.col0 + + 25 - + 67 FROM tab0 AS cor0
----
-1362
-1967
-4937

onlyif mysql # use DIV operator for integer division
query I rowsort label-2760
SELECT + 94 DIV - col1 col2 FROM tab0 AS cor0
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2760
SELECT + 94 / - col1 col2 FROM tab0 AS cor0
----
-1
-1
0

query I rowsort
SELECT DISTINCT + - 27 + col2 + col0 FROM tab1 AS cor0
----
149
30
94

query I rowsort
SELECT + 12 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + ( 11 + cor0.col1 ) col0 FROM tab0 cor0
----
121
143
191

query I rowsort
SELECT DISTINCT - col1 * ( + ( col1 ) ) FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT + - col0 * - 9 AS col1 FROM tab0 AS cor0
----
216
315
801

query I rowsort
SELECT + - col0 * - col1 + col2 * col0 AS col1 FROM tab2 AS cor0
----
406
4345
6630

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 cor0, tab2 AS cor1, tab0 AS cor2
----
972 values hashing to 9a5ab925af18e11f7748f3b2e722ff3d

query I rowsort
SELECT + 27 AS col2 FROM tab1 AS cor0
----
27
27
27

onlyif mysql # use DIV operator for integer division
query I rowsort label-2769
SELECT 64 DIV - col0 AS col0 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-2769
SELECT 64 / - col0 AS col0 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT 52 FROM tab2, tab0 AS cor0, tab0 cor1, tab0 AS cor2
----
81 values hashing to 7b4a664e9c62b46b517569587d5a621d

query I rowsort
SELECT - cor1.col1 + cor0.col1 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 17c10b049c4bab241687e228247609ac

query I rowsort
SELECT DISTINCT 45 AS col1 FROM tab1, tab1 AS cor0, tab1 cor1, tab1 AS cor2
----
45

query I rowsort
SELECT DISTINCT + cor0.col2 * + col1 AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ( + col1 ) + col1 AS col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT + cor0.col0 * col1 + col1 AS col0 FROM tab1 cor0
----
104
1053
650

query I rowsort
SELECT ALL - col1 + 49 * col0 * col0 FROM tab0 AS cor0
----
28138
388038
59928

query I rowsort
SELECT ALL 96 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query I rowsort
SELECT DISTINCT col1 + 5 FROM tab0 AS cor0
----
102
91
96

query I rowsort
SELECT 80 AS col1 FROM tab2
----
80
80
80

query I rowsort
SELECT DISTINCT - 0 FROM tab2
----
0

query I rowsort
SELECT DISTINCT - + col1 + - col2 AS col2 FROM tab2 cor0
----
-55
-58
-85

query I rowsort
SELECT ALL + - 52 FROM tab2 AS cor0
----
-52
-52
-52

query I rowsort
SELECT ALL + 87 * col1 - + col0 * col2 AS col1 FROM tab1 AS cor0
----
-2778
-6549
2100

query I rowsort
SELECT + + 18 AS col1 FROM tab2 AS cor0
----
18
18
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + 90 col2 FROM tab1 AS cor0
----
154
170
93

query I rowsort
SELECT ( tab1.col2 * col2 ) + col0 FROM tab1
----
2919
3313
9296

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 cor0, tab1, tab2 AS cor1
----
972 values hashing to 0fcd8d0934383dd58863be894b07a6ed

query I rowsort
SELECT ( col1 * col2 ) FROM tab2
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * + col0 + + col1 col1 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT ( cor0.col1 ) AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT 75 + + 3 + col1 * col0 FROM tab2 cor0
----
1421
295
4680

query I rowsort
SELECT + col1 * cor0.col0 + col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT ALL 83 - col1 AS col2 FROM tab2 AS cor0
----
24
52
66

query I rowsort
SELECT DISTINCT + + 2 + + col2 * col2 FROM tab1 AS cor0
----
2918
3251
9218

query I rowsort
SELECT ALL - - col1 - - col2 * + col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT - 76 AS col2 FROM tab1 cor0
----
-76
-76
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col0 col2 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT + 68 AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4

query I rowsort
SELECT ALL + - col1 + + col0 + - col1 FROM tab2 AS cor0
----
-40
-55
45

query I rowsort
SELECT col0 + + col0 AS col2 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT ALL col0 * 18 AS col2 FROM tab1
----
1152
1440
54

onlyif mysql # use DIV operator for integer division
query I rowsort label-2802
SELECT DISTINCT - - cor0.col0 DIV - 55 + + cor0.col2 FROM tab2 cor0
----
25
27
37

skipif mysql # not compatible
query I rowsort label-2802
SELECT DISTINCT - - cor0.col0 / - 55 + + cor0.col2 FROM tab2 cor0
----
25
27
37

onlyif mysql # use DIV operator for integer division
query I rowsort label-2803
SELECT + + col0 + ( - col2 + + col2 ) DIV ( + col1 * col1 ) AS col0 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-2803
SELECT + + col0 + ( - col2 + + col2 ) / ( + col1 * col1 ) AS col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT + - col2 * - col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT col2 + ( - col2 ) FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2806
SELECT + - col2 DIV col0 + + col2 + + col2 AS col0 FROM tab1 AS cor0
----
114
191
90

skipif mysql # not compatible
query I rowsort label-2806
SELECT + - col2 / col0 + + col2 + + col2 AS col0 FROM tab1 AS cor0
----
114
191
90

query I rowsort
SELECT ALL + col2 * + ( col0 ) + - col2 FROM tab2 cor0
----
162
2002
2964

query I rowsort
SELECT 73 AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1, tab0, tab0 AS cor2
----
243 values hashing to eba0d5133c113efdb9a1713e1b521c68

query I rowsort
SELECT - col1 + 23 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
1462
1827
43

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2810
SELECT ALL col0 + CAST( NULL AS SIGNED ) + 81 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2810
SELECT ALL col0 + CAST ( NULL AS INTEGER ) + 81 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 68 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

query I rowsort
SELECT ALL col0 + ( col2 + col1 ) * + tab0.col0 * - col0 FROM tab0
----
-120015
-1370244
-68520

query I rowsort
SELECT DISTINCT + 32 FROM tab1, tab2 AS cor0
----
32

query I rowsort
SELECT + col2 * ( - ( + cor0.col2 ) ) FROM tab1 AS cor0
----
-2916
-3249
-9216

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2815
SELECT ALL + col0 + CAST( col1 * col1 + col2 * + col1 AS SIGNED ) FROM tab0 AS cor0
----
10258
15832
9541

skipif mysql # not compatible
query I rowsort label-2815
SELECT ALL + col0 + CAST ( col1 * col1 + col2 * + col1 AS INTEGER ) FROM tab0 AS cor0
----
10258
15832
9541

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2816
SELECT DISTINCT col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2816
SELECT DISTINCT col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 60 FROM tab0, tab0 cor0, tab2 AS cor1
----
60

query I rowsort
SELECT DISTINCT col1 * col2 + ( + col2 * - 14 ) FROM tab2
----
114
1170
459

query I rowsort
SELECT - 23 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 9bd721f99d79dce21b1de2860fd51ed5

query I rowsort
SELECT - col0 + 55 + - col2 * - col0 AS col1 FROM tab0
----
55
7264
823

query I rowsort
SELECT + 15 FROM tab2 AS cor0
----
15
15
15

onlyif mysql # use DIV operator for integer division
query I rowsort label-2822
SELECT - - ( col1 ) * ( - 42 ) DIV - col0 - - col0 * 57 FROM tab0 AS cor0
----
1518
2111
5115

skipif mysql # not compatible
query I rowsort label-2822
SELECT - - ( col1 ) * ( - 42 ) / - col0 - - col0 * 57 FROM tab0 AS cor0
----
1518
2111
5115

query I rowsort
SELECT ALL - - 87 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT DISTINCT - col1 * - col1 * + col2 + + ( col0 ) FROM tab0 AS cor0
----
244092
679131
9444

query I rowsort
SELECT DISTINCT - cor0.col1 + col1 * + col2 * + 65 FROM tab0 AS cor0
----
184384
484939
6208

query I rowsort
SELECT cor0.col1 * + col1 AS col2 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT + + col1 + - col0 + ( - col0 ) FROM tab2 AS cor0
----
-141
-97
17

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2828
SELECT ALL - col0 + - CAST( col0 * - col0 AS SIGNED ) FROM tab2 AS cor0
----
42
6006
6162

skipif mysql # not compatible
query I rowsort label-2828
SELECT ALL - col0 + - CAST ( col0 * - col0 AS INTEGER ) FROM tab2 AS cor0
----
42
6006
6162

query I rowsort
SELECT ALL + - col1 + ( ( - col2 ) ) + + col1 AS col0 FROM tab0 AS cor0
----
-1
-33
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2830
SELECT + - cor0.col1 * + CAST( NULL AS SIGNED ) * cor0.col2 + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2830
SELECT + - cor0.col1 * + CAST ( NULL AS INTEGER ) * cor0.col2 + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * - col2 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL - col0 * tab1.col0 AS col0 FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT col1 + - 73 FROM tab0 AS cor0
----
13
18
24

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab1 AS cor2
----
972 values hashing to ed80235f6457dada5cbb50ce9e2a8923

query I rowsort
SELECT ALL + 8 FROM tab2
----
8
8
8

query I rowsort
SELECT - cor0.col2 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT + 97 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query I rowsort
SELECT ALL + 5 * - col2 FROM tab0
----
-165
-410
-5

query I rowsort
SELECT DISTINCT - cor0.col1 - cor0.col1 FROM tab2, tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT - ( col1 ) + cor0.col0 * - 22 FROM tab0 AS cor0
----
-2049
-614
-867

query I rowsort
SELECT ALL + 16 FROM tab2
----
16
16
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 90 col2 FROM tab1 AS cor0
----
-90
-90
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 84 col1 FROM tab2 AS cor0
----
84

query I rowsort
SELECT - + col1 * + col2 * col1 AS col0 FROM tab1 AS cor0
----
-16224
-36504
-5700

query I rowsort
SELECT col1 + 40 * tab1.col0 AS col0 FROM tab1
----
146
2570
3213

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2846
SELECT CAST( - tab0.col0 AS SIGNED ) AS col1 FROM tab0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-2846
SELECT CAST ( - tab0.col0 AS INTEGER ) AS col1 FROM tab0
----
-24
-35
-89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2847
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 55 + col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2847
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 55 + col1 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 - - 73 * - ( col1 ) col2 FROM tab2
----
-1302
-826
-952

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT 83 + col0 * - 11 FROM tab2
----
-775
-786
6

query I rowsort
SELECT - ( + tab1.col1 ) AS col2 FROM tab1
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col1 ) col2 FROM tab0
----
86
91
97

query I rowsort
SELECT - - ( + col0 ) AS col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL + 8 + - col2 AS col0 FROM tab1 AS cor0
----
-46
-49
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( tab0.col0 ) col1 FROM tab0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + cor0.col0 col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2857
SELECT DISTINCT - tab2.col0 * CAST( NULL AS SIGNED ) / col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2857
SELECT DISTINCT - tab2.col0 * CAST ( NULL AS INTEGER ) / col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL - col0 * + ( tab0.col2 * + tab0.col2 ) + 80 + + col2 * col2 * - col2 AS col2 FROM tab0
----
-1149724
-61993
44

query I rowsort
SELECT ALL col0 + + col1 * 32 AS col2 FROM tab0
----
2776
3001
3139

onlyif mysql # use DIV operator for integer division
query I rowsort label-2860
SELECT + col0 DIV col0 + + col1 * col1 - 81 FROM tab0
----
7316
8201
9329

skipif mysql # not compatible
query I rowsort label-2860
SELECT + col0 / col0 + + col1 * col1 - 81 FROM tab0
----
7316
8201
9329

query I rowsort
SELECT ALL - col1 + col2 + ( col1 ) FROM tab1
----
54
57
96

query I rowsort
SELECT DISTINCT + col1 * - 8 * + 7 FROM tab0
----
-4816
-5096
-5432

query I rowsort
SELECT + tab1.col1 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT ALL + - 25 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

onlyif mysql # use DIV operator for integer division
query I rowsort label-2865
SELECT + col2 DIV - 48 + - ( col0 ) FROM tab0 cor0
----
-24
-35
-90

skipif mysql # not compatible
query I rowsort label-2865
SELECT + col2 / - 48 + - ( col0 ) FROM tab0 cor0
----
-24
-35
-90

query I rowsort
SELECT + col2 - col0 * col1 FROM tab0
----
-2031
-3394
-8017

query I rowsort
SELECT - + col1 + + 42 * 90 FROM tab0 cor0
----
3683
3689
3694

query I rowsort
SELECT - col2 * - col1 AS col2 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT - ( + col2 ) * + col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT - col0 * ( - cor0.col1 ) FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT - - col0 + 10 FROM tab1 AS cor0
----
13
74
90

query I rowsort
SELECT ( + col2 ) * + cor0.col0 FROM tab2 AS cor0
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + col2 col0 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT ALL - + ( + 38 ) * + cor0.col1 + + 3 AS col1 FROM tab0 AS cor0
----
-3265
-3455
-3683

query I rowsort
SELECT + col0 * 55 FROM tab0
----
1320
1925
4895

onlyif mysql # use DIV operator for integer division
query I rowsort label-2876
SELECT + + col0 DIV col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2876
SELECT + + col0 / col0 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + + 17 AS col0 FROM tab1 AS cor0
----
17
17
17

query I rowsort
SELECT ( - cor0.col2 ) + + col2 * col1 + cor0.col0 * col0 FROM tab0 cor0
----
1321
15301
3381

onlyif mysql # use DIV operator for integer division
query I rowsort label-2879
SELECT + col0 DIV ( - cor0.col2 * - 24 ) + col1 DIV col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2879
SELECT + col0 / ( - cor0.col2 * - 24 ) + col1 / col1 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2880
SELECT ALL - - CAST( col2 AS SIGNED ) * col2 FROM tab0 AS cor0
----
1
1089
6724

skipif mysql # not compatible
query I rowsort label-2880
SELECT ALL - - CAST ( col2 AS INTEGER ) * col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT + - col0 + - col1 * col0 FROM tab1 cor0
----
-1120
-704
-81

query I rowsort
SELECT ALL - 77 * - col1 AS col1 FROM tab1 AS cor0
----
1001
2002
770

query I rowsort
SELECT DISTINCT + col1 + col2 * + col2 - col0 FROM tab1 AS cor0
----
2939
3195
9149

query I rowsort
SELECT DISTINCT - col2 * + col1 + + col1 FROM tab2 AS cor0
----
-1475
-629
-806

onlyif mysql # use DIV operator for integer division
query I rowsort label-2885
SELECT ALL + + col0 DIV col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2885
SELECT ALL + + col0 / col2 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT - col2 * - ( - col1 ) AS col1 FROM tab0 cor0
----
-2838
-7462
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2887
SELECT ALL - col2 * CAST( NULL AS DECIMAL ) + col2 * - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2887
SELECT ALL - col2 * CAST ( NULL AS REAL ) + col2 * - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col0 * cor0.col1 AS col0 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT col0 + - col0 FROM tab0
----
0

query I rowsort
SELECT ALL - col1 * + col0 - ( + col0 + col0 ) AS col0 FROM tab1 cor0
----
-1200
-768
-84

onlyif mysql # use DIV operator for integer division
query I rowsort label-2891
SELECT ALL - - col0 DIV col2 AS col1 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-2891
SELECT ALL - - col0 / col2 AS col1 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT tab0.col2 + + 40 AS col0 FROM tab0
----
122
41
73

query I rowsort
SELECT + col1 + - ( + col1 ) FROM tab2
----
0
0
0

query I rowsort
SELECT tab0.col1 * col2 + - col2 AS col0 FROM tab0
----
2805
7380
96

query I rowsort
SELECT + col1 + - 89 FROM tab2
----
-30
-58
-72

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2896
SELECT DISTINCT col0 - cor0.col2 * CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2896
SELECT DISTINCT col0 - cor0.col2 * CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col2 ) * col2 col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT + col2 * col2 * col0 + + col2 * + col1 FROM tab1 AS cor0
----
10152
208506
738528

query I rowsort
SELECT DISTINCT col0 + col1 * col1 AS col0 FROM tab2 AS cor0
----
3559
368
968

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 59 * - 70 col2 FROM tab1
----
4130
4130
4130

query I rowsort
SELECT DISTINCT + ( - col1 ) - + tab0.col0 * col2 AS col1 FROM tab0
----
-132
-7389
-878

query I rowsort
SELECT DISTINCT 29 + col2 * + 36 AS col1 FROM tab2 AS cor0
----
1001
1397
965

onlyif mysql # use DIV operator for integer division
query I rowsort label-2903
SELECT DISTINCT - cor0.col2 DIV + col1 - + ( 59 * - col0 ) AS col2 FROM tab1 AS cor0
----
175
3771
4713

skipif mysql # not compatible
query I rowsort label-2903
SELECT DISTINCT - cor0.col2 / + col1 - + ( 59 * - col0 ) AS col2 FROM tab1 AS cor0
----
175
3771
4713

query I rowsort
SELECT ALL - + 80 + - col1 + + ( 49 ) * + col1 FROM tab2 AS cor0
----
1408
2752
736

query I rowsort
SELECT ALL col2 + + col0 + 73 * + col0 FROM tab0 AS cor0
----
1809
2591
6668

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2906
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 40 + - col0 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2906
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 40 + - col0 AS col0 FROM tab0
----
NULL

query I rowsort
SELECT ALL + col0 * + col2 + - col1 AS col0 FROM tab1
----
136
3638
7667

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 56 col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200

query I rowsort
SELECT ALL tab0.col0 + tab0.col0 FROM tab0, tab2, tab1 cor0
----
27 values hashing to 1c6e84d7f635ba3a028c9a60b14e4bac

query I rowsort
SELECT ALL col0 + col0 + + col0 AS col2 FROM tab2
----
21
234
237

query I rowsort
SELECT DISTINCT - 67 - - col2 FROM tab1
----
-10
-13
29

query I rowsort
SELECT - 77 - col2 AS col1 FROM tab2
----
-103
-104
-115

onlyif mysql # use DIV operator for integer division
query I rowsort label-2913
SELECT ALL + col2 DIV - col0 - col1 FROM tab0
----
-87
-91
-97

skipif mysql # not compatible
query I rowsort label-2913
SELECT ALL + col2 / - col0 - col1 FROM tab0
----
-87
-91
-97

query I rowsort
SELECT col2 + 94 * tab1.col2 + col0 * + col1 FROM tab1
----
10160
5208
6055

query I rowsort
SELECT DISTINCT + col2 + col0 - col0 FROM tab0
----
1
33
82

query I rowsort
SELECT ALL - 94 + col0 * + col1 FROM tab1
----
-16
546
946

query I rowsort
SELECT - cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

query I rowsort
SELECT DISTINCT - + col0 AS col0 FROM tab0 cor0
----
-24
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col0 + + col1 col2 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT - + cor0.col2 + col1 + - col0 AS col0 FROM tab0 AS cor0
----
-80
29
61

query I rowsort
SELECT ALL + 92 FROM tab2 AS cor0
----
92
92
92

query I rowsort
SELECT ALL - col1 * - cor0.col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT + 48 + + col2 * col0 FROM tab2 cor0
----
2076
237
3050

query I rowsort
SELECT col2 * + cor0.col0 + ( + 16 + + col0 ) AS col0 FROM tab1 AS cor0
----
181
3728
7776

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2925
SELECT - - CAST( NULL AS DECIMAL ) + - 42 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2925
SELECT - - CAST ( NULL AS REAL ) + - 42 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT 15 + + col1 * - 34 * + 91 AS col2 FROM tab2 AS cor0
----
-182531
-52583
-95899

query I rowsort
SELECT - - ( col0 ) * col1 AS col0 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT ALL - 12 AS col1 FROM tab1 AS cor0
----
-12
-12
-12

query I rowsort
SELECT ALL - col2 * + col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - col0 col0 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + col1 + + tab2.col0 FROM tab2
----
137
38
96

query I rowsort
SELECT DISTINCT - col2 * col2 * - col1 FROM tab0
----
611884
93654
97

query I rowsort
SELECT 68 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4

onlyif mysql # use DIV operator for integer division
query I rowsort label-2934
SELECT ALL col2 DIV col1 + - 36 + col2 AS col0 FROM tab0
----
-3
-35
46

skipif mysql # not compatible
query I rowsort label-2934
SELECT ALL col2 / col1 + - 36 + col2 AS col0 FROM tab0
----
-3
-35
46

onlyif mysql # use DIV operator for integer division
query I rowsort label-2935
SELECT - col2 DIV + col1 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2935
SELECT - col2 / + col1 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT + 29 + col1 * col0 FROM tab2 AS cor0
----
1372
246
4631

query I rowsort
SELECT - ( - col0 ) * - col1 * - col2 FROM tab0
----
3395
664118
68112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col1 + 28 col2 FROM tab0 AS cor0
----
2092
3423
8127

query I rowsort
SELECT col0 + 95 AS col1 FROM tab1 AS cor0
----
159
175
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col2 col1 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-2941
SELECT DISTINCT cor0.col1 DIV + col2 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2941
SELECT DISTINCT cor0.col1 / + col2 FROM tab1 cor0
----
0

query I rowsort
SELECT - + col1 * + ( col2 ) + col1 FROM tab0 cor0
----
-2752
-7371
0

query I rowsort
SELECT - + col1 + 67 AS col1 FROM tab2 cor0
----
36
50
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-2944
SELECT cor0.col2 DIV ( col1 ) + col0 + 67 AS col0 FROM tab2 AS cor0
----
145
148
74

skipif mysql # not compatible
query I rowsort label-2944
SELECT cor0.col2 / ( col1 ) + col0 + 67 AS col0 FROM tab2 AS cor0
----
145
148
74

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 col1 * + col2 AS col0 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT - col2 + - col0 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
-4153
-63
-6496

query I rowsort
SELECT ALL col0 * + 91 AS col1 FROM tab1 cor0
----
273
5824
7280

query I rowsort
SELECT + ( - tab0.col2 ) FROM tab0, tab1 cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT DISTINCT ( + col2 ) + col1 + - col0 * col2 FROM tab1
----
-3581
-7571
-82

query I rowsort
SELECT + 74 + - 23 FROM tab1
----
51
51
51

query I rowsort
SELECT DISTINCT - + col2 * cor0.col2 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
-1056
-6642
0

query I rowsort
SELECT ALL - - ( ( - col0 ) ) - 98 AS col0 FROM tab1 AS cor0
----
-101
-162
-178

query I rowsort
SELECT ALL + 17 * + col2 + - col2 FROM tab0 AS cor0
----
1312
16
528

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col1 col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT + col0 + 12 FROM tab0 AS cor0
----
101
36
47

query I rowsort
SELECT ALL col1 * - col1 * col0 + ( 2 ) FROM tab0 AS cor0
----
-177502
-329313
-737007

query I rowsort
SELECT ALL - 49 AS col0 FROM tab0 AS cor0
----
-49
-49
-49

query I rowsort
SELECT DISTINCT + + 38 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
266
2964
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-2960
SELECT DISTINCT col1 * + 88 + cor0.col1 DIV 16 col0 FROM tab1 AS cor0
----
1144
2289
880

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2960
SELECT DISTINCT col1 * + 88 + cor0.col1 / 16 col0 FROM tab1 AS cor0
----
1144
2289
880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 49 + - cor0.col2 * - col1 col2 FROM tab0 AS cor0
----
146
2887
7511

query I rowsort
SELECT - col1 * - col2 + - col0 + 94 * col1 AS col1 FROM tab1 AS cor0
----
1446
2390
3845

query I rowsort
SELECT - - col2 + - col2 * col2 * - col2 + col2 FROM tab1 AS cor0
----
157572
185307
884928

query I rowsort
SELECT DISTINCT - - col1 + + col2 AS col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT - 51 + + col2 + - col1 AS col2 FROM tab1
----
-23
-4
32

query I rowsort
SELECT DISTINCT 51 + - ( + col1 ) AS col1 FROM tab1
----
25
38
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + - cor0.col0 col2 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT col2 * + col1 + ( cor0.col1 ) AS col0 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT DISTINCT - col1 * col2 + col0 FROM tab0
----
-2814
-62
-7373

query I rowsort
SELECT col1 + - col0 AS col2 FROM tab0 WHERE ( NULL ) < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 BETWEEN ( + col0 + col2 - col1 ) AND NULL
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT col1 + col1 * - col0 FROM tab1
----
-1027
-52
-630

query I rowsort
SELECT tab2.col0 + - col2 * + tab2.col2 FROM tab2
----
-1365
-598
-722

onlyif mysql # use DIV operator for integer division
query I rowsort label-2974
SELECT DISTINCT + tab0.col0 * col2 DIV col2 - col1 FROM tab0
----
-2
-62

skipif mysql # not compatible
query I rowsort label-2974
SELECT DISTINCT + tab0.col0 * col2 / col2 - col1 FROM tab0
----
-2
-62

query I rowsort
SELECT - col1 + col1 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE NOT NULL >= col0 * col0
----

query I rowsort
SELECT ALL col0 + + col0 FROM tab2 WHERE NULL < NULL
----

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT - col2 + col1 - + col2 AS col2 FROM tab2
----
-23
-59
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-2980
SELECT + cor0.col2 + - col0 DIV + CAST( - 65 * col2 AS SIGNED ) FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-2980
SELECT + cor0.col2 + - col0 / + CAST ( - 65 * col2 AS INTEGER ) FROM tab0 AS cor0
----
1
33
82

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <> + col0
----

query I rowsort
SELECT ALL + tab2.col2 + + col1 * col1 FROM tab2
----
327
3507
988

query I rowsort
SELECT DISTINCT col2 * col1 * col2 - + col1 FROM tab0
----
0
611793
93568

query I rowsort
SELECT col0 FROM tab1 WHERE NOT ( NULL ) <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - col2 col2 FROM tab1
----
-108
-114
-192

query I rowsort
SELECT 20 * + cor0.col0 + cor0.col0 FROM tab0 cor0
----
1869
504
735

query I rowsort
SELECT DISTINCT 36 + col1 AS col0 FROM tab0 AS cor0
----
122
127
133

query I rowsort
SELECT DISTINCT col0 + - col2 FROM tab1
----
-16
-51
7

query I rowsort
SELECT ALL col0 * col1 FROM tab0 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT ALL - col1 * col2 + + col0 + - col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT + cor0.col0 + - cor0.col1 FROM tab2, tab0 AS cor0
----
-2
-62

query IIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0 WHERE NULL = ( NULL )
----

query I rowsort
SELECT - col2 * col1 * tab1.col0 + - col0 AS col2 FROM tab1
----
-36544
-4215
-99920

onlyif mysql # use DIV operator for integer division
query I rowsort label-2994
SELECT + col1 + + col0 DIV - col0 FROM tab1
----
12
25
9

skipif mysql # not compatible
query I rowsort label-2994
SELECT + col1 + + col0 / - col0 FROM tab1
----
12
25
9

query I rowsort
SELECT DISTINCT col2 * col1 FROM tab0 WHERE ( NULL ) NOT BETWEEN - col2 AND col2
----

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE NOT ( + col0 ) IN ( col2 * - col1 )
----
10
13
26

query I rowsort
SELECT col0 + col1 * col0 AS col2 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT + col0 + tab2.col2 AS col1 FROM tab2
----
104
117
34

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab2 WHERE NOT NULL < - tab2.col2 * - col2 * col0 + col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) >= NULL
----

query I rowsort
SELECT DISTINCT - - ( 78 ) * col1 - col1 FROM tab0 AS cor0
----
6622
7007
7469

query I rowsort
SELECT cor1.col2 * 29 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 581273acc0f9c729e00d0abfafac7ebf

query I rowsort
SELECT 87 + 90 * + col1 FROM tab2 AS cor0
----
1617
2877
5397

query I rowsort
SELECT + - 27 * 93 + + col1 AS col1 FROM tab0 AS cor0
----
-2414
-2420
-2425

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3005
SELECT + - CAST( col1 AS SIGNED ) + col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3005
SELECT + - CAST ( col1 AS INTEGER ) + col1 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 + - col0 col2 FROM tab2 AS cor0
----
-14
-156
-158

query I rowsort
SELECT - 13 * col0 - col0 * 27 FROM tab1
----
-120
-2560
-3200

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3008
SELECT ALL + CAST( 10 AS SIGNED ) + + col0 col1 FROM tab0
----
34
45
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3008
SELECT ALL + CAST ( 10 AS INTEGER ) + + col0 col1 FROM tab0
----
34
45
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-3009
SELECT ALL + - col2 DIV col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3009
SELECT ALL + - col2 / col2 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + 17 FROM tab1 AS cor0
----
17

query I rowsort
SELECT DISTINCT + ( + 58 ) AS col2 FROM tab0
----
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( + tab0.col2 ) * + cor0.col0 col2 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 730403255d59bd0bae6b3991e182991d

query I rowsort
SELECT ALL - cor1.col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT 61 FROM tab2, tab2 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290

onlyif mysql # use DIV operator for integer division
query I rowsort label-3015
SELECT - 90 - + tab1.col1 DIV col1 FROM tab1
----
-91
-91
-91

skipif mysql # not compatible
query I rowsort label-3015
SELECT - 90 - + tab1.col1 / col1 FROM tab1
----
-91
-91
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + 54 * + ( - col1 ) col1 FROM tab1 AS cor0
----
-1430
-550
-715

query I rowsort
SELECT DISTINCT - cor0.col2 * + 27 FROM tab0 cor0
----
-2214
-27
-891

query I rowsort
SELECT DISTINCT col1 + cor0.col2 AS col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT col2 + + col1 * + col0 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT + col0 * - col0 + ( - ( - col2 ) ) * col2 - - tab0.col0 FROM tab0
----
-1108
-1189
537

query I rowsort
SELECT ALL - + cor0.col0 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT DISTINCT + ( tab0.col2 ) AS col2 FROM tab0, tab1, tab1 cor0
----
1
33
82

query I rowsort
SELECT ALL + 0 * col1 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3024
SELECT col0 DIV + col1 col0 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3024
SELECT col0 / + col1 col0 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3025
SELECT ( - col0 ) DIV col1 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3025
SELECT ( - col0 ) / col1 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT tab1.col0 + 23 * tab1.col2 FROM tab1
----
1245
1375
2288

query I rowsort
SELECT DISTINCT + tab2.col0 AS col1 FROM tab2, tab1 cor0
----
7
78
79

query I rowsort
SELECT col1 * - col1 + + col1 FROM tab2 AS cor0
----
-272
-3422
-930

query I rowsort
SELECT DISTINCT + tab2.col0 + + col1 * 59 AS col2 FROM tab2
----
1082
1836
3559

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to c9ee6ec1bc8c6eb5f95042f98a50bd57

query I rowsort
SELECT col0 * - 32 - 80 * - col1 AS col1 FROM tab0
----
4432
6112
6640

query I rowsort
SELECT - col1 * ( + 52 + - cor0.col0 ) FROM tab1 AS cor0
----
-1274
120
364

query I rowsort
SELECT + col1 * - cor0.col1 * + col0 - cor0.col1 AS col2 FROM tab0 AS cor0
----
-177590
-329412
-737100

query I rowsort
SELECT DISTINCT - col1 + col0 * - col2 * col1 FROM tab1 AS cor0
----
-36490
-4238
-99853

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3035
SELECT ALL col0 * + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3035
SELECT ALL col0 * + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3036
SELECT col2 * ( cor0.col0 ) + col1 DIV + 67 + col2 * + col2 * - 36 col2 FROM tab1 cor0
----
-104814
-113316
-324096

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3036
SELECT col2 * ( cor0.col0 ) + col1 / + 67 + col2 * + col2 * - 36 col2 FROM tab1 cor0
----
-104814
-113316
-324096

query I rowsort
SELECT col1 * + 12 FROM tab0 AS cor0
----
1032
1092
1164

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3038
SELECT + + col0 + + CAST( NULL AS SIGNED ) * col2 * col2 + 42 * ( cor0.col1 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3038
SELECT + + col0 + + CAST ( NULL AS INTEGER ) * col2 * col2 + 42 * ( cor0.col1 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 60 AS col1 FROM tab0
----
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + col0 * + col1 col2 FROM tab0 AS cor0
----
1978
3298
8008

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3041
SELECT + - CAST( col0 AS SIGNED ) * cor0.col1 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort label-3041
SELECT + - CAST ( col0 AS INTEGER ) * cor0.col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL + - 84 FROM tab2 cor0
----
-84
-84
-84

query I rowsort
SELECT ALL - col0 + - col1 + + col0 AS col0 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT - 20 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

query I rowsort
SELECT 25 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query I rowsort
SELECT DISTINCT - 16 * - 84 - col0 FROM tab0 AS cor0
----
1255
1309
1320

query I rowsort
SELECT DISTINCT - - 60 + - col2 * + col1 FROM tab2 AS cor0
----
-1474
-586
-777

query I rowsort
SELECT - 76 * 71 * col2 + + col1 AS col2 FROM tab0 AS cor0
----
-177982
-442381
-5299

onlyif mysql # use DIV operator for integer division
query I rowsort label-3049
SELECT - col2 DIV 12 + col1 * - col0 AS col1 FROM tab1 AS cor0
----
-1048
-644
-82

skipif mysql # not compatible
query I rowsort label-3049
SELECT - col2 / 12 + col1 * - col0 AS col1 FROM tab1 AS cor0
----
-1048
-644
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 23 + + ( - cor0.col1 ) col1 FROM tab0 AS cor0
----
-63
-68
-74

query I rowsort
SELECT DISTINCT - 45 + - col2 * - col2 AS col0 FROM tab2 AS cor0
----
1399
631
684

onlyif mysql # use DIV operator for integer division
query I rowsort label-3052
SELECT 69 DIV + col0 AS col1 FROM tab2 AS cor0
----
0
0
9

skipif mysql # not compatible
query I rowsort label-3052
SELECT 69 / + col0 AS col1 FROM tab2 AS cor0
----
0
0
9

query I rowsort
SELECT DISTINCT + 45 * - col1 FROM tab0 AS cor0
----
-3870
-4095
-4365

onlyif mysql # use DIV operator for integer division
query I rowsort label-3054
SELECT DISTINCT - + col1 DIV cor0.col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3054
SELECT DISTINCT - + col1 / cor0.col2 FROM tab1 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3055
SELECT - col0 DIV col1 AS col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3055
SELECT - col0 / col1 AS col1 FROM tab0 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3056
SELECT ALL col2 DIV col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3056
SELECT ALL col2 / col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 41 + cor0.col1 AS col0 FROM tab1 AS cor0
----
51
54
67

query I rowsort
SELECT - 59 + col1 AS col2 FROM tab0 AS cor0
----
27
32
38

query I rowsort
SELECT DISTINCT - col2 + - col2 FROM tab1 AS cor0
----
-108
-114
-192

onlyif mysql # use DIV operator for integer division
query I rowsort label-3060
SELECT ALL - col2 * col2 DIV cor0.col1 + - col0 AS col2 FROM tab2 cor0
----
-163
-30
-89

skipif mysql # not compatible
query I rowsort label-3060
SELECT ALL - col2 * col2 / cor0.col1 + - col0 AS col2 FROM tab2 cor0
----
-163
-30
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-3061
SELECT + col1 * col2 DIV - col0 AS col0 FROM tab0 AS cor0
----
-118
-2
-83

skipif mysql # not compatible
query I rowsort label-3061
SELECT + col1 * col2 / - col0 AS col0 FROM tab0 AS cor0
----
-118
-2
-83

query I rowsort
SELECT DISTINCT ( + col0 ) + - col0 FROM tab0
----
0

query I rowsort
SELECT DISTINCT + 72 FROM tab0, tab0 AS cor0
----
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) + - col2 * col2 col0 FROM tab2
----
-1365
-598
-722

query I rowsort
SELECT col0 + + 33 * - col0 FROM tab0
----
-1120
-2848
-768

query I rowsort
SELECT + 31 + ( + tab2.col2 ) FROM tab2
----
57
58
69

query I rowsort
SELECT ALL 16 + - col1 * - tab0.col2 AS col1 FROM tab0
----
113
2854
7478

query I rowsort
SELECT ALL col0 * col1 + + col0 FROM tab2
----
1422
224
4680

query I rowsort
SELECT ALL 47 + - ( col2 ) AS col1 FROM tab0
----
-35
14
46

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3070
SELECT DISTINCT col1 * CAST( NULL AS SIGNED ) * col0 + + col2 * col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3070
SELECT DISTINCT col1 * CAST ( NULL AS INTEGER ) * col0 + + col2 * col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * + col2 col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL col0 * ( col1 ) - col1 * col1 FROM tab1 AS cor0
----
-598
540
871

query I rowsort
SELECT - cor0.col0 + 53 AS col1 FROM tab2 AS cor0
----
-25
-26
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 * - 87 col1 FROM tab2 cor0
----
609
6786
6873

query I rowsort
SELECT + col0 - 28 AS col2 FROM tab1 AS cor0
----
-25
36
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-3076
SELECT ALL col2 DIV - col1 AS col0 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-3076
SELECT ALL col2 / - col1 AS col0 FROM tab1 AS cor0
----
-2
-5
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col0 + + col1 col2 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT DISTINCT + col2 * 94 + + 32 * + col2 + col1 AS col1 FROM tab0 AS cor0
----
10423
223
4244

query I rowsort
SELECT ALL ( + col1 + 9 ) AS col1 FROM tab2
----
26
40
68

query I rowsort
SELECT 71 AS col2 FROM tab1
----
71
71
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col1 * ( col1 ) col2 FROM tab2 AS cor0
----
-289
-3481
-961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * 16 col1 FROM tab0 AS cor0
----
-1312
-16
-528

query I rowsort
SELECT + cor0.col2 * + ( 63 + col1 ) AS col0 FROM tab2 cor0
----
2538
3040
3172

query I rowsort
SELECT ALL - - col0 + + col1 * - col0 FROM tab1 AS cor0
----
-576
-75
-960

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3085
SELECT ALL + col2 * - CAST( NULL AS SIGNED ) * col2 - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3085
SELECT ALL + col2 * - CAST ( NULL AS INTEGER ) * col2 - col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3086
SELECT - col0 * col1 DIV 50 FROM tab2
----
-26
-4
-92

skipif mysql # not compatible
query I rowsort label-3086
SELECT - col0 * col1 / 50 FROM tab2
----
-26
-4
-92

query I rowsort
SELECT DISTINCT - col1 + 40 FROM tab0 AS cor0
----
-46
-51
-57

query I rowsort
SELECT DISTINCT cor0.col2 * col1 + col2 * - cor0.col0 AS col0 FROM tab2 cor0
----
-2356
-494
648

query I rowsort
SELECT + 1 FROM tab0, tab2 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT DISTINCT + col0 + 25 FROM tab1
----
105
28
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-3091
SELECT - - col1 DIV + 19 - cor0.col2 AS col1 FROM tab2 AS cor0
----
-23
-26
-38

skipif mysql # not compatible
query I rowsort label-3091
SELECT - - col1 / + 19 - cor0.col2 AS col1 FROM tab2 AS cor0
----
-23
-26
-38

query I rowsort
SELECT + + col1 + - 74 * col1 AS col1 FROM tab2 AS cor0
----
-1241
-2263
-4307

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3093
SELECT DISTINCT + CAST( NULL AS SIGNED ) - cor0.col2 FROM tab2, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3093
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - cor0.col2 FROM tab2, tab1 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3094
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 36 FROM tab0, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3094
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 36 FROM tab0, tab0 AS cor0
----
NULL

query I rowsort
SELECT - - col0 * col1 + col1 FROM tab1 cor0
----
104
1053
650

query I rowsort
SELECT - + col2 * + col1 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT - col1 * cor0.col0 - col0 FROM tab2 AS cor0
----
-1422
-224
-4680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + col0 col0 FROM tab1 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3099
SELECT ALL + col1 + - tab0.col2 + + col1 DIV + col0 AS col2 FROM tab0
----
10
56
98

skipif mysql # not compatible
query I rowsort label-3099
SELECT ALL + col1 + - tab0.col2 + + col1 / + col0 AS col2 FROM tab0
----
10
56
98

query I rowsort
SELECT ALL tab1.col1 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT ALL + col2 + col2 * - col0 + - col2 AS col2 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT - tab2.col2 + + col1 * - col0 + - col0 AS col1 FROM tab2
----
-1460
-251
-4706

query I rowsort
SELECT col1 * col0 AS col2 FROM tab1 WHERE NULL <= NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3104
SELECT ALL col1 + + cor0.col2 DIV col1 FROM tab1 cor0
----
15
20
28

skipif mysql # not compatible
query I rowsort label-3104
SELECT ALL col1 + + cor0.col2 / col1 FROM tab1 cor0
----
15
20
28

query I rowsort
SELECT - col1 - col2 * + col0 AS col0 FROM tab0 cor0
----
-132
-7389
-878

onlyif mysql # use DIV operator for integer division
query I rowsort label-3106
SELECT ALL + cor0.col1 + + col0 DIV - col0 FROM tab1 AS cor0
----
12
25
9

skipif mysql # not compatible
query I rowsort label-3106
SELECT ALL + cor0.col1 + + col0 / - col0 FROM tab1 AS cor0
----
12
25
9

query I rowsort
SELECT + col0 * + col0 * col1 AS col0 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT DISTINCT + - col0 * + col2 + + col0 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT + cor0.col0 - cor0.col2 AS col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT + ( col2 * + col1 ) FROM tab1
----
1248
1404
570

query I rowsort
SELECT DISTINCT - tab1.col0 FROM tab1, tab2 AS cor0
----
-3
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3112
SELECT ALL + col2 * + col0 DIV col0 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-3112
SELECT ALL + col2 * + col0 / col0 FROM tab1
----
54
57
96

query I rowsort
SELECT DISTINCT ( - cor0.col2 ) + col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT + + 78 FROM tab1 AS cor0
----
78
78
78

query I rowsort
SELECT 83 * col1 FROM tab0 AS cor0
----
7138
7553
8051

query I rowsort
SELECT ALL + col1 * col0 AS col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL + col1 + col0 * col1 AS col2 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT DISTINCT + col1 * + cor0.col0 AS col2 FROM tab1 cor0
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

onlyif mysql # use DIV operator for integer division
query I rowsort label-3120
SELECT DISTINCT - col2 * 22 DIV - col1 FROM tab2 AS cor0
----
19
49
9

skipif mysql # not compatible
query I rowsort label-3120
SELECT DISTINCT - col2 * 22 / - col1 FROM tab2 AS cor0
----
19
49
9

query I rowsort
SELECT + + col1 * 95 FROM tab1 AS cor0
----
1235
2470
950

onlyif mysql # use DIV operator for integer division
query I rowsort label-3122
SELECT ALL - col0 * - 89 + col1 - + col2 * col1 DIV 22 FROM tab2 AS cor0
----
616
6932
7019

skipif mysql # not compatible
query I rowsort label-3122
SELECT ALL - col0 * - 89 + col1 - + col2 * col1 / 22 FROM tab2 AS cor0
----
616
6932
7019

query I rowsort
SELECT ALL - cor0.col0 + 94 FROM tab1, tab1 cor0
----
9 values hashing to 689e6a74d3e2c1721fc29f62ebee8786

onlyif mysql # use DIV operator for integer division
query I rowsort label-3124
SELECT + col0 + - 6 DIV col1 AS col2 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-3124
SELECT + col0 + - 6 / col1 AS col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL + - cor0.col0 * 3 * + 86 + - cor0.col2 AS col0 FROM tab2 AS cor0
----
-1833
-20150
-20420

query I rowsort
SELECT ALL col1 + - col2 * - 7 * col0 FROM tab1 cor0
----
1160
25546
53773

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3127
SELECT DISTINCT - col0 / CAST( NULL AS SIGNED ) + 8 * - col2 - col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3127
SELECT DISTINCT - col0 / CAST ( NULL AS INTEGER ) + 8 * - col2 - col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + col0 + col2 + - 61 AS col2 FROM tab1
----
-4
115
60

query I rowsort
SELECT - 30 * - tab0.col2 AS col1 FROM tab0
----
2460
30
990

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col0 * col0 col1 FROM tab1
----
262144
27
512000

query I rowsort
SELECT col1 * ( col0 * + col2 ) + - 74 * - 79 AS col0 FROM tab2
----
11705
125498
56880

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3132
SELECT col1 + CAST( col2 AS SIGNED ) * + col0 FROM tab2 AS cor0
----
2087
220
3019

skipif mysql # not compatible
query I rowsort label-3132
SELECT col1 + CAST ( col2 AS INTEGER ) * + col0 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT ( cor0.col0 ) FROM tab1, tab1 AS cor0 CROSS JOIN tab0, tab2 cor1
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b

query I rowsort
SELECT cor0.col1 + + col0 AS col2 FROM tab2 AS cor0
----
137
38
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3135
SELECT ALL + col1 * - col0 + + CAST( NULL AS DECIMAL ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3135
SELECT ALL + col1 * - col0 + + CAST ( NULL AS REAL ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 43 AS col0 FROM tab1
----
43
43
43

query I rowsort
SELECT - col1 + col2 * - 64 FROM tab2 AS cor0
----
-1723
-1759
-2449

query I rowsort
SELECT - col1 * - col0 + - 91 + 35 * cor0.col0 AS col1 FROM tab2 cor0
----
371
4017
7241

query I rowsort
SELECT ALL 91 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT DISTINCT + + col0 * + col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT + - 79 * col1 * + col1 + col1 AS col2 FROM tab0 AS cor0
----
-584198
-654108
-743214

query I rowsort
SELECT DISTINCT - 42 + col2 FROM tab0 cor0
----
-41
-9
40

query I rowsort
SELECT + - 1 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3144
SELECT ALL cor0.col2 DIV + col1 - + ( + col1 ) FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-3144
SELECT ALL cor0.col2 / + col1 - + ( + col1 ) FROM tab0 AS cor0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3145
SELECT ALL + col1 * cor0.col1 DIV 88 + 51 + col0 * - col1 FROM tab1 AS cor0
----
-20
-588
-988

skipif mysql # not compatible
query I rowsort label-3145
SELECT ALL + col1 * cor0.col1 / 88 + 51 + col0 * - col1 FROM tab1 AS cor0
----
-20
-588
-988

query I rowsort
SELECT + col1 - + col2 AS col1 FROM tab0 AS cor0
----
53
9
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col0 - - col1 col2 FROM tab0 cor0
----
1322
662
8012

query I rowsort
SELECT + cor0.col2 + cor0.col2 * + col2 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT DISTINCT + - col1 + + col1 + - ( col0 ) FROM tab0 AS cor0
----
-24
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + cor0.col1 col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 15ff38272c484fb486e1883e64781cf3

query I rowsort
SELECT ALL + col1 * + 95 AS col0 FROM tab1 cor0
----
1235
2470
950

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT col1 + col2 * + col2 + + col2 AS col1 FROM tab2 AS cor0
----
1499
761
787

query I rowsort
SELECT DISTINCT - - col1 + 60 * col2 + cor0.col2 FROM tab1 AS cor0
----
3320
3487
5869

query I rowsort
SELECT ALL - - col2 * - col0 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL - ( col2 ) * col1 - + 66 AS col2 FROM tab0
----
-163
-2904
-7528

onlyif mysql # use DIV operator for integer division
query I rowsort label-3157
SELECT cor0.col2 + + ( col2 ) DIV col0 AS col0 FROM tab1 AS cor0
----
57
72
97

skipif mysql # not compatible
query I rowsort label-3157
SELECT cor0.col2 + + ( col2 ) / col0 AS col0 FROM tab1 AS cor0
----
57
72
97

query I rowsort
SELECT col2 * - col0 + col2 + col0 AS col2 FROM tab2 AS cor0
----
-155
-1924
-2885

query I rowsort
SELECT 1 AS col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + 96 * + 45 FROM tab2 AS cor0
----
4320

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3161
SELECT + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3161
SELECT + CAST ( NULL AS REAL ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 36 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query I rowsort
SELECT + 66 + - 4 AS col2 FROM tab1 AS cor0
----
62
62
62

query I rowsort
SELECT DISTINCT - - cor0.col2 * + col2 + col2 * + 38 FROM tab0 cor0
----
2343
39
9840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col2 * - col1 col1 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT ( + 45 ) * - col0 AS col0 FROM tab2 cor0
----
-315
-3510
-3555

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3167
SELECT ALL + CAST( NULL AS SIGNED ) * - ( - col2 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3167
SELECT ALL + CAST ( NULL AS INTEGER ) * - ( - col2 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3168
SELECT - - CAST( + col0 AS SIGNED ) * - col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921

skipif mysql # not compatible
query I rowsort label-3168
SELECT - - CAST ( + col0 AS INTEGER ) * - col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT tab2.col2 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT DISTINCT - 38 AS col2 FROM tab1, tab1 AS cor0
----
-38

query I rowsort
SELECT DISTINCT + 11 FROM tab2 cor0
----
11

query I rowsort
SELECT ALL - col0 + - col2 AS col1 FROM tab0 AS cor0
----
-171
-36
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-3173
SELECT - 45 + - col1 + + col1 DIV col2 AS col1 FROM tab1 AS cor0
----
-55
-58
-71

skipif mysql # not compatible
query I rowsort label-3173
SELECT - 45 + - col1 + + col1 / col2 AS col1 FROM tab1 AS cor0
----
-55
-58
-71

query I rowsort
SELECT DISTINCT + - col1 * col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT - ( col1 * + col2 ) AS col2 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT 42 * - tab0.col2 + + col2 FROM tab0
----
-1353
-3362
-41

query I rowsort
SELECT ( 4 ) + col2 FROM tab2
----
30
31
42

query I rowsort
SELECT col1 - + 70 AS col0 FROM tab1
----
-44
-57
-60

query IIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab2 AS cor2
----
972 values hashing to e486ce227b61d9db6f8414f9d6361094

query I rowsort
SELECT - ( + 53 ) * col1 - + col2 AS col2 FROM tab2 cor0
----
-1670
-3153
-939

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3181
SELECT DISTINCT - CAST( 87 AS SIGNED ) * col0 + - col1 AS col0 FROM tab2 AS cor0
----
-640
-6845
-6890

skipif mysql # not compatible
query I rowsort label-3181
SELECT DISTINCT - CAST ( 87 AS INTEGER ) * col0 + - col1 AS col0 FROM tab2 AS cor0
----
-640
-6845
-6890

query I rowsort
SELECT DISTINCT + 71 + col0 FROM tab2 AS cor0
----
149
150
78

query I rowsort
SELECT - - 63 FROM tab0 AS cor0
----
63
63
63

query I rowsort
SELECT ALL tab2.col2 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT DISTINCT ( - col2 * - col1 ) FROM tab1
----
1248
1404
570

query I rowsort
SELECT ( col0 ) * - col2 AS col2 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT ALL + col1 * 87 AS col1 FROM tab2 AS cor0
----
1479
2697
5133

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( - col2 AS REAL ) * + cor0.col2 AS col0 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT col1 + col1 * - col0 * + col1 FROM tab1 AS cor0
----
-13507
-2002
-6390

query I rowsort
SELECT + + ( cor0.col0 ) + col2 FROM tab2 AS cor0
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-3191
SELECT ALL col2 DIV col0 AS col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3191
SELECT ALL col2 / col0 AS col0 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT + - col0 * 54 AS col1 FROM tab2 cor0
----
-378
-4212
-4266

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - cor0.col2 ) * + col1 col2 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3194
SELECT DISTINCT - col2 DIV col0 AS col0 FROM tab2 AS cor0
----
-3
0

skipif mysql # not compatible
query I rowsort label-3194
SELECT DISTINCT - col2 / col0 AS col0 FROM tab2 AS cor0
----
-3
0

query I rowsort
SELECT - col1 + + col2 * - col2 AS col1 FROM tab2 cor0
----
-1461
-735
-760

query I rowsort
SELECT ALL 81 + col0 AS col0 FROM tab0 AS cor0
----
105
116
170

onlyif mysql # use DIV operator for integer division
query I rowsort label-3197
SELECT DISTINCT col1 * col2 DIV - 82 FROM tab0
----
-1
-34
-91

skipif mysql # not compatible
query I rowsort label-3197
SELECT DISTINCT col1 * col2 / - 82 FROM tab0
----
-1
-34
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col0 * + col0 col1 FROM tab2
----
49
6084
6241

query I rowsort
SELECT DISTINCT - ( - col0 + + tab0.col0 ) AS col1 FROM tab0
----
0

query I rowsort
SELECT DISTINCT 77 AS col1 FROM tab2
----
77

query I rowsort
SELECT + 64 + - col2 AS col0 FROM tab0
----
-18
31
63

query I rowsort
SELECT DISTINCT + + col0 + + col0 * ( col2 + + col1 ) * 68 AS col0 FROM tab1 AS cor0
----
16323
291648
593040

query I rowsort
SELECT DISTINCT - ( - col1 ) + + 89 * 58 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
-134153
-139343
-196139

query I rowsort
SELECT ALL col1 + cor0.col1 AS col0 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT ALL - col2 + col2 + col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT - - col1 + 87 AS col2 FROM tab0 AS cor0
----
173
178
184

query I rowsort
SELECT ALL + + col2 * ( ( + col1 ) * + col0 ) AS col2 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT ALL col2 + - 84 * col2 FROM tab1 AS cor0
----
-4482
-4731
-7968

query I rowsort
SELECT col0 + + 17 AS col2 FROM tab2 AS cor0
----
24
95
96

query I rowsort
SELECT DISTINCT + + col1 + + 64 AS col1 FROM tab0 AS cor0
----
150
155
161

query I rowsort
SELECT DISTINCT - - col0 * 62 * col1 AS col2 FROM tab1 AS cor0
----
39680
4836
64480

query I rowsort
SELECT col2 * - col2 - col1 AS col0 FROM tab2 AS cor0
----
-1461
-735
-760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3213
SELECT + col2 * CAST( col2 + - col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
1512
2679
7968

skipif mysql # not compatible
query I rowsort label-3213
SELECT + col2 * CAST ( col2 + - col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
1512
2679
7968

query I rowsort
SELECT DISTINCT col0 * + 15 AS col1 FROM tab2 AS cor0
----
105
1170
1185

onlyif mysql # use DIV operator for integer division
query I rowsort label-3215
SELECT col0 DIV + col1 FROM tab1 cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-3215
SELECT col0 / + col1 FROM tab1 cor0
----
0
6
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3216
SELECT ALL - + col2 * CAST( + col2 * col2 AS SIGNED ) FROM tab2 AS cor0
----
-17576
-19683
-54872

skipif mysql # not compatible
query I rowsort label-3216
SELECT ALL - + col2 * CAST ( + col2 * col2 AS INTEGER ) FROM tab2 AS cor0
----
-17576
-19683
-54872

onlyif mysql # use DIV operator for integer division
query I rowsort label-3217
SELECT - col0 * col0 DIV col0 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-3217
SELECT - col0 * col0 / col0 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT col1 + + ( col0 ) AS col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT DISTINCT - col0 * + col0 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - 79 col2 FROM tab1 AS cor0
----
-15
-76
1

query I rowsort
SELECT ALL cor0.col1 + 3 FROM tab1, tab0 AS cor0
----
9 values hashing to ca1aad34ef894de7ffe30a95f0eabb52

query I rowsort
SELECT + col1 * - 18 * + col2 FROM tab0 AS cor0
----
-134316
-1746
-51084

query I rowsort
SELECT + 93 * ( - col2 ) - - col1 FROM tab2 cor0
----
-2359
-2480
-3517

query I rowsort
SELECT - + ( - col1 ) * - col0 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT 11 * 63 FROM tab1 AS cor0
----
693
693
693

query I rowsort
SELECT + + ( cor0.col1 ) * col1 FROM tab2 cor0
----
289
3481
961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * + cor0.col2 - + col0 col1 FROM tab0 AS cor0
----
-34
1065
6635

query I rowsort
SELECT cor0.col0 + col1 * + col2 AS col0 FROM tab0 AS cor0
----
132
2862
7551

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3229
SELECT - - CAST( 87 AS SIGNED ) * col2 * col1 FROM tab1 AS cor0
----
108576
122148
49590

skipif mysql # not compatible
query I rowsort label-3229
SELECT - - CAST ( 87 AS INTEGER ) * col2 * col1 FROM tab1 AS cor0
----
108576
122148
49590

query I rowsort
SELECT DISTINCT + 90 * + tab1.col2 - cor0.col1 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 3ad2a17b2b3d71610215adc6887b3bc4

query I rowsort
SELECT - tab0.col0 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT ALL + - col2 + - col0 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT DISTINCT + col1 + + col0 AS col2 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT col0 * col2 + col2 * cor0.col2 FROM tab0 AS cor0
----
14022
1881
36

query I rowsort
SELECT ALL cor0.col0 * - col1 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( cor0.col2 ) col2 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT ALL + col0 * col0 + - 84 + + cor0.col1 FROM tab1 AS cor0
----
-49
4022
6329

query I rowsort
SELECT DISTINCT + cor0.col2 + 51 FROM tab1, tab0 cor0, tab1 AS cor1
----
133
52
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + col0 col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL - 11 + + 43 FROM tab0
----
32
32
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-3241
SELECT - 40 DIV col0 + col0 FROM tab0 AS cor0
----
23
34
89

skipif mysql # not compatible
query I rowsort label-3241
SELECT - 40 / col0 + col0 FROM tab0 AS cor0
----
23
34
89

query I rowsort
SELECT ALL - 15 + col1 * col2 AS col1 FROM tab1 AS cor0
----
1233
1389
555

query I rowsort
SELECT + + col1 + col1 * - col2 AS col1 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT DISTINCT + 15 - cor0.col2 FROM tab2 AS cor0
----
-11
-12
-23

query I rowsort
SELECT DISTINCT - col0 * col1 * 82 AS col1 FROM tab0 AS cor0
----
-169248
-278390
-664118

query I rowsort
SELECT 68 + col0 FROM tab0 AS cor0
----
103
157
92

query I rowsort
SELECT col0 + cor0.col1 * col2 AS col2 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT + 26 + col1 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
1560
672
863

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3249
SELECT + CAST( - col2 AS SIGNED ) + + col2 * cor0.col2 FROM tab2 AS cor0
----
1406
650
702

skipif mysql # not compatible
query I rowsort label-3249
SELECT + CAST ( - col2 AS INTEGER ) + + col2 * cor0.col2 FROM tab2 AS cor0
----
1406
650
702

query I rowsort
SELECT col1 + 95 FROM tab0 AS cor0
----
181
186
192

query I rowsort
SELECT ( + col1 ) * col0 - - col1 AS col0 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT - + tab0.col1 FROM tab0, tab2, tab0 cor0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT ALL - col0 * + tab2.col2 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT tab1.col2 FROM tab1, tab0, tab2 cor0, tab2
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3255
SELECT DISTINCT + - CAST( col1 AS SIGNED ) * col0 + - 75 * col2 FROM tab2 AS cor0
----
-2242
-4193
-6552

skipif mysql # not compatible
query I rowsort label-3255
SELECT DISTINCT + - CAST ( col1 AS INTEGER ) * col0 + - 75 * col2 FROM tab2 AS cor0
----
-2242
-4193
-6552

query I rowsort
SELECT + col2 * - 48 FROM tab0 AS cor0
----
-1584
-3936
-48

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3257
SELECT ALL CAST( NULL AS SIGNED ) - 97 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3257
SELECT ALL CAST ( NULL AS INTEGER ) - 97 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + col1 * col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3259
SELECT DISTINCT - ( cor0.col2 ) DIV + col1 + - col2 AS col2 FROM tab1 AS cor0
----
-103
-56
-62

skipif mysql # not compatible
query I rowsort label-3259
SELECT DISTINCT - ( cor0.col2 ) / + col1 + - col2 AS col2 FROM tab1 AS cor0
----
-103
-56
-62

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 AS cor2
----
3645 values hashing to ac17da4547aa356439ff11568174588c

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + col0 AS REAL ) AS col1 FROM tab2
----
7
78
79

query I rowsort
SELECT + col0 + + col1 AS col0 FROM tab2
----
137
38
96

query I rowsort
SELECT + 99 + col2 AS col2 FROM tab0 AS cor0
----
100
132
181

query I rowsort
SELECT DISTINCT - 68 AS col2 FROM tab1, tab0 AS cor0
----
-68

query I rowsort
SELECT DISTINCT 59 AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
59

query I rowsort
SELECT DISTINCT + col1 * col2 * col1 AS col2 FROM tab0
----
244068
679042
9409

query I rowsort
SELECT DISTINCT 54 - - 34 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
88

query I rowsort
SELECT 80 AS col2 FROM tab1
----
80
80
80

query I rowsort
SELECT DISTINCT tab0.col1 * - col0 AS col2 FROM tab0
----
-2064
-3395
-8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3270
SELECT DISTINCT - col2 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3270
SELECT DISTINCT - col2 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col1 - ( + col2 ) FROM tab2
----
-21
33
4

query I rowsort
SELECT - col1 + + cor0.col2 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT - col2 * - ( - 45 + col0 * + col2 ) FROM tab1 AS cor0
----
205371
6318
732960

query I rowsort
SELECT col1 + 58 FROM tab2 AS cor0
----
117
75
89

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to 28412d50061391eec23a02d0efcfb3f9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 86 col1 FROM tab2 AS cor0
----
602
6708
6794

query I rowsort
SELECT + col0 + + ( - col2 ) * 11 * - col0 + + col0 AS col2 FROM tab2 AS cor0
----
2093
22464
33180

query I rowsort
SELECT ALL - cor0.col1 * + col0 AS col2 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT - col0 + - cor0.col0 FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT DISTINCT ( cor0.col0 ) + col1 AS col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT DISTINCT - - ( - 94 ) FROM tab2 AS cor0
----
-94

query I rowsort
SELECT ALL tab1.col2 + col2 * - col0 AS col1 FROM tab1
----
-108
-3591
-7584

query I rowsort
SELECT ALL - - ( ( col0 ) ) FROM tab2 AS cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-3284
SELECT - - col0 DIV - cor0.col1 - + col1 AS col2 FROM tab2 AS cor0
----
-21
-31
-60

skipif mysql # not compatible
query I rowsort label-3284
SELECT - - col0 / - cor0.col1 - + col1 AS col2 FROM tab2 AS cor0
----
-21
-31
-60

query I rowsort
SELECT ALL + 32 AS col2 FROM tab1 cor0
----
32
32
32

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3286
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3286
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT - 79 AS col0 FROM tab1 AS cor0
----
-79

query I rowsort
SELECT 66 AS col0 FROM tab1, tab1 cor0, tab1 AS cor1, tab0 cor2
----
81 values hashing to dc112f70fecc29a6e605a39541192f43

onlyif mysql # use DIV operator for integer division
query I rowsort label-3289
SELECT - CAST( - col1 AS SIGNED ) DIV + col1 AS col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3289
SELECT - CAST ( - col1 AS INTEGER ) / + col1 AS col0 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT - - ( + col0 ) + + col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT cor1.col1 AS col2 FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT + + col0 * - cor0.col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT ALL - col1 * tab0.col2 AS col1 FROM tab0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3294
SELECT DISTINCT ( tab1.col1 + col2 ) DIV - 37 FROM tab1
----
-1
-2

skipif mysql # not compatible
query I rowsort label-3294
SELECT DISTINCT ( tab1.col1 + col2 ) / - 37 FROM tab1
----
-1
-2

query I rowsort
SELECT - col1 * col0 - 75 FROM tab0
----
-2139
-3470
-8174

onlyif mysql # use DIV operator for integer division
query I rowsort label-3296
SELECT - 70 + - col0 DIV - cor0.col1 col1 FROM tab0 AS cor0
----
-70
-70
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3296
SELECT - 70 + - col0 / - cor0.col1 col1 FROM tab0 AS cor0
----
-70
-70
-70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3297
SELECT DISTINCT + 41 - + col2 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3297
SELECT DISTINCT + 41 - + col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT - 44 - col2 AS col0 FROM tab2 AS cor0
----
-70
-71
-82

query I rowsort
SELECT - - cor0.col1 + cor0.col2 * 12 * col2 AS col1 FROM tab2 cor0
----
17345
8171
8779

query I rowsort
SELECT DISTINCT - col1 * + 25 FROM tab1 cor0
----
-250
-325
-650

onlyif mysql # use DIV operator for integer division
query I rowsort label-3301
SELECT ALL + col2 DIV - col0 FROM tab1 AS cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-3301
SELECT ALL + col2 / - col0 FROM tab1 AS cor0
----
-1
-18
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * ( + 11 + - col2 ) col0 FROM tab0 cor0
----
-970
1892
6461

query I rowsort
SELECT DISTINCT + - col1 + col2 * - 95 * - col1 FROM tab0 AS cor0
----
269524
708799
9118

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 24 + col0 * col1 col2 FROM tab1 AS cor0
----
1374
2008
3344

query I rowsort
SELECT DISTINCT + - col2 * + 43 AS col0 FROM tab1 AS cor0
----
-2322
-2451
-4128

onlyif mysql # use DIV operator for integer division
query I rowsort label-3306
SELECT - cor0.col1 DIV - 56 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3306
SELECT - cor0.col1 / - 56 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + 92 * - col2 col2 FROM tab1 cor0
----
-4914
-5187
-8736

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 80 * - col0 * - col0 col1 FROM tab0 cor0
----
-45994
-633589
-97903

query I rowsort
SELECT ALL + + col2 * - 80 AS col1 FROM tab0 AS cor0
----
-2640
-6560
-80

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0, tab0 cor0, tab2 AS cor1
----
972 values hashing to d41be7437523f0dba2158c7f0439f329

query I rowsort
SELECT 29 AS col1 FROM tab2
----
29
29
29

query I rowsort
SELECT DISTINCT + 24 * col2 + - col0 FROM tab1 AS cor0
----
1293
1304
2224

query I rowsort
SELECT - 96 FROM tab2 AS cor0
----
-96
-96
-96

query I rowsort
SELECT ALL + - ( col2 ) - col1 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT ALL - + 29 AS col2 FROM tab0 AS cor0
----
-29
-29
-29

onlyif mysql # use DIV operator for integer division
query I rowsort label-3316
SELECT 30 * col0 DIV - 55 FROM tab1
----
-1
-34
-43

skipif mysql # not compatible
query I rowsort label-3316
SELECT 30 * col0 / - 55 FROM tab1
----
-1
-34
-43

query I rowsort
SELECT 29 + - tab0.col2 AS col0 FROM tab0
----
-4
-53
28

query I rowsort
SELECT - col0 * - tab2.col1 AS col1 FROM tab2
----
1343
217
4602

query I rowsort
SELECT DISTINCT + 38 + + col0 AS col0 FROM tab1
----
102
118
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col2 ) col0 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT ALL + col1 + 53 FROM tab1
----
63
66
79

query I rowsort
SELECT - 35 FROM tab2, tab1 AS cor0
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

query I rowsort
SELECT ALL - col2 * - col2 + col2 AS col2 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT DISTINCT 74 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
74

query I rowsort
SELECT ALL - - col2 + + col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT + col1 + - ( - tab1.col2 + col1 ) FROM tab1
----
54
57
96

query I rowsort
SELECT ALL - - ( - col1 ) - + col1 * + ( - col1 ) AS col0 FROM tab2 AS cor0
----
272
3422
930

query I rowsort
SELECT DISTINCT cor0.col0 * ( col2 + + col2 ) AS col2 FROM tab0 AS cor0
----
14596
1584
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-3329
SELECT ALL - cor0.col0 DIV 85 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3329
SELECT ALL - cor0.col0 / 85 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 * 21 FROM tab2 AS cor0
----
-147
-1638
-1659

query I rowsort
SELECT ALL + 68 * col0 AS col1 FROM tab1 cor0
----
204
4352
5440

query I rowsort
SELECT ALL + 87 AS col2 FROM tab2 AS cor0
----
87
87
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-3333
SELECT + 93 * col1 DIV + col0 FROM tab0 AS cor0
----
257
333
95

skipif mysql # not compatible
query I rowsort label-3333
SELECT + 93 * col1 / + col0 FROM tab0 AS cor0
----
257
333
95

query I rowsort
SELECT - - ( col2 ) AS col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT - ( + cor0.col2 ) * col1 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL - 42 AS col0 FROM tab0 AS cor0
----
-42
-42
-42

onlyif mysql # use DIV operator for integer division
query I rowsort label-3337
SELECT + col1 DIV - col0 FROM tab2 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-3337
SELECT + col1 / - col0 FROM tab2 AS cor0
----
-4
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col0 * col1 col1 FROM tab1 cor0
----
104
1053
650

onlyif mysql # use DIV operator for integer division
query I rowsort label-3339
SELECT + + col0 DIV 41 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-3339
SELECT + + col0 / 41 FROM tab0 AS cor0
----
0
0
2

query I rowsort
SELECT DISTINCT + ( 76 ) FROM tab2 AS cor0
----
76

query I rowsort
SELECT - + cor0.col0 AS col2 FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT ALL - - 47 * col2 FROM tab1 AS cor0
----
2538
2679
4512

query I rowsort
SELECT col2 + + col2 * + cor0.col2 AS col1 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT ALL - col1 * 66 FROM tab2 AS cor0
----
-1122
-2046
-3894

query I rowsort
SELECT ALL - 67 AS col2 FROM tab1 AS cor0
----
-67
-67
-67

query I rowsort
SELECT DISTINCT - - col1 * - 5 FROM tab1 AS cor0
----
-130
-50
-65

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3347
SELECT DISTINCT - CAST( 57 AS SIGNED ) FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-3347
SELECT DISTINCT - CAST ( 57 AS INTEGER ) FROM tab0 AS cor0
----
-57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3348
SELECT ALL + CAST( NULL AS SIGNED ) / + tab1.col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3348
SELECT ALL + CAST ( NULL AS INTEGER ) / + tab1.col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col1 col0 FROM tab0
----
-2064
-3395
-8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3350
SELECT ALL CAST( col1 + col2 AS SIGNED ) FROM tab1
----
109
67
80

skipif mysql # not compatible
query I rowsort label-3350
SELECT ALL CAST ( col1 + col2 AS INTEGER ) FROM tab1
----
109
67
80

query I rowsort
SELECT 12 FROM tab1
----
12
12
12

query I rowsort
SELECT 35 * cor0.col2 FROM tab0, tab1 AS cor0
----
9 values hashing to cd286347e3bad5d3c51746ac48e83627

query I rowsort
SELECT + 23 FROM tab1
----
23
23
23

query I rowsort
SELECT DISTINCT + 51 + + cor0.col1 * + col2 * + col2 FROM tab0 AS cor0
----
148
611935
93705

query I rowsort
SELECT ALL - 0 * 53 + - col0 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT - cor0.col0 * col1 + cor0.col0 * + col1 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - ( + col0 ) + col0 * cor0.col1 AS col0 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT ALL + ( - col2 ) * col1 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT col0 + + col2 AS col1 FROM tab1 AS cor0
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-3360
SELECT ALL + col0 DIV - 90 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3360
SELECT ALL + col0 / - 90 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - + 1 * + col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT + + col0 * - col1 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT - - col1 * - col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT - - 79 FROM tab1 AS cor0
----
79
79
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col2 ) * - tab1.col2 + ( + 32 ) col1 FROM tab1
----
2948
3281
9248

query I rowsort
SELECT DISTINCT 68 AS col0 FROM tab2
----
68

query I rowsort
SELECT - + col2 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT col0 + ( cor0.col1 ) AS col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT + cor0.col1 + 84 AS col2 FROM tab1 AS cor0
----
110
94
97

query I rowsort
SELECT DISTINCT + col2 + - cor0.col1 * 55 AS col2 FROM tab2 cor0
----
-1678
-3219
-897

query I rowsort
SELECT ALL + col2 * ( - cor0.col2 ) AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL + - col0 * cor0.col0 + - col2 AS col0 FROM tab0 AS cor0
----
-1226
-609
-8003

query I rowsort
SELECT ALL + - col1 * + 50 + + col1 FROM tab1 cor0
----
-1274
-490
-637

query I rowsort
SELECT col1 + col0 AS col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT + - col1 + + col2 AS col0 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT + cor0.col1 - col0 * - col2 AS col1 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT + col2 + col1 * col0 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT ALL - col0 * - col0 - 33 FROM tab0
----
1192
543
7888

query I rowsort
SELECT + cor0.col1 - + col2 * - col2 AS col2 FROM tab2 AS cor0
----
1461
735
760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col2 + - ( col1 ) col2 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT DISTINCT - - col0 + + 32 * col1 - - col1 * col1 FROM tab2 AS cor0
----
1960
5447
912

query I rowsort
SELECT + + col0 + + ( col2 ) FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT DISTINCT cor0.col2 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
1
33
82

query I rowsort
SELECT - 18 + - cor0.col2 FROM tab0 AS cor0
----
-100
-19
-51

query I rowsort
SELECT + - cor0.col0 + col1 AS col0 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT + + col2 * col1 + col1 AS col0 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT ALL 17 FROM tab0, tab1 cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query I rowsort
SELECT + ( cor0.col1 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT DISTINCT + col1 * - 70 + - col1 * col0 AS col0 FROM tab1
----
-1340
-1898
-1950

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 AS cor2, tab1 AS cor3
----
3645 values hashing to 51e2051aff75c58a5edaa314f1412983

skipif mysql # not compatible
query I rowsort
SELECT + col1 + CAST ( - ( col1 ) AS REAL ) FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3392
SELECT ALL + col2 DIV - col1 FROM tab1
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-3392
SELECT ALL + col2 / - col1 FROM tab1
----
-2
-5
-7

query I rowsort
SELECT col1 * col2 * + col1 AS col0 FROM tab2
----
10982
25947
90506

query I rowsort
SELECT col1 * col2 + + col1 FROM tab0
----
194
2924
7553

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) NOT IN ( - tab1.col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3396
SELECT DISTINCT - col2 DIV col1 AS col1 FROM tab2
----
-2
0

skipif mysql # not compatible
query I rowsort label-3396
SELECT DISTINCT - col2 / col1 AS col1 FROM tab2
----
-2
0

query I rowsort
SELECT tab2.col0 * + col1 FROM tab2
----
1343
217
4602

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( col1 )
----

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE - col1 = col0 + + col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) IN ( col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3401
SELECT ALL + col0 DIV - col0 AS col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3401
SELECT ALL + col0 / - col0 AS col0 FROM tab2
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3402
SELECT col1 DIV col2 - - col0 * col2 FROM tab1
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-3402
SELECT col1 / col2 - - col0 * col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT col1 * + col1 FROM tab1 WHERE NULL NOT IN ( + col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 + col1 IN ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col0 FROM tab1, tab2 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT col0 * col1 + + col2 AS col2 FROM tab1
----
1136
132
697

query I rowsort
SELECT ALL - tab2.col1 AS col1 FROM tab2 WHERE col0 + - col0 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col0 col2 FROM tab1
----
1040
640
78

query I rowsort
SELECT + tab0.col2 * col2 FROM tab0
----
1
1089
6724

query I rowsort
SELECT DISTINCT - col2 * col1 + + col1 FROM tab0
----
-2752
-7371
0

query I rowsort
SELECT DISTINCT col2 - col1 AS col0 FROM tab0 WHERE NULL > ( + col2 / + col0 + + col0 )
----

query I rowsort
SELECT col0 * col1 + col1 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT col1 * + col0 + col1 FROM tab1 AS cor0
----
104
1053
650

onlyif mysql # use DIV operator for integer division
query I rowsort label-3414
SELECT DISTINCT - col2 DIV + col2 - col1 * + col2 * cor0.col0 col2 FROM tab0 cor0
----
-3396
-664119
-68113

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3414
SELECT DISTINCT - col2 / + col2 - col1 * + col2 * cor0.col0 col2 FROM tab0 cor0
----
-3396
-664119
-68113

onlyif mysql # use DIV operator for integer division
query I rowsort label-3415
SELECT ALL + + col0 DIV - col0 + col0 + - col2 FROM tab1 AS cor0
----
-17
-52
6

skipif mysql # not compatible
query I rowsort label-3415
SELECT ALL + + col0 / - col0 + col0 + - col2 FROM tab1 AS cor0
----
-17
-52
6

query I rowsort
SELECT - col1 + - col2 FROM tab1 cor0
----
-109
-67
-80

query I rowsort
SELECT ALL - cor0.col0 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 + col2 * - tab0.col0 <= col2
----

query I rowsort
SELECT DISTINCT col1 * tab2.col1 FROM tab2
----
289
3481
961

query I rowsort
SELECT DISTINCT cor0.col1 AS col1 FROM tab0, tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL - - col1 + - 13 * + col1 * + col2 AS col2 FROM tab2 AS cor0
----
-10850
-19883
-8381

onlyif mysql # use DIV operator for integer division
query I rowsort label-3422
SELECT ALL - col0 DIV 53 + 6 FROM tab1 AS cor0
----
5
5
6

skipif mysql # not compatible
query I rowsort label-3422
SELECT ALL - col0 / 53 + 6 FROM tab1 AS cor0
----
5
5
6

query I rowsort
SELECT DISTINCT - + col0 + 39 AS col1 FROM tab1 AS cor0
----
-25
-41
36

query I rowsort
SELECT - - col2 + 41 FROM tab0 cor0
----
123
42
74

query I rowsort
SELECT DISTINCT - col2 * col2 - col1 AS col1 FROM tab0 AS cor0
----
-1175
-6815
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-3426
SELECT ALL + col0 * 65 DIV - col1 + + col2 AS col2 FROM tab0 AS cor0
----
-22
15
19

skipif mysql # not compatible
query I rowsort label-3426
SELECT ALL + col0 * 65 / - col1 + + col2 AS col2 FROM tab0 AS cor0
----
-22
15
19

onlyif mysql # use DIV operator for integer division
query I rowsort label-3427
SELECT DISTINCT col0 DIV - 32 AS col2 FROM tab1 AS cor0
----
-2
0

skipif mysql # not compatible
query I rowsort label-3427
SELECT DISTINCT col0 / - 32 AS col2 FROM tab1 AS cor0
----
-2
0

query I rowsort
SELECT + col0 * - 37 FROM tab0 AS cor0
----
-1295
-3293
-888

query I rowsort
SELECT DISTINCT - col0 + + col0 * col0 FROM tab1 AS cor0
----
4032
6
6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-3430
SELECT ALL col2 DIV - 72 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3430
SELECT ALL col2 / - 72 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - + col1 * - 13 + + 41 AS col2 FROM tab2 AS cor0
----
262
444
808

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + ( + col2 ) col2 FROM tab1 AS cor0
----
121
176
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3433
SELECT DISTINCT - col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3433
SELECT DISTINCT - col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - cor0.col0 AS col1 FROM tab2 cor0
----
-7
-78
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3435
SELECT ALL + + col1 * - CAST( NULL AS SIGNED ) + col1 * col0 * + CAST( + col0 + - cor0.col0 AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3435
SELECT ALL + + col1 * - CAST ( NULL AS INTEGER ) + col1 * col0 * + CAST ( + col0 + - cor0.col0 AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 + col0 + + col0 AS col0 FROM tab0
----
15
69
96

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col0 * CAST ( - cor0.col0 AS REAL ) * - col2 + ( - 4 ) * cor0.col1 FROM tab0 AS cor0
----
-1613
-19352
-649886

query I rowsort
SELECT DISTINCT + col0 - - col0 FROM tab0 cor0
----
178
48
70

query I rowsort
SELECT + + col2 * cor0.col1 AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT 43 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3441
SELECT + - col0 + CAST( NULL AS DECIMAL ) * - col0 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3441
SELECT + - col0 + CAST ( NULL AS REAL ) * - col0 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 * + col1 - - col1 * + col2 FROM tab0 AS cor0
----
-4558
-819
-9312

query I rowsort
SELECT ALL col0 * + col2 * col1 + col1 * - col2 AS col2 FROM tab1 AS cor0
----
2808
35910
98592

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE NOT col0 NOT IN ( - col0 )
----

query I rowsort
SELECT 44 * + 23 + cor0.col1 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 9fbe2c611e90ebd9dc34627f891e059e

query I rowsort
SELECT DISTINCT - cor0.col1 AS col2 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT - + col0 + col0 AS col0 FROM tab0 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3448
SELECT - col0 + + col0 DIV col1 FROM tab1
----
-3
-58
-74

skipif mysql # not compatible
query I rowsort label-3448
SELECT - col0 + + col0 / col1 FROM tab1
----
-3
-58
-74

query I rowsort
SELECT DISTINCT - col1 + col2 - col2 AS col0 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT col1 + col0 * col2 AS col1 FROM tab0
----
132
7389
878

query I rowsort
SELECT ALL col1 * - col0 AS col0 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT ALL + tab0.col2 + + tab0.col1 - col1 * col2 AS col2 FROM tab0
----
-2719
-7289
1

query I rowsort
SELECT ALL - col0 * + col0 * - col0 AS col1 FROM tab2
----
343
474552
493039

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE NOT NULL >= ( - col0 + + col1 )
----

query I rowsort
SELECT - col0 + - col1 + col2 * col2 AS col1 FROM tab0
----
-131
6544
979

query I rowsort
SELECT ALL tab2.col1 * tab2.col0 FROM tab2
----
1343
217
4602

query I rowsort
SELECT + ( - col2 ) + + col0 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT ( 54 ) FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a

query I rowsort
SELECT - 27 * cor0.col0 AS col0 FROM tab0 AS cor0
----
-2403
-648
-945

query I rowsort
SELECT 35 AS col0 FROM tab2 AS cor0
----
35
35
35

query I rowsort
SELECT ALL - cor0.col2 * - col1 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-3462
SELECT ALL - + ( + col1 ) DIV col2 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3462
SELECT ALL - + ( + col1 ) / col2 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + col2 + cor0.col0 FROM tab2 AS cor0
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * + col2 col2 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT 56 + + col0 * - cor0.col1 FROM tab2 AS cor0
----
-1287
-161
-4546

query I rowsort
SELECT - + 13 + cor0.col0 * - 82 AS col1 FROM tab0 AS cor0
----
-1981
-2883
-7311

query I rowsort
SELECT DISTINCT + 85 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
85

query I rowsort
SELECT DISTINCT - - cor0.col1 * col0 AS col2 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3469
SELECT - + col0 * - CAST( NULL AS DECIMAL ) * col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3469
SELECT - + col0 * - CAST ( NULL AS REAL ) * col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col1 AS col2 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT ALL - col1 * ( + col1 + col2 ) * col1 FROM tab2 AS cor0
----
-15895
-295885
-55738

query I rowsort
SELECT - col2 * + col0 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
-162
-2002
-2964

onlyif mysql # use DIV operator for integer division
query I rowsort label-3473
SELECT - col1 + + col1 DIV ( col2 + col2 ) FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-3473
SELECT - col1 + + col1 / ( col2 + col2 ) FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT ALL + cor0.col1 * 88 + + 37 FROM tab1 AS cor0
----
1181
2325
917

query I rowsort
SELECT DISTINCT + col1 * + col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - ( + 86 ) col0 FROM tab2 AS cor0
----
-1462
-2666
-5074

query I rowsort
SELECT DISTINCT - col2 + + 38 AS col1 FROM tab2 AS cor0
----
0
11
12

query I rowsort
SELECT ALL + col1 * - 51 + - 16 AS col0 FROM tab2 AS cor0
----
-1597
-3025
-883

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col1 col2 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT DISTINCT + col0 * + col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT ALL - - col2 * - col1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT + 53 FROM tab2 cor0
----
53
53
53

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3483
SELECT ALL - CAST( - 15 AS SIGNED ) + - col1 AS col1 FROM tab2 AS cor0
----
-16
-2
-44

skipif mysql # not compatible
query I rowsort label-3483
SELECT ALL - CAST ( - 15 AS INTEGER ) + - col1 AS col1 FROM tab2 AS cor0
----
-16
-2
-44

query I rowsort
SELECT + 4 AS col1 FROM tab2 AS cor0
----
4
4
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3485
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3485
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab0 AS cor0
----
NULL

query I rowsort
SELECT - 42 * - col2 FROM tab2 AS cor0
----
1092
1134
1596

query I rowsort
SELECT ALL - col0 * col1 * col1 AS col0 FROM tab2
----
-22831
-271518
-6727

query IIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 AS cor2
----
972 values hashing to 909b7ebab62aff8f69dc42ccbb5c2eae

query I rowsort
SELECT DISTINCT + 67 * col0 FROM tab1 AS cor0
----
201
4288
5360

query I rowsort
SELECT + cor1.col0 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

onlyif mysql # use DIV operator for integer division
query I rowsort label-3491
SELECT + col1 DIV - cor0.col0 + - col0 FROM tab0 AS cor0
----
-27
-37
-90

skipif mysql # not compatible
query I rowsort label-3491
SELECT + col1 / - cor0.col0 + - col0 FROM tab0 AS cor0
----
-27
-37
-90

query I rowsort
SELECT DISTINCT + ( + col2 ) * ( + col0 ) + + col0 * - col0 FROM tab2 AS cor0
----
-3239
-4056
140

onlyif mysql # use DIV operator for integer division
query I rowsort label-3493
SELECT ALL col1 DIV + col0 - - CAST( - col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-30
-81
1

skipif mysql # not compatible
query I rowsort label-3493
SELECT ALL col1 / + col0 - - CAST ( - col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-30
-81
1

query I rowsort
SELECT + col1 * col1 * - 76 FROM tab1 AS cor0
----
-12844
-51376
-7600

query I rowsort
SELECT - cor0.col0 + + col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + ( col1 ) + + col2 * col0 AS col1 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT + col1 * col0 + - col0 FROM tab1 cor0
----
576
75
960

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 cor0 CROSS JOIN tab0, tab1, tab0 AS cor1
----
3645 values hashing to 2566f3fa788816c8bfc482e730aaed74

query I rowsort
SELECT - + ( col2 ) - - cor0.col0 AS col1 FROM tab2 AS cor0
----
-20
41
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3500
SELECT ALL + CAST( NULL AS SIGNED ) * col1 - - tab1.col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3500
SELECT ALL + CAST ( NULL AS INTEGER ) * col1 - - tab1.col2 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 44 + - col0 + col0 FROM tab2
----
44
44
44

query I rowsort
SELECT ALL col1 + + tab1.col2 FROM tab1
----
109
67
80

query I rowsort
SELECT DISTINCT - col2 + - col2 AS col2 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT + 93 * - col1 + + col0 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
-10089
-2924
-3100

onlyif mysql # use DIV operator for integer division
query I rowsort label-3505
SELECT ALL - + col0 DIV - col1 FROM tab1 AS cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-3505
SELECT ALL - + col0 / - col1 FROM tab1 AS cor0
----
0
6
6

query I rowsort
SELECT ALL 38 AS col2 FROM tab1
----
38
38
38

query I rowsort
SELECT DISTINCT - 96 AS col0 FROM tab1
----
-96

query I rowsort
SELECT ( tab2.col0 ) * + col2 + - col0 + - col0 AS col0 FROM tab2
----
175
1872
2844

query I rowsort
SELECT DISTINCT - 6 AS col1 FROM tab2
----
-6

query I rowsort
SELECT col0 * - col2 + cor0.col0 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT + col2 + - col1 * col1 FROM tab0 cor0
----
-7363
-8199
-9408

onlyif mysql # use DIV operator for integer division
query I rowsort label-3512
SELECT col0 DIV - tab1.col0 + col2 FROM tab1
----
53
56
95

skipif mysql # not compatible
query I rowsort label-3512
SELECT col0 / - tab1.col0 + col2 FROM tab1
----
53
56
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-3513
SELECT ALL + col2 + - col1 * col2 DIV col0 FROM tab0
----
-1
-1
-85

skipif mysql # not compatible
query I rowsort label-3513
SELECT ALL + col2 + - col1 * col2 / col0 FROM tab0
----
-1
-1
-85

query I rowsort
SELECT - 55 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

onlyif mysql # use DIV operator for integer division
query I rowsort label-3515
SELECT DISTINCT col2 DIV - col1 + - tab1.col1 DIV + col2 FROM tab1
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-3515
SELECT DISTINCT col2 / - col1 + - tab1.col1 / + col2 FROM tab1
----
-2
-5
-7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3516
SELECT ALL + CAST( col2 AS SIGNED ) + col0 + col2 AS col0 FROM tab0
----
253
37
90

skipif mysql # not compatible
query I rowsort label-3516
SELECT ALL + CAST ( col2 AS INTEGER ) + col0 + col2 AS col0 FROM tab0
----
253
37
90

query I rowsort
SELECT DISTINCT 76 * col2 * - col0 + tab1.col2 AS col2 FROM tab1
----
-12258
-277191
-583584

query I rowsort
SELECT 62 * 86 FROM tab2 AS cor0
----
5332
5332
5332

onlyif mysql # use DIV operator for integer division
query I rowsort label-3519
SELECT - ( + col1 ) DIV col1 AS col1 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3519
SELECT - ( + col1 ) / col1 AS col1 FROM tab1 cor0
----
-1
-1
-1

query I rowsort
SELECT ALL tab0.col2 * 54 AS col0 FROM tab0
----
1782
4428
54

query I rowsort
SELECT DISTINCT - - 98 * cor0.col0 + col0 FROM tab0 AS cor0
----
2376
3465
8811

query I rowsort
SELECT DISTINCT col1 - - cor0.col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT + + 92 + - col1 AS col2 FROM tab0 AS cor0
----
-5
1
6

query I rowsort
SELECT DISTINCT + - cor0.col0 * col2 * + col1 + + col1 FROM tab2 AS cor0
----
-119593
-51017
-5828

query I rowsort
SELECT - col0 * + col0 - col2 * col1 FROM tab2 AS cor0
----
-6887
-7618
-886

query I rowsort
SELECT + + col2 - + col0 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT + + col0 * + col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT col2 * cor0.col1 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3529
SELECT ALL + CAST( NULL AS SIGNED ) * tab1.col2 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3529
SELECT ALL + CAST ( NULL AS INTEGER ) * tab1.col2 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + tab1.col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
10
13
26

query I rowsort
SELECT DISTINCT 62 AS col1 FROM tab1
----
62

query I rowsort
SELECT - 94 AS col0 FROM tab2 AS cor0
----
-94
-94
-94

query I rowsort
SELECT - 62 AS col0 FROM tab0 AS cor0
----
-62
-62
-62

query I rowsort
SELECT DISTINCT 68 * 88 * - col1 AS col1 FROM tab0
----
-514624
-544544
-580448

query I rowsort
SELECT + col2 * + col1 * col0 FROM tab1 AS cor0
----
36480
4212
99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-3536
SELECT + col2 DIV - cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3536
SELECT + col2 / - cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - 38 AS col0 FROM tab2 AS cor0
----
-38
-38
-38

query I rowsort
SELECT DISTINCT + cor0.col2 * cor0.col1 AS col2 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3539
SELECT + col1 + + col0 DIV CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-3539
SELECT + col1 + + col0 / CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT - ( + col0 ) * col0 AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT + 86 * cor0.col0 FROM tab1 cor0
----
258
5504
6880

query I rowsort
SELECT + 15 * col2 FROM tab2 cor0
----
390
405
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-3543
SELECT DISTINCT - - col2 DIV col0 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3543
SELECT DISTINCT - - col2 / col0 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT DISTINCT - + col2 + col0 * - col1 AS col1 FROM tab1 AS cor0
----
-1136
-132
-697

onlyif mysql # use DIV operator for integer division
query I rowsort label-3545
SELECT cor0.col0 * col2 + - ( col2 * + CAST( + col1 AS SIGNED ) ) + - cor0.col1 DIV - col2 AS col1 FROM tab1 AS cor0
----
-1242
3078
6432

skipif mysql # not compatible
query I rowsort label-3545
SELECT cor0.col0 * col2 + - ( col2 * + CAST ( + col1 AS INTEGER ) ) + - cor0.col1 / - col2 AS col1 FROM tab1 AS cor0
----
-1242
3078
6432

onlyif mysql # use DIV operator for integer division
query I rowsort label-3546
SELECT - col0 + cor0.col1 DIV 29 AS col2 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-3546
SELECT - col0 + cor0.col1 / 29 AS col2 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT ( 51 ) FROM tab2, tab1 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query I rowsort
SELECT ALL col2 * + tab1.col0 FROM tab1
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3549
SELECT col0 * + CAST( - col0 AS SIGNED ) + col1 FROM tab1 cor0
----
-4086
-6387
17

skipif mysql # not compatible
query I rowsort label-3549
SELECT col0 * + CAST ( - col0 AS INTEGER ) + col1 FROM tab1 cor0
----
-4086
-6387
17

query I rowsort
SELECT + col1 + col2 * + col1 FROM tab1 cor0
----
1261
1430
580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + - col1 col2 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT + + cor0.col1 + cor0.col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT - cor0.col2 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT - + ( + col1 ) * + cor0.col0 * ( - col2 ) AS col0 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT DISTINCT 81 AS col1 FROM tab1 AS cor0
----
81

query I rowsort
SELECT ALL - tab0.col2 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT - + 82 + col2 FROM tab1 AS cor0
----
-25
-28
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col1 ) * col1 col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT ALL + 31 * col0 AS col2 FROM tab2 AS cor0
----
217
2418
2449

query I rowsort
SELECT DISTINCT - 63 + - ( - cor0.col1 ) FROM tab0, tab0 cor0
----
23
28
34

query I rowsort
SELECT DISTINCT - col0 + - cor0.col2 * + col0 FROM tab0 AS cor0
----
-70
-7387
-816

query I rowsort
SELECT ALL - + 63 AS col1 FROM tab2 AS cor0
----
-63
-63
-63

query I rowsort
SELECT ALL + + ( col2 ) * - col1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL - cor0.col0 * - 58 + col0 * + col2 AS col2 FROM tab2 AS cor0
----
595
6552
7584

query I rowsort
SELECT ALL + + col2 + cor0.col0 * - col0 FROM tab0 cor0
----
-1224
-543
-7839

query I rowsort
SELECT + - 96 FROM tab2 cor0
----
-96
-96
-96

query I rowsort
SELECT ALL + 46 FROM tab1
----
46
46
46

query I rowsort
SELECT col2 * ( + col0 ) + + 69 * 45 FROM tab2 cor0
----
3294
5133
6107

query I rowsort
SELECT DISTINCT ( - col0 ) * - col1 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT ALL + col0 + col2 + - cor0.col1 * - 64 AS col2 FROM tab0 AS cor0
----
5561
5995
6244

onlyif mysql # use DIV operator for integer division
query I rowsort label-3571
SELECT + + col2 + col1 DIV col0 AS col2 FROM tab0 AS cor0
----
3
36
83

skipif mysql # not compatible
query I rowsort label-3571
SELECT + + col2 + col1 / col0 AS col2 FROM tab0 AS cor0
----
3
36
83

query I rowsort
SELECT DISTINCT col0 * col0 - col2 FROM tab0 AS cor0
----
1224
543
7839

query I rowsort
SELECT ALL + ( + col1 ) * - col1 AS col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT + col2 + 38 FROM tab0 AS cor0
----
120
39
71

query I rowsort
SELECT DISTINCT + - 97 * - 99 + - col1 AS col1 FROM tab2 AS cor0
----
9544
9572
9586

onlyif mysql # use DIV operator for integer division
query I rowsort label-3576
SELECT ALL - col1 DIV + col1 + col0 FROM tab2 AS cor0
----
6
77
78

skipif mysql # not compatible
query I rowsort label-3576
SELECT ALL - col1 / + col1 + col0 FROM tab2 AS cor0
----
6
77
78

query I rowsort
SELECT + - col0 + ( col1 ) AS col2 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT ALL + - cor0.col0 + + ( cor0.col2 ) * col0 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT - + 76 AS col1 FROM tab0 AS cor0
----
-76
-76
-76

query I rowsort
SELECT - 99 * - col1 + + col2 * - col1 FROM tab0 cor0
----
1547
5676
9506

query I rowsort
SELECT ALL + col0 + + col2 AS col2 FROM tab1 AS cor0
----
121
176
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3582
SELECT DISTINCT CAST( NULL AS SIGNED ) * + tab2.col1 * - col0 + - col2 * col0 * col2 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3582
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + tab2.col1 * - col0 + - col2 * col0 * col2 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + + col0 * - 20 * - col2 + col2 * - CAST ( - ( - col1 ) AS REAL ) AS col0 FROM tab2 AS cor0
----
2943
39026
59394

query I rowsort
SELECT col0 + cor0.col0 AS col2 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT DISTINCT - col1 * cor0.col0 + col1 * cor0.col1 AS col2 FROM tab1 AS cor0
----
-540
-871
598

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0, tab2 cor1, tab1, tab0 AS cor2
----
3645 values hashing to 9d746e15fdb5adcb43a7518cd9743eb3

query I rowsort
SELECT + - col0 * - cor0.col2 + cor0.col2 * - col2 FROM tab2 AS cor0
----
-540
1352
1558

query I rowsort
SELECT ALL col0 * - col1 + col1 AS col2 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT - - col0 * - col0 + + cor0.col1 FROM tab1 AS cor0
----
-4086
-6387
17

query I rowsort
SELECT DISTINCT + + col0 * - col2 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT + col0 + cor0.col2 AS col0 FROM tab0 AS cor0
----
171
36
57

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0, tab1 cor1, tab0 AS cor2
----
972 values hashing to 909b7ebab62aff8f69dc42ccbb5c2eae

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - col0 * + 90 col2 FROM tab0 AS cor0
----
-2127
-3149
-7928

query I rowsort
SELECT DISTINCT - + col2 * + col2 + + col0 FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT - - col2 + col2 * - col0 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT ALL + cor0.col1 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3597
SELECT ALL - col2 * col2 + CAST( NULL AS SIGNED ) * + tab2.col2 * col2 - - col2 * ( col1 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3597
SELECT ALL - col2 * col2 + CAST ( NULL AS INTEGER ) * + tab2.col2 * col2 - - col2 * ( col1 ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 - + col2 AS col0 FROM tab0
----
-171
-36
-57

query I rowsort
SELECT DISTINCT col1 + - 30 * - tab0.col2 FROM tab0
----
1076
127
2551

query I rowsort
SELECT ALL - col0 * col0 + 1 * tab1.col2 AS col1 FROM tab1
----
-4039
-6304
45

query I rowsort
SELECT DISTINCT + 6 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-3602
SELECT DISTINCT col0 DIV + col2 + - 31 * - col1 FROM tab1
----
311
403
806

skipif mysql # not compatible
query I rowsort label-3602
SELECT DISTINCT col0 / + col2 + - 31 * - col1 FROM tab1
----
311
403
806

query I rowsort
SELECT DISTINCT 73 AS col2 FROM tab2 AS cor0
----
73

query I rowsort
SELECT ALL - col0 * + col2 * 19 FROM tab2 AS cor0
----
-3591
-38532
-57038

query I rowsort
SELECT ALL col1 + col0 + - col1 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT + 48 * - 35 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 6f027f7a7fba05baa9d8f402563140cd

query I rowsort
SELECT + ( col0 ) + + col2 + ( col2 + col2 * + col2 ) AS col0 FROM tab0 AS cor0
----
1179
38
6977

query I rowsort
SELECT + col2 + cor0.col1 AS col1 FROM tab0 AS cor0
----
119
173
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-3609
SELECT ALL col1 DIV - 37 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3609
SELECT ALL col1 / - 37 FROM tab2
----
-1
0
0

query I rowsort
SELECT DISTINCT + - col1 * 21 * - col0 + cor0.col1 FROM tab2 AS cor0
----
28220
4588
96701

query I rowsort
SELECT - cor0.col0 * ( col1 ) * col1 + ( col1 ) + col2 FROM tab0 AS cor0
----
-177385
-329217
-736836

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0, tab2 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to 677ef6b86493a7e48d2f6a3cfd7eea4c

query I rowsort
SELECT - col2 * cor0.col2 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT col1 * - ( col2 * - col1 ) + col2 * + 92 FROM tab2 AS cor0
----
14478
28431
92898

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col0 col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT 74 + - 39 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
1088
464
581

query I rowsort
SELECT - col1 + cor0.col0 * - col2 AS col1 FROM tab2 cor0
----
-2087
-220
-3019

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + - 60 * col0 col1 FROM tab1 AS cor0
----
-154
-3830
-4787

query I rowsort
SELECT DISTINCT + ( - col0 ) * - col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT ALL - - cor0.col2 * cor0.col0 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT ALL 32 + - tab0.col0 AS col2 FROM tab0
----
-3
-57
8

query I rowsort
SELECT - 58 FROM tab1, tab1 AS cor0
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0

query I rowsort
SELECT ALL + col0 * + col2 + - col2 * + col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + 96 + - col1 FROM tab2
----
37
65
79

query I rowsort
SELECT cor0.col2 + + col0 * col0 FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT DISTINCT col2 + - col1 * col2 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT DISTINCT + col1 + - col0 + cor0.col0 AS col2 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL + + col2 + - col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + cor1.col1 AS col0 FROM tab2, tab0 cor0, tab1 cor1, tab0, tab1 AS cor2
----
10
13
26

query I rowsort
SELECT ALL + 69 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3631
SELECT ALL CAST( NULL AS SIGNED ) * cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3631
SELECT ALL CAST ( NULL AS INTEGER ) * cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 15 FROM tab0 AS cor0
----
-15
-15
-15

query I rowsort
SELECT DISTINCT + + col0 * + 45 AS col2 FROM tab1 AS cor0
----
135
2880
3600

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3634
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3634
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 80 * col2 - 69 col2 FROM tab0 AS cor0
----
-149
-2709
-6629

query I rowsort
SELECT + col1 + - col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 51 + + col0 * + col1 FROM tab2 cor0
----
1292
166
4551

query I rowsort
SELECT - col1 - cor0.col1 FROM tab2 AS cor0
----
-118
-34
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-3639
SELECT ALL + col1 DIV col2 + col2 AS col2 FROM tab0
----
35
83
98

skipif mysql # not compatible
query I rowsort label-3639
SELECT ALL + col1 / col2 + col2 AS col2 FROM tab0
----
35
83
98

query I rowsort
SELECT ( col1 ) + col0 + 49 FROM tab2
----
145
186
87

query I rowsort
SELECT DISTINCT + col1 + ( col2 + + col0 ) AS col1 FROM tab0
----
133
143
262

query I rowsort
SELECT + col1 + tab1.col1 AS col2 FROM tab1
----
20
26
52

query I rowsort
SELECT + + 68 * + cor0.col1 + - cor0.col2 * col2 AS col1 FROM tab0 AS cor0
----
-536
4759
6595

onlyif mysql # use DIV operator for integer division
query I rowsort label-3644
SELECT DISTINCT 13 DIV cor0.col2 FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
0

skipif mysql # not compatible
query I rowsort label-3644
SELECT DISTINCT 13 / cor0.col2 FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
0

query I rowsort
SELECT + col0 - col1 AS col1 FROM tab1 cor0
----
-23
54
67

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3646
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab2, tab2 AS cor0, tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3646
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab2, tab2 AS cor0, tab1 AS cor1
----
NULL

query I rowsort
SELECT col1 - col1 * - col2 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT + col1 - col0 * col1 FROM tab2 AS cor0
----
-1326
-186
-4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-3649
SELECT ALL + col2 + col1 DIV - col2 AS col1 FROM tab1 cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-3649
SELECT ALL + col2 + col1 / - col2 AS col1 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT ALL - 19 * + col1 + - 6 + + ( tab0.col2 + col0 ) * col2 AS col0 FROM tab0
----
-1813
12287
241

onlyif mysql # use DIV operator for integer division
query I rowsort label-3651
SELECT + 94 DIV ( cor0.col0 ) AS col2 FROM tab2, tab0 cor0
----
9 values hashing to 245313dc4e9fc19df7ee93651efe9bf2

skipif mysql # not compatible
query I rowsort label-3651
SELECT + 94 / ( cor0.col0 ) AS col2 FROM tab2, tab0 cor0
----
9 values hashing to 245313dc4e9fc19df7ee93651efe9bf2

query I rowsort
SELECT + 81 + col1 * - col2 FROM tab1 cor0
----
-1167
-1323
-489

onlyif mysql # use DIV operator for integer division
query I rowsort label-3653
SELECT ALL col0 DIV + col1 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3653
SELECT ALL col0 / + col1 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - ( 64 ) + col1 * col1 col0 FROM tab1
----
-2780
-3548
-5975

query I rowsort
SELECT - col2 * - 29 FROM tab1 AS cor0
----
1566
1653
2784

query I rowsort
SELECT + ( - col0 ) * col0 AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT - col2 * col1 AS col1 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT 60 FROM tab1, tab2 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT DISTINCT tab0.col2 * + tab0.col0 AS col0 FROM tab0, tab1, tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT + tab2.col1 FROM tab2, tab1 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT DISTINCT - 51 * col2 AS col2 FROM tab1
----
-2754
-2907
-4896

query I rowsort
SELECT + 23 FROM tab0
----
23
23
23

query I rowsort
SELECT + col0 + + col2 * + col2 AS col2 FROM tab0 AS cor0
----
1113
36
6813

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3664
SELECT ALL - + 0 * col1 + col0 + CAST( NULL AS SIGNED ) * 7 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3664
SELECT ALL - + 0 * col1 + col0 + CAST ( NULL AS INTEGER ) * 7 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 45 AS col0 FROM tab0 AS cor0
----
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 * col0 col2 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT - - 16 * col2 FROM tab0 AS cor0
----
1312
16
528

query I rowsort
SELECT ALL ( - 97 ) AS col2 FROM tab0 cor0
----
-97
-97
-97

query I rowsort
SELECT ALL - col0 + 36 AS col0 FROM tab0 AS cor0
----
-53
1
12

query I rowsort
SELECT + - cor0.col0 * + col0 + col2 * col0 FROM tab1 cor0
----
-448
1280
153

query I rowsort
SELECT ALL - col2 * ( col2 ) + cor0.col2 FROM tab1 AS cor0
----
-2862
-3192
-9120

query I rowsort
SELECT + col0 * ( col2 ) AS col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT - cor0.col1 * col0 * cor0.col0 FROM tab0 AS cor0
----
-118825
-49536
-720811

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0, tab2 cor1, tab2, tab2 AS cor2
----
3645 values hashing to c04c36412775e8805d6b3befa2f52917

onlyif mysql # use DIV operator for integer division
query I rowsort label-3675
SELECT ALL col1 + col2 - - col1 DIV cor0.col1 FROM tab2 cor0
----
56
59
86

skipif mysql # not compatible
query I rowsort label-3675
SELECT ALL col1 + col2 - - col1 / cor0.col1 FROM tab2 cor0
----
56
59
86

query I rowsort
SELECT ALL + col0 + + ( col2 + - col0 ) * + cor0.col0 FROM tab1 AS cor0
----
-384
1360
156

onlyif mysql # use DIV operator for integer division
query I rowsort label-3677
SELECT ALL col0 DIV col1 AS col0 FROM tab1 AS cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-3677
SELECT ALL col0 / col1 AS col0 FROM tab1 AS cor0
----
0
6
6

query I rowsort
SELECT - ( - 44 ) AS col1 FROM tab2 AS cor0
----
44
44
44

query I rowsort
SELECT DISTINCT + + cor0.col1 * + col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT - + col0 + + 9 AS col2 FROM tab0 AS cor0
----
-15
-26
-80

query I rowsort
SELECT DISTINCT + 80 FROM tab1, tab2 AS cor0
----
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3682
SELECT - col2 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3682
SELECT - col2 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3683
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-3683
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT + col0 + - cor0.col1 AS col2 FROM tab0 cor0
----
-2
-62
-62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3685
SELECT + col0 + + col0 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3685
SELECT + col0 + + col0 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 56 * col1 AS col0 FROM tab0 AS cor0
----
4816
5096
5432

query I rowsort
SELECT ALL 97 * 6 AS col0 FROM tab0
----
582
582
582

onlyif mysql # use DIV operator for integer division
query I rowsort label-3688
SELECT ( tab1.col0 ) DIV col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3688
SELECT ( tab1.col0 ) / col0 FROM tab1
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3689
SELECT CAST( - 31 AS SIGNED ) * - col1 AS col2 FROM tab1
----
310
403
806

skipif mysql # not compatible
query I rowsort label-3689
SELECT CAST ( - 31 AS INTEGER ) * - col1 AS col2 FROM tab1
----
310
403
806

onlyif mysql # use DIV operator for integer division
query I rowsort label-3690
SELECT DISTINCT CAST( + col1 AS SIGNED ) * tab1.col2 * + col1 + + col0 - col2 * ( tab1.col2 ) DIV - col2 col0 FROM tab1
----
16400
36561
5821

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3690
SELECT DISTINCT CAST ( + col1 AS INTEGER ) * tab1.col2 * + col1 + + col0 - col2 * ( tab1.col2 ) / - col2 col0 FROM tab1
----
16400
36561
5821

onlyif mysql # use DIV operator for integer division
query I rowsort label-3691
SELECT DISTINCT tab1.col1 DIV - col0 - col1 FROM tab1
----
-10
-13
-34

skipif mysql # not compatible
query I rowsort label-3691
SELECT DISTINCT tab1.col1 / - col0 - col1 FROM tab1
----
-10
-13
-34

onlyif mysql # use DIV operator for integer division
query I rowsort label-3692
SELECT DISTINCT - col0 + + 16 DIV - col0 - col1 FROM tab2
----
-137
-40
-96

skipif mysql # not compatible
query I rowsort label-3692
SELECT DISTINCT - col0 + + 16 / - col0 - col1 FROM tab2
----
-137
-40
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3693
SELECT ALL col1 DIV col0 - - col0 * + 2 col2 FROM tab2
----
156
158
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3693
SELECT ALL col1 / col0 - - col0 * + 2 col2 FROM tab2
----
156
158
18

query I rowsort
SELECT DISTINCT tab2.col1 - col2 FROM tab2
----
-21
33
4

query I rowsort
SELECT ALL col2 * - 6 AS col0 FROM tab1
----
-324
-342
-576

query I rowsort
SELECT DISTINCT 69 + - tab2.col1 AS col1 FROM tab2
----
10
38
52

query I rowsort
SELECT + col0 * col2 + + ( cor0.col0 * - col2 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col0 * + col2 + + ( 99 ) AS col0 FROM tab0 AS cor0
----
134
7397
891

onlyif mysql # use DIV operator for integer division
query I rowsort label-3699
SELECT ALL + + 80 DIV - col2 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3699
SELECT ALL + + 80 / - col2 FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT - + 17 + col1 FROM tab1 AS cor0
----
-4
-7
9

query I rowsort
SELECT - 27 + col1 AS col0 FROM tab2 AS cor0
----
-10
32
4

query I rowsort
SELECT col1 * - col0 + + col0 FROM tab1 cor0
----
-576
-75
-960

query I rowsort
SELECT - ( col2 ) AS col1 FROM tab0 cor0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-3704
SELECT ( + col2 + 54 ) DIV - col0 AS col2 FROM tab0
----
-1
-1
-3

skipif mysql # not compatible
query I rowsort label-3704
SELECT ( + col2 + 54 ) / - col0 AS col2 FROM tab0
----
-1
-1
-3

query I rowsort
SELECT ALL col1 + col0 * + col0 AS col0 FROM tab2
----
6143
6258
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3706
SELECT cor0.col2 DIV cor0.col1 col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to e1e0cfc6d15933eb424ade504a2163bc

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3706
SELECT cor0.col2 / cor0.col1 col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to e1e0cfc6d15933eb424ade504a2163bc

query I rowsort
SELECT 85 * col0 FROM tab1
----
255
5440
6800

skipif mysql # not compatible
query I rowsort
SELECT ALL + col1 * - col0 + CAST ( - col1 AS REAL ) AS col2 FROM tab0
----
-2150
-3492
-8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-3709
SELECT DISTINCT - col0 * col1 + col0 DIV col2 + + col1 FROM tab1
----
-1027
-52
-629

skipif mysql # not compatible
query I rowsort label-3709
SELECT DISTINCT - col0 * col1 + col0 / col2 + + col1 FROM tab1
----
-1027
-52
-629

query I rowsort
SELECT - col0 + col1 * + col2 FROM tab2
----
1456
567
830

query I rowsort
SELECT DISTINCT + tab0.col2 FROM tab0, tab1, tab2 AS cor0, tab2
----
1
33
82

query I rowsort
SELECT ALL - 38 + + col0 AS col1 FROM tab2 AS cor0
----
-31
40
41

query I rowsort
SELECT DISTINCT + 42 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
42

query I rowsort
SELECT 81 FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360

query I rowsort
SELECT + - cor0.col2 + ( - col2 ) * col2 * col0 AS col0 FROM tab0 AS cor0
----
-26169
-36
-598518

query I rowsort
SELECT DISTINCT + col2 - + ( 27 ) FROM tab1 AS cor0
----
27
30
69

query I rowsort
SELECT DISTINCT col1 * col1 - col1 * col1 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + col1 + col0 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT DISTINCT col0 * + col0 + col2 + - cor0.col2 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT col1 + + col1 + - col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT col0 * 38 FROM tab0 cor0
----
1330
3382
912

query I rowsort
SELECT ALL + col2 + + ( col1 ) AS col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT + - col2 + ( 35 ) AS col0 FROM tab0 AS cor0
----
-47
2
34

query I rowsort
SELECT - col0 * 22 + + col2 * - col2 * col2 FROM tab1 AS cor0
----
-157530
-186601
-886496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - tab2.col0 + - col0 - + col0 col1 FROM tab2
----
-6240
-63
-6399

query I rowsort
SELECT ALL - + col1 * 95 FROM tab0 AS cor0
----
-8170
-8645
-9215

query I rowsort
SELECT DISTINCT col0 * + col2 * 89 AS col2 FROM tab1 AS cor0
----
14418
324672
683520

query I rowsort
SELECT DISTINCT - col0 * ( ( col1 ) ) FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-3729
SELECT - - cor0.col1 + 64 * ( + col0 ) DIV ( ( cor0.col1 ) ) col2 FROM tab0 cor0
----
103
120
153

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3729
SELECT - - cor0.col1 + 64 * ( + col0 ) / ( ( cor0.col1 ) ) col2 FROM tab0 cor0
----
103
120
153

query I rowsort
SELECT 38 * col1 * + col2 AS col2 FROM tab1 AS cor0
----
21660
47424
53352

onlyif mysql # use DIV operator for integer division
query I rowsort label-3731
SELECT ALL CAST( + col1 AS SIGNED ) + col1 DIV ( 77 ) FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-3731
SELECT ALL CAST ( + col1 AS INTEGER ) + col1 / ( 77 ) FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT - 31 * col2 FROM tab2 AS cor0
----
-1178
-806
-837

query I rowsort
SELECT DISTINCT - 89 AS col2 FROM tab1 AS cor0
----
-89

query I rowsort
SELECT ALL + ( + 82 ) FROM tab2
----
82
82
82

query I rowsort
SELECT DISTINCT + col2 * 72 + + cor0.col0 FROM tab0 AS cor0
----
107
2400
5993

query I rowsort
SELECT DISTINCT - ( - cor0.col0 ) + - col1 AS col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT ALL + 9 + 51 FROM tab0 AS cor0
----
60
60
60

query I rowsort
SELECT 79 AS col1 FROM tab2 AS cor0
----
79
79
79

query I rowsort
SELECT DISTINCT + - ( - cor0.col2 ) * col2 + + 84 AS col2 FROM tab0 AS cor0
----
1173
6808
85

query I rowsort
SELECT DISTINCT ( + 56 ) AS col0 FROM tab2 AS cor0
----
56

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3741
SELECT ALL - ( cor0.col1 ) * + col0 + CAST( NULL AS SIGNED ) * col1 * + cor0.col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3741
SELECT ALL - ( cor0.col1 ) * + col0 + CAST ( NULL AS INTEGER ) * col1 * + cor0.col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 93 AS col1 FROM tab1 AS cor0
----
-93
-93
-93

query I rowsort
SELECT DISTINCT 32 FROM tab2 AS cor0
----
32

query I rowsort
SELECT ALL + col0 * - col2 + + col0 AS col1 FROM tab2 cor0
----
-182
-1950
-2923

query I rowsort
SELECT DISTINCT + col1 + col2 * + col2 * - 2 FROM tab0 AS cor0
----
-13357
-2092
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-3746
SELECT + + 34 DIV + col1 + cor0.col2 * + col0 FROM tab0 AS cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-3746
SELECT + + 34 / + col1 + cor0.col2 * + col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT + 3 + - col1 AS col0 FROM tab1 AS cor0
----
-10
-23
-7

query I rowsort
SELECT ALL col2 + col1 * - 61 AS col2 FROM tab0 AS cor0
----
-5213
-5469
-5916

query I rowsort
SELECT col2 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 92 + col0 AS col1 FROM tab0 AS cor0
----
116
127
181

onlyif mysql # use DIV operator for integer division
query I rowsort label-3751
SELECT - 97 + col0 DIV col0 AS col1 FROM tab2 AS cor0
----
-96
-96
-96

skipif mysql # not compatible
query I rowsort label-3751
SELECT - 97 + col0 / col0 AS col1 FROM tab2 AS cor0
----
-96
-96
-96

query I rowsort
SELECT + - ( col0 ) + col2 * - ( ( col0 ) ) AS col0 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT DISTINCT col1 * - tab2.col2 + + tab2.col1 AS col0 FROM tab2
----
-1475
-629
-806

query I rowsort
SELECT col0 * - col1 + - cor0.col1 FROM tab2 cor0
----
-1360
-248
-4661

query I rowsort
SELECT - col0 + + 85 + + col1 * - tab2.col0 * - col0 AS col0 FROM tab2
----
106103
1597
358963

query I rowsort
SELECT DISTINCT tab1.col0 + col0 AS col1 FROM tab1
----
128
160
6

query I rowsort
SELECT DISTINCT + col0 + ( 85 + col0 ) * col2 * + col1 AS col1 FROM tab2
----
106023
250120
77011

onlyif mysql # use DIV operator for integer division
query I rowsort label-3758
SELECT col1 + - 8 DIV col2 + - col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3758
SELECT col1 + - 8 / col2 + - col1 FROM tab1
----
0
0
0

query I rowsort
SELECT 88 + cor0.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 04c32dfeb6584e905d02ba83a8cad72e

query I rowsort
SELECT ALL - col2 + - col0 AS col1 FROM tab0
----
-171
-36
-57

query I rowsort
SELECT 41 * col0 * col1 + 94 AS col0 FROM tab2
----
188776
55157
8991

query I rowsort
SELECT ALL - + col1 * col1 + + col2 FROM tab2 cor0
----
-251
-3455
-934

query I rowsort
SELECT - col0 * col1 + - col1 AS col1 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT ALL - + 35 AS col2 FROM tab0 AS cor0
----
-35
-35
-35

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3765
SELECT ALL + - CAST( NULL AS DECIMAL ) - 89 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3765
SELECT ALL + - CAST ( NULL AS REAL ) - 89 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 25 ) * - col0 col0 FROM tab2 AS cor0
----
175
1950
1975

query I rowsort
SELECT DISTINCT + cor0.col2 + 39 FROM tab1 AS cor0
----
135
93
96

query I rowsort
SELECT DISTINCT 53 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
53

query I rowsort
SELECT + + col2 * 77 FROM tab0 AS cor0
----
2541
6314
77

query I rowsort
SELECT cor0.col1 * - col1 AS col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT DISTINCT + - 61 FROM tab0 AS cor0
----
-61

query I rowsort
SELECT col2 + - cor0.col2 * cor0.col2 FROM tab0 AS cor0
----
-1056
-6642
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 + - col0 col1 FROM tab2
----
-36
-37
35

query I rowsort
SELECT - - 20 * cor1.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b253fd93eadd9a6a37173ff025ac595c

query I rowsort
SELECT ALL + - col2 * - col1 + + 43 AS col2 FROM tab1 AS cor0
----
1291
1447
613

query I rowsort
SELECT + col1 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT - col1 * - tab1.col0 AS col2 FROM tab1
----
1040
640
78

query I rowsort
SELECT DISTINCT - 68 * - 17 FROM tab0, tab2 cor0
----
1156

query I rowsort
SELECT - col0 * ( + col2 ) AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-3780
SELECT + + cor0.col2 DIV + col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3780
SELECT + + cor0.col2 / + col2 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3781
SELECT + - col0 DIV + 68 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3781
SELECT + - col0 / + 68 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT - 19 FROM tab0 AS cor0
----
-19
-19
-19

query I rowsort
SELECT - 98 + col1 AS col0 FROM tab1 AS cor0
----
-72
-85
-88

query I rowsort
SELECT - + ( + col2 ) + col1 AS col0 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT + 35 * + col1 FROM tab2 AS cor0
----
1085
2065
595

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( col1 AS REAL ) col2 FROM tab1 AS cor0
----
-10
-13
-26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3787
SELECT ALL - - col1 * + cor0.col2 + - CAST( NULL AS SIGNED ) + + 99 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3787
SELECT ALL - - col1 * + cor0.col2 + - CAST ( NULL AS INTEGER ) + + 99 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col1 col2 FROM tab2 AS cor0
----
118
34
62

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 cor0, tab1 AS cor1, tab2 cor2
----
972 values hashing to e610acd60f342127e6cdba18673d9f0e

query I rowsort
SELECT - 2 + - col0 * ( + col1 ) * col1 FROM tab1 AS cor0
----
-13522
-2030
-6402

query I rowsort
SELECT DISTINCT + cor0.col0 AS col1 FROM tab1, tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT col2 * col1 * + 25 FROM tab1
----
14250
31200
35100

query I rowsort
SELECT + col1 + 39 AS col1 FROM tab1 AS cor0
----
49
52
65

query I rowsort
SELECT DISTINCT ( col2 * + tab1.col1 ) FROM tab1
----
1248
1404
570

query I rowsort
SELECT + ( - tab1.col0 ) + + cor0.col1 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 191cb0026c65d6fd7e1ca864c3d947d1

query I rowsort
SELECT + ( - col1 ) FROM tab2
----
-17
-31
-59

query I rowsort
SELECT - 77 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c7e5f48ecd3843d54a76808ed1f43ff6

query I rowsort
SELECT + col0 * - col0 AS col2 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT 72 * + col1 FROM tab1
----
1872
720
936

query I rowsort
SELECT 87 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT DISTINCT 10 + col2 FROM tab0
----
11
43
92

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3802
SELECT ALL - CAST( + col2 AS SIGNED ) + - col1 * 39 AS col0 FROM tab1
----
-1068
-447
-603

skipif mysql # not compatible
query I rowsort label-3802
SELECT ALL - CAST ( + col2 AS INTEGER ) + - col1 * 39 AS col0 FROM tab1
----
-1068
-447
-603

query I rowsort
SELECT DISTINCT - ( - col0 ) + col1 FROM tab0 AS cor0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-3804
SELECT + - 52 + - col1 DIV col1 FROM tab2 AS cor0
----
-53
-53
-53

skipif mysql # not compatible
query I rowsort label-3804
SELECT + - 52 + - col1 / col1 FROM tab2 AS cor0
----
-53
-53
-53

query I rowsort
SELECT ALL cor0.col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT DISTINCT cor0.col2 * col2 + - cor0.col1 FROM tab0 cor0
----
-96
1003
6633

query I rowsort
SELECT ALL - 5 + - col0 FROM tab2 cor0
----
-12
-83
-84

query I rowsort
SELECT - col0 * + ( col1 * ( 5 ) ) + + col0 AS col0 FROM tab1 AS cor0
----
-3136
-387
-5120

query I rowsort
SELECT DISTINCT ( + col1 ) + - col0 * + cor0.col0 + col2 FROM tab0 AS cor0
----
-1127
-457
-7748

query I rowsort
SELECT DISTINCT - + 23 * + 96 + col1 FROM tab1 AS cor0
----
-2182
-2195
-2198

query I rowsort
SELECT - col0 + - 59 AS col2 FROM tab1 AS cor0
----
-123
-139
-62

query I rowsort
SELECT DISTINCT + 99 FROM tab2, tab0 AS cor0
----
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-3813
SELECT + col2 + + col0 DIV + ( - col1 ) FROM tab1 AS cor0
----
51
54
90

skipif mysql # not compatible
query I rowsort label-3813
SELECT + col2 + + col0 / + ( - col1 ) FROM tab1 AS cor0
----
51
54
90

query I rowsort
SELECT cor0.col0 * col0 AS col2 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT ALL col2 * col1 * - col2 FROM tab1 AS cor0
----
-119808
-32490
-75816

query I rowsort
SELECT ALL + ( + col0 + col0 ) * col2 AS col1 FROM tab0
----
14596
1584
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 col0 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL - - 37 * col2 FROM tab1 AS cor0
----
1998
2109
3552

query I rowsort
SELECT ALL - cor0.col2 * col2 + col0 FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT - + col1 * + col1 AS col1 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT col0 * - col1 * col2 + + col1 FROM tab2 cor0
----
-119593
-51017
-5828

query I rowsort
SELECT ( - col0 ) + col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT ALL + 7 AS col0 FROM tab2 AS cor0
----
7
7
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3824
SELECT - CAST( ( col2 ) + col2 AS SIGNED ) * + 31 AS col1 FROM tab0
----
-2046
-5084
-62

skipif mysql # not compatible
query I rowsort label-3824
SELECT - CAST ( ( col2 ) + col2 AS INTEGER ) * + 31 AS col1 FROM tab0
----
-2046
-5084
-62

query I rowsort
SELECT ALL - col0 + + 61 FROM tab2
----
-17
-18
54

query I rowsort
SELECT DISTINCT ( + 6 ) * col0 AS col1 FROM tab0
----
144
210
534

query I rowsort
SELECT + 35 FROM tab1
----
35
35
35

query I rowsort
SELECT DISTINCT 51 + - 77 * col0 AS col2 FROM tab0
----
-1797
-2644
-6802

query I rowsort
SELECT DISTINCT ( col2 ) * + col2 + - 71 AS col2 FROM tab0
----
-70
1018
6653

query I rowsort
SELECT ALL + col2 + - col0 * 20 FROM tab0 cor0
----
-1698
-447
-699

query I rowsort
SELECT DISTINCT - + col2 * col2 + + col2 FROM tab1 AS cor0
----
-2862
-3192
-9120

query I rowsort
SELECT ALL - cor0.col0 + - col1 + + col0 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT - col1 * + col1 AS col1 FROM tab1 cor0
----
-100
-169
-676

query I rowsort
SELECT ALL + col1 + + col1 * - col1 FROM tab0 cor0
----
-7310
-8190
-9312

query I rowsort
SELECT + - col2 + 68 FROM tab1 AS cor0
----
-28
11
14

skipif mysql # not compatible
query I rowsort
SELECT - col1 + CAST ( ( - col1 ) AS REAL ) * col2 AS col0 FROM tab0 AS cor0
----
-194
-2924
-7553

query I rowsort
SELECT ALL + 30 FROM tab2
----
30
30
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col0 col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT ALL + 40 AS col0 FROM tab0
----
40
40
40

query I rowsort
SELECT ALL 34 * + col1 FROM tab0
----
2924
3094
3298

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 AS cor2, tab0 AS cor3
----
3645 values hashing to 28a820d445f1d1e09fd3c7443bd16e29

query I rowsort
SELECT - 75 FROM tab0, tab0 AS cor0
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547

query I rowsort
SELECT - col0 * - col2 + - col0 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT ALL col0 - col1 * - col1 AS col2 FROM tab2
----
3559
368
968

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col0 FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT ALL 34 * + ( + col0 ) FROM tab0 AS cor0
----
1190
3026
816

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3847
SELECT ALL - CAST( col2 AS SIGNED ) * - col0 col1 FROM tab1 cor0
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3847
SELECT ALL - CAST ( col2 AS INTEGER ) * - col0 col1 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT + cor0.col1 + - col1 * - col2 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT ALL ( + col0 ) * - col2 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3850
SELECT DISTINCT + CAST( + 14 AS SIGNED ) FROM tab0, tab0 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-3850
SELECT DISTINCT + CAST ( + 14 AS INTEGER ) FROM tab0, tab0 AS cor0
----
14

query I rowsort
SELECT - ( - cor0.col2 ) FROM tab1, tab2 cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col2 col1 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT + col0 + col2 * + col1 * col0 FROM tab0
----
3430
664207
68136

onlyif mysql # use DIV operator for integer division
query I rowsort label-3854
SELECT DISTINCT - col1 DIV + ( 32 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3854
SELECT DISTINCT - col1 / + ( 32 ) FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col2 col2 FROM tab1
----
-16
-51
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-3856
SELECT - col2 + - ( col2 ) DIV + col1 AS col0 FROM tab2
----
-26
-27
-40

skipif mysql # not compatible
query I rowsort label-3856
SELECT - col2 + - ( col2 ) / + col1 AS col0 FROM tab2
----
-26
-27
-40

query I rowsort
SELECT DISTINCT + col0 * 46 FROM tab1
----
138
2944
3680

query I rowsort
SELECT DISTINCT tab2.col0 * + col1 * col0 FROM tab2
----
106097
1519
358956

query I rowsort
SELECT DISTINCT - cor0.col0 * 6 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-144
-210
-534

onlyif mysql # use DIV operator for integer division
query I rowsort label-3860
SELECT ALL - + col2 DIV col2 + col0 FROM tab0 AS cor0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-3860
SELECT ALL - + col2 / col2 + col0 FROM tab0 AS cor0
----
23
34
88

query I rowsort
SELECT ( 91 ) FROM tab1 cor0
----
91
91
91

query I rowsort
SELECT DISTINCT - col1 - + col2 * col2 * - ( + 76 + + col1 ) FROM tab0 AS cor0
----
1122817
176332
76

query I rowsort
SELECT + ( col1 + col1 ) FROM tab1
----
20
26
52

query I rowsort
SELECT DISTINCT + + col2 - cor0.col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT + col1 + col2 * - col1 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT ALL 21 AS col1 FROM tab0 AS cor0
----
21
21
21

query I rowsort
SELECT DISTINCT cor0.col2 * + col1 AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT + col2 - - cor0.col1 AS col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT DISTINCT - + col1 + col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT col0 + - 17 FROM tab0 AS cor0
----
18
7
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 22 * - col1 + col1 col0 FROM tab1 AS cor0
----
-210
-273
-546

query I rowsort
SELECT ( - 20 ) * col2 AS col1 FROM tab0 AS cor0
----
-1640
-20
-660

query I rowsort
SELECT ALL + + cor0.col0 * 99 + + col2 * col0 + + col1 AS col2 FROM tab1 AS cor0
----
15613
485
9994

onlyif mysql # use DIV operator for integer division
query I rowsort label-3874
SELECT DISTINCT ( col1 ) DIV + col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3874
SELECT DISTINCT ( col1 ) / + col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + ( cor0.col0 ) + - col0 AS col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 68 - + col0 AS col1 FROM tab0 AS cor0
----
-21
33
44

query I rowsort
SELECT ALL - cor0.col1 + cor0.col2 AS col2 FROM tab0 AS cor0
----
-53
-9
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3878
SELECT 20 DIV 55 - col2 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-3878
SELECT 20 / 55 - col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT + 71 + - col2 AS col0 FROM tab1 AS cor0
----
-25
14
17

query I rowsort
SELECT 73 + - col2 * - col0 FROM tab2
----
2101
262
3075

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3881
SELECT ( - col1 ) - CAST( NULL AS SIGNED ) * - tab2.col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3881
SELECT ( - col1 ) - CAST ( NULL AS INTEGER ) * - tab2.col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 20 col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 + - cor0.col2 col0 FROM tab2, tab1 cor0
----
9 values hashing to 9b6b643191a390a3a60049db62acd1a4

query I rowsort
SELECT col2 * + col1 + + 24 FROM tab1
----
1272
1428
594

query I rowsort
SELECT - col2 + col1 * - col1 FROM tab1 AS cor0
----
-157
-265
-730

query I rowsort
SELECT ALL + - col1 * col2 + ( - col2 ) FROM tab0 AS cor0
----
-2871
-7544
-98

query I rowsort
SELECT ALL + + col1 + + cor0.col2 * col1 FROM tab2 AS cor0
----
1593
663
868

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col2 FROM tab1 cor0
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3889
SELECT ALL + + col0 DIV + col2 + - col0 AS col0 FROM tab0 AS cor0
----
-24
-88
0

skipif mysql # not compatible
query I rowsort label-3889
SELECT ALL + + col0 / + col2 + - col0 AS col0 FROM tab0 AS cor0
----
-24
-88
0

query I rowsort
SELECT ALL - - col1 + + ( col0 ) * + col0 FROM tab0 AS cor0
----
1322
662
8012

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col2 * - 26 col2 FROM tab1
----
-199680
-4212
-94848

query I rowsort
SELECT ALL + - col1 * - ( 35 ) + col0 FROM tab0 AS cor0
----
3034
3274
3430

query I rowsort
SELECT DISTINCT - cor0.col0 * + col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT + + 19 * col0 FROM tab2 AS cor0
----
133
1482
1501

onlyif mysql # use DIV operator for integer division
query I rowsort label-3895
SELECT - 98 DIV col0 AS col0 FROM tab0 AS cor0
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-3895
SELECT - 98 / col0 AS col0 FROM tab0 AS cor0
----
-1
-2
-4

onlyif mysql # use DIV operator for integer division
query I rowsort label-3896
SELECT ALL + col1 * col1 DIV - col0 FROM tab2 AS cor0
----
-137
-3
-44

skipif mysql # not compatible
query I rowsort label-3896
SELECT ALL + col1 * col1 / - col0 FROM tab2 AS cor0
----
-137
-3
-44

query I rowsort
SELECT + - col0 + - col1 * + ( col1 ) FROM tab1 AS cor0
----
-164
-249
-679

query I rowsort
SELECT + 53 * + col2 AS col2 FROM tab0 AS cor0
----
1749
4346
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col1 + - col1 * col0 col2 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT DISTINCT + + col0 + cor0.col2 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT DISTINCT - - col0 * col2 AS col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT col1 - - col2 AS col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT - 73 * col1 + 3 AS col1 FROM tab2 AS cor0
----
-1238
-2260
-4304

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 6 + col1 + col0 col0 FROM tab0 AS cor0
----
104
126
174

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 76 col2 FROM tab0 cor0
----
76
76
76

query I rowsort
SELECT - ( col0 ) + - col0 FROM tab1
----
-128
-160
-6

query I rowsort
SELECT DISTINCT 43 - tab2.col1 AS col1 FROM tab2, tab2 AS cor0
----
-16
12
26

query I rowsort
SELECT ( cor0.col0 ) + + col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT col1 * col2 + + 54 AS col0 FROM tab2 AS cor0
----
1588
700
891

query I rowsort
SELECT cor0.col0 + cor0.col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 0a9ba7ddbb78279db2d78308414e03c9

query I rowsort
SELECT + cor0.col0 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT - cor0.col2 * - col2 AS col2 FROM tab0 AS cor0
----
1
1089
6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3914
SELECT + + col2 + 90 DIV - cor0.col1 FROM tab1 AS cor0
----
48
51
90

skipif mysql # not compatible
query I rowsort label-3914
SELECT + + col2 + 90 / - cor0.col1 FROM tab1 AS cor0
----
48
51
90

query I rowsort
SELECT 77 AS col2 FROM tab1
----
77
77
77

query I rowsort
SELECT ( + 48 ) FROM tab1
----
48
48
48

query I rowsort
SELECT + 78 FROM tab1
----
78
78
78

query I rowsort
SELECT DISTINCT - 40 AS col0 FROM tab0
----
-40

query I rowsort
SELECT - col0 * - col1 + + tab2.col2 FROM tab2
----
1381
244
4628

query I rowsort
SELECT ALL - + 92 * ( cor0.col1 ) + - col2 * cor0.col1 * col1 AS col1 FROM tab1 AS cor0
----
-17420
-38896
-6620

query I rowsort
SELECT - col0 * 63 AS col2 FROM tab1 AS cor0
----
-189
-4032
-5040

onlyif mysql # use DIV operator for integer division
query I rowsort label-3922
SELECT DISTINCT + 75 DIV 57 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3922
SELECT DISTINCT + 75 / 57 FROM tab2 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 2 ) + col0 * col1 col2 FROM tab0 AS cor0
----
2066
3397
8101

onlyif mysql # use DIV operator for integer division
query I rowsort label-3924
SELECT ALL - ( 23 ) * col1 DIV 5 - + col2 FROM tab1 AS cor0
----
-103
-155
-173

skipif mysql # not compatible
query I rowsort label-3924
SELECT ALL - ( 23 ) * col1 / 5 - + col2 FROM tab1 AS cor0
----
-103
-155
-173

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3925
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + + col0 * col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3925
SELECT DISTINCT - CAST ( NULL AS REAL ) + + col0 * col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 95 AS col1 FROM tab2
----
-95

onlyif mysql # use DIV operator for integer division
query I rowsort label-3927
SELECT DISTINCT col2 + - 75 DIV col1 AS col1 FROM tab1 AS cor0
----
50
52
91

skipif mysql # not compatible
query I rowsort label-3927
SELECT DISTINCT col2 + - 75 / col1 AS col1 FROM tab1 AS cor0
----
50
52
91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3928
SELECT DISTINCT CAST( + col1 AS SIGNED ) + col0 FROM tab0 AS cor0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-3928
SELECT DISTINCT CAST ( + col1 AS INTEGER ) + col0 FROM tab0 AS cor0
----
110
132
180

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3929
SELECT ALL CAST( NULL AS SIGNED ) * - col0 - + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3929
SELECT ALL CAST ( NULL AS INTEGER ) * - col0 - + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 19 * col2 AS col1 FROM tab0 AS cor0
----
-1558
-19
-627

query I rowsort
SELECT 14 * + tab1.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 79cb37b3c6ffe1f92a5b5dac3580554c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - tab0.col1 ) * + col1 col0 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT - col0 * + tab0.col0 AS col1 FROM tab0
----
-1225
-576
-7921

query IIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 CROSS JOIN tab2 cor1
----
243 values hashing to 60bd71ee2159222231bb3b5819bc5dca

query I rowsort
SELECT + - 69 FROM tab1 AS cor0
----
-69
-69
-69

query I rowsort
SELECT ALL cor0.col2 FROM tab0, tab0 cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT ( col0 ) * + ( col1 * - col0 ) - + col1 AS col1 FROM tab1
----
-260
-40970
-83213

query I rowsort
SELECT - col0 + + col1 * + 37 FROM tab0 cor0
----
3158
3278
3554

query I rowsort
SELECT - - 31 AS col2 FROM tab2 AS cor0
----
31
31
31

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3940
SELECT ALL + CAST( NULL AS SIGNED ) * - 69 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3940
SELECT ALL + CAST ( NULL AS INTEGER ) * - 69 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - - col2 * + ( col1 ) AS col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT cor0.col1 * 25 + 57 * - col2 + col2 AS col2 FROM tab1 cor0
----
-2374
-2942
-5051

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - ( col0 ) + cor0.col2 col1 FROM tab2 AS cor0
----
-26
-3
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + 15 + col2 col0 FROM tab2 cor0
----
67
69
91

query I rowsort
SELECT + cor0.col1 * 95 FROM tab0 AS cor0
----
8170
8645
9215

query I rowsort
SELECT - col1 * - col2 + col2 + col2 FROM tab0 cor0
----
2904
7626
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-3947
SELECT - 97 DIV ( col1 * - 14 + - col1 ) AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3947
SELECT - 97 / ( col1 * - 14 + - col1 ) AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ( - col1 ) + col0 * 16 + + cor0.col2 FROM tab0 AS cor0
----
1415
331
464

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3949
SELECT ALL CAST( NULL AS SIGNED ) FROM tab1, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3949
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab1, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL + 35 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query I rowsort
SELECT DISTINCT tab0.col1 + - col0 - + col2 AS col0 FROM tab0
----
-80
29
61

query I rowsort
SELECT + col1 + - tab1.col2 - col2 FROM tab1
----
-104
-179
-82

query I rowsort
SELECT - cor0.col0 * + 73 AS col2 FROM tab1 AS cor0
----
-219
-4672
-5840

query I rowsort
SELECT - col2 * - cor0.col1 + - col0 * col0 AS col0 FROM tab0 AS cor0
----
-1128
-459
2262

query I rowsort
SELECT ALL col1 * col2 + col2 * 5 FROM tab2
----
1664
836
972

query I rowsort
SELECT DISTINCT + ( - cor0.col0 ) * + cor0.col0 FROM tab1, tab2, tab2 AS cor0, tab0
----
-49
-6084
-6241

query I rowsort
SELECT + + col0 + col0 * col0 FROM tab1 AS cor0
----
12
4160
6480

onlyif mysql # use DIV operator for integer division
query I rowsort label-3958
SELECT DISTINCT - tab0.col1 + 45 DIV col2 AS col0 FROM tab0
----
-52
-85
-91

skipif mysql # not compatible
query I rowsort label-3958
SELECT DISTINCT - tab0.col1 + 45 / col2 AS col0 FROM tab0
----
-52
-85
-91

query I rowsort
SELECT ALL + + col2 + - col0 AS col0 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT + ( col0 ) + - col2 AS col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT DISTINCT - - 84 * cor0.col1 * col1 AS col2 FROM tab0 AS cor0
----
621264
695604
790356

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 col2 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT + cor0.col0 - col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - col0 * + col1 * + col1 FROM tab2 cor0
----
-22831
-271518
-6727

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 82 * + col1 + + col2 col0 FROM tab2 AS cor0
----
-1356
-2515
-4812

query I rowsort
SELECT ALL - col1 + + 82 * col2 FROM tab2 AS cor0
----
2073
2183
3099

onlyif mysql # use DIV operator for integer division
query I rowsort label-3967
SELECT ALL + col2 DIV - col2 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3967
SELECT ALL + col2 / - col2 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT ALL col2 * + col0 * 9 FROM tab1
----
1458
32832
69120

query I rowsort
SELECT DISTINCT 91 AS col1 FROM tab1 AS cor0
----
91

query I rowsort
SELECT ALL + - 4 + + col1 FROM tab2 cor0
----
13
27
55

query I rowsort
SELECT ALL - col1 * - cor0.col1 + col2 AS col1 FROM tab0 AS cor0
----
7429
8363
9410

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0, tab2 AS cor1, tab2 cor2
----
972 values hashing to a698694a7dac245e42212ff0316bdf45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + 15 * ( - col1 ) col2 FROM tab1 AS cor0
----
-115
-387
-86

query I rowsort
SELECT - - cor0.col0 * col2 AS col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT + col2 + - col1 * 21 AS col2 FROM tab2 AS cor0
----
-1213
-319
-624

query I rowsort
SELECT - col2 * - 36 AS col2 FROM tab1 cor0
----
1944
2052
3456

query I rowsort
SELECT ALL - cor0.col0 * col2 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT + col2 + col1 * - col1 * - col0 FROM tab1 cor0
----
13616
2082
6457

query I rowsort
SELECT - + col0 + col0 * col2 AS col2 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT ALL col1 + 97 * 51 AS col1 FROM tab1 AS cor0
----
4957
4960
4973

query I rowsort
SELECT - - cor0.col2 * 54 FROM tab1 AS cor0
----
2916
3078
5184

query I rowsort
SELECT DISTINCT + - col2 + + col2 * - col2 AS col2 FROM tab2 AS cor0
----
-1482
-702
-756

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + 80 col0 FROM tab0 AS cor0
----
166
171
177

query I rowsort
SELECT ALL + col2 * - col1 * col1 FROM tab1 AS cor0
----
-16224
-36504
-5700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col0 * + tab2.col1 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to bc669a3cc969c7619ebcffb5400ba0ba

query I rowsort
SELECT ALL - col0 - - cor0.col2 * + col1 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT ALL 59 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 88 * - 33 + + cor0.col2 * 22 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 2eca303ef807f2a920795fe7e2f2f231

query I rowsort
SELECT ALL + cor0.col1 * col2 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT + col0 * - col1 + col1 AS col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT cor0.col2 AS col2 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT ALL - col1 * + col0 + col1 * cor0.col0 * - col1 + - col2 AS col0 FROM tab0 AS cor0
----
-179601
-332711
-745190

query I rowsort
SELECT - col0 + + 88 FROM tab2 AS cor0
----
10
81
9

query I rowsort
SELECT + tab2.col0 - - 80 * 15 AS col0 FROM tab2
----
1207
1278
1279

query I rowsort
SELECT + 49 AS col0 FROM tab0 AS cor0
----
49
49
49

query I rowsort
SELECT - tab0.col2 * - col1 + col0 FROM tab0
----
132
2862
7551

query I rowsort
SELECT DISTINCT - cor0.col0 * tab2.col1 + - 37 AS col0 FROM tab2, tab1, tab1 AS cor0
----
9 values hashing to 6fc94b7e2ba5c858d4fb610892965122

query I rowsort
SELECT DISTINCT 46 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
46

query I rowsort
SELECT DISTINCT 57 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
-1767
-3363
-969

query I rowsort
SELECT - 22 + col0 AS col0 FROM tab1 AS cor0
----
-19
42
58

query I rowsort
SELECT ALL + cor0.col1 * col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL + + col1 * col1 AS col0 FROM tab0 AS cor0
----
7396
8281
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 83 * + col1 - tab1.col2 col2 FROM tab1
----
-1175
-2212
-887

query I rowsort
SELECT + col0 + - col1 * - col1 * tab2.col0 AS col0 FROM tab2
----
22910
271596
6734

query I rowsort
SELECT col1 + - col1 * col1 - ( + col2 + - col2 ) * - 25 AS col0 FROM tab2
----
-272
-3422
-930

query I rowsort
SELECT 22 * + col1 + col2 AS col1 FROM tab2 AS cor0
----
1324
412
709

query I rowsort
SELECT DISTINCT + 86 * col0 + col0 * - col2 AS col0 FROM tab1 AS cor0
----
-800
1856
96

query I rowsort
SELECT ALL col0 * - col0 - 19 AS col2 FROM tab0 AS cor0
----
-1244
-595
-7940

query I rowsort
SELECT DISTINCT + col1 * + cor0.col2 * + 78 + - col1 * col0 * - 73 AS col1 FROM tab2 AS cor0
----
148427
455598
81127

query I rowsort
SELECT DISTINCT - col1 + col2 * col0 + cor0.col2 AS col2 FROM tab1 AS cor0
----
190
3695
7763

query I rowsort
SELECT DISTINCT - + cor0.col0 FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT - col2 * + tab0.col1 * - tab0.col2 + - col2 FROM tab0
----
611802
93621
96

query I rowsort
SELECT DISTINCT col2 + tab2.col0 * col1 * + col1 AS col0 FROM tab2
----
22869
271544
6754

query I rowsort
SELECT 46 AS col2 FROM tab1
----
46
46
46

query I rowsort
SELECT DISTINCT ( - col0 ) + + col2 AS col1 FROM tab1
----
-7
16
51

query I rowsort
SELECT DISTINCT ( - col2 ) + ( col1 ) AS col0 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT ALL - col0 * - col1 * col1 AS col1 FROM tab2 AS cor0
----
22831
271518
6727

query I rowsort
SELECT DISTINCT - ( col2 ) * - col0 AS col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT col1 * col0 + 97 FROM tab1 AS cor0
----
1137
175
737

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + - col1 col2 FROM tab1 AS cor0
----
28
47
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4021
SELECT DISTINCT + col0 * + cor0.col1 + CAST( - col2 AS SIGNED ) + - cor0.col1 AS col1 FROM tab2 AS cor0
----
1288
159
4517

skipif mysql # not compatible
query I rowsort label-4021
SELECT DISTINCT + col0 * + cor0.col1 + CAST ( - col2 AS INTEGER ) + - cor0.col1 AS col1 FROM tab2 AS cor0
----
1288
159
4517

query I rowsort
SELECT + 20 + - cor0.col2 FROM tab2 AS cor0
----
-18
-6
-7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4023
SELECT ALL - + col1 + + col2 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4023
SELECT ALL - + col1 + + col2 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 49 + + col2 col0 FROM tab2 AS cor0
----
75
76
87

query I rowsort
SELECT + 97 FROM tab2
----
97
97
97

query I rowsort
SELECT col0 * - ( tab1.col1 ) FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT tab0.col1 AS col0 FROM tab0, tab2 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT DISTINCT 68 * - col1 AS col1 FROM tab2
----
-1156
-2108
-4012

query I rowsort
SELECT - 37 + col2 AS col1 FROM tab1
----
17
20
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4030
SELECT + CAST( - tab0.col1 AS SIGNED ) AS col0 FROM tab0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-4030
SELECT + CAST ( - tab0.col1 AS INTEGER ) AS col0 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT ( - col0 + col2 ) AS col0 FROM tab0
----
-34
-7
9

query I rowsort
SELECT tab0.col1 AS col0 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT DISTINCT - + 91 FROM tab0 AS cor0
----
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 57 col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT - ( + 72 ) FROM tab0 AS cor0
----
-72
-72
-72

query I rowsort
SELECT + 45 + - col1 * - col1 FROM tab2 AS cor0
----
1006
334
3526

query I rowsort
SELECT - + col2 + col2 * - col2 FROM tab1 AS cor0
----
-2970
-3306
-9312

query I rowsort
SELECT DISTINCT col0 * + tab0.col2 FROM tab0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 69 * - 25 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
1725

query I rowsort
SELECT - col1 * - col0 * + col0 AS col0 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT col2 * + col0 * col0 FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT + 96 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query I rowsort
SELECT + 48 AS col1 FROM tab0
----
48
48
48

query I rowsort
SELECT - cor0.col1 * - col2 AS col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - + 69 * col0 AS col0 FROM tab2 AS cor0
----
-483
-5382
-5451

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4046
SELECT - col2 - + CAST( NULL AS SIGNED ) * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4046
SELECT - col2 - + CAST ( NULL AS INTEGER ) * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col2 + + col2 * 31 AS col1 FROM tab0 AS cor0
----
2460
30
990

onlyif mysql # use DIV operator for integer division
query I rowsort label-4048
SELECT + col1 * 90 + + col2 DIV + col2 FROM tab1 AS cor0
----
1171
2341
901

skipif mysql # not compatible
query I rowsort label-4048
SELECT + col1 * 90 + + col2 / + col2 FROM tab1 AS cor0
----
1171
2341
901

query I rowsort
SELECT - + cor0.col1 + - 31 AS col1 FROM tab0 AS cor0
----
-117
-122
-128

query I rowsort
SELECT DISTINCT - - col0 + 98 + col2 FROM tab2 AS cor0
----
132
202
215

query I rowsort
SELECT + ( 51 ) AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 * - col2 + - ( col0 ) * col2 col1 FROM tab2 AS cor0
----
-2704
-4446
-918

query I rowsort
SELECT - col2 * col2 + + col0 + - col1 FROM tab0 AS cor0
----
-1151
-63
-6726

query I rowsort
SELECT + col2 * + cor0.col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT ALL col1 * 11 FROM tab0 AS cor0
----
1001
1067
946

query I rowsort
SELECT + col1 * 7 * - ( - col0 ) + - ( col0 ) FROM tab2 AS cor0
----
1512
32136
9322

query I rowsort
SELECT - col1 + + cor0.col0 * + 29 - col1 AS col2 FROM tab1 AS cor0
----
1836
2294
35

query I rowsort
SELECT + - col0 + + col1 * col0 + col2 FROM tab0 cor0
----
2073
3361
8092

query IIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT - 24 * - col2 + - col1 AS col2 FROM tab1 AS cor0
----
1270
1358
2291

query I rowsort
SELECT + - 25 + - 78 * + col0 AS col2 FROM tab1 AS cor0
----
-259
-5017
-6265

query I rowsort
SELECT col1 * cor0.col1 + col1 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT 57 AS col1 FROM tab1, tab0 AS cor0, tab0, tab1 cor1
----
81 values hashing to 23b62d6905061dab566f3a9e15667302

onlyif mysql # use DIV operator for integer division
query I rowsort label-4064
SELECT - 76 DIV ( - cor0.col1 * 33 ) + col2 DIV - col2 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4064
SELECT - 76 / ( - cor0.col1 * 33 ) + col2 / - col2 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + ( 68 ) * - col1 FROM tab0 AS cor0
----
-5848
-6188
-6596

query I rowsort
SELECT + - 50 * 71 + col1 * ( col1 ) FROM tab2 AS cor0
----
-2589
-3261
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT - 29 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

onlyif mysql # use DIV operator for integer division
query I rowsort label-4069
SELECT DISTINCT + col1 DIV col0 FROM tab2 cor0
----
0
4

skipif mysql # not compatible
query I rowsort label-4069
SELECT DISTINCT + col1 / col0 FROM tab2 cor0
----
0
4

query I rowsort
SELECT 7 * col0 + col1 FROM tab0 AS cor0
----
254
342
714

query I rowsort
SELECT ALL - 88 * ( col1 ) * + col0 + + col0 * - cor0.col0 FROM tab2 AS cor0
----
-124425
-19145
-411060

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4072
SELECT DISTINCT + + CAST( - 86 AS SIGNED ) * col1 + 9 AS col2 FROM tab0 AS cor0
----
-7387
-7817
-8333

skipif mysql # not compatible
query I rowsort label-4072
SELECT DISTINCT + + CAST ( - 86 AS INTEGER ) * col1 + 9 AS col2 FROM tab0 AS cor0
----
-7387
-7817
-8333

query I rowsort
SELECT ALL cor0.col0 * cor0.col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL + + col2 + + col1 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT DISTINCT + - col1 * - col0 AS col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT - + 70 AS col2 FROM tab1 AS cor0
----
-70
-70
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 col0 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT ALL cor0.col0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT DISTINCT - col1 + col2 * tab2.col1 AS col1 FROM tab2
----
1475
629
806

query I rowsort
SELECT + + 35 + + col0 AS col0 FROM tab0 AS cor0
----
124
59
70

query I rowsort
SELECT ALL - col1 + 71 * col1 FROM tab0
----
6020
6370
6790

query I rowsort
SELECT ALL + - col1 * col1 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT - ( + col1 + - col0 ) FROM tab1
----
-23
54
67

query I rowsort
SELECT ALL 94 FROM tab1, tab0 AS cor0, tab1 cor1
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089

query I rowsort
SELECT col0 + - 77 - - col1 FROM tab0
----
103
33
55

query I rowsort
SELECT ALL 57 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to 220a93709e207779b34ef74b544764a5

query I rowsort
SELECT col1 * - 92 FROM tab2
----
-1564
-2852
-5428

query I rowsort
SELECT col2 + + ( col0 ) FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT col2 - 58 AS col0 FROM tab2
----
-20
-31
-32

query I rowsort
SELECT + 60 FROM tab0, tab1 cor0, tab2 AS cor1
----
27 values hashing to 1d2ab302ae60f95b15e68cf89083b162

query I rowsort
SELECT tab1.col2 * - 92 FROM tab1
----
-4968
-5244
-8832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 29 col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318

query I rowsort
SELECT + + col2 * ( ( + col2 ) ) + - col2 AS col2 FROM tab2 AS cor0
----
1406
650
702

onlyif mysql # use DIV operator for integer division
query I rowsort label-4094
SELECT - - col1 DIV 47 + - ( + col2 * + cor0.col0 ) AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

skipif mysql # not compatible
query I rowsort label-4094
SELECT - - col1 / 47 + - ( + col2 * + cor0.col0 ) AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT + - col0 + col2 * - col1 FROM tab2 cor0
----
-1612
-725
-844

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 cor0, tab0, tab0 cor1
----
972 values hashing to 3406497351e4789c89a295ee9b64b201

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab2, tab1 AS cor1
----
3645 values hashing to ae08f1949fd59e00b049f28175217e60

query I rowsort
SELECT DISTINCT - 70 * + cor0.col2 FROM tab1 AS cor0
----
-3780
-3990
-6720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * cor0.col2 col0 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT col2 - tab1.col2 * col2 AS col1 FROM tab1
----
-2862
-3192
-9120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( tab0.col0 ) - + ( + col2 ) col0 FROM tab0
----
-9
34
7

query I rowsort
SELECT - tab1.col0 - col0 FROM tab1
----
-128
-160
-6

query I rowsort
SELECT ALL 34 - col0 * col0 FROM tab2 AS cor0
----
-15
-6050
-6207

query I rowsort
SELECT DISTINCT + - 7 * + col1 AS col1 FROM tab1 AS cor0
----
-182
-70
-91

query I rowsort
SELECT - + col2 + - cor0.col0 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT - 33 AS col0 FROM tab1 AS cor0
----
-33
-33
-33

query I rowsort
SELECT + 6 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04

query I rowsort
SELECT - col0 * col1 * - tab2.col1 FROM tab2
----
22831
271518
6727

query I rowsort
SELECT ALL tab0.col2 * + tab0.col2 + col0 AS col0 FROM tab0
----
1113
36
6813

query I rowsort
SELECT + col1 - col2 AS col1 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT ALL 86 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * 15 + + 91 col1 FROM tab1
----
1051
1291
136

query I rowsort
SELECT - 28 AS col2 FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to eac00a95d734c7071360ed392c3f39bc

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4114
SELECT DISTINCT col2 * - CAST( col0 AS SIGNED ) FROM tab1
----
-162
-3648
-7680

skipif mysql # not compatible
query I rowsort label-4114
SELECT DISTINCT col2 * - CAST ( col0 AS INTEGER ) FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT ALL + 83 FROM tab1, tab2 cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query I rowsort
SELECT col1 * 0 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL col2 + + ( col0 + + col1 ) FROM tab1
----
131
189
83

query I rowsort
SELECT - col2 * 56 FROM tab0 cor0
----
-1848
-4592
-56

query I rowsort
SELECT ALL 50 + 83 FROM tab1 AS cor0
----
133
133
133

query I rowsort
SELECT - 79 * col2 AS col0 FROM tab2 AS cor0
----
-2054
-2133
-3002

query I rowsort
SELECT - col0 + col0 * - cor0.col1 FROM tab0 AS cor0
----
-2088
-3430
-8188

query I rowsort
SELECT DISTINCT + col1 * + 78 FROM tab1 cor0
----
1014
2028
780

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 96 col0 FROM tab1 AS cor0
----
-96
-96
-96

query I rowsort
SELECT + - 75 + + 92 AS col2 FROM tab1 AS cor0
----
17
17
17

onlyif mysql # use DIV operator for integer division
query I rowsort label-4125
SELECT DISTINCT + - col0 * - col0 - - col0 DIV ( col2 ) FROM tab0 AS cor0
----
1260
576
7922

skipif mysql # not compatible
query I rowsort label-4125
SELECT DISTINCT + - col0 * - col0 - - col0 / ( col2 ) FROM tab0 AS cor0
----
1260
576
7922

query I rowsort
SELECT ALL - 27 * - col2 FROM tab1 AS cor0
----
1458
1539
2592

query I rowsort
SELECT - ( cor0.col1 ) AS col2 FROM tab0 cor0
----
-86
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col1 FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT + + col1 * + col0 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-4130
SELECT ALL - - cor0.col0 DIV cor0.col2 AS col1 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-4130
SELECT ALL - - cor0.col0 / cor0.col2 AS col1 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT ALL 57 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT DISTINCT 90 AS col0 FROM tab0
----
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-4133
SELECT ALL 24 DIV 50 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4133
SELECT ALL 24 / 50 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + 63 * + col2 FROM tab2
----
1638
1701
2394

query I rowsort
SELECT DISTINCT cor0.col1 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
86
91
97

query I rowsort
SELECT + - 83 AS col0 FROM tab1 AS cor0
----
-83
-83
-83

query I rowsort
SELECT DISTINCT 18 AS col1 FROM tab0 AS cor0
----
18

query I rowsort
SELECT ALL col0 + + col0 FROM tab1 AS cor0
----
128
160
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4139
SELECT ALL + - CAST( NULL AS SIGNED ) * - ( col1 ) + - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4139
SELECT ALL + - CAST ( NULL AS INTEGER ) * - ( col1 ) + - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4140
SELECT 57 * col1 + col2 DIV col2 FROM tab0 AS cor0
----
4903
5188
5530

skipif mysql # not compatible
query I rowsort label-4140
SELECT 57 * col1 + col2 / col2 FROM tab0 AS cor0
----
4903
5188
5530

query I rowsort
SELECT + cor0.col0 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

onlyif mysql # use DIV operator for integer division
query I rowsort label-4142
SELECT col0 DIV col0 + - col1 * + 81 FROM tab1 AS cor0
----
-1052
-2105
-809

skipif mysql # not compatible
query I rowsort label-4142
SELECT col0 / col0 + - col1 * + 81 FROM tab1 AS cor0
----
-1052
-2105
-809

query I rowsort
SELECT DISTINCT col1 + 60 * col0 AS col2 FROM tab2 AS cor0
----
451
4739
4757

query I rowsort
SELECT - col1 + col1 AS col1 FROM tab0 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col0 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT DISTINCT + col0 * - col0 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT + 3 * + col0 FROM tab2 cor0
----
21
234
237

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col2 ) * col2 col0 FROM tab0 cor0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT - col1 * - col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT + 30 AS col2 FROM tab2 cor0
----
30

query I rowsort
SELECT - - col1 + + col1 * cor0.col2 AS col2 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT ALL + col1 + col0 AS col1 FROM tab1 cor0
----
29
74
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4153
SELECT cor0.col1 + + col2 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4153
SELECT cor0.col1 + + col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 42 + + col2 AS col0 FROM tab1 AS cor0
----
138
96
99

query I rowsort
SELECT DISTINCT + col0 * - col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL + tab0.col2 + - ( tab0.col2 ) * - tab0.col2 FROM tab0
----
1122
2
6806

query I rowsort
SELECT + col2 * - cor0.col1 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL 65 + col1 AS col2 FROM tab2
----
124
82
96

query I rowsort
SELECT - cor0.col2 * + ( col1 ) + cor0.col0 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT + col2 * 83 - + col1 FROM tab2 AS cor0
----
2099
2210
3137

query I rowsort
SELECT DISTINCT - - cor0.col0 * col2 + ( - col0 ) FROM tab1 cor0
----
159
3584
7600

query I rowsort
SELECT DISTINCT + col0 - cor0.col0 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + col0 - + col2 * col2 FROM tab2 AS cor0
----
-1365
-598
-722

query I rowsort
SELECT ALL + col0 * + 24 FROM tab0 AS cor0
----
2136
576
840

query I rowsort
SELECT + col2 * + col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT + + cor0.col2 * col2 + col2 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT DISTINCT - - col2 + + 77 AS col2 FROM tab2 AS cor0
----
103
104
115

query I rowsort
SELECT + col0 * - col0 * col1 - - cor0.col1 * 3 AS col0 FROM tab0 AS cor0
----
-118534
-49278
-720538

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + col0 * col1 col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT DISTINCT - col2 + 14 FROM tab2 AS cor0
----
-12
-13
-24

query I rowsort
SELECT - - col1 * - col2 - col1 AS col2 FROM tab0 AS cor0
----
-194
-2924
-7553

query I rowsort
SELECT ALL col2 * + col1 + - cor0.col2 * col1 + - 38 FROM tab2 AS cor0
----
-38
-38
-38

query I rowsort
SELECT 23 + - cor0.col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 72989d1fcc02e5d4dcbb9c98d1bab1f2

onlyif mysql # use DIV operator for integer division
query I rowsort label-4174
SELECT - col0 DIV - col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4174
SELECT - col0 / - col0 FROM tab2
----
1
1
1

query I rowsort
SELECT DISTINCT - tab2.col0 * - col1 - + col0 FROM tab2
----
1264
210
4524

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4176
SELECT - col2 - CAST( - col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-21
33
4

skipif mysql # not compatible
query I rowsort label-4176
SELECT - col2 - CAST ( - col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT DISTINCT - cor0.col2 + col1 AS col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT cor0.col2 + + col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL + col0 + + col0 * col0 FROM tab2 cor0
----
56
6162
6320

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4180
SELECT col2 * + col2 - - ( + cor0.col1 ) * + CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
14823
3153
3396

skipif mysql # not compatible
query I rowsort label-4180
SELECT col2 * + col2 - - ( + cor0.col1 ) * + CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
14823
3153
3396

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4181
SELECT DISTINCT + + col1 * + CAST( col1 AS SIGNED ) + - col1 * ( col0 * + col2 ) FROM tab2 AS cor0
----
-116171
-4898
-50745

skipif mysql # not compatible
query I rowsort label-4181
SELECT DISTINCT + + col1 * + CAST ( col1 AS INTEGER ) + - col1 * ( col0 * + col2 ) FROM tab2 AS cor0
----
-116171
-4898
-50745

query I rowsort
SELECT + + col1 * col2 - col1 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT ALL col0 * - ( ( + col1 ) ) + col2 * col2 AS col0 FROM tab1
----
2609
2838
8176

query I rowsort
SELECT ALL - + col0 * col1 + + cor0.col1 + col2 AS col2 FROM tab1 AS cor0
----
-573
-931
2

query I rowsort
SELECT col0 * ( 27 ) + tab2.col0 * - col1 AS col0 FROM tab2
----
-2496
-28
790

query I rowsort
SELECT ALL col1 + + 94 FROM tab2
----
111
125
153

query I rowsort
SELECT tab0.col2 * - tab0.col1 FROM tab0, tab0 cor0
----
9 values hashing to 86c8e75d83d283b29460c020ab5988af

query I rowsort
SELECT ALL + col2 * col0 + col0 + col0 * + col0 AS col0 FROM tab1
----
14160
174
7808

onlyif mysql # use DIV operator for integer division
query I rowsort label-4189
SELECT + col1 + 57 DIV col0 + - col1 * col1 AS col2 FROM tab1 AS cor0
----
-156
-631
-90

skipif mysql # not compatible
query I rowsort label-4189
SELECT + col1 + 57 / col0 + - col1 * col1 AS col2 FROM tab1 AS cor0
----
-156
-631
-90

query I rowsort
SELECT + 31 * + col0 FROM tab1
----
1984
2480
93

query I rowsort
SELECT ALL + - col1 * col2 FROM tab1 cor0
----
-1248
-1404
-570

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1, tab0 AS cor0, tab2 cor1
----
972 values hashing to 9600bdf5bac0caec3229e87170cc40b3

query I rowsort
SELECT DISTINCT - 14 * + 92 FROM tab0, tab2 AS cor0
----
-1288

query I rowsort
SELECT - cor0.col2 * - 5 + + col1 FROM tab1 AS cor0
----
295
296
493

query I rowsort
SELECT DISTINCT - col1 * col0 + - col1 AS col1 FROM tab2 AS cor0
----
-1360
-248
-4661

query I rowsort
SELECT - - col0 + + 32 FROM tab1 AS cor0
----
112
35
96

query I rowsort
SELECT - col0 * ( col0 ) + + col1 AS col1 FROM tab2 cor0
----
-18
-6025
-6224

query I rowsort
SELECT DISTINCT ( cor0.col0 ) FROM tab0, tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL + col0 + 2 FROM tab0 AS cor0
----
26
37
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-4200
SELECT 61 DIV + col1 FROM tab1 AS cor0
----
2
4
6

skipif mysql # not compatible
query I rowsort label-4200
SELECT 61 / + col1 FROM tab1 AS cor0
----
2
4
6

query I rowsort
SELECT - - col0 + col2 * + col1 FROM tab0 cor0
----
132
2862
7551

query I rowsort
SELECT DISTINCT + col1 * + 65 * col2 FROM tab0 AS cor0
----
184470
485030
6305

query I rowsort
SELECT ( cor0.col1 ) * col0 * ( 16 + col1 ) FROM tab2 AS cor0
----
10199
345150
44319

query I rowsort
SELECT DISTINCT - col0 * + col2 + col2 FROM tab2 cor0
----
-162
-2002
-2964

query I rowsort
SELECT + 5 * - col1 AS col0 FROM tab0 AS cor0
----
-430
-455
-485

query I rowsort
SELECT ALL + 96 * - col0 FROM tab1 AS cor0
----
-288
-6144
-7680

query I rowsort
SELECT DISTINCT + + 29 * - col0 * - col2 FROM tab2 AS cor0
----
5481
58812
87058

query I rowsort
SELECT ALL - + col2 * 2 + - col2 * + col0 FROM tab0 AS cor0
----
-37
-7462
-858

query I rowsort
SELECT DISTINCT - - col1 + + col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT DISTINCT - ( 42 ) FROM tab2 cor0
----
-42

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4211
SELECT ALL + CAST( NULL AS DECIMAL ) * 85 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4211
SELECT ALL + CAST ( NULL AS REAL ) * 85 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( col0 ) + cor0.col2 col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT ALL - 43 * col2 FROM tab2 AS cor0
----
-1118
-1161
-1634

onlyif mysql # use DIV operator for integer division
query I rowsort label-4214
SELECT DISTINCT + - cor0.col1 * col1 DIV - col1 AS col2 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-4214
SELECT DISTINCT + - cor0.col1 * col1 / - col1 AS col2 FROM tab0 AS cor0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4215
SELECT cor0.col2 + col2 * cor0.col0 DIV col0 + - col0 AS col1 FROM tab1 AS cor0
----
105
112
50

skipif mysql # not compatible
query I rowsort label-4215
SELECT cor0.col2 + col2 * cor0.col0 / col0 + - col0 AS col1 FROM tab1 AS cor0
----
105
112
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col2 * col0 col2 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-4217
SELECT - 0 DIV - col1 + - ( col1 ) + + col1 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4217
SELECT - 0 / - col1 + - ( col1 ) + + col1 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4218
SELECT + 42 * cor0.col0 + - col1 DIV + col2 AS col1 FROM tab1 AS cor0
----
126
2688
3360

skipif mysql # not compatible
query I rowsort label-4218
SELECT + 42 * cor0.col0 + - col1 / + col2 AS col1 FROM tab1 AS cor0
----
126
2688
3360

query I rowsort
SELECT col1 + col0 * + col1 + col1 AS col2 FROM tab0 AS cor0
----
2236
3589
8281

onlyif mysql # use DIV operator for integer division
query I rowsort label-4220
SELECT - 76 * col0 + col1 DIV + col1 FROM tab0 AS cor0
----
-1823
-2659
-6763

skipif mysql # not compatible
query I rowsort label-4220
SELECT - 76 * col0 + col1 / + col1 FROM tab0 AS cor0
----
-1823
-2659
-6763

query I rowsort
SELECT + + col0 + + col0 * + col2 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT ALL + + 35 * col1 + ( + col1 * + col0 + - 50 ) FROM tab0 AS cor0
----
11234
5024
6740

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 65 col1 FROM tab0 AS cor0
----
65

query I rowsort
SELECT cor0.col1 + - cor0.col2 * ( 65 ) FROM tab2 AS cor0
----
-1631
-1724
-2453

query I rowsort
SELECT - - col0 + cor0.col0 + + 95 FROM tab1 AS cor0
----
101
223
255

query I rowsort
SELECT + cor0.col1 * - col0 - col1 AS col1 FROM tab2 AS cor0
----
-1360
-248
-4661

query I rowsort
SELECT - + col1 * + cor0.col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT ALL - col2 * - col2 + 6 FROM tab2 AS cor0
----
1450
682
735

query I rowsort
SELECT + col0 * col0 + + col0 * + col1 AS col2 FROM tab0 AS cor0
----
16020
2640
4620

onlyif mysql # use DIV operator for integer division
query I rowsort label-4230
SELECT - cor0.col0 + - ( 86 ) DIV col1 + + col2 AS col0 FROM tab0 AS cor0
----
-34
-7
8

skipif mysql # not compatible
query I rowsort label-4230
SELECT - cor0.col0 + - ( 86 ) / col1 + + col2 AS col0 FROM tab0 AS cor0
----
-34
-7
8

query I rowsort
SELECT + col0 * - col0 + + 61 + col0 FROM tab2 AS cor0
----
-5945
-6101
19

query I rowsort
SELECT + col0 + - col0 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4233
SELECT ALL 89 DIV col0 FROM tab0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-4233
SELECT ALL 89 / col0 FROM tab0
----
1
2
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-4234
SELECT DISTINCT - col0 DIV - col2 col1 FROM tab1
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4234
SELECT DISTINCT - col0 / - col2 col1 FROM tab1
----
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4235
SELECT + CAST( + col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-4235
SELECT + CAST ( + col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT + cor1.col0 + - 69 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 8cb8bf5e76ce47667e443e91d42bb106

query I rowsort
SELECT 47 FROM tab1, tab2 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT DISTINCT - - tab1.col2 - + 87 FROM tab1, tab0, tab2 AS cor0
----
-30
-33
9

query I rowsort
SELECT DISTINCT - ( 88 * + tab1.col2 ) AS col2 FROM tab1
----
-4752
-5016
-8448

query I rowsort
SELECT ALL 84 FROM tab0
----
84
84
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( + col2 AS REAL ) + - col1 col0 FROM tab2 AS cor0
----
-55
-58
-85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4242
SELECT - CAST( + 75 AS SIGNED ) col1 FROM tab1
----
-75
-75
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4242
SELECT - CAST ( + 75 AS INTEGER ) col1 FROM tab1
----
-75
-75
-75

query I rowsort
SELECT - - col1 + + ( + 6 ) * + col1 AS col2 FROM tab2 AS cor0
----
119
217
413

query I rowsort
SELECT ALL col2 * ( - col0 ) + col1 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT + - col1 * col0 + - col0 FROM tab2 AS cor0
----
-1422
-224
-4680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col1 col0 FROM tab1 cor0
----
-28
-47
-83

query I rowsort
SELECT DISTINCT - - col0 + + 13 AS col0 FROM tab0 AS cor0
----
102
37
48

onlyif mysql # use DIV operator for integer division
query I rowsort label-4248
SELECT - col0 DIV ( col2 ) AS col2 FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-4248
SELECT - col0 / ( col2 ) AS col2 FROM tab0 AS cor0
----
-1
-35
0

query I rowsort
SELECT ALL - - col0 * col1 AS col2 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT + cor0.col0 * - col2 + col0 FROM tab1 AS cor0
----
-159
-3584
-7600

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4251
SELECT - col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4251
SELECT - col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT tab0.col2 * tab0.col1 FROM tab0
----
2838
7462
97

query I rowsort
SELECT + col1 * 3 AS col1 FROM tab2 AS cor0
----
177
51
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 76 + - cor0.col0 * + col2 col0 FROM tab0 AS cor0
----
-534
1032
2625

query I rowsort
SELECT ALL - col1 * - cor0.col2 * col1 FROM tab0 AS cor0
----
244068
679042
9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4256
SELECT DISTINCT + col1 + + CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
172
182
194

skipif mysql # not compatible
query I rowsort label-4256
SELECT DISTINCT + col1 + + CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT DISTINCT - col2 + col2 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
-1122
-2
-6806

query I rowsort
SELECT ALL - - col1 * - col2 + cor0.col0 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT + col1 + col1 * + col0 AS col0 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT ALL ( + 0 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 * + 42 AS col0 FROM tab0 AS cor0
----
1386
3444
42

query I rowsort
SELECT - - ( - ( + cor0.col0 ) ) + - col2 * ( cor0.col1 ) FROM tab1 AS cor0
----
-1328
-1407
-634

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4263
SELECT DISTINCT CAST( cor0.col1 AS SIGNED ) + col2 FROM tab1 AS cor0
----
109
67
80

skipif mysql # not compatible
query I rowsort label-4263
SELECT DISTINCT CAST ( cor0.col1 AS INTEGER ) + col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT cor1.col2 * 28 FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to f303cb15788209c1bd8f58267d5ad487

query I rowsort
SELECT DISTINCT col1 * + 50 * - col2 AS col1 FROM tab2
----
-32300
-41850
-76700

query I rowsort
SELECT DISTINCT - col1 * col0 * + col1 AS col0 FROM tab0
----
-177504
-329315
-737009

query I rowsort
SELECT ALL 19 + + col2 * col2 * ( col2 ) AS col0 FROM tab2 AS cor0
----
17595
19702
54891

query I rowsort
SELECT 31 - col1 AS col0 FROM tab2 AS cor0
----
-28
0
14

query I rowsort
SELECT DISTINCT - col2 - - cor0.col2 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - - 25 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
114
49
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-4271
SELECT DISTINCT + + col2 DIV - col2 + 0 AS col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4271
SELECT DISTINCT + + col2 / - col2 + 0 AS col2 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT ALL + + col2 * col2 + - col1 * col0 AS col0 FROM tab2 AS cor0
----
-3926
101
512

query I rowsort
SELECT ALL 51 AS col0 FROM tab0 AS cor0
----
51
51
51

skipif mysql # not compatible
query I rowsort
SELECT ALL + + 34 / col1 + + CAST ( - col2 AS REAL ) * col2 AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT + col1 * + col0 * + ( - col0 ) + col2 * col1 AS col0 FROM tab1
----
-40390
-81952
1170

query I rowsort
SELECT ALL - col0 + col1 * 63 AS col0 FROM tab0
----
5394
5644
6076

query I rowsort
SELECT - 1 - + col0 AS col2 FROM tab1
----
-4
-65
-81

query I rowsort
SELECT 32 + + tab0.col0 + col2 FROM tab0
----
203
68
89

query I rowsort
SELECT + ( col2 * ( + col1 ) ) AS col1 FROM tab0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 94 * - col2 + + 4 * col2 col2 FROM tab1
----
-4860
-5130
-8640

query I rowsort
SELECT DISTINCT + 40 + col2 * col0 FROM tab2
----
2068
229
3042

query I rowsort
SELECT - ( col1 ) * + col2 * + cor0.col1 + col1 * - 40 FROM tab1 AS cor0
----
-16744
-37544
-6100

query I rowsort
SELECT DISTINCT col0 + col0 * ( cor0.col1 ) AS col1 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT ALL - col0 * + col0 + + 32 + ( + col2 ) AS col0 FROM tab0
----
-1192
-511
-7807

query I rowsort
SELECT + 34 * tab0.col2 + - col0 AS col2 FROM tab0
----
-1
1098
2699

query I rowsort
SELECT ALL - col2 + + col0 + ( tab1.col0 ) FROM tab1
----
-48
64
71

query I rowsort
SELECT - 28 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

query I rowsort
SELECT + + col0 * + col1 + 55 AS col2 FROM tab0 AS cor0
----
2119
3450
8154

query I rowsort
SELECT DISTINCT - col1 * col1 AS col0 FROM tab1
----
-100
-169
-676

query I rowsort
SELECT DISTINCT + col2 + + col2 * + col0 AS col1 FROM tab2 AS cor0
----
2054
216
3040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 52 - + 77 col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

query I rowsort
SELECT ALL + col0 * + 37 FROM tab0 AS cor0
----
1295
3293
888

query I rowsort
SELECT DISTINCT - col0 * col2 + col2 AS col2 FROM tab0 cor0
----
-34
-7216
-759

query I rowsort
SELECT + col0 + 90 * - 95 AS col1 FROM tab0 AS cor0
----
-8461
-8515
-8526

onlyif mysql # use DIV operator for integer division
query I rowsort label-4295
SELECT - + col2 * - ( + ( col1 ) ) DIV - col1 - 4 * col1 AS col0 FROM tab2 AS cor0
----
-106
-151
-262

skipif mysql # not compatible
query I rowsort label-4295
SELECT - + col2 * - ( + ( col1 ) ) / - col1 - 4 * col1 AS col0 FROM tab2 AS cor0
----
-106
-151
-262

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + - col2 col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + cor0.col2 * + col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT ( col0 ) * col1 FROM tab0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-4299
SELECT DISTINCT ( ( - col1 ) ) DIV 97 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-4299
SELECT DISTINCT ( ( - col1 ) ) / 97 FROM tab0
----
-1
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4300
SELECT col0 + - tab1.col0 * col0 DIV + col2 FROM tab1
----
-7
14
3

skipif mysql # not compatible
query I rowsort label-4300
SELECT col0 + - tab1.col0 * col0 / + col2 FROM tab1
----
-7
14
3

query I rowsort
SELECT DISTINCT + cor0.col2 AS col2 FROM tab0, tab2, tab2 cor0, tab1 AS cor1
----
26
27
38

query I rowsort
SELECT 97 * - col2 + - tab0.col1 FROM tab0
----
-194
-3287
-8045

query I rowsort
SELECT ALL - - 75 * 38 FROM tab0 AS cor0
----
2850
2850
2850

query I rowsort
SELECT - col0 * + 10 FROM tab1 AS cor0
----
-30
-640
-800

query I rowsort
SELECT DISTINCT - - cor0.col1 AS col0 FROM tab1 cor0
----
10
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4306
SELECT + CAST( + 43 AS SIGNED ) + + col2 AS col0 FROM tab2
----
69
70
81

skipif mysql # not compatible
query I rowsort label-4306
SELECT + CAST ( + 43 AS INTEGER ) + + col2 AS col0 FROM tab2
----
69
70
81

query I rowsort
SELECT - col1 * - ( col1 ) + - col0 FROM tab1 AS cor0
----
36
673
89

query I rowsort
SELECT - 0 * + col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 40 * - col2 AS col2 FROM tab1 cor0
----
2160
2280
3840

query I rowsort
SELECT ALL + 32 FROM tab2 AS cor0
----
32
32
32

query I rowsort
SELECT DISTINCT - 44 * cor0.col0 FROM tab2 cor0
----
-308
-3432
-3476

query I rowsort
SELECT DISTINCT - + 25 * col0 FROM tab2 AS cor0
----
-175
-1950
-1975

query I rowsort
SELECT + 10 * col2 + + ( + cor0.col2 ) * - col1 - + 57 FROM tab1 AS cor0
----
-345
-57
-921

query I rowsort
SELECT ALL - 46 * + col1 AS col1 FROM tab0 AS cor0
----
-3956
-4186
-4462

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + cor0.col2 col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT + - col1 * + cor0.col0 FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-4317
SELECT ALL + - col1 DIV - col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4317
SELECT ALL + - col1 / - col1 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4318
SELECT + col1 * + col2 + - col1 DIV - 74 AS col0 FROM tab2 AS cor0
----
1534
646
837

skipif mysql # not compatible
query I rowsort label-4318
SELECT + col1 * + col2 + - col1 / - 74 AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT + - cor0.col1 * + cor0.col1 AS col1 FROM tab0 cor0
----
-7396
-8281
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * col1 col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL + ( + col0 ) + + ( col2 ) FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT - col1 * cor0.col0 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT - col2 * col1 * ( col2 ) AS col2 FROM tab2 AS cor0
----
-22599
-24548
-39884

query I rowsort
SELECT + 15 FROM tab1
----
15
15
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * + col0 + + col0 col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT - col0 * + col2 * - col0 + col2 FROM tab0 AS cor0
----
1226
19041
649604

query I rowsort
SELECT + col2 * col1 * col2 + col2 AS col2 FROM tab2 AS cor0
----
22626
24586
39910

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + + col0 + col1 * + 49 col0 FROM tab0 AS cor0
----
4324
4639
4885

query I rowsort
SELECT - col1 + col1 + col0 AS col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT col0 * col0 + - col2 + col2 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT ALL - cor0.col2 + + col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT DISTINCT cor0.col1 * col1 AS col2 FROM tab1 AS cor0
----
100
169
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-4333
SELECT ALL - 25 DIV + col1 FROM tab1
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-4333
SELECT ALL - 25 / + col1 FROM tab1
----
-1
-2
0

query I rowsort
SELECT DISTINCT 29 * col2 FROM tab0
----
2378
29
957

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4335
SELECT DISTINCT + CAST( NULL AS DECIMAL ) / + col0 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4335
SELECT DISTINCT + CAST ( NULL AS REAL ) / + col0 AS col2 FROM tab1
----
NULL

query I rowsort
SELECT + cor0.col2 AS col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

onlyif mysql # use DIV operator for integer division
query I rowsort label-4337
SELECT col0 DIV 39 AS col0 FROM tab1
----
0
1
2

skipif mysql # not compatible
query I rowsort label-4337
SELECT col0 / 39 AS col0 FROM tab1
----
0
1
2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4338
SELECT + CAST( NULL AS SIGNED ) * - col0 * col2 col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4338
SELECT + CAST ( NULL AS INTEGER ) * - col0 * col2 col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( + tab0.col0 + - ( ( col0 ) ) ) FROM tab0
----
0
0
0

query I rowsort
SELECT ( - col2 ) + - col0 AS col0 FROM tab2
----
-104
-117
-34

query I rowsort
SELECT - col1 + - ( 99 ) FROM tab0 AS cor0
----
-185
-190
-196

query I rowsort
SELECT + + cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * + ( + col2 ) col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT - cor0.col2 + ( col1 ) FROM tab2 AS cor0
----
-21
33
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-4345
SELECT ALL + - cor0.col2 DIV ( col2 ) + - col0 FROM tab1 AS cor0
----
-4
-65
-81

skipif mysql # not compatible
query I rowsort label-4345
SELECT ALL + - cor0.col2 / ( col2 ) + - col0 FROM tab1 AS cor0
----
-4
-65
-81

onlyif mysql # use DIV operator for integer division
query I rowsort label-4346
SELECT DISTINCT col0 + + col0 DIV - col0 AS col2 FROM tab2 AS cor0
----
6
77
78

skipif mysql # not compatible
query I rowsort label-4346
SELECT DISTINCT col0 + + col0 / - col0 AS col2 FROM tab2 AS cor0
----
6
77
78

query I rowsort
SELECT ALL + col1 * + ( - col1 ) FROM tab1
----
-100
-169
-676

query I rowsort
SELECT tab0.col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4

query I rowsort
SELECT ( - cor0.col1 ) FROM tab0, tab2 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

skipif mysql # not compatible
query I rowsort
SELECT CAST ( + 55 AS REAL ) FROM tab2, tab0 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT DISTINCT col0 + + ( col0 * - col1 ) + - cor0.col2 * + cor0.col0 FROM tab2 AS cor0
----
-399
-4266
-6552

query I rowsort
SELECT ALL + ( col2 ) - + col0 AS col2 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT ALL - col1 + col0 AS col2 FROM tab1 cor0
----
-23
54
67

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4355
SELECT - + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4355
SELECT - + CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 27 + + ( col1 ) AS col0 FROM tab0 cor0
----
113
118
124

query I rowsort
SELECT DISTINCT 90 AS col2 FROM tab2 AS cor0
----
90

query I rowsort
SELECT DISTINCT + - 13 * + 82 + col0 AS col0 FROM tab2 AS cor0
----
-1059
-987
-988

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4359
SELECT CAST( col1 AS SIGNED ) * + col2 AS col0 FROM tab0 AS cor0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-4359
SELECT CAST ( col1 AS INTEGER ) * + col2 AS col0 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4360
SELECT DISTINCT + col0 * - 58 + col0 DIV - col0 AS col2 FROM tab2 AS cor0
----
-407
-4525
-4583

skipif mysql # not compatible
query I rowsort label-4360
SELECT DISTINCT + col0 * - 58 + col0 / - col0 AS col2 FROM tab2 AS cor0
----
-407
-4525
-4583

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 19 col2 FROM tab2 AS cor0
----
-19
-19
-19

query I rowsort
SELECT DISTINCT + col2 * col2 + col1 AS col0 FROM tab0 AS cor0
----
1175
6815
98

query I rowsort
SELECT DISTINCT ( col0 ) * col0 * 19 + - cor0.col1 * col1 FROM tab1 cor0
----
-505
121431
77724

query I rowsort
SELECT ALL - col1 + + col2 + 52 FROM tab1
----
135
80
99

query I rowsort
SELECT + cor0.col0 * - col2 FROM tab1 cor0
----
-162
-3648
-7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4366
SELECT - + CAST( NULL AS SIGNED ) * + 11 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4366
SELECT - + CAST ( NULL AS INTEGER ) * + 11 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + - col1 + + cor0.col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT 22 FROM tab2 AS cor0
----
22
22
22

query I rowsort
SELECT - 99 * - cor0.col1 * - col1 + - 18 FROM tab1 AS cor0
----
-16749
-66942
-9918

query I rowsort
SELECT + col1 + + col1 * 57 AS col1 FROM tab1 AS cor0
----
1508
580
754

query I rowsort
SELECT cor0.col1 + cor0.col1 AS col2 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT + cor0.col0 + - 53 * col0 FROM tab1 cor0
----
-156
-3328
-4160

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + - col1 + CAST ( col2 AS REAL ) * col1 / - cor0.col1 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT + col2 * + ( - cor0.col0 + - col2 ) AS col1 FROM tab1 AS cor0
----
-16896
-3078
-6897

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col2 + col2 * + col2 col2 FROM tab2 cor0
----
1465
643
725

query I rowsort
SELECT ALL col1 * - tab1.col0 + + col2 AS col0 FROM tab1
----
-24
-583
-944

query I rowsort
SELECT ALL - - col2 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT + col2 + col2 * - col0 AS col2 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT - col2 * col1 * - col2 + + col2 + cor0.col0 FROM tab2 AS cor0
----
22633
24665
39988

query I rowsort
SELECT - - col2 - col2 * col1 AS col2 FROM tab1 AS cor0
----
-1152
-1350
-513

onlyif mysql # use DIV operator for integer division
query I rowsort label-4381
SELECT ALL + cor0.col2 DIV col0 AS col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4381
SELECT ALL + cor0.col2 / col0 AS col0 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT col0 * col1 + col0 AS col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT + + col0 - + col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT col1 * col1 AS col0 FROM tab1 cor0
----
100
169
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-4385
SELECT DISTINCT col0 DIV col1 AS col1 FROM tab1 AS cor0
----
0
6

skipif mysql # not compatible
query I rowsort label-4385
SELECT DISTINCT col0 / col1 AS col1 FROM tab1 AS cor0
----
0
6

query I rowsort
SELECT - cor0.col0 + col2 * + col0 AS col2 FROM tab0 cor0
----
0
7209
768

query I rowsort
SELECT col1 + col1 + cor0.col1 FROM tab2 cor0
----
177
51
93

query I rowsort
SELECT ALL cor0.col0 + - col1 AS col0 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT DISTINCT + col0 * col2 * cor0.col1 AS col2 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT ALL col2 * col1 FROM tab1 cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-4391
SELECT + col1 + col2 * col2 DIV - cor0.col1 + + col1 * col2 FROM tab0 AS cor0
----
194
2912
7480

skipif mysql # not compatible
query I rowsort label-4391
SELECT + col1 + col2 * col2 / - cor0.col1 + + col1 * col2 FROM tab0 AS cor0
----
194
2912
7480

query I rowsort
SELECT - col0 + col2 * + col1 + + col2 * - col2 AS col1 FROM tab0 AS cor0
----
1725
61
649

onlyif mysql # use DIV operator for integer division
query I rowsort label-4393
SELECT DISTINCT + col2 DIV col2 AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4393
SELECT DISTINCT + col2 / col2 AS col0 FROM tab1 AS cor0
----
1

query I rowsort
SELECT + col1 * - cor0.col0 FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-4395
SELECT col1 DIV + col1 + col1 + - col0 FROM tab1 AS cor0
----
-53
-66
24

skipif mysql # not compatible
query I rowsort label-4395
SELECT col1 / + col1 + col1 + - col0 FROM tab1 AS cor0
----
-53
-66
24

query I rowsort
SELECT DISTINCT col1 + col2 AS col1 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT cor0.col2 * col2 + + cor0.col1 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT col2 * + col0 * col0 + - col2 FROM tab1 AS cor0
----
233415
432
614304

onlyif mysql # use DIV operator for integer division
query I rowsort label-4399
SELECT DISTINCT - col0 + col0 DIV col0 AS col2 FROM tab0 cor0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-4399
SELECT DISTINCT - col0 + col0 / col0 AS col2 FROM tab0 cor0
----
-23
-34
-88

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 cor0 WHERE NOT NULL < ( NULL )
----

query I rowsort
SELECT - col2 * - col2 * col2 FROM tab2
----
17576
19683
54872

query I rowsort
SELECT ALL + col2 * - col1 + + col1 * col0 FROM tab1 AS cor0
----
-1326
-208
70

query I rowsort
SELECT ALL - + col2 * - col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT - col0 + col0 * col0 AS col0 FROM tab1 AS cor0
----
4032
6
6320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col1 * cor0.col2 col2 FROM tab0 cor0
----
2814
62
7373

query I rowsort
SELECT - + col0 - - col0 * + cor0.col2 FROM tab0 AS cor0
----
0
7209
768

onlyif mysql # use DIV operator for integer division
query I rowsort label-4407
SELECT DISTINCT - col1 DIV + col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-4407
SELECT DISTINCT - col1 / + col1 FROM tab1
----
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4408
SELECT - col0 - + col2 DIV col0 FROM tab2
----
-10
-78
-79

skipif mysql # not compatible
query I rowsort label-4408
SELECT - col0 - + col2 / col0 FROM tab2
----
-10
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-4409
SELECT - col0 DIV col1 - col1 AS col1 FROM tab2
----
-21
-31
-60

skipif mysql # not compatible
query I rowsort label-4409
SELECT - col0 / col1 - col1 AS col1 FROM tab2
----
-21
-31
-60

query I rowsort
SELECT col2 + - col2 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT col0 * + col1 - tab1.col2 FROM tab1
----
24
583
944

query I rowsort
SELECT DISTINCT tab1.col0 - col0 * - col1 FROM tab1
----
1120
704
81

query I rowsort
SELECT - col1 * tab2.col1 + + col1 + col2 AS col0 FROM tab2
----
-234
-3396
-903

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col0 * tab0.col1 col0 FROM tab0
----
-118825
-49536
-720811

query I rowsort
SELECT col1 * col2 + - tab1.col1 - col2 FROM tab1
----
1139
1324
503

query I rowsort
SELECT + col2 * + col2 + col0 FROM tab0
----
1113
36
6813

query I rowsort
SELECT + 4 * col0 AS col2 FROM tab2 AS cor0
----
28
312
316

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 63 + cor0.col1 col2 FROM tab0 AS cor0
----
149
154
160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col0 FROM tab2, tab0 cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT ALL - 21 * + col1 * - cor0.col0 + + col2 + col0 FROM tab0 AS cor0
----
170250
43401
71331

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col2 FROM tab2 WHERE + tab2.col2 > NULL
----

query I rowsort
SELECT - col0 + + col2 * col0 FROM tab0
----
0
7209
768

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( col2 * col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col2 * col0 col2 FROM tab1
----
-216
-3705
-7776

query I rowsort
SELECT DISTINCT - col0 + col0 * - col1 FROM tab1
----
-1120
-704
-81

query I rowsort
SELECT ALL - 77 + col2 FROM tab2
----
-39
-50
-51

onlyif mysql # use DIV operator for integer division
query I rowsort label-4427
SELECT col1 DIV + tab0.col0 FROM tab0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-4427
SELECT col1 / + tab0.col0 FROM tab0
----
1
2
3

query I rowsort
SELECT DISTINCT - 81 FROM tab0, tab0 cor0, tab0 AS cor1
----
-81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4429
SELECT ALL - col0 + - col2 * CAST( NULL AS DECIMAL ) + tab1.col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4429
SELECT ALL - col0 + - col2 * CAST ( NULL AS REAL ) + tab1.col0 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + + col2 AS col0 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT - col1 + - tab1.col1 + col2 * 73 FROM tab1
----
3890
4141
6982

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4432
SELECT DISTINCT - 50 + - col2 * CAST( + col1 * - col0 AS SIGNED ) AS col1 FROM tab2
----
119602
50984
5809

skipif mysql # not compatible
query I rowsort label-4432
SELECT DISTINCT - 50 + - col2 * CAST ( + col1 * - col0 AS INTEGER ) AS col1 FROM tab2
----
119602
50984
5809

query I rowsort
SELECT + col0 * col2 + cor0.col1 * col1 * col1 FROM tab0 AS cor0
----
636848
760869
912708

query I rowsort
SELECT DISTINCT + col2 * col1 AS col0 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT ( col1 ) AS col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT - 39 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to fe3460a5258986a2d83e1ea75c1e275e

query I rowsort
SELECT DISTINCT - - col1 * col1 AS col0 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT ALL + col0 + col2 * 66 FROM tab2
----
1789
1794
2587

query I rowsort
SELECT ALL - col1 + col2 + 69 * - col1 FROM tab2
----
-1152
-2143
-4104

query I rowsort
SELECT col1 * - col1 - col0 AS col1 FROM tab0
----
-7420
-8370
-9444

query I rowsort
SELECT ALL - col1 AS col1 FROM tab2 WHERE NOT NULL NOT IN ( - col0 + col1 )
----

query I rowsort
SELECT ALL tab2.col2 * - col1 AS col2 FROM tab2
----
-1534
-646
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col0 * col1 + + col2 * col0 col2 FROM tab2
----
413
4424
6708

query I rowsort
SELECT ALL col0 + col0 AS col1 FROM tab0
----
178
48
70

query I rowsort
SELECT ALL col2 / - tab1.col1 - col2 FROM tab1 WHERE col1 * - col1 BETWEEN NULL AND + col1 + - col1 / + col2 + col1 * col2
----

query I rowsort
SELECT ALL + col2 * col1 * col0 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT + col2 * - col0 + - col0 + col2 FROM tab0
----
-69
-7305
-783

query I rowsort
SELECT DISTINCT - col1 + col0 AS col1 FROM tab1 WHERE NULL <> col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col2 col0 FROM tab0
----
-2838
-7462
-97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( - col1 )
----

query I rowsort
SELECT DISTINCT col2 * col0 + col0 FROM tab0
----
70
7387
816

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 <> NULL
----

query I rowsort
SELECT - col1 + col1 + col0 * col2 FROM tab0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab2 WHERE NOT NULL NOT BETWEEN - col2 * + col0 + - col2 AND ( - col1 * col0 )
----

query I rowsort
SELECT DISTINCT tab1.col0 - tab1.col2 FROM tab1
----
-16
-51
7

query I rowsort
SELECT ALL - col2 * col1 FROM tab0 WHERE + col2 >= - col1 * col0 + col1 * - col2
----
-2838
-7462
-97

query I rowsort
SELECT + col0 + col0 AS col0 FROM tab1
----
128
160
6

query I rowsort
SELECT - col0 FROM tab1 WHERE NULL > NULL
----

query I rowsort
SELECT ALL col2 * col1 - - col1 FROM tab1
----
1261
1430
580

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT - col0 AS col2 FROM tab1 WHERE NOT col2 NOT BETWEEN ( NULL ) AND col1
----

query I rowsort
SELECT - tab0.col2 + col1 * tab0.col0 FROM tab0
----
2031
3394
8017

query I rowsort
SELECT - tab2.col0 + col2 AS col1 FROM tab2
----
-41
-52
20

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 WHERE ( NULL ) <> - col0
----

query I rowsort
SELECT DISTINCT col2 * col1 FROM tab1 WHERE ( + col1 ) = - col1 + + col0
----

query I rowsort
SELECT ALL - ( + col2 * 41 ) FROM tab1
----
-2214
-2337
-3936

query I rowsort
SELECT ALL - + col1 * col0 + + 19 * - col2 + - cor0.col1 * + cor0.col2 FROM tab1 AS cor0
----
-2293
-2508
-4112

onlyif mysql # use DIV operator for integer division
query I rowsort label-4468
SELECT ALL - 85 DIV col1 AS col2 FROM tab1
----
-3
-6
-8

skipif mysql # not compatible
query I rowsort label-4468
SELECT ALL - 85 / col1 AS col2 FROM tab1
----
-3
-6
-8

query I rowsort
SELECT - tab1.col0 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

query I rowsort
SELECT + tab2.col1 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT DISTINCT 2 FROM tab1, tab2 cor0, tab1 AS cor1
----
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-4472
SELECT + col1 + ( + cor0.col1 ) DIV + col0 AS col2 FROM tab1 AS cor0
----
10
13
34

skipif mysql # not compatible
query I rowsort label-4472
SELECT + col1 + ( + cor0.col1 ) / + col0 AS col2 FROM tab1 AS cor0
----
10
13
34

query I rowsort
SELECT cor0.col0 * - 16 FROM tab2 cor0
----
-112
-1248
-1264

onlyif mysql # use DIV operator for integer division
query I rowsort label-4474
SELECT col2 + 97 DIV col2 col0 FROM tab0 AS cor0
----
35
83
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4474
SELECT col2 + 97 / col2 col0 FROM tab0 AS cor0
----
35
83
98

query I rowsort
SELECT - + col1 * - ( col2 ) + - col2 FROM tab0 AS cor0
----
2805
7380
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4476
SELECT - col1 + col0 DIV col2 + + col1 * - col0 FROM tab1 AS cor0
----
-104
-1053
-649

skipif mysql # not compatible
query I rowsort label-4476
SELECT - col1 + col0 / col2 + + col1 * - col0 FROM tab1 AS cor0
----
-104
-1053
-649

query I rowsort
SELECT col2 - - ( cor0.col1 ) FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT - cor0.col0 + - ( - ( + col0 ) + - col1 ) FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT + - 35 AS col0 FROM tab0 AS cor0
----
-35
-35
-35

query I rowsort
SELECT col1 + 5 AS col1 FROM tab0 AS cor0
----
102
91
96

query I rowsort
SELECT - - 83 + - cor0.col2 * col1 AS col0 FROM tab2 AS cor0
----
-1451
-563
-754

query I rowsort
SELECT DISTINCT col2 + - col0 FROM tab0 cor0
----
-34
-7
9

query I rowsort
SELECT + + col1 * 67 AS col0 FROM tab1 AS cor0
----
1742
670
871

query I rowsort
SELECT ALL + 21 * 30 + col1 * + 22 FROM tab1 AS cor0
----
1202
850
916

query I rowsort
SELECT DISTINCT - ( 91 ) * col2 AS col2 FROM tab2 AS cor0
----
-2366
-2457
-3458

query I rowsort
SELECT ALL - tab2.col2 * + ( col2 ) + + col2 AS col0 FROM tab2
----
-1406
-650
-702

query I rowsort
SELECT col1 + 36 FROM tab1
----
46
49
62

query I rowsort
SELECT ALL tab0.col1 + - col0 AS col2 FROM tab0
----
2
62
62

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 AS cor2
----
3645 values hashing to 1e12915106866c102f2d9f96f9233144

query I rowsort
SELECT DISTINCT ( - col2 ) * col1 + col1 AS col2 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT DISTINCT + cor0.col2 + 41 AS col0 FROM tab1 cor0
----
137
95
98

query I rowsort
SELECT col2 * col2 + + col1 FROM tab0 AS cor0
----
1175
6815
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4493
SELECT ALL + + CAST( + col0 AS SIGNED ) * col1 FROM tab1 AS cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-4493
SELECT ALL + + CAST ( + col0 AS INTEGER ) * col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT - col0 + 38 * + col1 * - col1 + - 98 FROM tab2 AS cor0
----
-11159
-132454
-36623

query I rowsort
SELECT DISTINCT - cor1.col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
-17
-31
-59

query I rowsort
SELECT ALL + cor0.col1 + col1 - col0 FROM tab2 AS cor0
----
-45
40
55

query I rowsort
SELECT 95 AS col0 FROM tab1 AS cor0
----
95
95
95

query I rowsort
SELECT - col1 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL 68 + col2 * col0 AS col0 FROM tab1 AS cor0
----
230
3716
7748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 8 col1 FROM tab0 AS cor0
----
-8

query I rowsort
SELECT DISTINCT + - col1 + + col1 * - col1 FROM tab0 AS cor0
----
-7482
-8372
-9506

query I rowsort
SELECT ALL ( - 38 ) AS col1 FROM tab0
----
-38
-38
-38

query I rowsort
SELECT col1 * + ( + col1 ) FROM tab2
----
289
3481
961

query I rowsort
SELECT - 22 * cor0.col2 AS col1 FROM tab1 AS cor0
----
-1188
-1254
-2112

query I rowsort
SELECT - col1 * col1 + col0 AS col1 FROM tab0 AS cor0
----
-7372
-8192
-9374

query I rowsort
SELECT DISTINCT - 95 * col0 + cor0.col2 FROM tab2 AS cor0
----
-638
-7384
-7467

query I rowsort
SELECT ALL + col1 - col0 FROM tab1 cor0
----
-54
-67
23

query I rowsort
SELECT - ( - col0 ) + col2 AS col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT DISTINCT - col1 + + col1 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + 18 * + col0 * col0 AS col2 FROM tab0
----
10368
142578
22050

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 17 col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + tab2.col2 col1 FROM tab2
----
52
54
76

query I rowsort
SELECT col0 - - col2 FROM tab0
----
171
36
57

query I rowsort
SELECT + + 58 AS col1 FROM tab2 AS cor0
----
58
58
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-4515
SELECT col1 DIV col0 + col1 FROM tab0 AS cor0
----
89
92
99

skipif mysql # not compatible
query I rowsort label-4515
SELECT col1 / col0 + col1 FROM tab0 AS cor0
----
89
92
99

query I rowsort
SELECT - ( - col0 ) - - col0 * col2 AS col0 FROM tab0
----
70
7387
816

onlyif mysql # use DIV operator for integer division
query I rowsort label-4517
SELECT DISTINCT col0 DIV tab1.col0 AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4517
SELECT DISTINCT col0 / tab1.col0 AS col0 FROM tab1
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * 79 col2 FROM tab2 AS cor0
----
-1343
-2449
-4661

query I rowsort
SELECT - col0 - - col1 FROM tab1 AS cor0
----
-54
-67
23

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab2, tab1 cor1, tab0, tab1 AS cor2
----
3645 values hashing to b3ea820890445d59f3f7464a1521d42d

query I rowsort
SELECT 60 AS col0 FROM tab0
----
60
60
60

query I rowsort
SELECT + 51 * col0 AS col2 FROM tab1 AS cor0
----
153
3264
4080

query I rowsort
SELECT - 88 + col2 FROM tab1 AS cor0
----
-31
-34
8

query I rowsort
SELECT DISTINCT 18 * col0 - + col0 AS col2 FROM tab2 AS cor0
----
119
1326
1343

query I rowsort
SELECT DISTINCT - - 84 + 65 AS col0 FROM tab1 cor0
----
149

query I rowsort
SELECT + cor0.col2 - col1 AS col0 FROM tab2 cor0
----
-33
-4
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-4527
SELECT ALL + + col2 DIV + col2 AS col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4527
SELECT ALL + + col2 / + col2 AS col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT 40 FROM tab2, tab2 cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT 18 + ( col1 ) AS col0 FROM tab2 AS cor0
----
35
49
77

query I rowsort
SELECT DISTINCT 98 AS col0 FROM tab2, tab1 AS cor0
----
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 36 * - col0 col0 FROM tab0 AS cor0
----
-1260
-3204
-864

query I rowsort
SELECT col2 - col1 AS col2 FROM tab1 cor0
----
28
47
83

query I rowsort
SELECT ALL 41 * - 84 + + col1 FROM tab0 AS cor0
----
-3347
-3353
-3358

query I rowsort
SELECT - col0 + 64 FROM tab1
----
-16
0
61

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 cor0, tab1, tab1 cor1
----
972 values hashing to a8481bfbfcb330825976c5896e54bc19

query I rowsort
SELECT + ( - col2 ) * col2 + 8 FROM tab2 AS cor0
----
-1436
-668
-721

query I rowsort
SELECT DISTINCT - ( cor0.col1 ) + - col0 FROM tab1 AS cor0
----
-29
-74
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( col0 ) col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL + ( ( col0 ) ) + ( col0 ) AS col1 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT DISTINCT - 33 + col0 FROM tab1 AS cor0
----
-30
31
47

query I rowsort
SELECT + ( + col0 ) * + col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT ALL + 16 AS col2 FROM tab1 AS cor0
----
16
16
16

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4543
SELECT DISTINCT + CAST( 92 AS SIGNED ) * col1 + - 8 FROM tab1 AS cor0
----
1188
2384
912

skipif mysql # not compatible
query I rowsort label-4543
SELECT DISTINCT + CAST ( 92 AS INTEGER ) * col1 + - 8 FROM tab1 AS cor0
----
1188
2384
912

onlyif mysql # use DIV operator for integer division
query I rowsort label-4544
SELECT - - 93 + col2 DIV + col0 - col1 AS col0 FROM tab0 AS cor0
----
-4
2
8

skipif mysql # not compatible
query I rowsort label-4544
SELECT - - 93 + col2 / + col0 - col1 AS col0 FROM tab0 AS cor0
----
-4
2
8

query I rowsort
SELECT ALL + ( - cor0.col1 ) FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT 26 + - 89 FROM tab1 AS cor0
----
-63

query I rowsort
SELECT DISTINCT 25 * + col1 + - col1 + + 59 FROM tab0 AS cor0
----
2123
2243
2387

query I rowsort
SELECT - 71 + - col0 FROM tab2 cor0
----
-149
-150
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT col2 - + 88 FROM tab1 AS cor0
----
-31
-34
8

query I rowsort
SELECT DISTINCT + + col0 * col2 AS col1 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT ALL + ( col2 ) * col0 AS col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL - col2 + + col0 * - ( - col0 ) AS col2 FROM tab0 AS cor0
----
1224
543
7839

query I rowsort
SELECT col1 * tab0.col1 + - col1 AS col2 FROM tab0
----
7310
8190
9312

query I rowsort
SELECT - + col1 * + col0 AS col2 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL - col0 * + ( + 18 ) AS col1 FROM tab2 AS cor0
----
-126
-1404
-1422

query I rowsort
SELECT ALL col1 * - col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT - col2 + 73 FROM tab0 AS cor0
----
-9
40
72

query I rowsort
SELECT + 30 AS col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 6c98840ed134c765d56389f4150075f0

query I rowsort
SELECT DISTINCT + - col1 - - col0 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT DISTINCT - col2 * col0 - col2 * col2 FROM tab0 AS cor0
----
-14022
-1881
-36

query I rowsort
SELECT - col1 * + 74 + + col0 * - col0 FROM tab2 AS cor0
----
-10450
-2343
-7499

query I rowsort
SELECT 99 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query I rowsort
SELECT - 81 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

query I rowsort
SELECT ALL - + col1 * - 0 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - col1 + + ( cor0.col0 ) * + cor0.col2 FROM tab0 AS cor0
----
-62
706
7207

onlyif mysql # use DIV operator for integer division
query I rowsort label-4567
SELECT ALL + cor0.col1 DIV + col1 AS col1 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4567
SELECT ALL + cor0.col1 / + col1 AS col1 FROM tab0 cor0
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4568
SELECT - col2 * CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4568
SELECT - col2 * CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col0 * - col0 + + col0 FROM tab1 AS cor0
----
12
4160
6480

onlyif mysql # use DIV operator for integer division
query I rowsort label-4570
SELECT col1 DIV col1 AS col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4570
SELECT col1 / col1 AS col0 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - col2 * ( col1 ) FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT + col2 * col2 * + cor0.col0 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT - cor0.col2 * 67 + + col0 * + col0 FROM tab2 AS cor0
----
-1760
3695
4342

skipif mysql # not compatible
query I rowsort
SELECT ALL - + col0 * CAST ( - col0 AS REAL ) AS col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT + col1 * 24 AS col1 FROM tab1 AS cor0
----
240
312
624

query I rowsort
SELECT DISTINCT + col2 * - 27 * col2 AS col0 FROM tab2 AS cor0
----
-18252
-19683
-38988

query I rowsort
SELECT ALL - + col0 AS col0 FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT 53 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 63949b5362442f48bd29195397a57dad

query I rowsort
SELECT ALL 14 FROM tab2, tab0 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4580
SELECT - CAST( + 51 AS SIGNED ) col1 FROM tab2 AS cor0
----
-51
-51
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4580
SELECT - CAST ( + 51 AS INTEGER ) col1 FROM tab2 AS cor0
----
-51
-51
-51

query I rowsort
SELECT ( - cor0.col1 ) FROM tab0 AS cor0
----
-86
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col0 col1 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4583
SELECT col1 DIV + col2 + - col1 DIV + col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4583
SELECT col1 / + col2 + - col1 / + col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - + col0 + col0 * - col0 AS col1 FROM tab0 AS cor0
----
-1260
-600
-8010

query I rowsort
SELECT DISTINCT - 26 * col0 + ( col2 ) AS col2 FROM tab1 AS cor0
----
-1607
-1984
-24

query I rowsort
SELECT DISTINCT - 65 + - cor0.col0 FROM tab1 AS cor0
----
-129
-145
-68

query I rowsort
SELECT ALL + col1 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL - + 70 AS col2 FROM tab0 cor0
----
-70
-70
-70

query I rowsort
SELECT - col2 * col0 + 18 FROM tab0 AS cor0
----
-17
-7280
-774

query I rowsort
SELECT DISTINCT cor0.col1 + col1 FROM tab1 AS cor0
----
20
26
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 25 + - col1 * col1 col0 FROM tab1
----
-125
-194
-701

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col1 + - col2 + - 5 col2 FROM tab1 AS cor0
----
1147
1345
508

query I rowsort
SELECT col2 + col2 * + col2 FROM tab2 cor0
----
1482
702
756

query I rowsort
SELECT + col2 + 78 * - col0 * col0 FROM tab1 AS cor0
----
-319431
-499104
-648

query I rowsort
SELECT col2 * col0 * - col0 AS col0 FROM tab2 AS cor0
----
-1323
-158184
-237158

query I rowsort
SELECT - - cor0.col0 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT ALL + 58 + col0 AS col0 FROM tab1
----
122
138
61

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4598
SELECT ALL ( + col1 ) * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4598
SELECT ALL ( + col1 ) * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 64 AS col0 FROM tab2, tab1, tab1 AS cor0
----
-64

query I rowsort
SELECT + col1 * tab1.col1 AS col1 FROM tab1
----
100
169
676

query I rowsort
SELECT ALL + 55 AS col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3

query I rowsort
SELECT ALL 18 * + col1 AS col1 FROM tab0
----
1548
1638
1746

query I rowsort
SELECT DISTINCT + col0 * - cor0.col2 * - col0 FROM tab0 AS cor0
----
1225
19008
649522

query I rowsort
SELECT ALL col2 + - col1 * - col1 AS col1 FROM tab0 AS cor0
----
7429
8363
9410

onlyif mysql # use DIV operator for integer division
query I rowsort label-4605
SELECT ALL + col2 + - col1 DIV CAST( 40 AS SIGNED ) FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-4605
SELECT ALL + col2 + - col1 / CAST ( 40 AS INTEGER ) FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT - col0 + - col0 * - col0 AS col1 FROM tab1 AS cor0
----
4032
6
6320

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4607
SELECT ALL CAST( - col2 AS SIGNED ) * tab2.col2 AS col1 FROM tab2
----
-1444
-676
-729

skipif mysql # not compatible
query I rowsort label-4607
SELECT ALL CAST ( - col2 AS INTEGER ) * tab2.col2 AS col1 FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT - col0 * col0 * + col1 AS col2 FROM tab2 AS cor0
----
-106097
-1519
-358956

query I rowsort
SELECT - - 92 FROM tab2 AS cor0
----
92
92
92

query I rowsort
SELECT 5 * col1 * + col0 FROM tab1 AS cor0
----
3200
390
5200

query I rowsort
SELECT ALL col0 * + 0 * + col2 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 * - tab0.col1 * + col2 FROM tab0
----
244068
679042
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-4613
SELECT ALL - col0 DIV col2 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4613
SELECT ALL - col0 / col2 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT cor0.col1 + 44 * cor0.col2 FROM tab2 AS cor0
----
1203
1219
1689

query I rowsort
SELECT DISTINCT + tab1.col1 AS col2 FROM tab1, tab1 cor0
----
10
13
26

query I rowsort
SELECT + col0 * col1 - - col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT col2 * cor0.col2 AS col2 FROM tab1 cor0
----
2916
3249
9216

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 - ( col0 ) * col0 + col1 FROM tab0 AS cor0
----
-1128
-490
-7830

query I rowsort
SELECT ( + 87 ) AS col1 FROM tab0 AS cor0
----
87
87
87

query I rowsort
SELECT ALL + tab0.col0 * + tab0.col2 FROM tab0
----
35
7298
792

query I rowsort
SELECT + 67 FROM tab1, tab0 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query I rowsort
SELECT DISTINCT + cor0.col0 * 12 + - 20 AS col0 FROM tab2, tab0 AS cor0
----
1048
268
400

query I rowsort
SELECT - + 16 + col2 + + col1 AS col0 FROM tab1 AS cor0
----
51
64
93

query I rowsort
SELECT + + col1 + 97 AS col2 FROM tab2 AS cor0
----
114
128
156

onlyif mysql # use DIV operator for integer division
query I rowsort label-4626
SELECT DISTINCT col2 + col1 DIV col1 + CAST( tab0.col2 AS SIGNED ) FROM tab0
----
165
3
67

skipif mysql # not compatible
query I rowsort label-4626
SELECT DISTINCT col2 + col1 / col1 + CAST ( tab0.col2 AS INTEGER ) FROM tab0
----
165
3
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query I rowsort
SELECT ALL + 28 AS col1 FROM tab2 AS cor0
----
28
28
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 0 col0 FROM tab0, tab0 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL 90 * + 87 AS col1 FROM tab1 AS cor0
----
7830
7830
7830

onlyif mysql # use DIV operator for integer division
query I rowsort label-4631
SELECT - - col0 - col0 DIV + col1 FROM tab1 cor0
----
3
58
74

skipif mysql # not compatible
query I rowsort label-4631
SELECT - - col0 - col0 / + col1 FROM tab1 cor0
----
3
58
74

query I rowsort
SELECT DISTINCT - - 86 * + 85 FROM tab1 AS cor0
----
7310

query I rowsort
SELECT + col2 + + 91 * col0 FROM tab2 AS cor0
----
664
7124
7227

query I rowsort
SELECT ALL ( + col1 ) + col2 * + col2 * col1 AS col2 FROM tab1 AS cor0
----
119821
32500
75842

onlyif mysql # use DIV operator for integer division
query I rowsort label-4635
SELECT ALL + col0 DIV col0 AS col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4635
SELECT ALL + col0 / col0 AS col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - col0 + col0 * + ( - col1 ) AS col0 FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT DISTINCT - col1 * + col1 AS col2 FROM tab2
----
-289
-3481
-961

onlyif mysql # use DIV operator for integer division
query I rowsort label-4638
SELECT ALL 43 DIV + tab2.col1 AS col2 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-4638
SELECT ALL 43 / + tab2.col1 AS col2 FROM tab2
----
0
1
2

query I rowsort
SELECT DISTINCT + 65 * col0 * + ( - 39 ) FROM tab2 AS cor0
----
-17745
-197730
-200265

query I rowsort
SELECT DISTINCT + 68 AS col0 FROM tab2 AS cor0
----
68

query I rowsort
SELECT - col2 * + col0 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL + 73 AS col1 FROM tab0 AS cor0
----
73
73
73

query I rowsort
SELECT - col2 + - col1 * + col0 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT DISTINCT ( + cor0.col1 ) + - 55 * col0 AS col1 FROM tab0 AS cor0
----
-1234
-1828
-4804

onlyif mysql # use DIV operator for integer division
query I rowsort label-4645
SELECT DISTINCT col0 DIV col2 AS col0 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-4645
SELECT DISTINCT col0 / col2 AS col0 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT + - col1 * col1 + ( col2 ) AS col1 FROM tab1 AS cor0
----
-43
-622
-73

query I rowsort
SELECT + col1 + col0 * - 42 * col1 AS col1 FROM tab0 AS cor0
----
-142493
-340067
-86602

query I rowsort
SELECT ALL col1 + - col2 + col0 * - col1 FROM tab1
----
-106
-1123
-687

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4649
SELECT - CAST( col0 * - col2 AS SIGNED ) FROM tab2
----
189
2028
3002

skipif mysql # not compatible
query I rowsort label-4649
SELECT - CAST ( col0 * - col2 AS INTEGER ) FROM tab2
----
189
2028
3002

query I rowsort
SELECT ( tab2.col0 ) FROM tab2
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-4651
SELECT ALL col1 + - col1 DIV cor0.col0 col1 FROM tab1 AS cor0
----
10
13
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4651
SELECT ALL col1 + - col1 / cor0.col0 col1 FROM tab1 AS cor0
----
10
13
18

query I rowsort
SELECT col0 * + ( col1 ) FROM tab1 AS cor0
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col2 * + col0 - col2 col2 FROM tab0 AS cor0
----
1224
18975
649440

query I rowsort
SELECT - col2 * - col1 - col0 * - col1 AS col1 FROM tab0 AS cor0
----
15561
3492
4902

query I rowsort
SELECT ALL 63 AS col1 FROM tab0
----
63
63
63

query I rowsort
SELECT ALL 50 AS col1 FROM tab0
----
50
50
50

query I rowsort
SELECT ALL + - col2 + 71 * + 19 AS col2 FROM tab1 AS cor0
----
1253
1292
1295

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4658
SELECT DISTINCT + tab0.col2 + + CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4658
SELECT DISTINCT + tab0.col2 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab2 AS cor0
----
NULL

query I rowsort
SELECT - 67 * + tab2.col1 FROM tab2, tab2 cor0
----
9 values hashing to f2b17a415fc14cf9ae93bef27aadae99

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to 8db0cc6df185b737ff75d2626a6d198b

onlyif mysql # use DIV operator for integer division
query I rowsort label-4661
SELECT - col0 DIV - col1 col2 FROM tab1
----
0
6
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4661
SELECT - col0 / - col1 col2 FROM tab1
----
0
6
6

query I rowsort
SELECT - col1 * - 29 AS col0 FROM tab1 AS cor0
----
290
377
754

query I rowsort
SELECT DISTINCT + + col1 * - col1 + + col1 FROM tab0 AS cor0
----
-7310
-8190
-9312

query I rowsort
SELECT + - 41 FROM tab1 cor0
----
-41
-41
-41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 3 col0 FROM tab0 AS cor0
----
3
3
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-4666
SELECT ALL - + col1 DIV + col2 + - col0 AS col1 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-4666
SELECT ALL - + col1 / + col2 + - col0 AS col1 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT + ( col1 ) * col1 * col1 AS col2 FROM tab2 AS cor0
----
205379
29791
4913

query I rowsort
SELECT DISTINCT - cor0.col1 * + cor0.col2 FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-4669
SELECT DISTINCT + + 71 DIV - col0 AS col0 FROM tab0 cor0
----
-2
0

skipif mysql # not compatible
query I rowsort label-4669
SELECT DISTINCT + + 71 / - col0 AS col0 FROM tab0 cor0
----
-2
0

query I rowsort
SELECT ALL - + col2 + col2 * + col2 FROM tab0 AS cor0
----
0
1056
6642

query I rowsort
SELECT DISTINCT - + 24 + - col2 AS col2 FROM tab1 AS cor0
----
-120
-78
-81

onlyif mysql # use DIV operator for integer division
query I rowsort label-4672
SELECT DISTINCT + 83 * - col0 DIV - ( col0 ) + - col1 AS col2 FROM tab1 AS cor0
----
57
70
73

skipif mysql # not compatible
query I rowsort label-4672
SELECT DISTINCT + 83 * - col0 / - ( col0 ) + - col1 AS col2 FROM tab1 AS cor0
----
57
70
73

query I rowsort
SELECT + + col1 * col0 + 88 FROM tab0 AS cor0
----
2152
3483
8187

query I rowsort
SELECT ALL 51 * col2 * - ( + cor0.col1 ) AS col1 FROM tab0 AS cor0
----
-144738
-380562
-4947

query I rowsort
SELECT DISTINCT - cor0.col1 + cor0.col1 FROM tab0 cor0
----
0

query I rowsort
SELECT DISTINCT cor0.col0 + col0 * - col0 AS col0 FROM tab1 AS cor0
----
-4032
-6
-6320

query I rowsort
SELECT ALL + 25 * - col2 + + col0 FROM tab1 AS cor0
----
-1347
-1361
-2320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 32 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

query I rowsort
SELECT ALL 21 AS col1 FROM tab0
----
21
21
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col1 ) col2 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT cor0.col1 + + col2 * - 42 FROM tab1 cor0
----
-2242
-2384
-4019

query I rowsort
SELECT DISTINCT + - 46 FROM tab0 cor0
----
-46

onlyif mysql # use DIV operator for integer division
query I rowsort label-4683
SELECT ALL - 0 DIV col0 col2 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4683
SELECT ALL - 0 / col0 col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort
SELECT 82 + - cor0.col0 * CAST ( col0 AS REAL ) AS col0 FROM tab1 AS cor0
----
-4014
-6318
73

query I rowsort
SELECT - col1 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-4686
SELECT + 63 DIV col0 AS col2 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-4686
SELECT + 63 / col0 AS col2 FROM tab0 AS cor0
----
0
1
2

query I rowsort
SELECT ALL - col1 + + cor0.col0 AS col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT + + col1 * col0 * + 14 FROM tab1 AS cor0
----
1092
14560
8960

query I rowsort
SELECT DISTINCT col0 + cor0.col1 FROM tab0 cor0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-4690
SELECT ALL + col2 * + CAST( col1 AS SIGNED ) + tab2.col0 DIV - tab2.col0 col2 FROM tab2
----
1533
645
836

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4690
SELECT ALL + col2 * + CAST ( col1 AS INTEGER ) + tab2.col0 / - tab2.col0 col2 FROM tab2
----
1533
645
836

query I rowsort
SELECT + + 83 + col1 AS col2 FROM tab0 AS cor0
----
169
174
180

query I rowsort
SELECT ALL - 82 * ( - cor0.col1 ) - + col1 AS col1 FROM tab0 AS cor0
----
6966
7371
7857

query I rowsort
SELECT ALL - col2 + 76 AS col0 FROM tab0
----
-6
43
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-4694
SELECT DISTINCT col0 DIV col2 + + col2 AS col2 FROM tab0
----
33
36
83

skipif mysql # not compatible
query I rowsort label-4694
SELECT DISTINCT col0 / col2 + + col2 AS col2 FROM tab0
----
33
36
83

query I rowsort
SELECT col1 * ( - col1 ) FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT - col2 - - 15 * + col1 FROM tab1 AS cor0
----
336
93
99

query I rowsort
SELECT + - 13 + - 41 FROM tab1 AS cor0
----
-54
-54
-54

query I rowsort
SELECT ALL 76 FROM tab0, tab0 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query I rowsort
SELECT DISTINCT - col0 * col1 - + col0 AS col1 FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT - 71 + ( - cor0.col0 ) * col0 FROM tab2 AS cor0
----
-120
-6155
-6312

query I rowsort
SELECT DISTINCT + cor0.col1 * ( + col1 ) + + 68 AS col2 FROM tab0 cor0
----
7464
8349
9477

query I rowsort
SELECT DISTINCT + + col0 - - col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT ALL - col0 * + ( - col0 ) + + col0 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT ALL + col2 + col1 * col1 AS col2 FROM tab1 cor0
----
157
265
730

query I rowsort
SELECT + 31 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query I rowsort
SELECT ALL - col0 + col1 FROM tab0 cor0
----
2
62
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-4707
SELECT col2 + col0 DIV - col2 FROM tab0
----
-34
33
81

skipif mysql # not compatible
query I rowsort label-4707
SELECT col2 + col0 / - col2 FROM tab0
----
-34
33
81

query I rowsort
SELECT ALL - ( col0 ) - col2 * ( - col2 ) FROM tab2 AS cor0
----
1365
598
722

query I rowsort
SELECT - col1 + + 64 * - col2 AS col2 FROM tab1 AS cor0
----
-3482
-3658
-6157

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col0 ) col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL + - col2 * col0 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT 20 FROM tab2 AS cor0
----
20
20
20

query I rowsort
SELECT DISTINCT + + col1 + col2 AS col0 FROM tab0 AS cor0
----
119
173
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-4714
SELECT ALL ( + cor0.col0 ) DIV - CAST( - 51 AS SIGNED ) FROM tab0, tab0 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c

skipif mysql # not compatible
query I rowsort label-4714
SELECT ALL ( + cor0.col0 ) / - CAST ( - 51 AS INTEGER ) FROM tab0, tab0 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c

query I rowsort
SELECT + cor0.col0 * - 89 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to e730fef8bb54adbc0e1260b8476ba162

query I rowsort
SELECT ALL + + col1 * - col1 + col1 AS col0 FROM tab2 AS cor0
----
-272
-3422
-930

query I rowsort
SELECT ALL - col2 * cor0.col0 FROM tab2 AS cor0
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT CAST ( 5 AS REAL ) col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 6797d40099023779b89feb627d94a3e7

query I rowsort
SELECT DISTINCT - ( + col0 ) * - col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT 33 * + col2 FROM tab0 AS cor0
----
1089
2706
33

query I rowsort
SELECT DISTINCT + - col2 + + col2 * + 82 AS col0 FROM tab1 AS cor0
----
4374
4617
7776

query I rowsort
SELECT DISTINCT 36 * col2 AS col1 FROM tab0 cor0
----
1188
2952
36

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4723
SELECT - CAST( NULL AS SIGNED ) FROM tab0, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4723
SELECT - CAST ( NULL AS INTEGER ) FROM tab0, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + 28 + col0 FROM tab0 AS cor0
----
117
52
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-4725
SELECT - col2 DIV - col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4725
SELECT - col2 / - col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 + - 90 FROM tab2 AS cor0
----
-31
-59
-73

query I rowsort
SELECT ALL + - col0 + + 16 * col2 FROM tab1 AS cor0
----
1456
848
861

query I rowsort
SELECT DISTINCT + col0 + col1 + - col0 AS col1 FROM tab1
----
10
13
26

query I rowsort
SELECT ALL + tab1.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

onlyif mysql # use DIV operator for integer division
query I rowsort label-4730
SELECT ALL + col0 DIV - ( + tab1.col0 ) + tab1.col1 AS col0 FROM tab1
----
12
25
9

skipif mysql # not compatible
query I rowsort label-4730
SELECT ALL + col0 / - ( + tab1.col0 ) + tab1.col1 AS col0 FROM tab1
----
12
25
9

query I rowsort
SELECT + col1 * - col1 + col0 * + col1 * col2 + + col2 FROM tab0 AS cor0
----
-6013
60749
655919

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 29 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT col1 * col0 + - col1 FROM tab0 AS cor0
----
1978
3298
8008

onlyif mysql # use DIV operator for integer division
query I rowsort label-4734
SELECT - col1 DIV ( + col2 ) + + col2 + 52 AS col2 FROM tab1 AS cor0
----
106
109
148

skipif mysql # not compatible
query I rowsort label-4734
SELECT - col1 / ( + col2 ) + + col2 + 52 AS col2 FROM tab1 AS cor0
----
106
109
148

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col2 + - 90 * 55 col2 FROM tab2 AS cor0
----
-4976
-4977
-4988

query I rowsort
SELECT + col2 * - 36 + + col0 * col0 + + cor0.col2 * + col0 AS col1 FROM tab1 AS cor0
----
-1773
10624
5692

query I rowsort
SELECT + 89 * - cor0.col2 FROM tab0 AS cor0
----
-2937
-7298
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * + col1 + + col1 + - ( + col0 ) col0 FROM tab2 AS cor0
----
1281
241
4583

query I rowsort
SELECT - ( + col0 ) AS col2 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT col1 * 69 AS col2 FROM tab1 AS cor0
----
1794
690
897

query I rowsort
SELECT DISTINCT - + col2 * 3 AS col2 FROM tab2 cor0
----
-114
-78
-81

query I rowsort
SELECT col1 + + 36 * col1 FROM tab1 AS cor0
----
370
481
962

query I rowsort
SELECT + + 14 + - 11 * col2 + ( col2 ) * col0 * col1 FROM tab2 AS cor0
----
119380
50630
5576

query I rowsort
SELECT + tab1.col1 * ( col0 + - col2 ) FROM tab1
----
-1326
-208
70

query I rowsort
SELECT ALL - tab0.col1 + - col0 FROM tab0
----
-110
-132
-180

query I rowsort
SELECT DISTINCT - tab1.col2 + - 14 FROM tab1
----
-110
-68
-71

onlyif mysql # use DIV operator for integer division
query I rowsort label-4747
SELECT + col0 * - col0 + 30 * + tab2.col1 - + 61 DIV - 32 AS col2 FROM tab2
----
-4313
-5730
882

skipif mysql # not compatible
query I rowsort label-4747
SELECT + col0 * - col0 + 30 * + tab2.col1 - + 61 / - 32 AS col2 FROM tab2
----
-4313
-5730
882

query I rowsort
SELECT - col1 + 60 * + col1 FROM tab2
----
1003
1829
3481

query I rowsort
SELECT tab2.col2 + col0 AS col0 FROM tab2
----
104
117
34

query I rowsort
SELECT DISTINCT col2 + 55 + + col0 FROM tab1
----
112
176
231

query I rowsort
SELECT - + col1 + - cor0.col0 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT + cor0.col0 + col1 * - col2 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT ALL cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 * col0 col1 FROM tab1
----
162
3648
7680

query I rowsort
SELECT 86 FROM tab0, tab1 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT cor0.col1 * col1 + col2 FROM tab0 AS cor0
----
7429
8363
9410

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col0 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT ALL + col2 + + ( + col2 ) + - col1 FROM tab1
----
104
179
82

query I rowsort
SELECT - col1 * + 68 + col0 AS col2 FROM tab1 AS cor0
----
-1765
-616
-804

query I rowsort
SELECT ALL ( - 9 ) + + col1 FROM tab2
----
22
50
8

query I rowsort
SELECT - 30 AS col0 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to a96370a8187089b6b83ce9bfbade5142

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col2 col0 FROM tab2
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4763
SELECT + col0 DIV - col2 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4763
SELECT + col0 / - col2 FROM tab1
----
-1
0
0

query I rowsort
SELECT - 28 FROM tab2
----
-28
-28
-28

query I rowsort
SELECT ALL - 99 * - col0 AS col1 FROM tab1 AS cor0
----
297
6336
7920

query I rowsort
SELECT ALL tab0.col2 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT ALL + 82 * tab0.col0 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to fec7215572a55d979eee5e57175da1b3

query I rowsort
SELECT 91 * + col1 FROM tab2 AS cor0
----
1547
2821
5369

query I rowsort
SELECT 23 + - col0 FROM tab1 AS cor0
----
-41
-57
20

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4770
SELECT col2 * cor0.col2 + CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
1122
2
6806

skipif mysql # not compatible
query I rowsort label-4770
SELECT col2 * cor0.col2 + CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT ALL + 29 AS col0 FROM tab2
----
29
29
29

query I rowsort
SELECT cor0.col2 + - 35 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 5c293f70cef2285e001c88ed4c801691

query I rowsort
SELECT ALL + - col1 * col0 + - 27 * - col2 * col2 FROM tab0 cor0
----
-3368
173449
27339

query I rowsort
SELECT cor0.col1 * + 24 FROM tab1, tab1 AS cor0
----
9 values hashing to 779aeb174f3922e91299213141ae51ee

query I rowsort
SELECT - + cor0.col1 - col2 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT + col2 + col2 AS col1 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT + 74 + col2 FROM tab0 AS cor0
----
107
156
75

query I rowsort
SELECT - col0 - cor0.col1 AS col2 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT ( tab0.col1 ) * + col2 FROM tab0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4780
SELECT tab2.col1 + - tab2.col2 DIV col0 AS col2 FROM tab2
----
17
28
59

skipif mysql # not compatible
query I rowsort label-4780
SELECT tab2.col1 + - tab2.col2 / col0 AS col2 FROM tab2
----
17
28
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-4781
SELECT DISTINCT 77 * tab0.col0 DIV col2 - - 80 AS col2 FROM tab0
----
136
163
2775

skipif mysql # not compatible
query I rowsort label-4781
SELECT DISTINCT 77 * tab0.col0 / col2 - - 80 AS col2 FROM tab0
----
136
163
2775

query I rowsort
SELECT DISTINCT - 63 * - col1 FROM tab0
----
5418
5733
6111

query I rowsort
SELECT - col2 - col2 AS col0 FROM tab1
----
-108
-114
-192

query I rowsort
SELECT DISTINCT + col0 - col0 AS col0 FROM tab1
----
0

query I rowsort
SELECT 90 * col1 + + col2 * + col2 AS col2 FROM tab2
----
2974
3519
5986

query I rowsort
SELECT DISTINCT cor0.col1 + cor0.col2 AS col2 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT + ( col1 ) + - col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4788
SELECT col2 / - tab0.col1 + CAST( NULL AS SIGNED ) - 2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4788
SELECT col2 / - tab0.col1 + CAST ( NULL AS INTEGER ) - 2 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * - col2 AS col0 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT ALL 61 FROM tab0, tab0 cor0, tab2 cor1, tab2 AS cor2
----
81 values hashing to 9b52d3939da22c8931e3d5a72ddfb1b1

query I rowsort
SELECT - - 74 FROM tab1 AS cor0
----
74
74
74

query I rowsort
SELECT ALL col2 * col1 AS col2 FROM tab2 cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-4793
SELECT DISTINCT + col2 DIV + col1 AS col2 FROM tab2 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-4793
SELECT DISTINCT + col2 / + col1 AS col2 FROM tab2 AS cor0
----
0
2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4794
SELECT DISTINCT + - col1 * CAST( 74 AS SIGNED ) FROM tab2 cor0
----
-1258
-2294
-4366

skipif mysql # not compatible
query I rowsort label-4794
SELECT DISTINCT + - col1 * CAST ( 74 AS INTEGER ) FROM tab2 cor0
----
-1258
-2294
-4366

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * ( col0 * col0 ) col1 FROM tab2 AS cor0
----
343
474552
493039

query I rowsort
SELECT col2 * 78 FROM tab0 AS cor0
----
2574
6396
78

query I rowsort
SELECT cor0.col1 * - ( - 32 ) + - col1 FROM tab2 AS cor0
----
1829
527
961

query I rowsort
SELECT - col2 + 20 AS col1 FROM tab0 AS cor0
----
-13
-62
19

query I rowsort
SELECT - col2 * 97 FROM tab2 AS cor0
----
-2522
-2619
-3686

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4800
SELECT col2 + - CAST( 20 AS SIGNED ) FROM tab2 AS cor0
----
18
6
7

skipif mysql # not compatible
query I rowsort label-4800
SELECT col2 + - CAST ( 20 AS INTEGER ) FROM tab2 AS cor0
----
18
6
7

query I rowsort
SELECT ALL 69 AS col0 FROM tab2
----
69
69
69

query I rowsort
SELECT ALL - + col2 * - col0 - - col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT col1 + cor0.col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT DISTINCT + + col1 + col1 AS col2 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT ALL + + col2 - col1 AS col0 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT DISTINCT col2 * ( cor0.col0 * col1 ) AS col2 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT ALL - cor0.col1 - col0 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT + col1 * cor0.col2 + + col0 FROM tab1 cor0
----
1328
1407
634

onlyif mysql # use DIV operator for integer division
query I rowsort label-4809
SELECT DISTINCT 79 DIV - col0 FROM tab0 cor0
----
-2
-3
0

skipif mysql # not compatible
query I rowsort label-4809
SELECT DISTINCT 79 / - col0 FROM tab0 cor0
----
-2
-3
0

query I rowsort
SELECT DISTINCT 35 AS col0 FROM tab0 AS cor0
----
35

query I rowsort
SELECT - col1 * - col2 + - col0 AS col2 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT + - 71 FROM tab2 AS cor0
----
-71
-71
-71

onlyif mysql # use DIV operator for integer division
query I rowsort label-4813
SELECT DISTINCT 98 DIV tab2.col0 FROM tab2
----
1
14

skipif mysql # not compatible
query I rowsort label-4813
SELECT DISTINCT 98 / tab2.col0 FROM tab2
----
1
14

query I rowsort
SELECT ALL + 70 * 51 AS col0 FROM tab1
----
3570
3570
3570

query I rowsort
SELECT DISTINCT ( col1 ) * + col1 * - 61 FROM tab1
----
-10309
-41236
-6100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col0 * - col0 col2 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT + tab0.col1 * - col1 AS col0 FROM tab0
----
-7396
-8281
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * + col0 col2 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT col2 * col0 * tab1.col1 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT ALL col1 * col0 - col0 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT ALL - + cor0.col1 * + col0 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT + cor0.col1 AS col0 FROM tab2, tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL cor0.col1 * - cor0.col0 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + cor0.col1 col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT + - col2 - cor0.col2 AS col0 FROM tab1 AS cor0
----
-108
-114
-192

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-4827
SELECT ALL - - col0 DIV col1 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4827
SELECT ALL - - col0 / col1 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + col0 * col1 FROM tab2 cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-4829
SELECT ALL - col2 DIV + col2 - - col0 AS col1 FROM tab1 AS cor0
----
2
63
79

skipif mysql # not compatible
query I rowsort label-4829
SELECT ALL - col2 / + col2 - - col0 AS col1 FROM tab1 AS cor0
----
2
63
79

query I rowsort
SELECT ALL cor0.col0 + + cor0.col2 AS col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT + col0 * - col0 * col0 AS col0 FROM tab1 AS cor0
----
-262144
-27
-512000

query I rowsort
SELECT DISTINCT + col1 * - col1 - - col1 * col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + col2 + - col1 + - col0 FROM tab2 AS cor0
----
-11
-111
-58

query I rowsort
SELECT DISTINCT - - col2 * cor0.col0 + col1 AS col0 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT DISTINCT + col2 * col1 AS col2 FROM tab2 cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-4836
SELECT DISTINCT - col1 DIV + col1 AS col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-4836
SELECT DISTINCT - col1 / + col1 AS col2 FROM tab2
----
-1

query I rowsort
SELECT - ( cor0.col0 ) * - col0 * col0 + - cor0.col1 + - col2 AS col1 FROM tab0 AS cor0
----
13705
42777
704796

query I rowsort
SELECT DISTINCT + 62 * - col0 AS col0 FROM tab2 AS cor0
----
-434
-4836
-4898

query I rowsort
SELECT - col0 + col1 * col1 + - col0 * - col2 * - col2 AS col2 FROM tab2 AS cor0
----
-113866
-4149
-49325

query I rowsort
SELECT DISTINCT - - col0 * col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT ALL - + col0 * cor0.col0 + col2 AS col1 FROM tab0 AS cor0
----
-1224
-543
-7839

query I rowsort
SELECT ALL - 48 * - col1 * col1 + + col0 * + col2 FROM tab2 AS cor0
----
16874
169116
46317

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 67 * + col2 col2 FROM tab2 AS cor0
----
1742
1809
2546

query I rowsort
SELECT + 1 * col0 * col0 - + col2 AS col0 FROM tab2 AS cor0
----
22
6058
6203

query I rowsort
SELECT ALL col0 * col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT - 16 * col2 FROM tab2 AS cor0
----
-416
-432
-608

onlyif mysql # use DIV operator for integer division
query I rowsort label-4847
SELECT DISTINCT - + col0 DIV + col1 AS col0 FROM tab2 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-4847
SELECT DISTINCT - + col0 / + col1 AS col0 FROM tab2 AS cor0
----
-1
-4
0

query I rowsort
SELECT DISTINCT + - 60 * cor0.col1 AS col2 FROM tab2 AS cor0
----
-1020
-1860
-3540

query I rowsort
SELECT ALL + col1 + col1 * col1 AS col2 FROM tab2 cor0
----
306
3540
992

onlyif mysql # use DIV operator for integer division
query I rowsort label-4850
SELECT - - col1 + col1 + - col2 DIV - col1 AS col2 FROM tab2 AS cor0
----
118
36
62

skipif mysql # not compatible
query I rowsort label-4850
SELECT - - col1 + col1 + - col2 / - col1 AS col2 FROM tab2 AS cor0
----
118
36
62

query I rowsort
SELECT DISTINCT - + col2 + + col2 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL 17 + 48 * col1 - - col2 AS col2 FROM tab1
----
1319
554
737

query I rowsort
SELECT ALL - - 90 * col1 FROM tab1 AS cor0
----
1170
2340
900

query I rowsort
SELECT ALL - - cor0.col0 + col2 * col2 AS col1 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT 20 * - col2 + - col0 FROM tab2 AS cor0
----
-547
-598
-839

query I rowsort
SELECT DISTINCT - + col2 * col2 + col0 * col1 AS col0 FROM tab2 AS cor0
----
-101
-512
3926

query I rowsort
SELECT DISTINCT - cor0.col0 * cor0.col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT ALL - cor0.col2 * - col1 + col0 AS col0 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT DISTINCT + col0 * cor0.col2 AS col0 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-4860
SELECT col2 + - cor0.col2 DIV - col0 + - col0 * + col2 col0 FROM tab2 AS cor0
----
-159
-2002
-2964

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4860
SELECT col2 + - cor0.col2 / - col0 + - col0 * + col2 col0 FROM tab2 AS cor0
----
-159
-2002
-2964

query I rowsort
SELECT col1 + col2 * col2 + + col2 * + cor0.col0 * + col0 AS col0 FROM tab0 AS cor0
----
1323
20183
656337

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 69 + col0 col1 FROM tab2
----
147
148
76

query I rowsort
SELECT + 25 + - col2 * tab0.col1 AS col1 FROM tab0
----
-2813
-72
-7437

query I rowsort
SELECT ALL + - cor0.col0 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

query I rowsort
SELECT DISTINCT + col1 * tab1.col2 FROM tab1
----
1248
1404
570

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT ( NULL ) NOT IN ( + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col2 * - col0 + col2 * + col1 * col1 col1 FROM tab2
----
-226176
-67678
24624

query I rowsort
SELECT - col0 - col1 AS col1 FROM tab1
----
-29
-74
-93

query I rowsort
SELECT ALL col2 * tab1.col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT DISTINCT - tab2.col1 + + col0 - tab2.col2 FROM tab2
----
-51
-7
24

query I rowsort
SELECT ALL col0 AS col1 FROM tab2 WHERE NOT NULL <> ( NULL )
----

query I rowsort
SELECT tab2.col0 * tab2.col1 * col0 AS col1 FROM tab2
----
106097
1519
358956

query I rowsort
SELECT - col0 * col1 FROM tab2 WHERE NOT ( + col0 - col2 ) NOT BETWEEN + col0 AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4874
SELECT ALL + col2 DIV - col2 col1 FROM tab1
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4874
SELECT ALL + col2 / - col2 col1 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT - col1 - - col1 * col1 FROM tab1
----
156
650
90

query I rowsort
SELECT ALL + col0 * - col1 FROM tab2
----
-1343
-217
-4602

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 + + col1 * + col2 IN ( col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT + col0 * col1 * col0 + col1 FROM tab2
----
106114
1550
359015

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col0 + - tab2.col1 col0 FROM tab2
----
100
3
45

query I rowsort
SELECT - col1 * + col0 FROM tab1 WHERE NOT NULL NOT IN ( tab1.col2 * col0 )
----

query I rowsort
SELECT DISTINCT + col0 + + col2 - col2 FROM tab2
----
7
78
79

query I rowsort
SELECT DISTINCT col1 * + tab1.col0 FROM tab1
----
1040
640
78

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) IN ( col2 )
----

query I rowsort
SELECT DISTINCT col2 * col1 * col2 AS col0 FROM tab2
----
22599
24548
39884

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL >= ( NULL )
----

query I rowsort
SELECT col2 + col1 + + col0 FROM tab0
----
133
143
262

query I rowsort
SELECT DISTINCT - tab2.col0 * - col2 + col0 AS col1 FROM tab2
----
196
2106
3081

query I rowsort
SELECT tab1.col0 * col1 - col0 FROM tab1
----
576
75
960

query I rowsort
SELECT DISTINCT col0 - - col1 AS col1 FROM tab0
----
110
132
180

query I rowsort
SELECT col2 * col0 + + col0 FROM tab1
----
165
3712
7760

query I rowsort
SELECT ALL tab0.col0 AS col1 FROM tab0 WHERE NOT ( col1 ) IN ( col0 + - col0 * - col2 * col1 )
----
24
35
89

query I rowsort
SELECT ALL + col1 * col2 + tab0.col2 AS col1 FROM tab0
----
2871
7544
98

query I rowsort
SELECT + col1 * tab1.col2 FROM tab1 WHERE NOT ( col1 * - col0 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col1 + + tab1.col1 AS col1 FROM tab1 WHERE NOT NULL <= NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4895
SELECT ALL col0 * tab1.col2 DIV col0 AS col0 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-4895
SELECT ALL col0 * tab1.col2 / col0 AS col0 FROM tab1
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4896
SELECT DISTINCT + tab0.col1 DIV + col2 FROM tab0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-4896
SELECT DISTINCT + tab0.col1 / + col2 FROM tab0
----
1
2
97

query I rowsort
SELECT - col2 + - col2 * + col0 + col0 AS col2 FROM tab0
----
-1
-7291
-801

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IN ( - col0 + - col0 * - col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4899
SELECT DISTINCT tab0.col2 * col0 DIV col1 FROM tab0
----
0
80
9

skipif mysql # not compatible
query I rowsort label-4899
SELECT DISTINCT tab0.col2 * col0 / col1 FROM tab0
----
0
80
9

query I rowsort
SELECT - col2 AS col1 FROM tab2 WHERE NULL BETWEEN NULL AND col1
----

query I rowsort
SELECT ALL - col0 * + col0 + - tab2.col2 FROM tab2
----
-6110
-6279
-76

query I rowsort
SELECT + col2 * col0 * tab0.col0 - col0 FROM tab0
----
1190
18984
649433

query I rowsort
SELECT + col1 FROM tab2 WHERE NOT NULL IN ( col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) IN ( + col1 )
----

query I rowsort
SELECT DISTINCT - col2 + col2 * cor0.col2 AS col1 FROM tab0 AS cor0
----
0
1056
6642

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) IN ( col0 )
----

query I rowsort
SELECT + col2 FROM tab0 WHERE NULL <> col0 * col1 / - col2 + + col0
----

query III rowsort
SELECT * FROM tab0 WHERE col1 IN ( tab0.col1 * tab0.col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4909
SELECT ALL col1 * col2 DIV + col1 - col0 AS col1 FROM tab0 AS cor0
----
-34
-7
9

skipif mysql # not compatible
query I rowsort label-4909
SELECT ALL col1 * col2 / + col1 - col0 AS col1 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT DISTINCT - col1 * col1 FROM tab0 AS cor0 WHERE NOT NULL IN ( col1 )
----

query I rowsort
SELECT ALL col2 * - col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( - col1 ) AND col0 * col2 * col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col2 + col0 * - cor0.col0 col2 FROM tab0 AS cor0
----
-1260
-1368
-15219

query I rowsort
SELECT col2 + - col2 + + col2 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-4914
SELECT col1 DIV 39 FROM tab0 cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-4914
SELECT col1 / 39 FROM tab0 cor0
----
2
2
2

query I rowsort
SELECT ALL col2 - col1 * + col0 FROM tab2
----
-1305
-190
-4576

query I rowsort
SELECT DISTINCT - - cor0.col1 * - cor0.col0 * + col1 FROM tab2 cor0
----
-22831
-271518
-6727

onlyif mysql # use DIV operator for integer division
query I rowsort label-4917
SELECT col0 - col1 DIV - col0 AS col0 FROM tab0 cor0
----
27
37
90

skipif mysql # not compatible
query I rowsort label-4917
SELECT col0 - col1 / - col0 AS col0 FROM tab0 cor0
----
27
37
90

query I rowsort
SELECT - + 98 * + 54 FROM tab0 AS cor0
----
-5292
-5292
-5292

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4919
SELECT DISTINCT CAST( - ( col1 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-4919
SELECT DISTINCT CAST ( - ( col1 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT + col1 * + cor0.col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT + + col0 + 70 * cor0.col2 AS col1 FROM tab2 AS cor0
----
1897
1898
2739

query I rowsort
SELECT + 80 * cor0.col1 AS col2 FROM tab2 AS cor0
----
1360
2480
4720

query I rowsort
SELECT - col2 * col1 - col2 AS col2 FROM tab0 AS cor0
----
-2871
-7544
-98

query I rowsort
SELECT col0 * ( - cor0.col1 ) - ( - cor0.col2 ) AS col2 FROM tab0 cor0
----
-2031
-3394
-8017

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 37 col2 FROM tab0 AS cor0
----
37
37
37

query I rowsort
SELECT - col1 + - col2 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
-17
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-4927
SELECT ALL + cor0.col1 DIV col0 AS col0 FROM tab1 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-4927
SELECT ALL + cor0.col1 / col0 AS col0 FROM tab1 AS cor0
----
0
0
8

query I rowsort
SELECT ALL - col0 + + col2 * + col2 AS col1 FROM tab0 AS cor0
----
-34
1065
6635

query I rowsort
SELECT + 46 * + 18 FROM tab0
----
828
828
828

query I rowsort
SELECT + cor1.col0 FROM tab1, tab0 AS cor0, tab1 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT + 5 * + cor0.col2 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to d3efe88b9cd67e22adf6ce36b40e5117

query IIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT DISTINCT - ( col2 ) * - col2 FROM tab0
----
1
1089
6724

query I rowsort
SELECT - 93 AS col2 FROM tab0
----
-93
-93
-93

query I rowsort
SELECT cor1.col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4936
SELECT ALL + col1 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4936
SELECT ALL + col1 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4937
SELECT ALL tab1.col1 DIV + ( 51 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4937
SELECT ALL tab1.col1 / + ( 51 ) FROM tab1
----
0
0
0

query I rowsort
SELECT ALL - tab2.col1 * col0 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT + col0 * - 76 AS col2 FROM tab1 AS cor0
----
-228
-4864
-6080

onlyif mysql # use DIV operator for integer division
query I rowsort label-4940
SELECT col2 DIV + col0 AS col2 FROM tab2 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-4940
SELECT col2 / + col0 AS col2 FROM tab2 AS cor0
----
0
0
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-4941
SELECT ALL + ( - col1 ) DIV cor0.col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4941
SELECT ALL + ( - col1 ) / cor0.col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + 49 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

query I rowsort
SELECT ALL 15 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query I rowsort
SELECT ALL - col2 * - 18 AS col0 FROM tab2 AS cor0
----
468
486
684

query I rowsort
SELECT + col0 * - col2 - col2 FROM tab1
----
-216
-3705
-7776

query I rowsort
SELECT tab1.col2 * col2 * col0 + col1 * - col1 FROM tab1
----
207836
737111
8072

query I rowsort
SELECT ( tab2.col1 ) + - tab2.col2 FROM tab2
----
-21
33
4

query I rowsort
SELECT + tab1.col1 + - 18 AS col0 FROM tab1
----
-5
-8
8

query I rowsort
SELECT - ( + col1 ) * + col0 + col2 FROM tab2
----
-1305
-190
-4576

query I rowsort
SELECT ( 77 ) AS col2 FROM tab1
----
77
77
77

skipif mysql # not compatible
query I rowsort
SELECT CAST ( col0 AS REAL ) FROM tab2
----
7
78
79

query I rowsort
SELECT DISTINCT col2 - + col2 * - col2 FROM tab0
----
1122
2
6806

onlyif mysql # use DIV operator for integer division
query I rowsort label-4953
SELECT col1 DIV col1 + tab2.col2 - tab2.col1 FROM tab2
----
-3
-32
22

skipif mysql # not compatible
query I rowsort label-4953
SELECT col1 / col1 + tab2.col2 - tab2.col1 FROM tab2
----
-3
-32
22

query I rowsort
SELECT col1 * - 87 * tab2.col1 + + tab2.col2 FROM tab2
----
-25105
-302821
-83580

query I rowsort
SELECT DISTINCT + ( - col1 ) FROM tab0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4956
SELECT + + ( col1 ) DIV col0 col1 FROM tab2 AS cor0
----
0
0
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4956
SELECT + + ( col1 ) / col0 col1 FROM tab2 AS cor0
----
0
0
4

query I rowsort
SELECT DISTINCT - 14 AS col2 FROM tab0 cor0
----
-14

query I rowsort
SELECT DISTINCT - ( col1 ) AS col1 FROM tab2 cor0
----
-17
-31
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col1 col2 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT ALL 7 AS col1 FROM tab1 AS cor0
----
7
7
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-4961
SELECT DISTINCT col1 + - col2 DIV cor0.col1 FROM tab2 AS cor0
----
15
31
59

skipif mysql # not compatible
query I rowsort label-4961
SELECT DISTINCT col1 + - col2 / cor0.col1 FROM tab2 AS cor0
----
15
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-4962
SELECT DISTINCT 58 DIV col2 FROM tab0 AS cor0
----
0
1
58

skipif mysql # not compatible
query I rowsort label-4962
SELECT DISTINCT 58 / col2 FROM tab0 AS cor0
----
0
1
58

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4963
SELECT DISTINCT ( - col1 ) + + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4963
SELECT DISTINCT ( - col1 ) + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4964
SELECT DISTINCT + col0 + + col0 + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4964
SELECT DISTINCT + col0 + + col0 + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4965
SELECT + col0 + + col0 DIV + col1 FROM tab1
----
3
70
86

skipif mysql # not compatible
query I rowsort label-4965
SELECT + col0 + + col0 / + col1 FROM tab1
----
3
70
86

query I rowsort
SELECT 89 * + col2 FROM tab0
----
2937
7298
89

query I rowsort
SELECT DISTINCT 26 * col0 AS col0 FROM tab2
----
182
2028
2054

query I rowsort
SELECT + col2 * col1 * 8 AS col0 FROM tab1
----
11232
4560
9984

query I rowsort
SELECT 28 * + col1 + + 4 * - col2 FROM tab2 AS cor0
----
1548
324
760

query I rowsort
SELECT + - 8 FROM tab0, tab2 AS cor0
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - col1 col0 FROM tab2
----
-33
-4
21

query I rowsort
SELECT ALL + col2 + 89 - 49 FROM tab1 AS cor0
----
136
94
97

query I rowsort
SELECT DISTINCT - + cor0.col2 + - col0 AS col1 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT col0 * - col0 + - col0 FROM tab2 AS cor0
----
-56
-6162
-6320

query I rowsort
SELECT DISTINCT - col2 + 50 AS col1 FROM tab0 AS cor0
----
-32
17
49

query I rowsort
SELECT DISTINCT - col1 * - col0 + col2 - - col2 * col1 FROM tab1 AS cor0
----
1267
1536
2384

query I rowsort
SELECT - cor0.col0 * + 98 FROM tab1 AS cor0
----
-294
-6272
-7840

query I rowsort
SELECT DISTINCT - col0 * ( - 59 + col0 ) FROM tab0 AS cor0
----
-2670
840

onlyif mysql # use DIV operator for integer division
query I rowsort label-4979
SELECT ALL col1 DIV col1 + col2 + 27 * + col2 AS col0 FROM tab2
----
1065
729
757

skipif mysql # not compatible
query I rowsort label-4979
SELECT ALL col1 / col1 + col2 + 27 * + col2 AS col0 FROM tab2
----
1065
729
757

query I rowsort
SELECT ALL + 62 + col0 * tab0.col1 FROM tab0
----
2126
3457
8161

onlyif mysql # use DIV operator for integer division
query I rowsort label-4981
SELECT - col0 DIV col0 + - col0 * - col2 FROM tab0
----
34
7297
791

skipif mysql # not compatible
query I rowsort label-4981
SELECT - col0 / col0 + - col0 * - col2 FROM tab0
----
34
7297
791

query I rowsort
SELECT ALL - col0 + + col1 * col2 FROM tab2
----
1456
567
830

query I rowsort
SELECT DISTINCT + + col2 * col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT ALL - col1 * col2 + - 39 * + 32 FROM tab0 cor0
----
-1345
-4086
-8710

query I rowsort
SELECT ALL cor1.col1 + - 64 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 806ba94504496b2c76b47035f89b1c3e

query I rowsort
SELECT ALL + + 0 + col2 * + ( - col2 ) FROM tab0 cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL col2 * col1 + + 11 + 1 FROM tab0
----
109
2850
7474

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4988
SELECT ALL - col1 * - CAST( col2 AS SIGNED ) + col2 * + cor0.col0 FROM tab1 AS cor0
----
1566
4218
8928

skipif mysql # not compatible
query I rowsort label-4988
SELECT ALL - col1 * - CAST ( col2 AS INTEGER ) + col2 * + cor0.col0 FROM tab1 AS cor0
----
1566
4218
8928

query I rowsort
SELECT + + cor0.col1 * 25 AS col0 FROM tab0 AS cor0
----
2150
2275
2425

query I rowsort
SELECT col2 + ( - 63 ) * + col0 * + col2 FROM tab0 cor0
----
-2204
-459692
-49863

query I rowsort
SELECT ALL col1 + col1 * - 11 + + col1 FROM tab1 AS cor0
----
-117
-234
-90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4992
SELECT DISTINCT - col2 * - CAST( NULL AS SIGNED ) - + col2 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4992
SELECT DISTINCT - col2 * - CAST ( NULL AS INTEGER ) - + col2 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col2 + col1 + col1 * - col2 FROM tab2 AS cor0
----
-1449
-591
-779

query I rowsort
SELECT ALL - - col0 * - col0 - col2 * col0 AS col1 FROM tab0 AS cor0
----
-1260
-1368
-15219

query I rowsort
SELECT + col2 + + 31 FROM tab1 AS cor0
----
127
85
88

query I rowsort
SELECT + col2 + cor0.col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT DISTINCT - col2 + - col2 FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT + cor0.col1 + 45 FROM tab2 AS cor0
----
104
62
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col1 + 91 col1 FROM tab1 AS cor0
----
101
104
117

query I rowsort
SELECT DISTINCT - cor0.col2 * - col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL - col0 + 97 AS col0 FROM tab0 cor0
----
62
73
8

query I rowsort
SELECT - col0 + - 3 * 13 AS col1 FROM tab0 AS cor0
----
-128
-63
-74

query I rowsort
SELECT ALL + col1 * + 54 + 98 AS col1 FROM tab2 AS cor0
----
1016
1772
3284

query I rowsort
SELECT - - 50 AS col2 FROM tab1 AS cor0
----
50
50
50

query I rowsort
SELECT ALL 85 + - 32 AS col2 FROM tab0 AS cor0
----
53
53
53

onlyif mysql # use DIV operator for integer division
query I rowsort label-5006
SELECT + + col1 + col1 DIV + col1 AS col1 FROM tab2 AS cor0
----
18
32
60

skipif mysql # not compatible
query I rowsort label-5006
SELECT + + col1 + col1 / + col1 AS col1 FROM tab2 AS cor0
----
18
32
60

query I rowsort
SELECT DISTINCT - - 41 AS col2 FROM tab2 cor0
----
41

query I rowsort
SELECT + 16 * 34 AS col1 FROM tab0 AS cor0
----
544
544
544

query I rowsort
SELECT ALL - ( 7 ) FROM tab2 AS cor0
----
-7
-7
-7

query I rowsort
SELECT - + 39 FROM tab0 AS cor0
----
-39
-39
-39

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5011
SELECT CAST( + col1 AS SIGNED ) * - col0 FROM tab2 cor0
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort label-5011
SELECT CAST ( + col1 AS INTEGER ) * - col0 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT + + col1 * - col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT + col0 * + col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL + 97 * col0 FROM tab2 AS cor0
----
679
7566
7663

onlyif mysql # use DIV operator for integer division
query I rowsort label-5015
SELECT ( + 80 ) DIV col2 FROM tab0 AS cor0
----
0
2
80

skipif mysql # not compatible
query I rowsort label-5015
SELECT ( + 80 ) / col2 FROM tab0 AS cor0
----
0
2
80

query I rowsort
SELECT ALL - 98 * - cor0.col0 FROM tab2 AS cor0
----
686
7644
7742

onlyif mysql # use DIV operator for integer division
query I rowsort label-5017
SELECT + 80 DIV - 56 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5017
SELECT + 80 / - 56 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - - col0 + 50 FROM tab0 AS cor0
----
139
74
85

query I rowsort
SELECT ALL - col0 + - col0 * + col0 FROM tab0 AS cor0
----
-1260
-600
-8010

query I rowsort
SELECT DISTINCT - 4 * - col1 FROM tab0 AS cor0
----
344
364
388

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5021
SELECT - + 53 + - col2 * + CAST( - 14 AS SIGNED ) FROM tab1 AS cor0
----
1291
703
745

skipif mysql # not compatible
query I rowsort label-5021
SELECT - + 53 + - col2 * + CAST ( - 14 AS INTEGER ) FROM tab1 AS cor0
----
1291
703
745

query I rowsort
SELECT ALL - col2 * col1 + 11 FROM tab1 AS cor0
----
-1237
-1393
-559

query I rowsort
SELECT - + 48 * col0 FROM tab2 AS cor0
----
-336
-3744
-3792

query I rowsort
SELECT ALL + - col0 + + cor0.col0 * 57 FROM tab2 AS cor0
----
392
4368
4424

query I rowsort
SELECT DISTINCT + - col2 * col2 * 86 FROM tab2 cor0
----
-124184
-58136
-62694

query I rowsort
SELECT DISTINCT - col2 - + col0 FROM tab1
----
-121
-176
-57

query I rowsort
SELECT DISTINCT cor0.col1 + - cor0.col2 AS col1 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT ALL - cor0.col2 + + col1 AS col0 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT + + ( + col1 ) FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT DISTINCT + 65 + - col2 FROM tab1 AS cor0
----
-31
11
8

query I rowsort
SELECT ALL - col2 * - col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT 41 * + col0 AS col1 FROM tab2 cor0
----
287
3198
3239

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + cor0.col0 ) col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT - + cor0.col2 * - col1 * - ( col2 ) AS col0 FROM tab2 AS cor0
----
-22599
-24548
-39884

query I rowsort
SELECT 97 AS col0 FROM tab1 AS cor0
----
97
97
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5036
SELECT ALL 52 + - col1 DIV + col1 AS col0 FROM tab1 AS cor0
----
51
51
51

skipif mysql # not compatible
query I rowsort label-5036
SELECT ALL 52 + - col1 / + col1 AS col0 FROM tab1 AS cor0
----
51
51
51

query I rowsort
SELECT DISTINCT - + ( col0 ) AS col0 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT + - ( - col2 ) AS col2 FROM tab2 AS cor0
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-5039
SELECT col1 + col0 DIV - cor0.col2 FROM tab1 AS cor0
----
13
26
9

skipif mysql # not compatible
query I rowsort label-5039
SELECT col1 + col0 / - cor0.col2 FROM tab1 AS cor0
----
13
26
9

query I rowsort
SELECT + - col2 + ( - col0 + - col2 ) AS col0 FROM tab0 cor0
----
-253
-37
-90

query I rowsort
SELECT ALL + col0 * + col2 + + col0 AS col1 FROM tab2
----
196
2106
3081

query I rowsort
SELECT DISTINCT col0 + col2 + + col2 * + col2 FROM tab2
----
1561
763
780

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 cor2, tab0 AS cor3
----
3645 values hashing to e6082e644debd74dcf1042b918d79199

query I rowsort
SELECT DISTINCT + + 32 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0, tab1 cor1
----
32

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab2, tab1 AS cor1
----
243 values hashing to 877a8dbac0e29b86e845fb64ed9d2242

onlyif mysql # use DIV operator for integer division
query I rowsort label-5046
SELECT - 85 + col1 DIV col0 AS col2 FROM tab0
----
-82
-83
-84

skipif mysql # not compatible
query I rowsort label-5046
SELECT - 85 + col1 / col0 AS col2 FROM tab0
----
-82
-83
-84

query I rowsort
SELECT - ( 84 ) AS col1 FROM tab1
----
-84
-84
-84

query I rowsort
SELECT - 75 + + ( - col1 ) FROM tab0
----
-161
-166
-172

query I rowsort
SELECT DISTINCT + 22 AS col2 FROM tab2
----
22

skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( col0 AS REAL ) FROM tab2
----
7
78
79

query I rowsort
SELECT cor0.col1 + cor0.col0 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to c3106673b5165f666b99e75c964d6287

query I rowsort
SELECT + col2 * + 17 FROM tab1 cor0
----
1632
918
969

query I rowsort
SELECT DISTINCT 8 + col2 FROM tab2 AS cor0
----
34
35
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 9 col2 FROM tab0 AS cor0
----
9
9
9

query I rowsort
SELECT DISTINCT ( - col0 ) AS col0 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT ( - col2 ) * + col1 + - col0 + - col2 FROM tab1 AS cor0
----
-1424
-1461
-691

onlyif mysql # use DIV operator for integer division
query I rowsort label-5057
SELECT ALL + ( ( - col1 ) ) DIV col1 + 19 + col0 * col0 FROM tab2 AS cor0
----
6102
6259
67

skipif mysql # not compatible
query I rowsort label-5057
SELECT ALL + ( ( - col1 ) ) / col1 + 19 + col0 * col0 FROM tab2 AS cor0
----
6102
6259
67

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2 cor2
----
972 values hashing to 6dfb18fb846f922ba9ea60ce42b86fb0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor1.col0 col0 FROM tab1 AS cor0 CROSS JOIN tab1, tab2 cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT cor0.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT - - col0 + 60 * - col0 AS col0 FROM tab0 AS cor0
----
-1416
-2065
-5251

query I rowsort
SELECT - col0 + + col2 * col2 FROM tab1 cor0
----
2913
3185
9136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col0 col2 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT - cor0.col0 * 31 FROM tab2 AS cor0
----
-217
-2418
-2449

query I rowsort
SELECT + ( - col1 ) * - col1 + col2 * cor0.col1 AS col1 FROM tab0 AS cor0
----
10234
15743
9506

query I rowsort
SELECT - + 63 + - col0 FROM tab1 AS cor0
----
-127
-143
-66

query I rowsort
SELECT + 12 * - 78 AS col2 FROM tab0 AS cor0
----
-936
-936
-936

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5068
SELECT ALL - + col1 * ( - col0 ) + CAST( + 16 AS SIGNED ) * col2 AS col0 FROM tab0 AS cor0
----
2592
3411
9411

skipif mysql # not compatible
query I rowsort label-5068
SELECT ALL - + col1 * ( - col0 ) + CAST ( + 16 AS INTEGER ) * col2 AS col0 FROM tab0 AS cor0
----
2592
3411
9411

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5069
SELECT - CAST( NULL AS DECIMAL ) * col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5069
SELECT - CAST ( NULL AS REAL ) * col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 30 + col2 AS col0 FROM tab2 AS cor0
----
56
57
68

query I rowsort
SELECT + col0 + cor0.col1 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT + 49 + col0 FROM tab2 AS cor0
----
127
128
56

query I rowsort
SELECT + - ( cor0.col1 ) * + cor0.col1 AS col2 FROM tab0 cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT - 78 AS col1 FROM tab1
----
-78

query I rowsort
SELECT 95 + + col2 * col0 FROM tab0 AS cor0
----
130
7393
887

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5076
SELECT ALL - cor0.col1 * + CAST( - col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
289
3481
961

skipif mysql # not compatible
query I rowsort label-5076
SELECT ALL - cor0.col1 * + CAST ( - col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT - 76 AS col1 FROM tab2
----
-76
-76
-76

query I rowsort
SELECT - - col2 + - ( col0 ) * + col2 AS col2 FROM tab1 cor0
----
-108
-3591
-7584

query I rowsort
SELECT - col1 + col1 AS col0 FROM tab1 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col2 col2 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT 70 AS col1 FROM tab2
----
70
70
70

query I rowsort
SELECT - + cor0.col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT DISTINCT - 88 FROM tab0
----
-88

query I rowsort
SELECT ALL + col2 * 4 + - 4 AS col1 FROM tab2 AS cor0
----
100
104
148

query I rowsort
SELECT - cor0.col2 * + 61 + + col0 FROM tab2 AS cor0
----
-1508
-1640
-2239

query I rowsort
SELECT DISTINCT 85 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
85

query I rowsort
SELECT + 50 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query I rowsort
SELECT - col0 * ( ( - col2 ) ) AS col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL col0 * col0 + col1 * + col2 AS col0 FROM tab1 AS cor0
----
1413
4666
7648

query I rowsort
SELECT ALL + 66 * + col2 FROM tab2
----
1716
1782
2508

onlyif mysql # use DIV operator for integer division
query I rowsort label-5092
SELECT + col2 DIV + col1 - - col2 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-5092
SELECT + col2 / + col1 - - col2 FROM tab0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 3 col1 FROM tab0, tab0 cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query I rowsort
SELECT ( - col2 ) * col0 * 71 AS col1 FROM tab2 AS cor0
----
-13419
-143988
-213142

query I rowsort
SELECT + + col2 * cor0.col0 AS col0 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5096
SELECT ALL - + CAST( 30 AS SIGNED ) col0 FROM tab1 AS cor0
----
-30
-30
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5096
SELECT ALL - + CAST ( 30 AS INTEGER ) col0 FROM tab1 AS cor0
----
-30
-30
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 63 col2 FROM tab1
----
63
63
63

query I rowsort
SELECT + col0 + + col1 AS col1 FROM tab1 AS cor0
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-5099
SELECT ALL - - col0 * col2 DIV col1 AS col1 FROM tab0 AS cor0
----
0
80
9

skipif mysql # not compatible
query I rowsort label-5099
SELECT ALL - - col0 * col2 / col1 AS col1 FROM tab0 AS cor0
----
0
80
9

query I rowsort
SELECT - + ( col2 ) + col0 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT ALL - cor0.col1 * col1 + col1 AS col0 FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT - col1 * - col2 - + col0 AS col2 FROM tab1 cor0
----
1168
1401
506

query I rowsort
SELECT ALL 98 + col1 FROM tab2 AS cor0
----
115
129
157

query I rowsort
SELECT DISTINCT - 88 AS col2 FROM tab0 AS cor0
----
-88

query I rowsort
SELECT 20 * 83 + col1 FROM tab0
----
1746
1751
1757

onlyif mysql # use DIV operator for integer division
query I rowsort label-5106
SELECT + 53 DIV - tab1.col0 AS col0 FROM tab1, tab2, tab2 cor0, tab0
----
81 values hashing to adb45bd062333da1de37d44328966861

skipif mysql # not compatible
query I rowsort label-5106
SELECT + 53 / - tab1.col0 AS col0 FROM tab1, tab2, tab2 cor0, tab0
----
81 values hashing to adb45bd062333da1de37d44328966861

onlyif mysql # use DIV operator for integer division
query I rowsort label-5107
SELECT ALL 50 DIV + col0 - col0 * + ( + col0 ) FROM tab2
----
-42
-6084
-6241

skipif mysql # not compatible
query I rowsort label-5107
SELECT ALL 50 / + col0 - col0 * + ( + col0 ) FROM tab2
----
-42
-6084
-6241

query I rowsort
SELECT - 97 + 3 + + col2 FROM tab1
----
-37
-40
2

query I rowsort
SELECT ( ( col0 ) ) + ( + col2 ) AS col1 FROM tab0
----
171
36
57

query I rowsort
SELECT - 2 AS col2 FROM tab1
----
-2
-2
-2

query I rowsort
SELECT - 47 + col1 - + tab2.col0 FROM tab2
----
-109
-23
-66

onlyif mysql # use DIV operator for integer division
query I rowsort label-5112
SELECT ALL + 22 + + 94 DIV cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1efff6c9f7c3ae72f5b58b2a9fda1d2d

skipif mysql # not compatible
query I rowsort label-5112
SELECT ALL + 22 + + 94 / cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1efff6c9f7c3ae72f5b58b2a9fda1d2d

query I rowsort
SELECT + - 36 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5114
SELECT - col0 * cor0.col2 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5114
SELECT - col0 * cor0.col2 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col0 + - col0 + 60 AS col1 FROM tab0 AS cor0
----
-10
-118
12

query I rowsort
SELECT - - col1 + cor0.col2 AS col0 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT - - col0 * col2 + + 34 FROM tab1 AS cor0
----
196
3682
7714

query I rowsort
SELECT ALL + col0 * + col1 AS col1 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-5119
SELECT + - col2 DIV cor0.col2 + + ( col0 + - cor0.col1 ) DIV + col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5119
SELECT + - col2 / cor0.col2 + + ( col0 + - cor0.col1 ) / + col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - 71 + col0 * ( cor0.col2 + col2 ) AS col0 FROM tab1 cor0
----
15289
253
7225

query I rowsort
SELECT ( + cor0.col1 ) + col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL - 48 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 70b0cff913cec85654af0aaf3f5f6d85

query I rowsort
SELECT ALL - - ( col0 ) * col2 * - 11 AS col0 FROM tab0 AS cor0
----
-385
-80278
-8712

query I rowsort
SELECT + ( ( col0 ) ) + + col2 + col1 FROM tab1 AS cor0
----
131
189
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-5125
SELECT DISTINCT - col1 DIV + col0 FROM tab1
----
-8
0

skipif mysql # not compatible
query I rowsort label-5125
SELECT DISTINCT - col1 / + col0 FROM tab1
----
-8
0

query I rowsort
SELECT ALL - cor1.col2 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

query I rowsort
SELECT DISTINCT - 57 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
-57

query I rowsort
SELECT ALL ( - tab2.col2 ) + - col0 * - 74 FROM tab2
----
491
5746
5808

query I rowsort
SELECT DISTINCT 90 * + col2 + - col2 * col2 + + 96 FROM tab1
----
-480
1977
2040

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5130
SELECT CAST( NULL AS SIGNED ) + tab2.col2 * - col2 / col1 + col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5130
SELECT CAST ( NULL AS INTEGER ) + tab2.col2 * - col2 / col1 + col1 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + + 62 * col2 AS col2 FROM tab0
----
2070
5173
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 40 * ( - col0 + + 32 ) * + 66 col1 FROM tab2 AS cor0
----
-121440
-124080
66000

query I rowsort
SELECT + + col0 + 10 + - cor0.col2 AS col2 FROM tab0 AS cor0
----
1
17
44

query I rowsort
SELECT DISTINCT + col2 * cor0.col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL - 6 FROM tab0, tab1 AS cor0
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

query I rowsort
SELECT + ( col0 ) + 55 FROM tab0 AS cor0
----
144
79
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-5137
SELECT ALL - col0 * col1 + - cor0.col0 DIV cor0.col1 + col0 FROM tab1 AS cor0
----
-582
-75
-966

skipif mysql # not compatible
query I rowsort label-5137
SELECT ALL - col0 * col1 + - cor0.col0 / cor0.col1 + col0 FROM tab1 AS cor0
----
-582
-75
-966

query I rowsort
SELECT ALL + tab1.col1 * tab1.col0 AS col2 FROM tab1
----
1040
640
78

query I rowsort
SELECT ALL + col0 + 54 FROM tab1 cor0
----
118
134
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-5140
SELECT DISTINCT - cor0.col1 + - 76 DIV + col1 AS col2 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-5140
SELECT DISTINCT - cor0.col1 + - 76 / + col1 AS col2 FROM tab0 AS cor0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5141
SELECT DISTINCT + - col0 DIV col1 + - cor0.col2 AS col2 FROM tab1 AS cor0
----
-102
-54
-63

skipif mysql # not compatible
query I rowsort label-5141
SELECT DISTINCT + - col0 / col1 + - cor0.col2 AS col2 FROM tab1 AS cor0
----
-102
-54
-63

query I rowsort
SELECT ALL + - col0 * + col1 + + 34 * col2 AS col0 FROM tab2 AS cor0
----
-3718
-51
701

query IIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab0 cor1, tab1 AS cor2
----
972 values hashing to 2d99dda76af061a3fac120e0e49e6c53

query I rowsort
SELECT DISTINCT + - col2 * col0 + - col1 * col0 AS col0 FROM tab1 AS cor0
----
-240
-4288
-8720

onlyif mysql # use DIV operator for integer division
query I rowsort label-5145
SELECT + col1 DIV + col1 AS col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5145
SELECT + col1 / + col1 AS col0 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + cor0.col0 * + col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT + col0 * + ( 37 ) + col2 AS col0 FROM tab2 AS cor0
----
286
2912
2961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * 42 col1 FROM tab2 AS cor0
----
-1092
-1134
-1596

query I rowsort
SELECT - col1 * - 21 FROM tab1 AS cor0
----
210
273
546

query I rowsort
SELECT cor0.col0 + + 70 AS col1 FROM tab2 AS cor0
----
148
149
77

query I rowsort
SELECT ALL + col2 + cor0.col0 AS col1 FROM tab1 AS cor0
----
121
176
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5152
SELECT ALL col1 + CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
-21
33
4

skipif mysql # not compatible
query I rowsort label-5152
SELECT ALL col1 + CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT DISTINCT + col1 - + col2 FROM tab2 AS cor0
----
-21
33
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-5154
SELECT DISTINCT + col2 DIV + 59 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5154
SELECT DISTINCT + col2 / + 59 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + col1 + + col2 FROM tab0 cor0
----
119
173
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5156
SELECT + CAST( + cor0.col0 AS SIGNED ) AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

skipif mysql # not compatible
query I rowsort label-5156
SELECT + CAST ( + cor0.col0 AS INTEGER ) AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT + cor0.col2 AS col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT DISTINCT col2 * + 23 FROM tab1
----
1242
1311
2208

query I rowsort
SELECT - ( 40 ) FROM tab1, tab2 AS cor0
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

query I rowsort
SELECT DISTINCT col1 + + col0 * + col2 AS col0 FROM tab1 cor0
----
188
3658
7693

query I rowsort
SELECT - col2 + 40 AS col0 FROM tab0 cor0
----
-42
39
7

query I rowsort
SELECT ALL - col2 * 8 * col2 FROM tab1 AS cor0
----
-23328
-25992
-73728

query I rowsort
SELECT 69 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to 2810c3097fe4771e273cfff903357b40

query I rowsort
SELECT - col1 + + 71 AS col0 FROM tab1 AS cor0
----
45
58
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 77 col0 FROM tab0 AS cor0
----
-6622
-7007
-7469

query I rowsort
SELECT + cor0.col1 * cor0.col1 AS col0 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT - 32 FROM tab2 AS cor0
----
-32
-32
-32

query I rowsort
SELECT + ( 78 ) FROM tab0 AS cor0
----
78
78
78

query I rowsort
SELECT DISTINCT ( col0 ) * ( 77 ) AS col1 FROM tab2 cor0
----
539
6006
6083

query I rowsort
SELECT ALL 36 AS col1 FROM tab0 AS cor0
----
36
36
36

query I rowsort
SELECT + + col0 + + col0 * col1 + cor0.col0 * col1 AS col2 FROM tab1 AS cor0
----
1344
159
2160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col2 col0 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT + col0 * + col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT col0 * - col0 AS col2 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT col2 + cor0.col2 AS col2 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT DISTINCT - 73 * - col1 AS col0 FROM tab0 AS cor0
----
6278
6643
7081

query I rowsort
SELECT + + ( cor0.col0 ) AS col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT + cor0.col2 + col2 + - 74 * + col1 * - col1 FROM tab2 AS cor0
----
21462
257646
71168

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + 41 * col2 col2 FROM tab0 cor0
----
-56
1267
3271

query I rowsort
SELECT - - col1 * + col1 + - col0 FROM tab1 AS cor0
----
36
673
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5181
SELECT + col1 + col2 * - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5181
SELECT + col1 + col2 * - CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + - cor0.col0 * + cor0.col1 + col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT DISTINCT - col0 * - col1 + ( col1 + col1 ) AS col0 FROM tab0 AS cor0
----
2236
3589
8281

query I rowsort
SELECT ALL - - 22 * col0 + - 68 * cor0.col2 AS col0 FROM tab2 AS cor0
----
-1682
-52
-846

onlyif mysql # use DIV operator for integer division
query I rowsort label-5185
SELECT + col1 DIV + col0 AS col1 FROM tab2 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-5185
SELECT + col1 / + col0 AS col1 FROM tab2 AS cor0
----
0
0
4

query I rowsort
SELECT - 46 * col1 * - ( 93 ) FROM tab0 cor0
----
367908
389298
414966

query I rowsort
SELECT ALL col0 + col2 + - col0 AS col0 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT - col0 * 42 * - col2 FROM tab2
----
126084
7938
85176

query I rowsort
SELECT ( - col0 ) * tab2.col1 AS col2 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT ( - 79 ) FROM tab0
----
-79
-79
-79

query I rowsort
SELECT 58 AS col2 FROM tab2
----
58
58
58

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5192
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 73 * col0 + col0 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5192
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 73 * col0 + col0 AS col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT 99 AS col0 FROM tab2, tab0 AS cor0
----
99

query I rowsort
SELECT DISTINCT tab0.col1 AS col2 FROM tab0, tab1 AS cor0
----
86
91
97

query I rowsort
SELECT + - 6 * 46 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 867465b304f7084f4b30d734270d73ca

query I rowsort
SELECT DISTINCT - 77 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
-77

query I rowsort
SELECT ALL + col2 * - tab2.col1 FROM tab2
----
-1534
-646
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * tab2.col2 - - col0 col0 FROM tab2
----
1523
736
754

query I rowsort
SELECT - ( - cor0.col2 ) * 62 AS col2 FROM tab0 cor0
----
2046
5084
62

query I rowsort
SELECT + col0 * col1 * - col2 + - tab1.col0 AS col1 FROM tab1
----
-36544
-4215
-99920

query I rowsort
SELECT - 14 AS col0 FROM tab0 AS cor0
----
-14
-14
-14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 27 col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753

query I rowsort
SELECT + - col1 * - col1 AS col1 FROM tab1 cor0
----
100
169
676

query I rowsort
SELECT - col1 + + 22 * + col0 FROM tab1 AS cor0
----
1398
1747
40

query I rowsort
SELECT + col0 + - 84 FROM tab1 AS cor0
----
-20
-4
-81

onlyif mysql # use DIV operator for integer division
query I rowsort label-5206
SELECT + + col2 - col0 DIV + col0 AS col2 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-5206
SELECT + + col2 - col0 / + col0 AS col2 FROM tab0 AS cor0
----
0
32
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT col1 + 91 FROM tab0 AS cor0
----
177
182
188

query I rowsort
SELECT ALL - col0 * 53 + + col2 AS col1 FROM tab2
----
-344
-4108
-4149

query I rowsort
SELECT DISTINCT + cor0.col1 + col1 AS col0 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT DISTINCT + 69 * - col2 * - col1 + - cor0.col1 * col2 AS col1 FROM tab1 AS cor0
----
38760
84864
95472

onlyif mysql # use DIV operator for integer division
query I rowsort label-5212
SELECT - + ( + col1 ) DIV + cor0.col1 + col0 AS col2 FROM tab2 cor0
----
6
77
78

skipif mysql # not compatible
query I rowsort label-5212
SELECT - + ( + col1 ) / + cor0.col1 + col0 AS col2 FROM tab2 cor0
----
6
77
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5213
SELECT - CAST( NULL AS DECIMAL ) + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5213
SELECT - CAST ( NULL AS REAL ) + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5214
SELECT + + CAST( NULL AS SIGNED ) + + col0 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-5214
SELECT + + CAST ( NULL AS INTEGER ) + + col0 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( 4 ) + col1 FROM tab1 AS cor0
----
22
6
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-5216
SELECT ALL 10 DIV - cor0.col2 + + col1 * 66 DIV 4 + col2 AS col2 FROM tab0 AS cor0
----
1452
1583
1591

skipif mysql # not compatible
query I rowsort label-5216
SELECT ALL 10 / - cor0.col2 + + col1 * 66 / 4 + col2 AS col2 FROM tab0 AS cor0
----
1452
1583
1591

query I rowsort
SELECT ALL - col2 + - 58 FROM tab2 cor0
----
-84
-85
-96

query I rowsort
SELECT DISTINCT + + cor0.col0 * + col1 - - col0 AS col1 FROM tab1 AS cor0
----
1120
704
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-5219
SELECT ALL + col2 DIV cor0.col1 AS col1 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-5219
SELECT ALL + col2 / cor0.col1 AS col1 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT DISTINCT ( + col2 ) - col0 AS col1 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT ALL 50 FROM tab0 AS cor0
----
50
50
50

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5222
SELECT - - CAST( cor0.col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-5222
SELECT - - CAST ( cor0.col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + col0 + col1 * col2 * 77 FROM tab1 AS cor0
----
108111
43954
96176

query I rowsort
SELECT ALL + + 14 * + 42 AS col0 FROM tab1 AS cor0
----
588
588
588

query I rowsort
SELECT + ( col1 ) + - col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - - col0 + col0 FROM tab2 cor0
----
14
156
158

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5227
SELECT ALL - CAST( col2 AS SIGNED ) * col1 FROM tab2 AS cor0
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort label-5227
SELECT ALL - CAST ( col2 AS INTEGER ) * col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT + - ( ( col0 ) ) FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL - col0 - col0 * + ( 1 ) FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT ALL + cor0.col1 - col2 * cor0.col1 * col0 FROM tab2 AS cor0
----
-119593
-51017
-5828

query I rowsort
SELECT DISTINCT ( - col0 ) + cor0.col2 AS col2 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT - + cor0.col1 * col2 + + col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT DISTINCT - col1 - col0 AS col1 FROM tab1 cor0
----
-29
-74
-93

query I rowsort
SELECT 33 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query I rowsort
SELECT DISTINCT + col0 * col1 - col1 AS col2 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT - + 34 FROM tab1 AS cor0
----
-34
-34
-34

query I rowsort
SELECT - + col1 * col0 + + col2 AS col2 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT 1 + cor0.col1 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 39b923c661908711dfacd7bdda640f1d

query I rowsort
SELECT ALL + + col1 + col1 AS col2 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT + col0 + col0 * col0 * + col2 FROM tab1
----
233536
489
614480

onlyif mysql # use DIV operator for integer division
query I rowsort label-5241
SELECT - col0 + - col1 DIV 29 FROM tab0 AS cor0
----
-26
-38
-92

skipif mysql # not compatible
query I rowsort label-5241
SELECT - col0 + - col1 / 29 FROM tab0 AS cor0
----
-26
-38
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col1 col2 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT - cor0.col2 - + 0 FROM tab1 AS cor0
----
-54
-57
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 52 * col1 col0 FROM tab1 AS cor0
----
1352
520
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-5245
SELECT ALL 15 DIV - col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5245
SELECT ALL 15 / - col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + ( - col0 ) + col0 * 8 * 88 FROM tab0 AS cor0
----
16872
24605
62567

query I rowsort
SELECT ALL + - ( 22 ) + - col1 AS col2 FROM tab1 cor0
----
-32
-35
-48

query I rowsort
SELECT + col2 + + ( - 58 ) + + col0 * - col0 FROM tab1
----
-13
-4097
-6362

onlyif mysql # use DIV operator for integer division
query I rowsort label-5249
SELECT - col2 DIV ( col0 ) col1 FROM tab1
----
-1
-18
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5249
SELECT - col2 / ( col0 ) col1 FROM tab1
----
-1
-18
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5250
SELECT - CAST( NULL AS DECIMAL ) * tab0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5250
SELECT - CAST ( NULL AS REAL ) * tab0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT col2 + - 30 AS col0 FROM tab1
----
24
27
66

query I rowsort
SELECT DISTINCT 41 * - col0 + 34 * - col2 AS col1 FROM tab2 cor0
----
-1205
-4082
-4531

query I rowsort
SELECT 70 + cor0.col0 AS col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to af4d97c5bbd17f69309da38efa1cea9d

query I rowsort
SELECT + col2 - + col1 FROM tab1
----
28
47
83

query I rowsort
SELECT 46 * 7 * - cor1.col2 AS col1 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to da55ddb504493de61de735ebc2cabb4e

query I rowsort
SELECT ALL - col0 * - cor0.col0 * cor0.col0 + col2 FROM tab2 AS cor0
----
370
474578
493077

query I rowsort
SELECT + - 30 AS col0 FROM tab2 cor0
----
-30
-30
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 + col2 col2 FROM tab2
----
57
58
69

query I rowsort
SELECT ALL - 36 * + tab2.col2 AS col1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 213d36a017de68db711a43536474af5c

query I rowsort
SELECT + col1 * ( - 96 ) FROM tab0 AS cor0
----
-8256
-8736
-9312

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5261
SELECT - - col1 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5261
SELECT - - col1 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 98 AS col2 FROM tab2
----
98

query I rowsort
SELECT 64 AS col0 FROM tab0
----
64
64
64

query I rowsort
SELECT - col1 + tab2.col0 * ( - col1 ) FROM tab2
----
-1360
-248
-4661

query I rowsort
SELECT 9 + col2 AS col2 FROM tab0
----
10
42
91

query I rowsort
SELECT - 6 + 2 * col1 * + 16 AS col2 FROM tab2 AS cor0
----
1882
538
986

query I rowsort
SELECT DISTINCT + col1 * + cor0.col2 + + col2 * cor0.col2 FROM tab1 AS cor0
----
10464
3819
4320

query I rowsort
SELECT DISTINCT - - col2 * cor0.col0 + + col0 * 97 FROM tab2 AS cor0
----
10665
868
9594

query I rowsort
SELECT ALL col2 * + 93 AS col2 FROM tab2 AS cor0
----
2418
2511
3534

onlyif mysql # use DIV operator for integer division
query I rowsort label-5270
SELECT + col1 * col0 DIV col0 + - CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
2
62
62

skipif mysql # not compatible
query I rowsort label-5270
SELECT + col1 * col0 / col0 + - CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT ALL + + 53 + ( col1 ) AS col2 FROM tab2 AS cor0
----
112
70
84

query I rowsort
SELECT DISTINCT 10 * cor0.col0 FROM tab1 AS cor0
----
30
640
800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * col0 col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL 72 AS col0 FROM tab2 AS cor0
----
72
72
72

query I rowsort
SELECT DISTINCT col0 + col1 + 77 FROM tab2
----
115
173
214

query I rowsort
SELECT DISTINCT + tab0.col1 * col2 + + col0 * - col1 + col1 FROM tab0
----
-3201
-546
860

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5277
SELECT DISTINCT col0 + - CAST( tab2.col2 AS SIGNED ) FROM tab2
----
-20
41
52

skipif mysql # not compatible
query I rowsort label-5277
SELECT DISTINCT col0 + - CAST ( tab2.col2 AS INTEGER ) FROM tab2
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-5278
SELECT + col2 DIV + col2 - - ( - col2 * - 53 + 30 ) FROM tab1
----
2893
3052
5119

skipif mysql # not compatible
query I rowsort label-5278
SELECT + col2 / + col2 - - ( - col2 * - 53 + 30 ) FROM tab1
----
2893
3052
5119

query I rowsort
SELECT DISTINCT + tab0.col0 * + 8 + ( + col0 ) AS col1 FROM tab0
----
216
315
801

skipif mysql # not compatible
query I rowsort
SELECT + ( 19 * col0 ) + - CAST ( col2 AS REAL ) * - col2 * ( - col0 ) FROM tab0
----
-25680
-596745
630

query I rowsort
SELECT DISTINCT - col1 * + ( col0 + + col2 ) * 48 FROM tab1
----
-109824
-58080
-71136

query I rowsort
SELECT ALL + cor1.col0 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT col1 + col2 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT DISTINCT - col1 * + col0 + - cor0.col0 AS col0 FROM tab1 AS cor0
----
-1120
-704
-81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5285
SELECT + 71 * + col0 + col1 * + CAST( ( - col0 ) * - ( 77 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
53824
6219
85760

skipif mysql # not compatible
query I rowsort label-5285
SELECT + 71 * + col0 + col1 * + CAST ( ( - col0 ) * - ( 77 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
53824
6219
85760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col2 col1 FROM tab2 AS cor0
----
-21
33
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-5287
SELECT DISTINCT + - cor0.col1 DIV + col0 FROM tab1 AS cor0
----
-8
0

skipif mysql # not compatible
query I rowsort label-5287
SELECT DISTINCT + - cor0.col1 / + col0 FROM tab1 AS cor0
----
-8
0

query I rowsort
SELECT DISTINCT + + col1 + - ( - col1 ) FROM tab0 AS cor0
----
172
182
194

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 CROSS JOIN tab2, tab0, tab1 AS cor1
----
3645 values hashing to 77ce60d8d42550cc1b5a38c7d1dc5d13

query I rowsort
SELECT ALL + ( + col2 ) AS col1 FROM tab2
----
26
27
38

query I rowsort
SELECT col2 * + cor0.col2 * + ( col0 ) + + col0 FROM tab2 AS cor0
----
114155
5110
52806

query I rowsort
SELECT + 52 * - col2 FROM tab2
----
-1352
-1404
-1976

query I rowsort
SELECT + ( tab2.col0 ) FROM tab2
----
7
78
79

query I rowsort
SELECT - col2 * col0 * col2 AS col2 FROM tab0
----
-26136
-35
-598436

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + 84 ) col0 FROM tab1
----
84
84
84

query I rowsort
SELECT ALL ( - 75 ) + - cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 490a87c9823c1f7b087c13e235fe9592

query I rowsort
SELECT ALL - col0 * - cor0.col1 + col0 AS col0 FROM tab0 AS cor0
----
2088
3430
8188

onlyif mysql # use DIV operator for integer division
query I rowsort label-5298
SELECT + 27 * cor0.col0 * - ( - col1 ) + col0 * col0 DIV + col1 + - col0 * - col0 FROM tab1 AS cor0
----
2115
21785
34972

skipif mysql # not compatible
query I rowsort label-5298
SELECT + 27 * cor0.col0 * - ( - col1 ) + col0 * col0 / + col1 + - col0 * - col0 FROM tab1 AS cor0
----
2115
21785
34972

query I rowsort
SELECT - col0 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT col2 + + cor0.col2 AS col0 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT + - cor0.col2 + cor0.col0 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT DISTINCT - col1 + col0 + 74 * + col2 AS col1 FROM tab2
----
1943
1974
2874

query I rowsort
SELECT DISTINCT + col1 * col0 * - col2 + col0 * + col2 FROM tab1
----
-32832
-4050
-92160

query I rowsort
SELECT ALL col1 + - col0 * 3 AS col2 FROM tab1 AS cor0
----
-182
-227
17

query I rowsort
SELECT + col2 + - 2 AS col0 FROM tab0 AS cor0
----
-1
31
80

query I rowsort
SELECT DISTINCT - col2 - - 79 FROM tab1 AS cor0
----
-17
22
25

query I rowsort
SELECT DISTINCT - + col2 * + 42 + + 59 FROM tab0 AS cor0
----
-1327
-3385
17

query I rowsort
SELECT DISTINCT - - col2 * + cor0.col2 + ( col2 ) - col2 AS col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT + - col0 + 22 * ( + col0 ) AS col1 FROM tab1 AS cor0
----
1344
1680
63

query I rowsort
SELECT ALL - + col1 * cor0.col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT + + cor0.col1 + ( cor0.col1 ) AS col2 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT + col1 - + ( 23 ) AS col0 FROM tab0 cor0
----
63
68
74

query I rowsort
SELECT - col0 - 72 FROM tab0 AS cor0
----
-107
-161
-96

query I rowsort
SELECT ( + ( + col1 ) ) * + 96 + col2 AS col2 FROM tab1 AS cor0
----
1017
1344
2550

query I rowsort
SELECT DISTINCT - + ( 21 ) * + col2 + ( - col1 ) FROM tab1 AS cor0
----
-1160
-1207
-2029

query I rowsort
SELECT DISTINCT col1 + + 55 FROM tab0 AS cor0
----
141
146
152

query I rowsort
SELECT col0 * + col0 + col0 FROM tab1 cor0
----
12
4160
6480

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 cor2, tab1 AS cor3
----
3645 values hashing to 85ee76cb25486c31b8f0abeb3f8683dc

query I rowsort
SELECT ALL + tab0.col0 * col1 + col1 AS col0 FROM tab0
----
2150
3492
8190

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5320
SELECT - - cor0.col1 - ( - col2 * CAST( + cor0.col1 AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
1261
1430
580

skipif mysql # not compatible
query I rowsort label-5320
SELECT - - cor0.col1 - ( - col2 * CAST ( + cor0.col1 AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT - ( col1 ) * col0 + - ( - col1 ) FROM tab0 AS cor0
----
-1978
-3298
-8008

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5322
SELECT + - col2 + - CAST( NULL AS SIGNED ) + col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5322
SELECT + - col2 + - CAST ( NULL AS INTEGER ) + col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5323
SELECT DISTINCT - + col0 * + ( 97 ) + col0 * 45 DIV col0 FROM tab0 cor0
----
-2283
-3350
-8588

skipif mysql # not compatible
query I rowsort label-5323
SELECT DISTINCT - + col0 * + ( 97 ) + col0 * 45 / col0 FROM tab0 cor0
----
-2283
-3350
-8588

query I rowsort
SELECT + col1 + + 70 AS col0 FROM tab2 AS cor0
----
101
129
87

query I rowsort
SELECT - col0 * 28 + col1 * col1 * - col1 FROM tab1 AS cor0
----
-17660
-2792
-4437

onlyif mysql # use DIV operator for integer division
query I rowsort label-5326
SELECT + cor0.col2 DIV 97 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5326
SELECT + cor0.col2 / 97 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT cor0.col0 + - ( + col0 * + col1 ) + col1 FROM tab2 AS cor0
----
-1247
-179
-4465

onlyif mysql # use DIV operator for integer division
query I rowsort label-5328
SELECT + cor0.col1 DIV col0 AS col1 FROM tab0 cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-5328
SELECT + cor0.col1 / col0 AS col1 FROM tab0 cor0
----
1
2
3

query I rowsort
SELECT ALL + + col1 * - col0 * - col1 FROM tab1 AS cor0
----
13520
2028
6400

query I rowsort
SELECT ALL col2 + col2 * col1 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT ALL + col1 * + col0 + cor0.col1 + col2 AS col0 FROM tab1 AS cor0
----
1149
158
707

query I rowsort
SELECT col0 * col2 + - col1 AS col2 FROM tab1 AS cor0
----
136
3638
7667

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5333
SELECT ALL - + cor0.col0 * CAST( col2 AS SIGNED ) FROM tab0 cor0
----
-35
-7298
-792

skipif mysql # not compatible
query I rowsort label-5333
SELECT ALL - + cor0.col0 * CAST ( col2 AS INTEGER ) FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT - cor0.col0 * + cor0.col0 * cor0.col0 AS col0 FROM tab1 cor0
----
-262144
-27
-512000

query I rowsort
SELECT - col0 * + col0 * col1 FROM tab0 AS cor0
----
-118825
-49536
-720811

query I rowsort
SELECT DISTINCT 54 * - ( col1 ) FROM tab0 AS cor0
----
-4644
-4914
-5238

query I rowsort
SELECT + cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5338
SELECT - CAST( - 47 AS SIGNED ) col1 FROM tab1, tab1 cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5338
SELECT - CAST ( - 47 AS INTEGER ) col1 FROM tab1, tab1 cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT - cor0.col1 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

query I rowsort
SELECT + + cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT DISTINCT - cor0.col1 + 70 FROM tab1, tab1 AS cor0
----
44
57
60

query I rowsort
SELECT DISTINCT col2 + - col0 + col1 AS col1 FROM tab0 AS cor0
----
63
84
95

query I rowsort
SELECT 4 + col0 FROM tab2
----
11
82
83

query I rowsort
SELECT col0 - + col1 AS col2 FROM tab0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT 54 - + col2 FROM tab0
----
-28
21
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( tab1.col2 ) * col1 col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT DISTINCT - col2 * col1 AS col2 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT col0 + cor0.col1 * cor0.col1 + col1 AS col1 FROM tab1 AS cor0
----
174
262
705

query I rowsort
SELECT + 21 * col2 * + col1 FROM tab2 AS cor0
----
13566
17577
32214

query I rowsort
SELECT + + 79 + col0 + + 36 FROM tab1 AS cor0
----
118
179
195

query I rowsort
SELECT ALL + 59 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3

query I rowsort
SELECT + 60 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5353
SELECT col1 + + CAST( col0 AS SIGNED ) * - col0 FROM tab2 AS cor0
----
-18
-6025
-6224

skipif mysql # not compatible
query I rowsort label-5353
SELECT col1 + + CAST ( col0 AS INTEGER ) * - col0 FROM tab2 AS cor0
----
-18
-6025
-6224

onlyif mysql # use DIV operator for integer division
query I rowsort label-5354
SELECT col1 * + col1 DIV tab2.col1 AS col2 FROM tab2
----
17
31
59

skipif mysql # not compatible
query I rowsort label-5354
SELECT col1 * + col1 / tab2.col1 AS col2 FROM tab2
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-5355
SELECT + ( - col1 ) * col0 DIV + col0 FROM tab1
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-5355
SELECT + ( - col1 ) * col0 / + col0 FROM tab1
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 78 col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
78

query I rowsort
SELECT ALL tab2.col0 + - col0 * 65 FROM tab2
----
-448
-4992
-5056

query I rowsort
SELECT DISTINCT + - col0 + - col1 AS col1 FROM tab0 cor0
----
-110
-132
-180

query I rowsort
SELECT DISTINCT - + col1 + + cor0.col1 + + col0 AS col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT - col2 + cor0.col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col2 * cor0.col0 + col1 AS col0 FROM tab1 AS cor0
----
-136
-3638
-7667

onlyif mysql # use DIV operator for integer division
query I rowsort label-5362
SELECT DISTINCT col0 * - col0 + cor0.col1 DIV col2 FROM tab1 AS cor0
----
-4096
-6400
-9

skipif mysql # not compatible
query I rowsort label-5362
SELECT DISTINCT col0 * - col0 + cor0.col1 / col2 FROM tab1 AS cor0
----
-4096
-6400
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + col0 col2 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT cor0.col0 + 18 FROM tab0 cor0
----
107
42
53

query I rowsort
SELECT DISTINCT + 35 AS col1 FROM tab2
----
35

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( + tab0.col2 AS REAL ) * + col2 AS col2 FROM tab0
----
1
1089
6724

query I rowsort
SELECT + 40 * + col0 + - col1 AS col1 FROM tab2
----
249
3061
3143

query I rowsort
SELECT + cor0.col0 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT ALL + + 88 * - 10 AS col0 FROM tab0 AS cor0
----
-880
-880
-880

query I rowsort
SELECT ALL + 50 * + 97 AS col2 FROM tab1 AS cor0
----
4850
4850
4850

query I rowsort
SELECT - 18 * col1 AS col2 FROM tab2 AS cor0
----
-1062
-306
-558

query I rowsort
SELECT - ( col2 ) * col0 FROM tab2 cor0
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col0 + cor0.col0 + - 10 col2 FROM tab0 AS cor0
----
-2050
-3370
-8020

query I rowsort
SELECT DISTINCT + - 72 * cor0.col0 FROM tab1 AS cor0
----
-216
-4608
-5760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5375
SELECT - ( col1 ) * + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5375
SELECT - ( col1 ) * + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 88 FROM tab0 AS cor0
----
88
88
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( col1 ) + - col2 col2 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT ALL + 0 * col0 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + 26 AS col0 FROM tab2 AS cor0
----
-26

query I rowsort
SELECT - - 96 FROM tab1 AS cor0
----
96
96
96

query I rowsort
SELECT ALL - + cor0.col2 + + cor0.col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT DISTINCT - - col1 + + cor0.col1 FROM tab1 cor0
----
20
26
52

query I rowsort
SELECT ALL ( - col1 ) * col1 + col1 AS col1 FROM tab0 AS cor0
----
-7310
-8190
-9312

query I rowsort
SELECT 45 - col0 FROM tab0
----
-44
10
21

query I rowsort
SELECT DISTINCT - col1 * + col2 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT + 78 FROM tab0, tab1 AS cor0
----
78

query I rowsort
SELECT ALL - - cor0.col2 + cor0.col1 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to c78408d90c4e135ef1bbc23c5252cd1d

query I rowsort
SELECT ALL 48 * col1 AS col1 FROM tab0 AS cor0
----
4128
4368
4656

query I rowsort
SELECT tab2.col0 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT DISTINCT - ( - col2 ) * col1 * - ( col2 ) FROM tab0
----
-611884
-93654
-97

query IIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
243 values hashing to b3323704f6873113d863f8e27386b356

query I rowsort
SELECT ALL + 21 AS col1 FROM tab1 AS cor0
----
21
21
21

query I rowsort
SELECT + - ( col1 ) * col1 + - 13 FROM tab2 AS cor0
----
-302
-3494
-974

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5394
SELECT DISTINCT + CAST( NULL AS SIGNED ) + col2 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5394
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col2 AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5395
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + col0 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5395
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + col0 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + - col0 * col2 FROM tab1 cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-5397
SELECT ALL + CAST( + col0 AS SIGNED ) + col1 DIV ( + 3 ) AS col1 FROM tab1 AS cor0
----
11
67
84

skipif mysql # not compatible
query I rowsort label-5397
SELECT ALL + CAST ( + col0 AS INTEGER ) + col1 / ( + 3 ) AS col1 FROM tab1 AS cor0
----
11
67
84

query I rowsort
SELECT DISTINCT + ( - col0 ) * cor0.col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT cor0.col1 + - ( - col1 + ( ( col1 ) ) ) FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT 28 * col1 * + col2 AS col1 FROM tab0
----
208936
2716
79464

query I rowsort
SELECT + 44 AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b

query I rowsort
SELECT ALL - cor0.col1 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
-53
-9
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col0 + + col2 col2 FROM tab2 AS cor0
----
130
155
61

query I rowsort
SELECT DISTINCT + 56 * - cor0.col1 * col1 + col1 AS col0 FROM tab2 AS cor0
----
-16167
-194877
-53785

query I rowsort
SELECT 73 FROM tab1, tab2 cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 9f0f371d979e70a792c8597c6559f0e2

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab2, tab0 cor1
----
972 values hashing to 380241bbc503a31e70494611a87ffd99

query I rowsort
SELECT - 31 AS col2 FROM tab2 AS cor0
----
-31
-31
-31

query I rowsort
SELECT + + 59 + - col0 AS col2 FROM tab2 AS cor0
----
-19
-20
52

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0, tab1 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to 4c87430a2010fee8daf6d04acf0ad703

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5410
SELECT - + col2 + - CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5410
SELECT - + col2 + - CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * + col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ( - cor0.col2 ) AS col1 FROM tab1, tab0 cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT DISTINCT + col0 * - 79 * ( - cor0.col1 + - col1 ) FROM tab2 AS cor0
----
212194
34286
727116

query I rowsort
SELECT ALL col1 * + col1 + col2 * + col1 FROM tab1
----
1417
2080
670

onlyif mysql # use DIV operator for integer division
query I rowsort label-5415
SELECT DISTINCT - col2 DIV ( - col1 ) + col0 * col1 * - col0 FROM tab1
----
-232
-40955
-83193

skipif mysql # not compatible
query I rowsort label-5415
SELECT DISTINCT - col2 / ( - col1 ) + col0 * col1 * - col0 FROM tab1
----
-232
-40955
-83193

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col2 - col2 col2 FROM tab2 cor0
----
162
2002
2964

query I rowsort
SELECT ALL - col2 + - cor0.col2 FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT col1 * - col0 + col0 AS col2 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT ALL + cor0.col2 * - ( cor0.col0 ) AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT col0 * col2 - col1 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT DISTINCT + col1 + + col0 * cor0.col2 FROM tab0 cor0
----
132
7389
878

onlyif mysql # use DIV operator for integer division
query I rowsort label-5422
SELECT + col0 * cor0.col2 * cor0.col0 + col2 DIV - col1 FROM tab2 cor0
----
1323
158184
237156

skipif mysql # not compatible
query I rowsort label-5422
SELECT + col0 * cor0.col2 * cor0.col0 + col2 / - col1 FROM tab2 cor0
----
1323
158184
237156

onlyif mysql # use DIV operator for integer division
query I rowsort label-5423
SELECT DISTINCT + col0 DIV + col0 + col2 * 7 + - col1 AS col2 FROM tab1 AS cor0
----
353
390
660

skipif mysql # not compatible
query I rowsort label-5423
SELECT DISTINCT + col0 / + col0 + col2 * 7 + - col1 AS col2 FROM tab1 AS cor0
----
353
390
660

query I rowsort
SELECT ALL + cor0.col2 - col0 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT 13 * cor0.col2 + - col2 FROM tab1 AS cor0
----
1152
648
684

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5426
SELECT DISTINCT + col2 + CAST( - col1 AS SIGNED ) * + col0 AS col1 FROM tab0
----
-2031
-3394
-8017

skipif mysql # not compatible
query I rowsort label-5426
SELECT DISTINCT + col2 + CAST ( - col1 AS INTEGER ) * + col0 AS col1 FROM tab0
----
-2031
-3394
-8017

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 34 * 33 col1 FROM tab1
----
107712
60588
63954

query I rowsort
SELECT ALL - 20 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

query I rowsort
SELECT 18 FROM tab1, tab1 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

onlyif mysql # use DIV operator for integer division
query I rowsort label-5430
SELECT - col1 DIV - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5430
SELECT - col1 / - col2 FROM tab1
----
0
0
0

query I rowsort
SELECT tab2.col2 * tab2.col2 AS col0 FROM tab2
----
1444
676
729

query I rowsort
SELECT col0 + 68 + tab2.col2 AS col2 FROM tab2
----
102
172
185

query I rowsort
SELECT col1 * 13 FROM tab2
----
221
403
767

onlyif mysql # use DIV operator for integer division
query I rowsort label-5434
SELECT col2 + CAST( col2 AS SIGNED ) DIV + tab1.col1 AS col2 FROM tab1
----
103
56
62

skipif mysql # not compatible
query I rowsort label-5434
SELECT col2 + CAST ( col2 AS INTEGER ) / + tab1.col1 AS col2 FROM tab1
----
103
56
62

query I rowsort
SELECT col2 * + 85 AS col0 FROM tab1 AS cor0
----
4590
4845
8160

query I rowsort
SELECT + col2 + cor0.col1 * + col1 + - col1 AS col0 FROM tab0 AS cor0
----
7343
8272
9313

query I rowsort
SELECT + + ( 67 ) * col0 + - ( + col1 ) + - cor0.col2 * 59 FROM tab0 AS cor0
----
-425
1034
2189

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5438
SELECT + CAST( NULL AS SIGNED ) + - 36 + - col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5438
SELECT + CAST ( NULL AS INTEGER ) + - 36 + - col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - cor0.col2 * - col1 - - col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT + col2 * + col1 - col0 FROM tab0 AS cor0
----
2814
62
7373

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5441
SELECT + col0 * col0 + + ( - 84 ) * col0 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5441
SELECT + col0 * col0 + + ( - 84 ) * col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 * + col1 + cor0.col2 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
-406
-4345
-6630

query I rowsort
SELECT 22 + + col1 FROM tab2 AS cor0
----
39
53
81

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col0 * col0 + CAST ( 99 AS REAL ) FROM tab1 AS cor0
----
108
4195
6499

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 88 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query I rowsort
SELECT + 42 * col1 AS col0 FROM tab1
----
1092
420
546

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col2 * - col0 ) col1 FROM tab0
----
35
7298
792

query I rowsort
SELECT ALL - col2 * tab0.col0 * + col1 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT + col1 + col0 * - 27 FROM tab0 AS cor0
----
-2312
-562
-848

query I rowsort
SELECT + col1 * - ( - col0 ) FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT - ( - col1 * col0 ) AS col1 FROM tab2
----
1343
217
4602

query I rowsort
SELECT - ( - tab1.col1 ) AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT + cor0.col2 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT 14 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0

query I rowsort
SELECT DISTINCT + 61 FROM tab0, tab1 cor0, tab1 AS cor1
----
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-5456
SELECT ALL - col0 DIV col2 AS col0 FROM tab0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-5456
SELECT ALL - col0 / col2 AS col0 FROM tab0
----
-1
-35
0

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab2, tab2 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to d752a38ff42b067eedd12ad6c3f9365e

query I rowsort
SELECT col1 * + 83 AS col1 FROM tab0 AS cor0
----
7138
7553
8051

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 37 col2 FROM tab1 AS cor0
----
-1998
-2109
-3552

query I rowsort
SELECT DISTINCT - - col0 + - ( + cor0.col1 * cor0.col2 ) AS col0 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT - + cor0.col0 * - col2 AS col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL col2 + + 47 FROM tab2 AS cor0
----
73
74
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-5463
SELECT ALL + col2 DIV - col1 - + tab0.col2 * - col0 AS col0 FROM tab0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-5463
SELECT ALL + col2 / - col1 - + tab0.col2 * - col0 AS col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT + col1 + + col2 - 70 FROM tab2
----
-12
-15
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col2 + + col2 col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + ( + col2 ) AS col0 FROM tab2
----
26
27
38

query I rowsort
SELECT DISTINCT col0 - - col2 FROM tab1
----
121
176
57

query I rowsort
SELECT + + 36 + col0 FROM tab2 AS cor0
----
114
115
43

onlyif mysql # use DIV operator for integer division
query I rowsort label-5469
SELECT + col1 DIV - col0 + col0 FROM tab1 cor0
----
-5
64
80

skipif mysql # not compatible
query I rowsort label-5469
SELECT + col1 / - col0 + col0 FROM tab1 cor0
----
-5
64
80

query I rowsort
SELECT - - cor0.col1 + + cor0.col0 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to d994d266bacb99d3939b70b2c7903ce8

onlyif mysql # use DIV operator for integer division
query I rowsort label-5471
SELECT ALL - + cor0.col2 DIV 89 + 9 AS col1 FROM tab0 AS cor0
----
9
9
9

skipif mysql # not compatible
query I rowsort label-5471
SELECT ALL - + cor0.col2 / 89 + 9 AS col1 FROM tab0 AS cor0
----
9
9
9

query I rowsort
SELECT DISTINCT cor0.col0 * col2 - ( - cor0.col1 ) FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT ALL - - col2 * col2 * + 39 + + cor0.col2 FROM tab2 AS cor0
----
26390
28458
56354

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5474
SELECT DISTINCT col0 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5474
SELECT DISTINCT col0 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - - col2 + + ( col1 ) * col0 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT ALL col2 + 75 * 62 FROM tab0 AS cor0
----
4651
4683
4732

onlyif mysql # use DIV operator for integer division
query I rowsort label-5477
SELECT ALL - + col1 + - 46 DIV - col1 AS col0 FROM tab1 AS cor0
----
-10
-25
-6

skipif mysql # not compatible
query I rowsort label-5477
SELECT ALL - + col1 + - 46 / - col1 AS col0 FROM tab1 AS cor0
----
-10
-25
-6

query I rowsort
SELECT col1 * + col1 + col2 * col0 * 46 AS col0 FROM tab1 AS cor0
----
167908
353449
8128

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 col1 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT cor0.col2 + col0 * cor0.col1 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT - col2 - cor0.col1 AS col0 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT + ( + col2 + - col1 ) AS col0 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT col0 - col1 AS col0 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT - col0 + - 27 AS col1 FROM tab1 AS cor0
----
-107
-30
-91

onlyif mysql # use DIV operator for integer division
query I rowsort label-5485
SELECT ALL cor0.col1 DIV + col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5485
SELECT ALL cor0.col1 / + col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT + col2 * 20 - - cor0.col2 FROM tab0 AS cor0
----
1722
21
693

onlyif mysql # use DIV operator for integer division
query I rowsort label-5487
SELECT DISTINCT + cor0.col2 DIV + 9 + - col2 * col1 AS col1 FROM tab2 AS cor0
----
-1532
-642
-834

skipif mysql # not compatible
query I rowsort label-5487
SELECT DISTINCT + cor0.col2 / + 9 + - col2 * col1 AS col1 FROM tab2 AS cor0
----
-1532
-642
-834

query I rowsort
SELECT DISTINCT - + col0 * - 10 + col2 FROM tab0 cor0
----
273
351
972

query I rowsort
SELECT DISTINCT - cor0.col0 * + ( 1 ) + - col1 AS col1 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT ALL cor0.col1 * 42 - - 26 FROM tab2 cor0
----
1328
2504
740

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col2 * col1 col1 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT col2 * - tab2.col0 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT + col1 + - col2 AS col2 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT ALL - col0 * tab2.col2 + - col1 AS col1 FROM tab2 WHERE NOT ( NULL ) >= - col1 + - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col2 col2 FROM tab0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT ALL - col0 * col2 + - CAST ( - ( col2 ) AS REAL ) * - col1 col0 FROM tab2 AS cor0
----
-1026
-3562
-3648

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + tab2.col0 * - tab2.col2 * col0 col0 FROM tab2
----
-1296
-158158
-237120

onlyif mysql # use DIV operator for integer division
query I rowsort label-5498
SELECT DISTINCT - col0 + col2 DIV + col0 FROM tab1
----
-64
-79
15

skipif mysql # not compatible
query I rowsort label-5498
SELECT DISTINCT - col0 + col2 / + col0 FROM tab1
----
-64
-79
15

query I rowsort
SELECT ALL - col1 + + col2 AS col0 FROM tab0
----
-53
-9
-96

query III rowsort
SELECT * FROM tab2 WHERE + col2 IN ( - col1 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 * col2 * + col0 = col1
----

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5502
SELECT DISTINCT + - col1 * col1 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5502
SELECT DISTINCT + - col1 * col1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + - 59 * col0 + - 50 AS col1 FROM tab2 AS cor0
----
-463
-4652
-4711

onlyif mysql # use DIV operator for integer division
query I rowsort label-5504
SELECT + col0 DIV + col1 FROM tab1
----
0
6
6

skipif mysql # not compatible
query I rowsort label-5504
SELECT + col0 / + col1 FROM tab1
----
0
6
6

query I rowsort
SELECT tab2.col0 - + col1 AS col1 FROM tab2
----
-24
19
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-5506
SELECT DISTINCT + col0 * + col0 - col1 DIV - col0 FROM tab1
----
17
4096
6400

skipif mysql # not compatible
query I rowsort label-5506
SELECT DISTINCT + col0 * + col0 - col1 / - col0 FROM tab1
----
17
4096
6400

onlyif mysql # use DIV operator for integer division
query I rowsort label-5507
SELECT DISTINCT + tab1.col0 + tab1.col0 DIV col0 AS col2 FROM tab1
----
4
65
81

skipif mysql # not compatible
query I rowsort label-5507
SELECT DISTINCT + tab1.col0 + tab1.col0 / col0 AS col2 FROM tab1
----
4
65
81

query I rowsort
SELECT col1 - - col2 AS col1 FROM tab0
----
119
173
98

query I rowsort
SELECT ALL - 27 * col2 FROM tab2 AS cor0
----
-1026
-702
-729

query I rowsort
SELECT DISTINCT 32 FROM tab1 AS cor0
----
32

query I rowsort
SELECT + cor0.col2 + col0 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT ALL + + col0 * col1 AS col1 FROM tab0 cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-5513
SELECT + col0 * col2 DIV ( col2 + col0 ) FROM tab0 AS cor0
----
0
13
42

skipif mysql # not compatible
query I rowsort label-5513
SELECT + col0 * col2 / ( col2 + col0 ) FROM tab0 AS cor0
----
0
13
42

query I rowsort
SELECT ALL ( + col0 ) * col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT + 88 + - cor0.col0 AS col0 FROM tab0 AS cor0
----
-1
53
64

query I rowsort
SELECT DISTINCT + 68 AS col1 FROM tab0 AS cor0
----
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 99 col0 FROM tab0
----
99
99
99

query I rowsort
SELECT ALL + col0 + - cor0.col0 AS col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT - col1 + + 85 * + col1 * 26 FROM tab1
----
22090
28717
57434

onlyif mysql # use DIV operator for integer division
query I rowsort label-5520
SELECT + col1 DIV 70 + + ( - col0 ) FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-5520
SELECT + col1 / 70 + + ( - col0 ) FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT + 41 * - tab0.col0 - 98 FROM tab0
----
-1082
-1533
-3747

query I rowsort
SELECT DISTINCT + - 68 + col0 AS col0 FROM tab1 AS cor0
----
-4
-65
12

query I rowsort
SELECT DISTINCT + - 12 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-12

query I rowsort
SELECT DISTINCT 47 AS col2 FROM tab2, tab1 AS cor0
----
47

query I rowsort
SELECT DISTINCT 49 AS col1 FROM tab0, tab0 AS cor0
----
49

query I rowsort
SELECT ALL + col1 + - tab2.col2 AS col0 FROM tab2
----
-21
33
4

query I rowsort
SELECT ALL - cor0.col1 + col0 * - col0 FROM tab2 AS cor0
----
-6143
-6258
-80

query I rowsort
SELECT DISTINCT + col0 * col1 + 73 * col1 FROM tab1
----
1370
1976
1989

query I rowsort
SELECT + 18 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 AS cor2, tab0 cor3
----
3645 values hashing to 7e665e04e6102323f69d70091871d1d2

query I rowsort
SELECT DISTINCT 61 * col1 FROM tab1
----
1586
610
793

query I rowsort
SELECT DISTINCT 38 AS col1 FROM tab2
----
38

query I rowsort
SELECT ALL + 85 * + col1 FROM tab0
----
7310
7735
8245

query I rowsort
SELECT ALL - 52 * 69 FROM tab0
----
-3588
-3588
-3588

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5535
SELECT ALL - CAST( NULL AS SIGNED ) / 87 col0 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5535
SELECT ALL - CAST ( NULL AS INTEGER ) / 87 col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5536
SELECT ALL + col0 DIV - col0 + + col1 FROM tab1 AS cor0
----
12
25
9

skipif mysql # not compatible
query I rowsort label-5536
SELECT ALL + col0 / - col0 + + col1 FROM tab1 AS cor0
----
12
25
9

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0, tab0 cor1, tab2 AS cor2
----
972 values hashing to 591a9a93560839231c038a1e10bd240a

onlyif mysql # use DIV operator for integer division
query I rowsort label-5538
SELECT ALL col2 DIV 11 + cor0.col0 FROM tab0 AS cor0
----
27
35
96

skipif mysql # not compatible
query I rowsort label-5538
SELECT ALL col2 / 11 + cor0.col0 FROM tab0 AS cor0
----
27
35
96

query I rowsort
SELECT DISTINCT + col2 + ( col1 ) FROM tab0 AS cor0
----
119
173
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5540
SELECT ALL + CAST( NULL AS SIGNED ) * col0 * + col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5540
SELECT ALL + CAST ( NULL AS INTEGER ) * col0 * + col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5541
SELECT DISTINCT - 21 + - col0 DIV + col0 FROM tab0 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-5541
SELECT DISTINCT - 21 + - col0 / + col0 FROM tab0 AS cor0
----
-22

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5542
SELECT ( cor0.col1 ) + col1 * CAST( - 95 AS SIGNED ) * - col1 AS col0 FROM tab2 AS cor0
----
27472
330754
91326

skipif mysql # not compatible
query I rowsort label-5542
SELECT ( cor0.col1 ) + col1 * CAST ( - 95 AS INTEGER ) * - col1 AS col0 FROM tab2 AS cor0
----
27472
330754
91326

query I rowsort
SELECT DISTINCT + col2 + col0 + + col0 AS col1 FROM tab0 AS cor0
----
260
71
81

query I rowsort
SELECT DISTINCT ( col0 ) + col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL - ( 85 ) AS col1 FROM tab1 AS cor0
----
-85
-85
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-5546
SELECT + ( cor0.col2 ) + + col1 DIV ( 19 ) FROM tab1 AS cor0
----
55
57
96

skipif mysql # not compatible
query I rowsort label-5546
SELECT + ( cor0.col2 ) + + col1 / ( 19 ) FROM tab1 AS cor0
----
55
57
96

query I rowsort
SELECT ALL + col0 * cor0.col0 + col1 AS col1 FROM tab0 AS cor0
----
1322
662
8012

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col0 col0 FROM tab0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT + 26 + col0 AS col2 FROM tab0
----
115
50
61

query I rowsort
SELECT DISTINCT - col2 * - col0 * col2 + 14 AS col2 FROM tab0
----
26150
49
598450

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5551
SELECT + - col0 * - CAST( NULL AS SIGNED ) + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5551
SELECT + - col0 * - CAST ( NULL AS INTEGER ) + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5552
SELECT DISTINCT col0 + col0 DIV col2 FROM tab1 AS cor0
----
3
65
80

skipif mysql # not compatible
query I rowsort label-5552
SELECT DISTINCT col0 + col0 / col2 FROM tab1 AS cor0
----
3
65
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5553
SELECT tab2.col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5553
SELECT tab2.col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * + ( col1 ) * col0 FROM tab1
----
234
40960
83200

onlyif mysql # use DIV operator for integer division
query I rowsort label-5555
SELECT ALL + tab2.col2 DIV - col0 FROM tab2
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-5555
SELECT ALL + tab2.col2 / - col0 FROM tab2
----
-3
0
0

query I rowsort
SELECT ALL - col2 * col1 + + 86 * - col0 FROM tab2 AS cor0
----
-1439
-7440
-8242

onlyif mysql # use DIV operator for integer division
query I rowsort label-5557
SELECT - + cor0.col0 DIV 79 + + 35 FROM tab0 AS cor0
----
34
35
35

skipif mysql # not compatible
query I rowsort label-5557
SELECT - + cor0.col0 / 79 + + 35 FROM tab0 AS cor0
----
34
35
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-5558
SELECT DISTINCT - col2 DIV - 3 + ( + col1 + 2 ) FROM tab0 AS cor0
----
120
99

skipif mysql # not compatible
query I rowsort label-5558
SELECT DISTINCT - col2 / - 3 + ( + col1 + 2 ) FROM tab0 AS cor0
----
120
99

query I rowsort
SELECT - cor0.col2 * ( ( - col2 ) ) AS col0 FROM tab2 cor0
----
1444
676
729

query I rowsort
SELECT ALL - - col2 + + 33 AS col0 FROM tab0 AS cor0
----
115
34
66

query I rowsort
SELECT DISTINCT - 59 AS col0 FROM tab0
----
-59

query I rowsort
SELECT DISTINCT - 70 FROM tab2
----
-70

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( - col1 AS REAL ) FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL + cor0.col2 + - 58 AS col1 FROM tab1 AS cor0
----
-1
-4
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5565
SELECT CAST( + col1 AS SIGNED ) * col1 * + col0 AS col1 FROM tab0 AS cor0
----
177504
329315
737009

skipif mysql # not compatible
query I rowsort label-5565
SELECT CAST ( + col1 AS INTEGER ) * col1 * + col0 AS col1 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT - + cor0.col0 AS col0 FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT + - 55 AS col2 FROM tab2 AS cor0
----
-55

query I rowsort
SELECT DISTINCT 77 * - tab2.col1 FROM tab2
----
-1309
-2387
-4543

query I rowsort
SELECT DISTINCT cor0.col1 FROM tab0, tab2 cor0
----
17
31
59

query I rowsort
SELECT DISTINCT ( + 10 ) * col0 AS col1 FROM tab2 AS cor0
----
70
780
790

query I rowsort
SELECT DISTINCT + ( col1 ) FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT col1 - - col0 FROM tab2 AS cor0
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5573
SELECT ALL + + 63 DIV + col1 + ( 96 ) * + col2 FROM tab1 AS cor0
----
5186
5478
9220

skipif mysql # not compatible
query I rowsort label-5573
SELECT ALL + + 63 / + col1 + ( 96 ) * + col2 FROM tab1 AS cor0
----
5186
5478
9220

query I rowsort
SELECT DISTINCT - col2 - cor0.col1 AS col2 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT + 14 - + col2 AS col2 FROM tab1 AS cor0
----
-40
-43
-82

query I rowsort
SELECT ALL + col0 - col2 FROM tab0 cor0
----
-9
34
7

query I rowsort
SELECT + - col2 + - col1 AS col0 FROM tab2 AS cor0
----
-55
-58
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * - col2 col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT + 86 * - col1 AS col1 FROM tab2 AS cor0
----
-1462
-2666
-5074

onlyif mysql # use DIV operator for integer division
query I rowsort label-5580
SELECT ALL cor0.col0 * col0 + col1 DIV 30 AS col1 FROM tab2 AS cor0
----
50
6085
6241

skipif mysql # not compatible
query I rowsort label-5580
SELECT ALL cor0.col0 * col0 + col1 / 30 AS col1 FROM tab2 AS cor0
----
50
6085
6241

query I rowsort
SELECT ALL - + col0 * - col2 + col1 AS col2 FROM tab1 cor0
----
188
3658
7693

query I rowsort
SELECT ALL - cor0.col2 + col0 AS col0 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT cor0.col0 + + col1 AS col2 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT 53 FROM tab1 cor0
----
53
53
53

query I rowsort
SELECT ( 1 + + col0 ) FROM tab0
----
25
36
90

query I rowsort
SELECT DISTINCT - ( + col1 ) * + col0 + - 74 + col2 * - ( col2 ) * col2 FROM tab1 AS cor0
----
-157616
-185907
-885850

query I rowsort
SELECT DISTINCT + - 44 * - col0 FROM tab0 AS cor0
----
1056
1540
3916

onlyif mysql # use DIV operator for integer division
query I rowsort label-5588
SELECT col1 + + col0 DIV + 73 FROM tab1 AS cor0
----
10
14
26

skipif mysql # not compatible
query I rowsort label-5588
SELECT col1 + + col0 / + 73 FROM tab1 AS cor0
----
10
14
26

query I rowsort
SELECT DISTINCT ( - cor0.col2 ) FROM tab0, tab2 AS cor0, tab2 AS cor1
----
-26
-27
-38

query I rowsort
SELECT + col0 * - col2 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT - 18 * + col1 FROM tab1 AS cor0
----
-180
-234
-468

query I rowsort
SELECT - - col2 * + 97 - col2 FROM tab2 AS cor0
----
2496
2592
3648

query I rowsort
SELECT - - col2 * - col0 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5594
SELECT - col0 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5594
SELECT - col0 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + cor0.col2 * 9 + col1 AS col1 FROM tab1 AS cor0
----
512
523
877

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1, tab1 AS cor0, tab1 AS cor1
----
972 values hashing to 635619591835474e6aa6acdff4ab166c

query I rowsort
SELECT ALL - 56 FROM tab0
----
-56
-56
-56

query I rowsort
SELECT ALL - 49 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to adfccb10c9468825d9961e3613140f89

onlyif mysql # use DIV operator for integer division
query I rowsort label-5599
SELECT col0 + - col2 DIV col2 FROM tab1
----
2
63
79

skipif mysql # not compatible
query I rowsort label-5599
SELECT col0 + - col2 / col2 FROM tab1
----
2
63
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-5600
SELECT ALL + col0 DIV - col1 AS col0 FROM tab2 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-5600
SELECT ALL + col0 / - col1 AS col0 FROM tab2 AS cor0
----
-1
-4
0

query I rowsort
SELECT col1 - col1 * col1 * + col2 AS col2 FROM tab1 AS cor0
----
-16211
-36478
-5690

query I rowsort
SELECT - 77 * cor0.col0 + col2 * col1 FROM tab2 cor0
----
-4472
-5437
298

query I rowsort
SELECT + 60 + - col0 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
-1165
-516
-7861

query I rowsort
SELECT - col0 * + 49 FROM tab2 AS cor0
----
-343
-3822
-3871

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5605
SELECT ALL CAST( NULL AS SIGNED ) * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5605
SELECT ALL CAST ( NULL AS INTEGER ) * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 95 * - cor0.col0 * + col1 FROM tab0 AS cor0
----
-196080
-322525
-769405

query I rowsort
SELECT ( - 69 ) * cor0.col2 FROM tab2 AS cor0
----
-1794
-1863
-2622

query I rowsort
SELECT cor0.col0 * col2 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT - ( + ( + tab1.col1 ) ) * - col2 + - col0 FROM tab1
----
1168
1401
506

query I rowsort
SELECT ALL 98 FROM tab0 AS cor0
----
98
98
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5611
SELECT CAST( + 55 AS SIGNED ) * + cor0.col1 AS col2 FROM tab0 cor0
----
4730
5005
5335

skipif mysql # not compatible
query I rowsort label-5611
SELECT CAST ( + 55 AS INTEGER ) * + cor0.col1 AS col2 FROM tab0 cor0
----
4730
5005
5335

query I rowsort
SELECT ALL - 27 * col2 AS col0 FROM tab1 AS cor0
----
-1458
-1539
-2592

query I rowsort
SELECT DISTINCT col0 + + col0 FROM tab2 cor0
----
14
156
158

onlyif mysql # use DIV operator for integer division
query I rowsort label-5614
SELECT DISTINCT + 64 DIV - col0 col2 FROM tab0
----
-1
-2
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5614
SELECT DISTINCT + 64 / - col0 col2 FROM tab0
----
-1
-2
0

query I rowsort
SELECT DISTINCT cor0.col1 AS col1 FROM tab1, tab0 cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 col1 FROM tab0, tab1, tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT - ( + 23 ) * + col1 FROM tab2 AS cor0
----
-1357
-391
-713

query I rowsort
SELECT - ( 12 ) FROM tab1 AS cor0
----
-12
-12
-12

onlyif mysql # use DIV operator for integer division
query I rowsort label-5619
SELECT ALL - cor0.col2 DIV col1 AS col1 FROM tab2 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-5619
SELECT ALL - cor0.col2 / col1 AS col1 FROM tab2 AS cor0
----
-2
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5620
SELECT DISTINCT + + col2 DIV 10 + col2 FROM tab2 AS cor0
----
28
29
41

skipif mysql # not compatible
query I rowsort label-5620
SELECT DISTINCT + + col2 / 10 + col2 FROM tab2 AS cor0
----
28
29
41

query I rowsort
SELECT - ( + col0 ) + col2 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT + - ( col0 ) - - col0 AS col0 FROM tab2 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col1 + col1 * + 79 col0 FROM tab0 AS cor0
----
-1092
-1746
-602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 44 - - 68 * - col0 col2 FROM tab1
----
-160
-4308
-5396

query I rowsort
SELECT - ( + col0 ) * col2 - + col0 AS col1 FROM tab1
----
-165
-3712
-7760

query I rowsort
SELECT DISTINCT + - col1 - - col1 * col1 FROM tab2 AS cor0
----
272
3422
930

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * col2 col0 FROM tab0 AS cor0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col1 ) col2 FROM tab2 AS cor0
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 52 col0 FROM tab2 AS cor0
----
52
52
52

query I rowsort
SELECT + - col2 * - 99 AS col1 FROM tab2 cor0
----
2574
2673
3762

query I rowsort
SELECT DISTINCT - cor0.col1 + 47 AS col2 FROM tab0 AS cor0
----
-39
-44
-50

query I rowsort
SELECT ALL - col1 + 81 * col2 FROM tab1 AS cor0
----
4348
4607
7763

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5633
SELECT ALL + - cor0.col1 / cor0.col0 + col2 * + CAST( NULL AS SIGNED ) / col1 + - col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5633
SELECT ALL + - cor0.col1 / cor0.col0 + col2 * + CAST ( NULL AS INTEGER ) / col1 + - col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5634
SELECT + - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5634
SELECT + - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( - cor0.col1 ) * col1 AS col1 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT ALL - - 36 * col1 + + col0 AS col2 FROM tab0 AS cor0
----
3120
3365
3527

query I rowsort
SELECT - + ( + 13 ) FROM tab2 AS cor0
----
-13
-13
-13

onlyif mysql # use DIV operator for integer division
query I rowsort label-5638
SELECT 88 DIV col0 + + 57 * + ( col2 ) AS col1 FROM tab0
----
1884
4674
59

skipif mysql # not compatible
query I rowsort label-5638
SELECT 88 / col0 + + 57 * + ( col2 ) AS col1 FROM tab0
----
1884
4674
59

query I rowsort
SELECT - col1 + + col0 + + col0 * - col2 FROM tab0 AS cor0
----
-7300
-854
-97

query I rowsort
SELECT col1 * cor0.col2 + ( - cor0.col0 ) + col1 AS col1 FROM tab1 cor0
----
1181
1427
516

query I rowsort
SELECT - - 29 + - col1 * col0 FROM tab0 AS cor0
----
-2035
-3366
-8070

query I rowsort
SELECT + col1 + - cor0.col1 * + col2 + + ( + col2 ) FROM tab1 cor0
----
-1139
-1324
-503

query I rowsort
SELECT DISTINCT ( cor0.col0 ) FROM tab0, tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL col0 + + cor0.col0 AS col1 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT DISTINCT - + cor0.col0 + ( + col1 ) FROM tab2 AS cor0
----
-19
-62
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 314aace40e704c20a6be06204a329f80

query I rowsort
SELECT ALL - cor0.col2 * + col2 AS col0 FROM tab1 cor0
----
-2916
-3249
-9216

query I rowsort
SELECT + col2 * - col0 AS col0 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT - col0 + + col0 * col2 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT cor0.col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

onlyif mysql # use DIV operator for integer division
query I rowsort label-5651
SELECT DISTINCT + col1 DIV - ( + col1 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5651
SELECT DISTINCT + col1 / - ( + col1 ) FROM tab2 AS cor0
----
-1

query I rowsort
SELECT + col2 + ( - cor0.col1 ) * col1 FROM tab0 AS cor0
----
-7363
-8199
-9408

query I rowsort
SELECT DISTINCT + + cor0.col1 * + col2 AS col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - col2 + - 98 AS col2 FROM tab1 AS cor0
----
-152
-155
-194

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5655
SELECT ALL - col2 * + CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5655
SELECT ALL - col2 * + CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col2 * + col1 + 90 FROM tab1 AS cor0
----
-1158
-1314
-480

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 cor0, tab0, tab1 cor1
----
972 values hashing to 2d99dda76af061a3fac120e0e49e6c53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + col0 col2 FROM tab2 cor0
----
-24
19
62

query I rowsort
SELECT DISTINCT cor0.col2 + - col2 * col0 AS col0 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT + col1 + - cor0.col2 + - ( col2 ) AS col1 FROM tab1 AS cor0
----
-104
-179
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-5661
SELECT DISTINCT + - col1 * - 74 * - col2 + - col0 DIV - col1 + col1 AS col0 FROM tab0 cor0
----
-209926
-552097
-7081

skipif mysql # not compatible
query I rowsort label-5661
SELECT DISTINCT + - col1 * - 74 * - col2 + - col0 / - col1 + col1 AS col0 FROM tab0 cor0
----
-209926
-552097
-7081

query I rowsort
SELECT DISTINCT + col0 * - 89 AS col2 FROM tab0 AS cor0
----
-2136
-3115
-7921

query I rowsort
SELECT col0 * ( 87 ) + - col0 FROM tab1 AS cor0
----
258
5504
6880

query I rowsort
SELECT + col2 * ( cor0.col2 ) AS col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT - 60 * - tab0.col2 FROM tab0
----
1980
4920
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-5666
SELECT - - col2 + col2 DIV + col0 FROM tab0 AS cor0
----
1
34
82

skipif mysql # not compatible
query I rowsort label-5666
SELECT - - col2 + col2 / + col0 FROM tab0 AS cor0
----
1
34
82

query I rowsort
SELECT ALL - - col1 * col0 AS col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL col0 * - 45 FROM tab1 cor0
----
-135
-2880
-3600

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5669
SELECT DISTINCT - col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5669
SELECT DISTINCT - col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * 5 col0 FROM tab2
----
155
295
85

query I rowsort
SELECT - col2 + + ( - 63 * + col2 ) AS col2 FROM tab1
----
-3456
-3648
-6144

query I rowsort
SELECT + col2 * - cor0.col0 + + col0 + + col1 FROM tab0 AS cor0
----
-682
-7118
97

query I rowsort
SELECT DISTINCT col2 + - cor0.col2 * col2 AS col0 FROM tab0 AS cor0
----
-1056
-6642
0

query I rowsort
SELECT - - ( cor0.col0 ) + + col1 - + col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL - - col0 + col0 AS col1 FROM tab0 cor0
----
178
48
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-5676
SELECT cor0.col0 + + cor0.col1 DIV ( - 74 ) + + col2 * col0 DIV col1 FROM tab2 AS cor0
----
112
13
255

skipif mysql # not compatible
query I rowsort label-5676
SELECT cor0.col0 + + cor0.col1 / ( - 74 ) + + col2 * col0 / col1 FROM tab2 AS cor0
----
112
13
255

query I rowsort
SELECT DISTINCT cor0.col2 + + col1 + + 11 FROM tab2 AS cor0
----
66
69
96

query I rowsort
SELECT ALL + + col2 * col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT - - col2 * + col1 + col2 + - 93 FROM tab2 AS cor0
----
1467
591
771

query I rowsort
SELECT DISTINCT col1 - + tab2.col2 * - col1 FROM tab2
----
1593
663
868

onlyif mysql # use DIV operator for integer division
query I rowsort label-5681
SELECT col0 * + col0 DIV col0 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-5681
SELECT col0 * + col0 / col0 FROM tab0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-5682
SELECT + ( col2 ) DIV tab2.col0 col2 FROM tab2
----
0
0
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5682
SELECT + ( col2 ) / tab2.col0 col2 FROM tab2
----
0
0
3

query I rowsort
SELECT + col1 * - col2 + 89 FROM tab2
----
-1445
-557
-748

query I rowsort
SELECT - col0 + + tab0.col0 * - 41 AS col2 FROM tab0
----
-1008
-1470
-3738

query I rowsort
SELECT + col1 + - col1 * col2 FROM tab0
----
-2752
-7371
0

query I rowsort
SELECT 15 * col1 AS col0 FROM tab0
----
1290
1365
1455

query I rowsort
SELECT col1 - + col2 AS col0 FROM tab0
----
53
9
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - col0 col0 FROM tab1
----
-29
-74
-93

query I rowsort
SELECT DISTINCT col1 + tab1.col1 AS col2 FROM tab1
----
20
26
52

query I rowsort
SELECT - + cor0.col0 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT - + col0 * col1 AS col0 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT + 50 + + col1 + - col1 FROM tab1
----
50

query I rowsort
SELECT 84 + + col1 FROM tab0
----
170
175
181

query I rowsort
SELECT DISTINCT + + col2 * - col1 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 34 + 30 * col2 col0 FROM tab1 AS cor0
----
1654
1744
2914

query I rowsort
SELECT + + col1 * col2 * cor0.col2 AS col1 FROM tab2 AS cor0
----
22599
24548
39884

onlyif mysql # use DIV operator for integer division
query I rowsort label-5697
SELECT ALL - - col0 - col2 DIV + col2 FROM tab1 AS cor0
----
2
63
79

skipif mysql # not compatible
query I rowsort label-5697
SELECT ALL - - col0 - col2 / + col2 FROM tab1 AS cor0
----
2
63
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5698
SELECT - - CAST( + 96 AS SIGNED ) * col2 * - 93 - 19 * col1 FROM tab2 cor0
----
-233249
-241645
-339587

skipif mysql # not compatible
query I rowsort label-5698
SELECT - - CAST ( + 96 AS INTEGER ) * col2 * - 93 - 19 * col1 FROM tab2 cor0
----
-233249
-241645
-339587

query I rowsort
SELECT DISTINCT + col1 * + col0 + cor0.col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT DISTINCT - - 85 * - ( col2 ) * col1 FROM tab2 AS cor0
----
-130390
-54910
-71145

query I rowsort
SELECT DISTINCT - col2 + 79 AS col1 FROM tab2 AS cor0
----
41
52
53

skipif mysql # not compatible
query I rowsort
SELECT - + CAST ( 63 AS REAL ) * - col1 FROM tab1 AS cor0
----
1638
630
819

query I rowsort
SELECT ALL + col0 - + col0 AS col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT 17 AS col2 FROM tab1 cor0
----
17
17
17

query I rowsort
SELECT - 12 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
-204
-372
-708

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col2 * ( tab2.col1 ) col0 FROM tab2
----
1534
646
837

query I rowsort
SELECT + cor0.col0 * 55 AS col0 FROM tab2 AS cor0
----
385
4290
4345

query I rowsort
SELECT ALL - 39 + - col0 AS col1 FROM tab2
----
-117
-118
-46

onlyif mysql # use DIV operator for integer division
query I rowsort label-5709
SELECT ALL + col0 * + 78 * + col2 + col1 DIV - col1 FROM tab1
----
12635
284543
599039

skipif mysql # not compatible
query I rowsort label-5709
SELECT ALL + col0 * + 78 * + col2 + col1 / - col1 FROM tab1
----
12635
284543
599039

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 61 + - col1 * + 77 col0 FROM tab2 AS cor0
----
-1248
-2326
-4482

query I rowsort
SELECT + col1 + - col2 * + 34 FROM tab1 AS cor0
----
-1810
-1928
-3251

query I rowsort
SELECT ( - 48 ) AS col1 FROM tab1, tab0 cor0
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

query I rowsort
SELECT ALL + tab1.col2 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT 25 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query I rowsort
SELECT ALL 70 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

query I rowsort
SELECT ALL tab1.col1 * + 59 FROM tab1
----
1534
590
767

onlyif mysql # use DIV operator for integer division
query I rowsort label-5717
SELECT DISTINCT col1 DIV + col0 + - col1 + - col1 * 96 col1 FROM tab1 AS cor0
----
-1261
-2514
-970

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5717
SELECT DISTINCT col1 / + col0 + - col1 + - col1 * 96 col1 FROM tab1 AS cor0
----
-1261
-2514
-970

query I rowsort
SELECT + col1 * 5 FROM tab1 AS cor0
----
130
50
65

query I rowsort
SELECT ALL col2 * - col2 + col2 * col0 * + 56 FROM tab0 AS cor0
----
1959
401964
43263

query I rowsort
SELECT ALL - col0 * 0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - tab0.col1 * ( col0 ) FROM tab0
----
-2064
-3395
-8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5722
SELECT ALL - col2 + CAST( + col1 AS SIGNED ) * col2 AS col2 FROM tab0 AS cor0
----
2805
7380
96

skipif mysql # not compatible
query I rowsort label-5722
SELECT ALL - col2 + CAST ( + col1 AS INTEGER ) * col2 AS col2 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT - - col1 + - col2 * cor0.col0 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT ALL ( + 54 ) FROM tab0 AS cor0
----
54
54
54

query I rowsort
SELECT DISTINCT - 72 FROM tab0 AS cor0
----
-72

query I rowsort
SELECT ALL ( cor1.col2 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5727
SELECT CAST( NULL AS DECIMAL ) - tab2.col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5727
SELECT CAST ( NULL AS REAL ) - tab2.col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - ( - col1 ) + col0 FROM tab0 AS cor0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-5729
SELECT DISTINCT ( col2 ) DIV + cor0.col1 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-5729
SELECT DISTINCT ( col2 ) / + cor0.col1 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT ALL + 75 * - 20 AS col2 FROM tab2 AS cor0
----
-1500
-1500
-1500

query I rowsort
SELECT 59 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT 74 FROM tab2, tab2 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT + ( + col1 ) * col1 AS col2 FROM tab1 AS cor0
----
100
169
676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5734
SELECT ( col2 ) * CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5734
SELECT ( col2 ) * CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 25 FROM tab2
----
-25
-25
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 6 col1 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to 8be8910507908e6353d02a545b748252

query I rowsort
SELECT col0 + + col1 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT + + col2 * + cor0.col2 + col2 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT + - 31 + - col2 AS col1 FROM tab0 AS cor0
----
-113
-32
-64

query I rowsort
SELECT DISTINCT - col2 * + col1 + col0 * + 6 FROM tab1 AS cor0
----
-1386
-186
-768

query I rowsort
SELECT ALL col1 + - col2 * - 88 AS col2 FROM tab0 AS cor0
----
185
2990
7307

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5742
SELECT + col0 + + CAST( 1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-5742
SELECT + col0 + + CAST ( 1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT + col1 * - col1 AS col0 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT - + col2 * 4 + + 61 FROM tab2 AS cor0
----
-43
-47
-91

onlyif mysql # use DIV operator for integer division
query I rowsort label-5745
SELECT col1 * 29 DIV col0 AS col2 FROM tab1 cor0
----
251
4
4

skipif mysql # not compatible
query I rowsort label-5745
SELECT col1 * 29 / col0 AS col2 FROM tab1 cor0
----
251
4
4

query I rowsort
SELECT + col0 * 82 + col0 * - col0 * 2 AS col2 FROM tab0 AS cor0
----
-8544
420
816

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5747
SELECT CAST( NULL AS SIGNED ) + - 72 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-5747
SELECT CAST ( NULL AS INTEGER ) + - 72 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT 73 FROM tab2
----
73

query I rowsort
SELECT ALL + 18 AS col1 FROM tab2
----
18
18
18

query I rowsort
SELECT cor0.col0 + - col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT - col1 * cor0.col2 + - col1 FROM tab0 AS cor0
----
-194
-2924
-7553

query I rowsort
SELECT ALL - col0 * cor0.col0 * - col1 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT DISTINCT + ( + col1 ) * - col2 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT + 80 + - cor0.col1 AS col2 FROM tab2 AS cor0
----
21
49
63

query I rowsort
SELECT ALL - 22 + cor0.col0 AS col1 FROM tab2 AS cor0
----
-15
56
57

query I rowsort
SELECT ALL + 80 FROM tab2 AS cor0
----
80
80
80

query I rowsort
SELECT DISTINCT - col2 * col2 AS col0 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT cor0.col2 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT ALL - col0 * - cor0.col0 * col0 FROM tab1 AS cor0
----
262144
27
512000

query I rowsort
SELECT DISTINCT col1 * cor0.col2 AS col1 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT ALL 84 AS col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a

query I rowsort
SELECT col1 * col1 + - col1 FROM tab2
----
272
3422
930

query I rowsort
SELECT ALL 60 FROM tab2
----
60
60
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-5764
SELECT - tab2.col0 DIV - tab2.col1 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to ee52f9b4c9d252c357ebca3161ec6918

skipif mysql # not compatible
query I rowsort label-5764
SELECT - tab2.col0 / - tab2.col1 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to ee52f9b4c9d252c357ebca3161ec6918

onlyif mysql # use DIV operator for integer division
query I rowsort label-5765
SELECT DISTINCT + col0 * - col0 + - ( + col0 ) * col1 + 57 DIV + cor0.col0 AS col1 FROM tab1 AS cor0
----
-4736
-68
-7440

skipif mysql # not compatible
query I rowsort label-5765
SELECT DISTINCT + col0 * - col0 + - ( + col0 ) * col1 + 57 / + cor0.col0 AS col1 FROM tab1 AS cor0
----
-4736
-68
-7440

query I rowsort
SELECT ALL + col1 * ( - ( - col0 ) * 59 ) - + 71 AS col1 FROM tab1 AS cor0
----
37689
4531
61289

query I rowsort
SELECT ALL + col0 * tab1.col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT col1 + col0 * - col0 AS col2 FROM tab2
----
-18
-6025
-6224

query I rowsort
SELECT ALL col2 * tab1.col0 * + col1 FROM tab1
----
36480
4212
99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-5770
SELECT DISTINCT col2 DIV ( col1 ) AS col0 FROM tab2
----
0
2

skipif mysql # not compatible
query I rowsort label-5770
SELECT DISTINCT col2 / ( col1 ) AS col0 FROM tab2
----
0
2

query I rowsort
SELECT 91 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe

onlyif mysql # use DIV operator for integer division
query I rowsort label-5772
SELECT ALL - col0 DIV + col0 AS col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5772
SELECT ALL - col0 / + col0 AS col2 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT ALL col1 * 45 FROM tab2 cor0
----
1395
2655
765

query I rowsort
SELECT + - 48 AS col2 FROM tab1 AS cor0
----
-48
-48
-48

query I rowsort
SELECT ALL + + 31 AS col2 FROM tab0 AS cor0
----
31
31
31

onlyif mysql # use DIV operator for integer division
query I rowsort label-5776
SELECT 5 DIV + col1 + - col0 * CAST( + 14 AS SIGNED ) - + col0 AS col2 FROM tab2 AS cor0
----
-105
-1170
-1185

skipif mysql # not compatible
query I rowsort label-5776
SELECT 5 / + col1 + - col0 * CAST ( + 14 AS INTEGER ) - + col0 AS col2 FROM tab2 AS cor0
----
-105
-1170
-1185

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5777
SELECT ALL + - CAST( NULL AS DECIMAL ) * 34 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5777
SELECT ALL + - CAST ( NULL AS REAL ) * 34 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5778
SELECT - col1 * - col1 + + col1 * 58 + 51 DIV cor0.col0 AS col2 FROM tab1 AS cor0
----
2201
680
923

skipif mysql # not compatible
query I rowsort label-5778
SELECT - col1 * - col1 + + col1 * 58 + 51 / cor0.col0 AS col2 FROM tab1 AS cor0
----
2201
680
923

query I rowsort
SELECT ALL + 57 FROM tab2 cor0
----
57
57
57

query I rowsort
SELECT col0 - ( + col2 * col2 + + 2 ) FROM tab2
----
-1367
-600
-724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col0 - - col1 * col2 col2 FROM tab2
----
1690
804
851

query I rowsort
SELECT DISTINCT tab1.col1 - + ( - 67 + - col0 ) AS col0 FROM tab1
----
141
160
96

query I rowsort
SELECT DISTINCT col1 - - 92 FROM tab2
----
109
123
151

query I rowsort
SELECT ALL - col2 - - 36 FROM tab0
----
-46
3
35

query I rowsort
SELECT - 53 - + 92 FROM tab1, tab1 AS cor0
----
9 values hashing to c79967bbfe31387e6d92241fdf1b18ff

onlyif mysql # use DIV operator for integer division
query I rowsort label-5786
SELECT DISTINCT + col2 + - col2 DIV + col1 col2 FROM tab1
----
52
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5786
SELECT DISTINCT + col2 + - col2 / + col1 col2 FROM tab1
----
52
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5787
SELECT DISTINCT + CAST( NULL AS SIGNED ) + col0 * col0 * - col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5787
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col0 * col0 * - col1 FROM tab2
----
NULL

query I rowsort
SELECT - col2 + + cor0.col2 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL ( - cor0.col0 ) + - cor0.col1 AS col1 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT DISTINCT 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 ALL + col0 + - col1 col0 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT + + col2 + col0 * + col1 FROM tab0 cor0
----
2097
3396
8181

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5793
SELECT DISTINCT 28 + + ( - col1 ) * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5793
SELECT DISTINCT 28 + + ( - col1 ) * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5794
SELECT - + ( cor0.col2 ) DIV - col0 + col1 FROM tab1 AS cor0
----
10
14
44

skipif mysql # not compatible
query I rowsort label-5794
SELECT - + ( cor0.col2 ) / - col0 + col1 FROM tab1 AS cor0
----
10
14
44

query I rowsort
SELECT 55 + 33 FROM tab0 AS cor0
----
88
88
88

query I rowsort
SELECT - + 60 FROM tab1 AS cor0
----
-60
-60
-60

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5797
SELECT - CAST( NULL AS SIGNED ) + + 56 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-5797
SELECT - CAST ( NULL AS INTEGER ) + + 56 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( col2 ) + + col1 FROM tab0
----
53
9
96

query I rowsort
SELECT - ( + ( - col1 ) + col1 ) * col1 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT + 44 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT - tab0.col0 + col1 * + col0 AS col2 FROM tab0
----
2040
3360
8010

query I rowsort
SELECT col1 + - col2 + col1 AS col1 FROM tab1
----
-2
-37
-70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5803
SELECT - CAST( NULL AS SIGNED ) * + tab0.col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5803
SELECT - CAST ( NULL AS INTEGER ) * + tab0.col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * - col0 + + tab2.col2 + col2 * + tab2.col1 FROM tab2
----
-2318
-468
675

query I rowsort
SELECT 76 + + col1 * col1 FROM tab2
----
1037
3557
365

query I rowsort
SELECT cor0.col0 FROM tab0, tab2 cor0, tab1 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT DISTINCT - - col0 + col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ( 82 ) + + col2 * - 7 FROM tab0 cor0
----
-149
-492
75

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5809
SELECT ALL CAST( col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-5809
SELECT ALL CAST ( col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + ( col2 ) ) + tab0.col0 col1 FROM tab0
----
-9
34
7

query I rowsort
SELECT ALL - + ( col2 ) * - ( + col2 ) FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT col2 + + col2 * cor0.col1 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT DISTINCT - 91 + col0 AS col2 FROM tab0 AS cor0
----
-2
-56
-67

query I rowsort
SELECT + 81 * col2 + 99 AS col2 FROM tab1 cor0
----
4473
4716
7875

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * cor0.col2 col0 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT - col2 * + col0 * ( col1 ) AS col2 FROM tab1 cor0
----
-36480
-4212
-99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-5817
SELECT 86 DIV - col2 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5817
SELECT 86 / - col2 FROM tab1 AS cor0
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 52 col0 FROM tab0 AS cor0
----
52
52
52

query I rowsort
SELECT DISTINCT + 94 + - cor0.col1 FROM tab1 AS cor0
----
68
81
84

query I rowsort
SELECT ALL + col1 * + col0 * col0 AS col1 FROM tab0 AS cor0
----
118825
49536
720811

query I rowsort
SELECT DISTINCT + 97 * - col0 FROM tab0 cor0
----
-2328
-3395
-8633

onlyif mysql # use DIV operator for integer division
query I rowsort label-5822
SELECT DISTINCT col1 + cor0.col1 DIV CAST( - col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-5822
SELECT DISTINCT col1 + cor0.col1 / CAST ( - col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT - 39 * - col1 + - col1 FROM tab0 cor0
----
3268
3458
3686

query I rowsort
SELECT DISTINCT - col2 - + 70 * cor0.col0 FROM tab2 AS cor0
----
-517
-5486
-5568

query I rowsort
SELECT DISTINCT + col1 + 96 * - col1 + col2 FROM tab1 AS cor0
----
-1139
-2416
-893

query I rowsort
SELECT DISTINCT + + col0 + - 32 * col2 AS col1 FROM tab2 cor0
----
-1137
-754
-857

query I rowsort
SELECT ALL col2 * - ( + cor0.col2 ) + + col2 FROM tab0 AS cor0
----
-1056
-6642
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5828
SELECT DISTINCT col0 DIV CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5828
SELECT DISTINCT col0 / CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 41 col2 FROM tab0 AS cor0
----
-1435
-3649
-984

query I rowsort
SELECT cor0.col1 * ( col2 ) FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT - col0 * + 90 AS col1 FROM tab0 AS cor0
----
-2160
-3150
-8010

query I rowsort
SELECT ALL + 27 FROM tab2 AS cor0
----
27
27
27

query I rowsort
SELECT DISTINCT + 74 FROM tab0, tab2 AS cor0
----
74

query I rowsort
SELECT - col0 - - col2 * + col1 FROM tab2 AS cor0
----
1456
567
830

onlyif mysql # use DIV operator for integer division
query I rowsort label-5835
SELECT ALL - - col2 + col1 * col2 DIV 81 AS col1 FROM tab0 AS cor0
----
174
2
68

skipif mysql # not compatible
query I rowsort label-5835
SELECT ALL - - col2 + col1 * col2 / 81 AS col1 FROM tab0 AS cor0
----
174
2
68

query I rowsort
SELECT DISTINCT - + col0 * - col2 + + col1 AS col0 FROM tab0 AS cor0
----
132
7389
878

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 - ( cor0.col1 ) col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - - col0 * 49 + - cor0.col2 * + col0 FROM tab0 AS cor0
----
-2937
1680
384

query I rowsort
SELECT ALL + + ( 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-5840
SELECT ALL + CAST( + ( col0 ) AS SIGNED ) + cor0.col0 FROM tab1 AS cor0
----
128
160
6

skipif mysql # not compatible
query I rowsort label-5840
SELECT ALL + CAST ( + ( col0 ) AS INTEGER ) + cor0.col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT DISTINCT + col2 - - col1 FROM tab2
----
55
58
85

query I rowsort
SELECT + + 16 + - col1 AS col0 FROM tab2 AS cor0
----
-1
-15
-43

query I rowsort
SELECT DISTINCT tab0.col2 * col0 - - ( - col2 ) AS col1 FROM tab0
----
34
7216
759

query I rowsort
SELECT ALL - col2 - - col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - + cor0.col0 - col2 * col2 AS col1 FROM tab2 AS cor0
----
-1523
-736
-754

query I rowsort
SELECT ALL + 20 * - col1 * col0 AS col1 FROM tab2 cor0
----
-26860
-4340
-92040

query I rowsort
SELECT - col1 + + col2 * col2 FROM tab2 AS cor0
----
1427
617
698

query I rowsort
SELECT - - col0 * + col1 AS col2 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT + + col2 * - col2 AS col0 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT + col0 + col0 * col2 * col2 AS col1 FROM tab2 AS cor0
----
114155
5110
52806

query I rowsort
SELECT - - col0 + - col2 * - col1 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT col2 * col1 + col0 AS col2 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT DISTINCT + col2 * + col2 AS col1 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT ( + col2 ) + - col1 FROM tab2
----
-33
-4
21

query I rowsort
SELECT - + col0 + col1 * - col1 + - cor0.col1 AS col0 FROM tab0 AS cor0
----
-7506
-8461
-9541

query I rowsort
SELECT DISTINCT col2 * ( col0 ) FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5857
SELECT DISTINCT CAST( cor0.col0 AS SIGNED ) * col2 AS col2 FROM tab1 AS cor0
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-5857
SELECT DISTINCT CAST ( cor0.col0 AS INTEGER ) * col2 AS col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT + cor0.col1 * col1 * - cor0.col0 AS col2 FROM tab2 cor0
----
-22831
-271518
-6727

query I rowsort
SELECT DISTINCT 78 AS col1 FROM tab2, tab0 AS cor0
----
78

query I rowsort
SELECT - col0 + 84 FROM tab1 cor0
----
20
4
81

query I rowsort
SELECT ALL col0 + 98 AS col0 FROM tab1 AS cor0
----
101
162
178

query I rowsort
SELECT ALL - - cor0.col1 + 40 * col1 FROM tab1 AS cor0
----
1066
410
533

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT - + ( - col2 ) * col1 + col2 FROM tab1 cor0
----
1344
1458
627

query I rowsort
SELECT ALL + col1 + + col2 * col1 AS col1 FROM tab0
----
194
2924
7553

query I rowsort
SELECT ALL col2 * ( 62 ) + - col1 FROM tab1
----
3322
3524
5939

onlyif mysql # use DIV operator for integer division
query I rowsort label-5867
SELECT col0 + 96 DIV col1 - - cor0.col0 DIV col1 FROM tab2 AS cor0
----
10
80
88

skipif mysql # not compatible
query I rowsort label-5867
SELECT col0 + 96 / col1 - - cor0.col0 / col1 FROM tab2 AS cor0
----
10
80
88

query I rowsort
SELECT col0 * + ( + col2 ) + + col0 * + col2 AS col0 FROM tab2
----
378
4056
6004

query I rowsort
SELECT + tab0.col2 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT - - 84 + + col0 AS col1 FROM tab1 AS cor0
----
148
164
87

query I rowsort
SELECT ALL + 32 * - col2 FROM tab1
----
-1728
-1824
-3072

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( + col2 AS REAL ) FROM tab2
----
-26
-27
-38

query I rowsort
SELECT DISTINCT tab0.col2 * 33 FROM tab0
----
1089
2706
33

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5874
SELECT + CAST( NULL AS SIGNED ) * col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5874
SELECT + CAST ( NULL AS INTEGER ) * col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 * - col1 * col2 + - col1 * col0 * col1 IN ( col2 * col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5876
SELECT ALL col2 DIV + cor0.col0 FROM tab1 AS cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-5876
SELECT ALL col2 / + cor0.col0 FROM tab1 AS cor0
----
0
1
18

query I rowsort
SELECT - col0 + + col1 + col1 AS col0 FROM tab0 AS cor0
----
148
159
93

query I rowsort
SELECT - col2 + - col0 * col0 FROM tab1 AS cor0
----
-4153
-63
-6496

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 / col2 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col0 FROM tab1 WHERE NOT + col0 IN ( col1 / + col2 )
----
-3
-64
-80

query I rowsort
SELECT + col1 * - col0 - - col2 * col1 * col0 AS col0 FROM tab2
----
115050
49691
5642

query I rowsort
SELECT tab0.col0 AS col0 FROM tab0 WHERE NULL < NULL
----

query I rowsort
SELECT col0 * col0 + col0 FROM tab0
----
1260
600
8010

query I rowsort
SELECT DISTINCT col1 + col1 * + tab1.col2 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) > NULL
----

query I rowsort
SELECT DISTINCT - col1 - col1 AS col2 FROM tab1
----
-20
-26
-52

query I rowsort
SELECT DISTINCT + col1 * - tab2.col2 * col0 FROM tab2
----
-119652
-51034
-5859

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < ( col0 - + col1 * col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5889
SELECT col0 DIV - col2 AS col0 FROM tab0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-5889
SELECT col0 / - col2 AS col0 FROM tab0
----
-1
-35
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col1 + col1 col1 FROM tab2
----
118
34
62

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 IN ( col2 * + col1 ) AND ( NULL ) <> ( NULL )
----

query I rowsort
SELECT DISTINCT + col2 + col0 * - col2 FROM tab1
----
-108
-3591
-7584

query I rowsort
SELECT + col0 + - col2 * col0 AS col1 FROM tab2
----
-182
-1950
-2923

query I rowsort
SELECT ALL tab2.col2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

onlyif mysql # use DIV operator for integer division
query I rowsort label-5895
SELECT - col0 DIV tab0.col1 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5895
SELECT - col0 / tab0.col1 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 + - col1 * + col1 FROM tab2 cor0
----
-210
-3403
-954

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col0 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT + col1 + + cor0.col1 - - col0 AS col2 FROM tab1 cor0
----
106
55
84

query I rowsort
SELECT + col1 * + cor0.col0 * + col2 + - col2 FROM tab1 cor0
----
36423
4158
99744

query I rowsort
SELECT ALL col0 * tab2.col2 FROM tab2
----
189
2028
3002

query III rowsort
SELECT * FROM tab0 WHERE + col0 + + col2 * col0 = ( NULL )
----

query I rowsort
SELECT col2 - - col2 FROM tab0 AS cor0
----
164
2
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-5903
SELECT + col1 DIV col0 + col1 + + col2 FROM tab2 AS cor0
----
55
62
85

skipif mysql # not compatible
query I rowsort label-5903
SELECT + col1 / col0 + col1 + + col2 FROM tab2 AS cor0
----
55
62
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-5904
SELECT - col1 DIV col2 + cor0.col0 FROM tab0 AS cor0
----
-62
22
88

skipif mysql # not compatible
query I rowsort label-5904
SELECT - col1 / col2 + cor0.col0 FROM tab0 AS cor0
----
-62
22
88

query I rowsort
SELECT 7 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT - col2 + - 59 * 34 AS col0 FROM tab2 AS cor0
----
-2032
-2033
-2044

onlyif mysql # use DIV operator for integer division
query I rowsort label-5907
SELECT + col0 DIV 37 + + col2 FROM tab1
----
54
58
98

skipif mysql # not compatible
query I rowsort label-5907
SELECT + col0 / 37 + + col2 FROM tab1
----
54
58
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5908
SELECT ALL col2 + - CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5908
SELECT ALL col2 + - CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * + cor0.col0 - + col2 * + col1 AS col2 FROM tab0 AS cor0
----
-164
-2046
-62

query I rowsort
SELECT ALL - - cor0.col2 + - 34 FROM tab0 AS cor0
----
-1
-33
48

query I rowsort
SELECT + + cor0.col2 * + col0 + - ( col0 ) FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT col0 + 30 * + col2 + col1 AS col0 FROM tab1 cor0
----
1649
1784
2973

onlyif mysql # use DIV operator for integer division
query I rowsort label-5913
SELECT ALL + ( + col0 ) + + col0 DIV + 44 FROM tab2 AS cor0
----
7
79
80

skipif mysql # not compatible
query I rowsort label-5913
SELECT ALL + ( + col0 ) + + col0 / + 44 FROM tab2 AS cor0
----
7
79
80

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( col2 AS REAL ) FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT cor0.col1 * + 62 FROM tab1 AS cor0
----
1612
620
806

query I rowsort
SELECT ALL - ( col2 ) - - col0 * - col1 AS col2 FROM tab1 AS cor0
----
-1136
-132
-697

query I rowsort
SELECT ALL + - ( cor0.col2 ) + col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - - 49 + 65 AS col0 FROM tab2 AS cor0
----
114

query I rowsort
SELECT ALL ( cor0.col1 ) * + col0 AS col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ( col2 ) + - col0 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT ALL 97 + col2 FROM tab0 AS cor0
----
130
179
98

query I rowsort
SELECT - col0 + + col1 * - col0 AS col2 FROM tab2 cor0
----
-1422
-224
-4680

query I rowsort
SELECT DISTINCT - 59 * 41 + col2 AS col0 FROM tab0 AS cor0
----
-2337
-2386
-2418

query I rowsort
SELECT 48 * col1 AS col0 FROM tab0 AS cor0
----
4128
4368
4656

query I rowsort
SELECT - 22 * col0 AS col1 FROM tab2 cor0
----
-154
-1716
-1738

query I rowsort
SELECT DISTINCT col0 + - ( + col1 ) * tab0.col0 * col2 AS col2 FROM tab0
----
-3360
-664029
-68088

query I rowsort
SELECT ALL - tab2.col1 * - col1 + - ( col2 * - col1 ) AS col1 FROM tab2
----
1798
5015
935

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - - col2 col2 FROM tab1
----
-7
16
51

query I rowsort
SELECT - 49 - - col0 * - 84 AS col1 FROM tab0 AS cor0
----
-2065
-2989
-7525

query I rowsort
SELECT ALL - + 34 FROM tab0 cor0
----
-34
-34
-34

query I rowsort
SELECT DISTINCT - - col0 + col1 * col1 AS col2 FROM tab0 AS cor0
----
7420
8370
9444

onlyif mysql # use DIV operator for integer division
query I rowsort label-5932
SELECT - 80 + + col1 DIV cor0.col2 AS col0 FROM tab0 AS cor0
----
-78
-79
17

skipif mysql # not compatible
query I rowsort label-5932
SELECT - 80 + + col1 / cor0.col2 AS col0 FROM tab0 AS cor0
----
-78
-79
17

query I rowsort
SELECT - + 36 * col0 * + ( col2 + col2 ) FROM tab1 AS cor0
----
-11664
-262656
-552960

query I rowsort
SELECT ALL + + 65 FROM tab2 cor0
----
65
65
65

query I rowsort
SELECT + col2 - - col0 AS col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT - - col1 + col2 + - col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL + col0 * cor0.col2 AS col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ( + 1 ) FROM tab2
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 0 col2 FROM tab0
----
0
0
0

query I rowsort
SELECT - cor0.col1 * tab0.col0 * 7 FROM tab0, tab2 AS cor0
----
9 values hashing to 4725d5e8627e62cd2682499eb0df1e62

query I rowsort
SELECT DISTINCT 95 + col0 FROM tab0 AS cor0
----
119
130
184

query I rowsort
SELECT ( ( + col0 ) ) FROM tab0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-5943
SELECT - ( tab2.col2 ) DIV - ( + 27 ) FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5943
SELECT - ( tab2.col2 ) / - ( + 27 ) FROM tab2
----
0
1
1

query I rowsort
SELECT DISTINCT col2 - + col0 * 11 AS col1 FROM tab2
----
-50
-831
-832

query I rowsort
SELECT - col2 - - col2 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 99 + col1 col2 FROM tab1 AS cor0
----
109
112
125

query I rowsort
SELECT - - col2 * + col2 - col0 * - cor0.col0 * col2 AS col0 FROM tab1 AS cor0
----
236721
3402
623616

query I rowsort
SELECT tab2.col0 + col0 * 26 FROM tab2
----
189
2106
2133

query I rowsort
SELECT ALL + 47 - col1 AS col2 FROM tab0
----
-39
-44
-50

query I rowsort
SELECT ALL - 34 * col2 + + col1 - tab2.col0 * col2 AS col2 FROM tab2
----
-1076
-2853
-4277

query I rowsort
SELECT ALL col1 * tab0.col2 + + col2 - - col1 AS col2 FROM tab0
----
195
2957
7635

query I rowsort
SELECT col2 + col2 * + 29 AS col2 FROM tab2
----
1140
780
810

onlyif mysql # use DIV operator for integer division
query I rowsort label-5953
SELECT DISTINCT 22 - + col0 * + col0 DIV col0 AS col1 FROM tab1
----
-42
-58
19

skipif mysql # not compatible
query I rowsort label-5953
SELECT DISTINCT 22 - + col0 * + col0 / col0 AS col1 FROM tab1
----
-42
-58
19

query I rowsort
SELECT + + col0 * + 1 - + col1 * cor0.col1 * - col0 AS col0 FROM tab0 AS cor0
----
177528
329350
737098

query I rowsort
SELECT - col1 + + col2 + col0 AS col1 FROM tab1 cor0
----
111
163
31

query I rowsort
SELECT ALL + col1 * + col2 * 58 AS col0 FROM tab0 cor0
----
164604
432796
5626

query I rowsort
SELECT DISTINCT - 87 FROM tab1
----
-87

query I rowsort
SELECT + 86 + col2 FROM tab0
----
119
168
87

query I rowsort
SELECT + 88 + - col2 FROM tab1
----
-8
31
34

query I rowsort
SELECT tab0.col0 * + 8 FROM tab0, tab2 AS cor0
----
9 values hashing to db94ff929134cd7482b0b2d950b8032a

query I rowsort
SELECT ALL - col0 + - ( col0 ) AS col2 FROM tab1
----
-128
-160
-6

query I rowsort
SELECT ALL + + col2 * - col1 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL - col0 + + col0 * + cor0.col2 + - col0 * col0 FROM tab1 AS cor0
----
-512
1200
150

query I rowsort
SELECT DISTINCT - col1 + - cor0.col1 AS col1 FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT DISTINCT - col2 + + ( col1 ) + cor0.col0 AS col0 FROM tab0 cor0
----
131
77
98

query I rowsort
SELECT - - col2 * col0 - col1 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT DISTINCT + + col2 * col0 * - col0 + - col0 * - col1 * col1 FROM tab1 AS cor0
----
-227072
-600880
1542

query I rowsort
SELECT DISTINCT - + col1 + 77 * - 97 AS col2 FROM tab1 AS cor0
----
-7479
-7482
-7495

onlyif mysql # use DIV operator for integer division
query I rowsort label-5969
SELECT ALL col1 + col2 DIV - col2 FROM tab0 AS cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-5969
SELECT ALL col1 + col2 / - col2 FROM tab0 AS cor0
----
85
90
96

query I rowsort
SELECT ALL + + col0 AS col0 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT DISTINCT - - col2 * 87 * col0 FROM tab0 AS cor0
----
3045
634926
68904

query I rowsort
SELECT + + col1 + + col0 + + col0 FROM tab0 AS cor0
----
134
167
269

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * col0 col2 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT cor0.col1 * ( - col0 ) + - cor0.col1 FROM tab0 cor0
----
-2150
-3492
-8190

query I rowsort
SELECT - 80 + ( col2 ) FROM tab2
----
-42
-53
-54

query I rowsort
SELECT col0 + ( - col1 ) * col0 FROM tab0
----
-2040
-3360
-8010

query I rowsort
SELECT DISTINCT - ( + col0 ) * + col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL - cor0.col0 * + col0 FROM tab2 cor0
----
-49
-6084
-6241

query I rowsort
SELECT + ( col1 ) * col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 90 * 81 col0 FROM tab2 AS cor0
----
7290

query I rowsort
SELECT - 19 AS col0 FROM tab2 AS cor0
----
-19
-19
-19

onlyif mysql # use DIV operator for integer division
query I rowsort label-5982
SELECT ALL ( - col0 ) DIV - col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5982
SELECT ALL ( - col0 ) / - col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - col1 * + col0 + col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-5984
SELECT - CAST( + col0 AS SIGNED ) DIV + col0 + - 93 AS col1 FROM tab2
----
-94
-94
-94

skipif mysql # not compatible
query I rowsort label-5984
SELECT - CAST ( + col0 AS INTEGER ) / + col0 + - 93 AS col1 FROM tab2
----
-94
-94
-94

query I rowsort
SELECT - - 54 AS col2 FROM tab2 AS cor0
----
54
54
54

query I rowsort
SELECT ALL - 86 * + col1 AS col1 FROM tab1 AS cor0
----
-1118
-2236
-860

onlyif mysql # use DIV operator for integer division
query I rowsort label-5987
SELECT DISTINCT + + 23 DIV col2 FROM tab0 AS cor0
----
0
23

skipif mysql # not compatible
query I rowsort label-5987
SELECT DISTINCT + + 23 / col2 FROM tab0 AS cor0
----
0
23

query I rowsort
SELECT + + 88 FROM tab0 AS cor0
----
88
88
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-5989
SELECT DISTINCT - col0 DIV + col1 FROM tab1
----
-6
0

skipif mysql # not compatible
query I rowsort label-5989
SELECT DISTINCT - col0 / + col1 FROM tab1
----
-6
0

query I rowsort
SELECT 57 FROM tab0
----
57
57
57

query I rowsort
SELECT - col2 + + col0 * 81 FROM tab2 cor0
----
540
6292
6361

query I rowsort
SELECT + col2 + - col2 * cor0.col0 AS col2 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT - cor0.col0 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

query I rowsort
SELECT ALL - 74 FROM tab0 cor0
----
-74
-74
-74

query I rowsort
SELECT DISTINCT - cor0.col2 * col1 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 + col2 * + col2 col0 FROM tab0 AS cor0
----
1113
36
6813

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col1 col2 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-5998
SELECT DISTINCT cor0.col1 DIV col0 FROM tab2 AS cor0
----
0
4

skipif mysql # not compatible
query I rowsort label-5998
SELECT DISTINCT cor0.col1 / col0 FROM tab2 AS cor0
----
0
4

query I rowsort
SELECT ALL - 73 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

query I rowsort
SELECT + 31 FROM tab1, tab2 cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

onlyif mysql # use DIV operator for integer division
query I rowsort label-6001
SELECT ALL col2 DIV + col2 AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6001
SELECT ALL col2 / + col2 AS col0 FROM tab1
----
1
1
1

query I rowsort
SELECT 48 + - col0 FROM tab2 AS cor0
----
-30
-31
41

query I rowsort
SELECT + col0 * col2 * + col2 FROM tab2 AS cor0
----
114076
5103
52728

query I rowsort
SELECT + 45 AS col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca

onlyif mysql # use DIV operator for integer division
query I rowsort label-6005
SELECT + 40 * col0 DIV col0 col2 FROM tab1 AS cor0
----
40
40
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6005
SELECT + 40 * col0 / col0 col2 FROM tab1 AS cor0
----
40
40
40

query I rowsort
SELECT ALL - cor0.col0 + col1 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT 6 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04

query I rowsort
SELECT - + 95 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

onlyif mysql # use DIV operator for integer division
query I rowsort label-6009
SELECT - - 56 DIV - col2 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6009
SELECT - - 56 / - col2 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6010
SELECT cor0.col0 DIV col1 + ( col0 ) AS col1 FROM tab1 AS cor0
----
3
70
86

skipif mysql # not compatible
query I rowsort label-6010
SELECT cor0.col0 / col1 + ( col0 ) AS col1 FROM tab1 AS cor0
----
3
70
86

query I rowsort
SELECT 52 * col1 * 79 AS col0 FROM tab2 AS cor0
----
127348
242372
69836

query I rowsort
SELECT + 3 AS col1 FROM tab0 cor0 CROSS JOIN tab0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to c7bd37716aa9c76e684a54f53d1ee343

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6013
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6013
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL col1 * + 64 + + col0 * - col1 AS col1 FROM tab1
----
-208
0
1586

query I rowsort
SELECT ALL col2 - 99 AS col0 FROM tab0 AS cor0
----
-17
-66
-98

query I rowsort
SELECT ALL + - col1 * col0 + col0 + + col1 AS col0 FROM tab1 AS cor0
----
-49
-566
-947

query I rowsort
SELECT DISTINCT + + col1 * col2 + 66 * cor0.col1 FROM tab1 cor0
----
1230
2106
3120

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col1 + - CAST ( col0 AS REAL ) col1 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT - col2 + + col2 * - ( col2 ) FROM tab1 AS cor0
----
-2970
-3306
-9312

query I rowsort
SELECT DISTINCT + col0 * col2 * + col2 + - col0 AS col2 FROM tab0 AS cor0
----
0
26112
598347

query I rowsort
SELECT col0 * - 3 + col2 AS col1 FROM tab0 AS cor0
----
-104
-185
-39

query I rowsort
SELECT ALL col2 * col2 - 77 FROM tab1 AS cor0
----
2839
3172
9139

query I rowsort
SELECT + col2 + col2 + - cor0.col0 AS col1 FROM tab1 AS cor0
----
105
112
50

query I rowsort
SELECT - 37 + col2 AS col0 FROM tab0 AS cor0
----
-36
-4
45

query I rowsort
SELECT DISTINCT 29 + cor0.col1 FROM tab0, tab2 AS cor0
----
46
60
88

query I rowsort
SELECT ALL + col0 + tab1.col2 * col0 FROM tab1
----
165
3712
7760

query I rowsort
SELECT ALL ( 52 ) FROM tab2, tab1 AS cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query I rowsort
SELECT cor0.col2 * - col1 * col0 + ( - col1 * cor0.col2 ) FROM tab1 AS cor0
----
-101088
-37050
-5616

query I rowsort
SELECT col0 + col1 * + col2 AS col0 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT ALL - col2 - + 33 FROM tab2
----
-59
-60
-71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( + col2 ) * + col0 - - col1 col2 FROM tab2 AS cor0
----
-158
-1969
-2985

onlyif mysql # use DIV operator for integer division
query I rowsort label-6032
SELECT - col0 + col2 DIV col0 AS col2 FROM tab2
----
-4
-78
-79

skipif mysql # not compatible
query I rowsort label-6032
SELECT - col0 + col2 / col0 AS col2 FROM tab2
----
-4
-78
-79

query I rowsort
SELECT - + col1 + 74 FROM tab2 AS cor0
----
15
43
57

query I rowsort
SELECT DISTINCT + + ( col2 ) * - col2 AS col2 FROM tab2 cor0
----
-1444
-676
-729

query I rowsort
SELECT col2 * col1 * col2 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT ALL col1 * col0 + col1 AS col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT + - ( col0 ) FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT - col0 - cor0.col2 AS col0 FROM tab2 AS cor0
----
-104
-117
-34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6039
SELECT - CAST( NULL AS SIGNED ) * + col2 + col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6039
SELECT - CAST ( NULL AS INTEGER ) * + col2 + col0 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6040
SELECT - CAST( + 54 AS SIGNED ) * cor0.col2 + + ( - col1 ) * cor0.col2 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
118248
4401
48982

skipif mysql # not compatible
query I rowsort label-6040
SELECT - CAST ( + 54 AS INTEGER ) * cor0.col2 + + ( - col1 ) * cor0.col2 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
118248
4401
48982

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6041
SELECT ALL - col0 * + col2 + CAST( + 32 AS SIGNED ) FROM tab0 AS cor0
----
-3
-7266
-760

skipif mysql # not compatible
query I rowsort label-6041
SELECT ALL - col0 * + col2 + CAST ( + 32 AS INTEGER ) FROM tab0 AS cor0
----
-3
-7266
-760

query I rowsort
SELECT DISTINCT - + col1 + cor0.col2 FROM tab1 AS cor0
----
28
47
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-6043
SELECT DISTINCT - col1 DIV - col0 - col2 col2 FROM tab0 AS cor0
----
-30
-81
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6043
SELECT DISTINCT - col1 / - col0 - col2 col2 FROM tab0 AS cor0
----
-30
-81
1

query I rowsort
SELECT + ( cor0.col2 ) * 15 + - col1 * - col1 FROM tab1 AS cor0
----
1486
1609
955

query I rowsort
SELECT ALL + + cor0.col2 + col2 * 20 * col2 AS col2 FROM tab2 AS cor0
----
13546
14607
28918

query I rowsort
SELECT + - cor0.col0 + + col1 * cor0.col2 FROM tab0 cor0
----
2814
62
7373

query I rowsort
SELECT col1 * + 29 AS col0 FROM tab1 AS cor0
----
290
377
754

query I rowsort
SELECT - 44 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 38f05fdaaf15e64b62f27cd96f73fb79

query I rowsort
SELECT - col2 * col0 + 82 FROM tab1 AS cor0
----
-3566
-7598
-80

query I rowsort
SELECT ALL - 59 * + cor1.col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to ac86bf57c11709bfa15b00c3b6f93048

query I rowsort
SELECT DISTINCT - col0 + - col2 * - col2 FROM tab2 AS cor0
----
1365
598
722

onlyif mysql # use DIV operator for integer division
query I rowsort label-6052
SELECT + - CAST( col2 AS SIGNED ) * col2 DIV ( col2 ) + cor0.col2 DIV - col1 - - cor0.col2 * - col2 AS col1 FROM tab0 AS cor0
----
-1122
-2
-6806

skipif mysql # not compatible
query I rowsort label-6052
SELECT + - CAST ( col2 AS INTEGER ) * col2 / ( col2 ) + cor0.col2 / - col1 - - cor0.col2 * - col2 AS col1 FROM tab0 AS cor0
----
-1122
-2
-6806

query I rowsort
SELECT DISTINCT col2 + + 13 AS col2 FROM tab0
----
14
46
95

query I rowsort
SELECT ALL col1 * 29 FROM tab2
----
1711
493
899

onlyif mysql # use DIV operator for integer division
query I rowsort label-6055
SELECT col2 DIV + col0 AS col1 FROM tab2 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-6055
SELECT col2 / + col0 AS col1 FROM tab2 AS cor0
----
0
0
3

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0, tab0 AS cor0, tab1 AS cor1
----
972 values hashing to 9af67d6f98010464af5d560bf949d487

query I rowsort
SELECT DISTINCT 55 AS col1 FROM tab1, tab0 AS cor0
----
55

query I rowsort
SELECT + 89 AS col0 FROM tab2, tab0 cor0, tab0 cor1
----
27 values hashing to 860d55eb6785972467218a9c3badb5ad

query I rowsort
SELECT + cor0.col0 + - 90 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 496bf2a6317b6d3f1a2b04ff7899c0ba

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6060
SELECT + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6060
SELECT + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - + cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

query I rowsort
SELECT - 49 + + col1 AS col2 FROM tab1 AS cor0
----
-23
-36
-39

query I rowsort
SELECT ALL - cor0.col0 * - col0 FROM tab2 cor0
----
49
6084
6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 5 + - col1 col0 FROM tab1 cor0
----
-156
-60
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * 43 col0 FROM tab1 AS cor0
----
2322
2451
4128

query I rowsort
SELECT - col1 * + 57 + col0 FROM tab0 cor0
----
-4878
-5098
-5494

query I rowsort
SELECT ALL - col0 + + ( + col1 ) FROM tab0
----
2
62
62

query I rowsort
SELECT DISTINCT + ( 4 ) FROM tab1, tab1 AS cor0
----
4

query I rowsort
SELECT ALL + cor0.col1 + + ( col1 ) FROM tab1 AS cor0
----
20
26
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col1 + ( col2 + - col2 ) col2 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * + col1 + 49 col1 FROM tab1 AS cor0
----
1089
127
689

query I rowsort
SELECT DISTINCT col1 * - 86 + + col2 AS col0 FROM tab1 cor0
----
-1022
-2182
-803

query I rowsort
SELECT DISTINCT - - col0 * ( + col2 ) AS col0 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6074
SELECT - col1 + CAST( - col2 AS SIGNED ) col0 FROM tab1 AS cor0
----
-109
-67
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6074
SELECT - col1 + CAST ( - col2 AS INTEGER ) col0 FROM tab1 AS cor0
----
-109
-67
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6075
SELECT DISTINCT - col1 * CAST( + col2 AS SIGNED ) col0 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6075
SELECT DISTINCT - col1 * CAST ( + col2 AS INTEGER ) col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL - col0 + + col1 + 75 FROM tab1 AS cor0
----
21
8
98

query I rowsort
SELECT DISTINCT 97 * - 17 FROM tab2
----
-1649

query I rowsort
SELECT DISTINCT - cor0.col0 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
-24
-35
-89

query I rowsort
SELECT DISTINCT + + 81 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
-6966
-7371
-7857

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6080
SELECT DISTINCT CAST( ( - col2 ) AS SIGNED ) * col1 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-6080
SELECT DISTINCT CAST ( ( - col2 ) AS INTEGER ) * col1 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6081
SELECT ALL + col1 DIV + col0 col2 FROM tab0 cor0
----
1
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6081
SELECT ALL + col1 / + col0 col2 FROM tab0 cor0
----
1
2
3

query I rowsort
SELECT + ( col0 ) * - col2 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT - 8 FROM tab0 cor0
----
-8

query I rowsort
SELECT - - 97 * - col0 FROM tab1 AS cor0
----
-291
-6208
-7760

query I rowsort
SELECT DISTINCT - + 76 * cor0.col2 + col0 AS col0 FROM tab1 AS cor0
----
-4101
-4268
-7216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col1 col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT ALL + + 4 * col0 * - 67 AS col0 FROM tab0 AS cor0
----
-23852
-6432
-9380

query I rowsort
SELECT ALL + + col2 + - cor0.col2 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col1 ) * col0 col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL + + col0 + cor0.col0 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT DISTINCT col2 + - col1 + col0 FROM tab1 cor0
----
111
163
31

query I rowsort
SELECT DISTINCT + col0 + - cor0.col1 AS col0 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT ALL - - col1 + + col0 * ( - cor0.col1 + col2 ) AS col0 FROM tab1 AS cor0
----
110
3018
6653

query I rowsort
SELECT 4 * col0 AS col1 FROM tab0 AS cor0
----
140
356
96

query I rowsort
SELECT DISTINCT 69 AS col0 FROM tab1
----
69

query I rowsort
SELECT ALL ( + col1 ) AS col0 FROM tab1
----
10
13
26

query I rowsort
SELECT col1 - tab1.col0 AS col2 FROM tab1
----
-54
-67
23

skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( + col0 * + col0 + - 75 AS REAL ) AS col0 FROM tab0
----
1150
501
7846

onlyif mysql # use DIV operator for integer division
query I rowsort label-6099
SELECT - 8 DIV 78 - col2 FROM tab0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-6099
SELECT - 8 / 78 - col2 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT + col2 + + col1 * - ( - col0 + + cor0.col0 ) FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL 31 - cor0.col0 * ( col0 ) * col2 FROM tab1 cor0
----
-233441
-455
-614369

query I rowsort
SELECT ( + ( + col0 ) ) AS col0 FROM tab1
----
3
64
80

query I rowsort
SELECT + ( col1 ) AS col1 FROM tab0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * - col0 col1 FROM tab1 cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-6105
SELECT DISTINCT + 5 DIV + col0 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6105
SELECT DISTINCT + 5 / + col0 AS col1 FROM tab0
----
0

query I rowsort
SELECT ALL - - 49 * + col1 + + 33 FROM tab2 cor0
----
1552
2924
866

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col0 * col1 col1 FROM tab2 AS cor0
----
1360
248
4661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + col1 - - col2 col1 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT ALL - cor0.col0 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

query I rowsort
SELECT + col1 * - 62 AS col0 FROM tab2 AS cor0
----
-1054
-1922
-3658

query I rowsort
SELECT ALL - 92 AS col0 FROM tab1
----
-92
-92
-92

query I rowsort
SELECT - col2 * - col0 + col1 FROM tab2
----
2087
220
3019

query I rowsort
SELECT - col1 * - col0 + - tab2.col1 FROM tab2
----
1326
186
4543

query I rowsort
SELECT ( - cor0.col0 ) + + col1 AS col2 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT DISTINCT + cor0.col0 * col2 AS col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT - - col0 * col2 + + col2 AS col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT DISTINCT - ( - 52 ) + cor0.col2 AS col2 FROM tab0 AS cor0
----
134
53
85

query I rowsort
SELECT ALL col0 * ( - col0 ) FROM tab0 cor0
----
-1225
-576
-7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 25 col1 FROM tab2 AS cor0
----
1475
425
775

query I rowsort
SELECT ALL + cor0.col2 * - col1 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL + cor0.col0 + col1 AS col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT col1 * + col2 + col2 FROM tab0 cor0
----
2871
7544
98

query I rowsort
SELECT + col1 * - col0 * tab2.col1 FROM tab2
----
-22831
-271518
-6727

query I rowsort
SELECT DISTINCT col2 + ( col1 ) * - tab1.col1 AS col2 FROM tab1
----
-43
-622
-73

query I rowsort
SELECT - col1 + ( - ( + tab2.col2 ) + ( col2 ) ) FROM tab2
----
-17
-31
-59

query I rowsort
SELECT - col0 * + 82 AS col0 FROM tab1 AS cor0
----
-246
-5248
-6560

query I rowsort
SELECT DISTINCT + - col2 + + cor0.col1 AS col1 FROM tab0 AS cor0
----
53
9
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 col1 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT ALL + ( col2 ) + cor0.col1 * ( col2 ) AS col2 FROM tab2 AS cor0
----
1560
684
864

onlyif mysql # use DIV operator for integer division
query I rowsort label-6130
SELECT DISTINCT + 23 DIV col0 + - col1 AS col1 FROM tab2 AS cor0
----
-17
-28
-59

skipif mysql # not compatible
query I rowsort label-6130
SELECT DISTINCT + 23 / col0 + - col1 AS col1 FROM tab2 AS cor0
----
-17
-28
-59

query I rowsort
SELECT 65 + + col2 * col0 FROM tab0 AS cor0
----
100
7363
857

query I rowsort
SELECT ALL + - col0 * + 58 FROM tab1 AS cor0
----
-174
-3712
-4640

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * col2 col2 FROM tab0 AS cor0
----
1
1089
6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + cor0.col2 col0 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT + - col1 * ( col1 ) + - col0 * + 72 * - 87 + col1 AS col2 FROM tab1 AS cor0
----
18142
400806
500964

query I rowsort
SELECT col0 + + col0 + + ( col2 ) FROM tab2 AS cor0
----
182
196
41

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6137
SELECT - col0 * col1 + - col2 * + col0 + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6137
SELECT - col0 * col1 + - col2 * + col0 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 - + cor0.col2 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT - col2 * col2 AS col0 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT + col1 * col0 + - col1 + - col2 AS col1 FROM tab1
----
-2
573
931

query I rowsort
SELECT ALL 53 AS col0 FROM tab1
----
53
53
53

query I rowsort
SELECT col2 + - col1 AS col2 FROM tab1
----
28
47
83

query I rowsort
SELECT + col0 + col1 * col0 * + col2 AS col1 FROM tab2 AS cor0
----
119730
51113
5866

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 48 * tab0.col2 col0 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to d3cb9a1c022458bb9c2ee96cc2472a31

query I rowsort
SELECT ( - col1 ) * 77 AS col1 FROM tab1
----
-1001
-2002
-770

query I rowsort
SELECT DISTINCT + 61 + col1 FROM tab0
----
147
152
158

query I rowsort
SELECT 72 FROM tab1, tab2 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query I rowsort
SELECT DISTINCT 8 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + + 95 * col1 + col2 * - cor0.col2 col1 FROM tab2 AS cor0
----
154
2185
4870

query I rowsort
SELECT + - col2 + - col1 + - col0 FROM tab2 AS cor0
----
-134
-163
-65

query I rowsort
SELECT - 83 + + col2 AS col1 FROM tab1
----
-26
-29
13

query I rowsort
SELECT DISTINCT + 96 + - col0 FROM tab0 AS cor0
----
61
7
72

query I rowsort
SELECT ALL cor0.col0 - - cor0.col2 AS col1 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT + ( cor0.col0 ) * col2 FROM tab1 AS cor0
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col0 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT ALL - cor0.col2 * - col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT DISTINCT 66 AS col0 FROM tab1
----
66

query I rowsort
SELECT ALL + 95 AS col1 FROM tab0
----
95
95
95

query I rowsort
SELECT + tab1.col2 + + cor0.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to c2f36d52ae4f05bff875d8467d8b2161

query I rowsort
SELECT + 68 FROM tab1 AS cor0
----
68
68
68

query I rowsort
SELECT DISTINCT - + col1 * cor0.col0 * col2 AS col1 FROM tab1 AS cor0
----
-36480
-4212
-99840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6162
SELECT ( col1 ) + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6162
SELECT ( col1 ) + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col2 * + col0 AS col1 FROM tab2 cor0
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 56 col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * cor0.col2 col0 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6166
SELECT - col1 DIV - col2 + col2 * col0 FROM tab0 AS cor0
----
132
7299
794

skipif mysql # not compatible
query I rowsort label-6166
SELECT - col1 / - col2 + col2 * col0 FROM tab0 AS cor0
----
132
7299
794

query I rowsort
SELECT + col1 * 32 + + 89 FROM tab0 AS cor0
----
2841
3001
3193

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col0 - + 48 col1 FROM tab2
----
-41
30
31

query I rowsort
SELECT DISTINCT + + col0 + + col1 * 99 FROM tab0 cor0
----
8538
9098
9638

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - ( col0 ) + + col1 + col1 col0 FROM tab1 cor0
----
-110
-3628
-7654

query I rowsort
SELECT ALL + + col0 + 14 + - col0 FROM tab0 AS cor0
----
14
14
14

query I rowsort
SELECT ALL - cor0.col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT DISTINCT ( 98 ) AS col0 FROM tab0
----
98

query I rowsort
SELECT - cor0.col2 * 89 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to b8d6d5cd5162ff62160e324ea0e81fbb

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) + - col0 col2 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT 46 AS col2 FROM tab0 AS cor0
----
46
46
46

query I rowsort
SELECT ALL + 97 * + 14 FROM tab1
----
1358
1358
1358

query I rowsort
SELECT + 55 AS col1 FROM tab0
----
55
55
55

query I rowsort
SELECT col0 + 11 AS col1 FROM tab1
----
14
75
91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6180
SELECT col2 * col2 + col1 * + CAST( NULL AS SIGNED ) / + col2 + - col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6180
SELECT col2 * col2 + col1 * + CAST ( NULL AS INTEGER ) / + col2 + - col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 37 + + tab1.col0 * - tab1.col0 * + 42 AS col1 FROM tab1
----
-171995
-268763
-341

query I rowsort
SELECT ( col1 ) + - tab1.col0 * - col0 FROM tab1
----
35
4106
6413

query I rowsort
SELECT ALL - ( 44 ) * col2 * - col1 - 19 * + col1 FROM tab1
----
24890
54665
61282

query I rowsort
SELECT + col0 * - col2 + + col0 FROM tab1
----
-159
-3584
-7600

query I rowsort
SELECT ALL - - col0 + - col2 + cor0.col2 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT + ( 63 ) * - col2 AS col2 FROM tab0 AS cor0
----
-2079
-5166
-63

query I rowsort
SELECT ALL + cor1.col0 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT DISTINCT + 53 AS col2 FROM tab2 AS cor0
----
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col1 col0 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT + col2 - + col1 * - 20 FROM tab0
----
1753
1902
1941

query I rowsort
SELECT col0 * + tab1.col2 * + ( 48 ) FROM tab1
----
175104
368640
7776

query I rowsort
SELECT + 85 AS col0 FROM tab1
----
85
85
85

query I rowsort
SELECT + + 36 AS col1 FROM tab0 AS cor0
----
36
36
36

query I rowsort
SELECT + cor0.col1 * - col0 + ( + col2 ) AS col0 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT tab1.col1 + + col1 FROM tab1
----
20
26
52

query I rowsort
SELECT + 97 AS col0 FROM tab0
----
97
97
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col2 col1 FROM tab1
----
108
114
192

onlyif mysql # use DIV operator for integer division
query I rowsort label-6198
SELECT ALL - col0 DIV - col2 + + col1 + - col1 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-6198
SELECT ALL - col0 / - col2 + + col1 + - col1 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT ALL - col2 * + col1 + col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT + col0 * - 2 FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT ALL - col2 + col0 AS col0 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT DISTINCT col1 * 6 FROM tab0 AS cor0
----
516
546
582

query I rowsort
SELECT ALL - col2 * + 35 + 25 + col1 * - col2 AS col1 FROM tab2 AS cor0
----
-1757
-1951
-2419

query I rowsort
SELECT DISTINCT + cor0.col0 + ( + ( col0 ) ) FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT ALL + col1 + col0 * + cor0.col1 AS col1 FROM tab1 cor0
----
104
1053
650

query I rowsort
SELECT + col1 * - 62 + - col2 * + col1 FROM tab1 AS cor0
----
-1190
-2054
-3016

query I rowsort
SELECT DISTINCT + cor0.col1 + + ( + ( col1 ) * + 22 ) FROM tab0 AS cor0
----
1978
2093
2231

onlyif mysql # use DIV operator for integer division
query I rowsort label-6208
SELECT ALL col2 DIV 65 - cor0.col1 * - col0 * col2 AS col0 FROM tab0 AS cor0
----
3395
664119
68112

skipif mysql # not compatible
query I rowsort label-6208
SELECT ALL col2 / 65 - cor0.col1 * - col0 * col2 AS col0 FROM tab0 AS cor0
----
3395
664119
68112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col2 * col0 col1 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT cor0.col2 * col2 + 47 * + col0 + - col0 * col2 AS col2 FROM tab2 AS cor0
----
2155
2314
869

query I rowsort
SELECT DISTINCT + + col1 + - col0 * - col0 AS col0 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT ALL - col1 * - col0 + + 34 * col2 AS col2 FROM tab2 cor0
----
1135
2635
5486

query I rowsort
SELECT DISTINCT - col2 * + col1 - cor0.col2 FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT + cor1.col2 AS col1 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT ALL + cor0.col2 + col1 * + 24 * col0 + + col2 FROM tab0 AS cor0
----
194540
49602
81482

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6216
SELECT cor0.col2 + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6216
SELECT cor0.col2 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 + - cor0.col0 * - col2 AS col2 FROM tab1 AS cor0
----
188
3658
7693

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6218
SELECT + + CAST( NULL AS SIGNED ) + 60 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-6218
SELECT + + CAST ( NULL AS INTEGER ) + 60 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( + 34 ) FROM tab0 AS cor0
----
-34
-34
-34

query I rowsort
SELECT - - col2 * col2 * col2 FROM tab0 AS cor0
----
1
35937
551368

query I rowsort
SELECT ALL - 98 + 94 * col2 AS col2 FROM tab2 AS cor0
----
2346
2440
3474

query I rowsort
SELECT DISTINCT + col2 + - cor0.col2 * col0 AS col1 FROM tab1 AS cor0
----
-108
-3591
-7584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 32 col2 FROM tab0 AS cor0
----
-32

onlyif mysql # use DIV operator for integer division
query I rowsort label-6224
SELECT ALL + col1 * col0 + + col0 DIV + 4 + 50 AS col0 FROM tab0 AS cor0
----
2120
3453
8171

skipif mysql # not compatible
query I rowsort label-6224
SELECT ALL + col1 * col0 + + col0 / + 4 + 50 AS col0 FROM tab0 AS cor0
----
2120
3453
8171

query I rowsort
SELECT - cor0.col0 * col1 + - col2 FROM tab2 AS cor0
----
-1381
-244
-4628

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * + cor0.col2 col0 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT 88 FROM tab2, tab0 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * - 64 col2 FROM tab2 AS cor0
----
-448
-4992
-5056

query I rowsort
SELECT - ( 98 ) AS col1 FROM tab0 AS cor0
----
-98
-98
-98

query I rowsort
SELECT tab1.col0 + - 73 FROM tab1
----
-70
-9
7

query I rowsort
SELECT DISTINCT + 62 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
62

query I rowsort
SELECT DISTINCT col0 * - col2 + col2 + col2 AS col1 FROM tab2 cor0
----
-135
-1976
-2926

query I rowsort
SELECT - 80 AS col1 FROM tab0 AS cor0
----
-80
-80
-80

query I rowsort
SELECT col2 * + col1 + col0 * + col2 + - col0 * 18 AS col0 FROM tab1 cor0
----
1512
3066
7488

query I rowsort
SELECT DISTINCT + - 57 * col1 * col2 AS col2 FROM tab2 AS cor0
----
-36822
-47709
-87438

query I rowsort
SELECT DISTINCT - col1 * - cor0.col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT 27 AS col2 FROM tab0 AS cor0
----
27
27
27

query I rowsort
SELECT DISTINCT col1 * - col1 * - col0 FROM tab2 cor0
----
22831
271518
6727

query I rowsort
SELECT ALL + - col1 * - col2 AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL - - col1 + - col1 * + col0 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT DISTINCT + col1 * - col0 + - ( col2 ) FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT 59 * col2 - col0 AS col0 FROM tab2 AS cor0
----
1456
1586
2163

query I rowsort
SELECT + col1 + - col2 AS col0 FROM tab1 cor0
----
-28
-47
-83

query I rowsort
SELECT DISTINCT - 12 + - col2 FROM tab2 AS cor0
----
-38
-39
-50

query I rowsort
SELECT col1 + col0 * + col0 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT DISTINCT - col2 + cor0.col2 * + cor0.col0 * - 83 + - col1 * 97 FROM tab1 AS cor0
----
-16022
-303811
-638797

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * + col0 - col2 col2 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT ( - 37 ) AS col1 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 395d44ccbce08828bc493e93ec3d9207

query I rowsort
SELECT DISTINCT + col0 + - col1 - + col2 AS col0 FROM tab0
----
-63
-84
-95

onlyif mysql # use DIV operator for integer division
query I rowsort label-6250
SELECT ALL - - col0 DIV + col2 AS col1 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-6250
SELECT ALL - - col0 / + col2 AS col1 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT ( col2 ) * cor0.col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT DISTINCT col0 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-6253
SELECT ALL + col0 * col1 DIV - ( - col1 ) FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-6253
SELECT ALL + col0 * col1 / - ( - col1 ) FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT - 85 AS col0 FROM tab2 cor0
----
-85

query I rowsort
SELECT col2 * - col0 + 99 AS col2 FROM tab1 AS cor0
----
-3549
-63
-7581

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 79 * - col1 - 61 * col1 col2 FROM tab0 cor0
----
-12040
-12740
-13580

query I rowsort
SELECT ALL - 32 * col1 FROM tab0 AS cor0
----
-2752
-2912
-3104

query I rowsort
SELECT DISTINCT - col1 + - cor0.col2 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT ALL - 98 + - tab2.col0 AS col1 FROM tab2
----
-105
-176
-177

query I rowsort
SELECT - + cor0.col0 + + 11 * + 87 AS col0 FROM tab2 AS cor0
----
878
879
950

query I rowsort
SELECT 67 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query I rowsort
SELECT ALL + 65 + - col2 * + ( - 71 ) AS col0 FROM tab2
----
1911
1982
2763

query I rowsort
SELECT - 92 + col1 * col2 AS col1 FROM tab1
----
1156
1312
478

query I rowsort
SELECT - cor0.col0 FROM tab1, tab0 cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

query I rowsort
SELECT + - 7 AS col2 FROM tab0 cor0
----
-7
-7
-7

query I rowsort
SELECT ALL + 49 * col2 * col0 FROM tab1
----
178752
376320
7938

query I rowsort
SELECT ALL ( - tab1.col2 ) FROM tab1
----
-54
-57
-96

query I rowsort
SELECT DISTINCT + cor0.col1 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 62 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query I rowsort
SELECT ALL cor0.col1 * - cor0.col1 FROM tab2, tab0 AS cor0 WHERE NOT NULL NOT IN ( - cor0.col2 )
----

query I rowsort
SELECT - + col1 + + ( col0 ) AS col0 FROM tab1 AS cor0
----
-23
54
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-6272
SELECT ALL 6 DIV + cor0.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-6272
SELECT ALL 6 / + cor0.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT - + 22 FROM tab1 AS cor0
----
-22
-22
-22

onlyif mysql # use DIV operator for integer division
query I rowsort label-6274
SELECT col2 + col2 DIV + col1 FROM tab1 AS cor0
----
103
56
62

skipif mysql # not compatible
query I rowsort label-6274
SELECT col2 + col2 / + col1 FROM tab1 AS cor0
----
103
56
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-6275
SELECT - + 39 * col0 - col1 DIV + col1 AS col2 FROM tab2 cor0
----
-274
-3043
-3082

skipif mysql # not compatible
query I rowsort label-6275
SELECT - + 39 * col0 - col1 / + col1 AS col2 FROM tab2 cor0
----
-274
-3043
-3082

query I rowsort
SELECT col2 * col2 * col0 + cor0.col2 FROM tab1 AS cor0
----
207993
737376
8802

query I rowsort
SELECT + ( col1 ) + - col2 - + col1 AS col1 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT + 49 AS col0 FROM tab2
----
49

query I rowsort
SELECT - 17 AS col2 FROM tab1
----
-17
-17
-17

query I rowsort
SELECT ALL 86 AS col1 FROM tab0
----
86
86
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col2 ) col2 FROM tab2
----
26
27
38

query I rowsort
SELECT DISTINCT + 2 + + col1 * col2 FROM tab1 AS cor0
----
1250
1406
572

query I rowsort
SELECT DISTINCT - 43 + col0 FROM tab1 cor0
----
-40
21
37

query I rowsort
SELECT ALL - 27 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

query I rowsort
SELECT - ( col1 ) AS col1 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT DISTINCT col0 + - ( col2 * - tab2.col0 ) FROM tab2
----
196
2106
3081

query I rowsort
SELECT - col1 * col1 + + col1 FROM tab0 AS cor0
----
-7310
-8190
-9312

query I rowsort
SELECT DISTINCT + col2 + ( col2 ) FROM tab0 cor0
----
164
2
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 81 col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360

query I rowsort
SELECT DISTINCT + ( col1 ) * 44 FROM tab1
----
1144
440
572

query I rowsort
SELECT - cor0.col1 * - ( col2 ) AS col1 FROM tab1 AS cor0
----
1248
1404
570

query IIIIIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab0, tab0 AS cor1
----
243 values hashing to 3581f59ff9574f9d6290fc6bca0b5e4d

query I rowsort
SELECT ALL col0 + - col1 AS col0 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT col1 * - ( + 65 ) FROM tab2
----
-1105
-2015
-3835

query I rowsort
SELECT DISTINCT + + col1 * col2 AS col1 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-6296
SELECT ALL + col2 * col2 DIV col1 FROM tab2 cor0
----
11
23
84

skipif mysql # not compatible
query I rowsort label-6296
SELECT ALL + col2 * col2 / col1 FROM tab2 cor0
----
11
23
84

query I rowsort
SELECT tab1.col0 + cor0.col2 FROM tab1, tab0 cor0
----
9 values hashing to bd4afbebf32cf7139d4a26f0c77f8156

query I rowsort
SELECT DISTINCT - - col0 * - col0 * - col0 FROM tab1 cor0
----
262144
27
512000

query I rowsort
SELECT DISTINCT + - col2 + col0 * col1 + + col2 * + col0 FROM tab0 AS cor0
----
15315
2823
3429

onlyif mysql # use DIV operator for integer division
query I rowsort label-6300
SELECT DISTINCT col1 DIV col1 + col1 * col1 + col1 AS col2 FROM tab1
----
111
183
703

skipif mysql # not compatible
query I rowsort label-6300
SELECT DISTINCT col1 / col1 + col1 * col1 + col1 AS col2 FROM tab1
----
111
183
703

onlyif mysql # use DIV operator for integer division
query I rowsort label-6301
SELECT + col1 DIV col2 - tab0.col1 AS col1 FROM tab0
----
-84
-90
0

skipif mysql # not compatible
query I rowsort label-6301
SELECT + col1 / col2 - tab0.col1 AS col1 FROM tab0
----
-84
-90
0

query I rowsort
SELECT - col1 * col0 + - col0 FROM tab1
----
-1120
-704
-81

query I rowsort
SELECT DISTINCT + col1 * + col1 AS col0 FROM tab0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-6304
SELECT DISTINCT + col1 DIV col1 AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-6304
SELECT DISTINCT + col1 / col1 AS col2 FROM tab0
----
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6305
SELECT col1 - col0 DIV col0 AS col2 FROM tab0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-6305
SELECT col1 - col0 / col0 AS col2 FROM tab0
----
85
90
96

query I rowsort
SELECT col0 * + col2 + - col0 FROM tab2
----
182
1950
2923

query I rowsort
SELECT DISTINCT + tab0.col2 * col2 * col1 FROM tab0
----
611884
93654
97

query I rowsort
SELECT ALL - col2 * col2 * + tab0.col2 FROM tab0
----
-1
-35937
-551368

query I rowsort
SELECT - - col1 + - col0 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
-18
-6025
-6224

query I rowsort
SELECT col1 * cor0.col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - col2 * - col1 AS col1 FROM tab2 cor0
----
1534
646
837

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 CROSS JOIN tab2 WHERE NOT NULL >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * col2 + col2 col2 FROM tab2 AS cor0
----
-1406
-650
-702

query I rowsort
SELECT + col2 - col2 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT tab0.col1 * + tab0.col2 + col1 AS col2 FROM tab0
----
194
2924
7553

query I rowsort
SELECT DISTINCT + col2 + tab0.col0 FROM tab0
----
171
36
57

query I rowsort
SELECT DISTINCT col0 * col2 * - col2 + col2 + col0 FROM tab1
----
-207815
-737104
-8691

onlyif mysql # use DIV operator for integer division
query I rowsort label-6318
SELECT + col1 + col2 DIV col1 AS col0 FROM tab1 AS cor0
----
15
20
28

skipif mysql # not compatible
query I rowsort label-6318
SELECT + col1 + col2 / col1 AS col0 FROM tab1 AS cor0
----
15
20
28

query I rowsort
SELECT ALL + cor0.col2 + + col0 AS col1 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL + cor0.col1 + cor0.col0 * - col2 AS col1 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT DISTINCT + - col1 * + col2 + 50 FROM tab1 AS cor0
----
-1198
-1354
-520

query I rowsort
SELECT ALL - col2 - - col2 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 14 * + col0 col0 FROM tab1 AS cor0
----
-1120
-42
-896

onlyif mysql # use DIV operator for integer division
query I rowsort label-6324
SELECT DISTINCT + col1 + col2 DIV - col0 FROM tab0 AS cor0
----
85
91
97

skipif mysql # not compatible
query I rowsort label-6324
SELECT DISTINCT + col1 + col2 / - col0 FROM tab0 AS cor0
----
85
91
97

query I rowsort
SELECT 59 FROM tab2 AS cor0
----
59
59
59

query I rowsort
SELECT DISTINCT - 97 AS col2 FROM tab1 AS cor0
----
-97

query I rowsort
SELECT ALL + - col1 * col1 AS col1 FROM tab1 cor0
----
-100
-169
-676

onlyif mysql # use DIV operator for integer division
query I rowsort label-6328
SELECT DISTINCT + - 18 + - col2 * cor0.col1 DIV col0 FROM tab2 AS cor0
----
-137
-26
-37

skipif mysql # not compatible
query I rowsort label-6328
SELECT DISTINCT + - 18 + - col2 * cor0.col1 / col0 FROM tab2 AS cor0
----
-137
-26
-37

onlyif mysql # use DIV operator for integer division
query I rowsort label-6329
SELECT ALL + + col1 DIV + col1 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6329
SELECT ALL + + col1 / + col1 FROM tab1 cor0
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6330
SELECT - 82 * + col0 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6330
SELECT - 82 * + col0 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 * - col2 + - col2 * + col1 AS col1 FROM tab1 AS cor0
----
-1566
-4218
-8928

query I rowsort
SELECT ALL + 87 FROM tab0 AS cor0
----
87
87
87

query I rowsort
SELECT DISTINCT col1 * - col2 FROM tab0 cor0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * col1 + - ( cor0.col0 ) col2 FROM tab0 AS cor0
----
-7420
-8370
-9444

query I rowsort
SELECT ALL - + col0 - + col2 * + col0 AS col1 FROM tab0 AS cor0
----
-70
-7387
-816

onlyif mysql # use DIV operator for integer division
query I rowsort label-6336
SELECT ALL - col2 + - col2 DIV + 12 FROM tab1 cor0
----
-104
-58
-61

skipif mysql # not compatible
query I rowsort label-6336
SELECT ALL - col2 + - col2 / + 12 FROM tab1 cor0
----
-104
-58
-61

query I rowsort
SELECT DISTINCT - + col2 * + cor0.col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT 69 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT DISTINCT cor0.col1 * - cor0.col1 + cor0.col0 AS col1 FROM tab1, tab1 AS cor0
----
-36
-673
-89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6340
SELECT DISTINCT + + col1 * CAST( NULL AS SIGNED ) * + 22 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6340
SELECT DISTINCT + + col1 * CAST ( NULL AS INTEGER ) * + 22 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL 3 AS col0 FROM tab1
----
3
3
3

query I rowsort
SELECT + 71 + col2 AS col2 FROM tab2 AS cor0
----
109
97
98

query I rowsort
SELECT DISTINCT cor0.col0 * 68 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
1632
2380
6052

query I rowsort
SELECT ALL - + cor0.col0 AS col0 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT col0 + col0 * col2 * cor0.col2 AS col1 FROM tab0 AS cor0
----
26160
598525
70

query I rowsort
SELECT ALL - col0 * col0 * + cor0.col0 FROM tab2 AS cor0
----
-343
-474552
-493039

query I rowsort
SELECT col2 * 31 + col2 * ( - col0 ) FROM tab1 AS cor0
----
-1881
-4704
1512

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6348
SELECT DISTINCT + CAST( col1 AS SIGNED ) + cor0.col0 AS col0 FROM tab0 AS cor0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-6348
SELECT DISTINCT + CAST ( col1 AS INTEGER ) + cor0.col0 AS col0 FROM tab0 AS cor0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-6349
SELECT ALL - + col1 DIV - 91 AS col0 FROM tab0 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6349
SELECT ALL - + col1 / - 91 AS col0 FROM tab0 cor0
----
0
1
1

query I rowsort
SELECT col1 * col2 + - col0 * col2 FROM tab0
----
164
2046
62

query I rowsort
SELECT DISTINCT - col0 - 99 * - col1 FROM tab1
----
1207
2571
926

onlyif mysql # use DIV operator for integer division
query I rowsort label-6352
SELECT 87 - - col2 DIV - col0 FROM tab0
----
86
87
87

skipif mysql # not compatible
query I rowsort label-6352
SELECT 87 - - col2 / - col0 FROM tab0
----
86
87
87

query I rowsort
SELECT col1 * - tab2.col0 * - col2 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT DISTINCT - 35 * col2 + col0 FROM tab2
----
-1251
-832
-938

onlyif mysql # use DIV operator for integer division
query I rowsort label-6355
SELECT col1 - + col2 DIV - tab0.col1 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-6355
SELECT col1 - + col2 / - tab0.col1 FROM tab0
----
86
91
97

query I rowsort
SELECT + 25 + col2 AS col1 FROM tab2
----
51
52
63

query I rowsort
SELECT DISTINCT ( 49 ) * + col1 + col0 FROM tab1
----
1277
554
717

query I rowsort
SELECT col2 * tab0.col1 - + col1 AS col2 FROM tab0
----
0
2752
7371

query I rowsort
SELECT ALL + tab1.col0 + + col0 FROM tab1
----
128
160
6

query I rowsort
SELECT - + cor0.col1 * 34 + col0 * + col2 + col1 AS col0 FROM tab0 AS cor0
----
-2046
-3166
4295

query I rowsort
SELECT - ( col2 ) + - cor0.col1 + col0 FROM tab1 AS cor0
----
-29
-3
-77

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6362
SELECT DISTINCT CAST( col1 AS SIGNED ) + col2 AS col1 FROM tab2
----
55
58
85

skipif mysql # not compatible
query I rowsort label-6362
SELECT DISTINCT CAST ( col1 AS INTEGER ) + col2 AS col1 FROM tab2
----
55
58
85

query I rowsort
SELECT ALL + ( col0 ) + col2 FROM tab2
----
104
117
34

query I rowsort
SELECT ALL 42 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query I rowsort
SELECT DISTINCT 24 + + col0 * + col0 FROM tab2
----
6108
6265
73

query I rowsort
SELECT - 10 * - col0 + + col2 FROM tab2 AS cor0
----
806
828
97

query I rowsort
SELECT col0 + col0 + - col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL ( + col1 ) + tab2.col2 AS col0 FROM tab2
----
55
58
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col1 col2 FROM tab2
----
-33
-4
21

query I rowsort
SELECT + ( + tab1.col1 ) * col2 AS col2 FROM tab1
----
1248
1404
570

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 - + 53 + - cor0.col1 + col0 AS col0 FROM tab0 AS cor0
----
-115
-115
-55

onlyif mysql # use DIV operator for integer division
query I rowsort label-6373
SELECT - col2 + col2 * + col2 + + ( col2 ) DIV - col1 FROM tab2 AS cor0
----
1404
650
702

skipif mysql # not compatible
query I rowsort label-6373
SELECT - col2 + col2 * + col2 + + ( col2 ) / - col1 FROM tab2 AS cor0
----
1404
650
702

onlyif mysql # use DIV operator for integer division
query I rowsort label-6374
SELECT + col1 + cor0.col2 + ( cor0.col0 ) DIV col1 AS col1 FROM tab2 AS cor0
----
58
59
86

skipif mysql # not compatible
query I rowsort label-6374
SELECT + col1 + cor0.col2 + ( cor0.col0 ) / col1 AS col1 FROM tab2 AS cor0
----
58
59
86

query I rowsort
SELECT ALL - cor0.col1 * - col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT - 74 FROM tab0 AS cor0
----
-74

query I rowsort
SELECT + col1 + + col1 * - col0 AS col2 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT 54 * 39 + - tab2.col2 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to bc74a829360b044131f10a99dcc84782

query I rowsort
SELECT DISTINCT col0 * - ( col2 ) FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL + + col2 * col2 * col0 AS col2 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT DISTINCT - + col0 - - 22 AS col0 FROM tab1 cor0
----
-42
-58
19

query I rowsort
SELECT 44 FROM tab2, tab0 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT - ( - cor1.col0 ) * + 83 AS col2 FROM tab2, tab1 cor0, tab1 AS cor1
----
27 values hashing to 3764fe51a66396d182dfb52ddf023073

query I rowsort
SELECT DISTINCT col0 * + col1 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT 75 * - col1 + - col0 * - 80 - 15 * + col2 FROM tab1 AS cor0
----
-2520
3515
3985

query I rowsort
SELECT DISTINCT - cor0.col2 * + cor0.col2 FROM tab0 AS cor0
----
-1
-1089
-6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-6387
SELECT + 89 * cor0.col2 + col0 + col0 DIV 94 FROM tab2 AS cor0
----
2392
2410
3461

skipif mysql # not compatible
query I rowsort label-6387
SELECT + 89 * cor0.col2 + col0 + col0 / 94 FROM tab2 AS cor0
----
2392
2410
3461

query I rowsort
SELECT col0 + + col1 * col1 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT DISTINCT + col1 + col0 * col2 FROM tab1 cor0
----
188
3658
7693

query I rowsort
SELECT ALL - + ( 54 ) * - cor0.col2 + - 72 FROM tab2 AS cor0
----
1332
1386
1980

query I rowsort
SELECT 6 + col2 * + col1 + col1 FROM tab1 AS cor0
----
1267
1436
586

query I rowsort
SELECT ALL + + cor0.col1 * col2 + col2 AS col1 FROM tab1 cor0
----
1344
1458
627

query I rowsort
SELECT col2 * col0 + + col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT DISTINCT ( cor0.col0 ) * col2 + ( - col2 ) FROM tab0 AS cor0
----
34
7216
759

onlyif mysql # use DIV operator for integer division
query I rowsort label-6395
SELECT ALL + 29 DIV - 65 + - cor0.col2 * - col1 + - ( - cor0.col0 ) col2 FROM tab2 AS cor0
----
1612
725
844

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6395
SELECT ALL + 29 / - 65 + - cor0.col2 * - col1 + - ( - cor0.col0 ) col2 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT - 2 + + col2 AS col2 FROM tab1 AS cor0
----
52
55
94

query I rowsort
SELECT 25 - - col0 AS col0 FROM tab1 AS cor0
----
105
28
89

query I rowsort
SELECT ALL + col2 - + col0 FROM tab2
----
-41
-52
20

query I rowsort
SELECT - cor0.col0 * - col2 + - col0 + - cor0.col1 AS col2 FROM tab2 cor0
----
151
1891
2906

query I rowsort
SELECT + - 11 * ( col1 + col0 * col2 ) AS col2 FROM tab0 AS cor0
----
-1452
-81279
-9658

query I rowsort
SELECT + 89 - - col2 FROM tab2 AS cor0
----
115
116
127

query I rowsort
SELECT DISTINCT 81 AS col2 FROM tab0, tab0 AS cor0
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + ( + cor0.col2 ) col1 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT - col2 * + 86 + - 27 AS col1 FROM tab2 cor0
----
-2263
-2349
-3295

query I rowsort
SELECT DISTINCT - + col2 * - 64 - 57 FROM tab1 cor0
----
3399
3591
6087

onlyif mysql # use DIV operator for integer division
query I rowsort label-6406
SELECT + 87 DIV col1 FROM tab1 AS cor0
----
3
6
8

skipif mysql # not compatible
query I rowsort label-6406
SELECT + 87 / col1 FROM tab1 AS cor0
----
3
6
8

query I rowsort
SELECT + + col0 * - 29 FROM tab2 AS cor0
----
-203
-2262
-2291

query I rowsort
SELECT ( 4 ) FROM tab1 AS cor0
----
4
4
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6409
SELECT CAST( + 7 AS SIGNED ) FROM tab2 AS cor0
----
7
7
7

skipif mysql # not compatible
query I rowsort label-6409
SELECT CAST ( + 7 AS INTEGER ) FROM tab2 AS cor0
----
7
7
7

query I rowsort
SELECT ALL + - col1 + + col0 * 69 AS col1 FROM tab1 cor0
----
181
4406
5507

query I rowsort
SELECT DISTINCT + + col0 + col2 AS col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT 92 + + col1 FROM tab1 AS cor0
----
102
105
118

query I rowsort
SELECT - + cor0.col2 + + col2 * - ( cor0.col1 * cor0.col2 ) FROM tab0 cor0
----
-611966
-93687
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-6414
SELECT ALL + col2 DIV col1 - - ( - 65 ) AS col1 FROM tab1 cor0
----
-58
-60
-63

skipif mysql # not compatible
query I rowsort label-6414
SELECT ALL + col2 / col1 - - ( - 65 ) AS col1 FROM tab1 cor0
----
-58
-60
-63

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6415
SELECT 89 + - cor0.col2 + CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
142
185
98

skipif mysql # not compatible
query I rowsort label-6415
SELECT 89 + - cor0.col2 + CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
142
185
98

query I rowsort
SELECT - 36 * - col1 FROM tab2 AS cor0
----
1116
2124
612

query I rowsort
SELECT - + ( cor0.col0 ) * col0 AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT + col1 + - col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 * - ( col0 ) + col0 FROM tab2 cor0
----
-182
-1950
-2923

query I rowsort
SELECT + col1 * 69 * - col0 + col1 * col1 + 57 FROM tab0 AS cor0
----
-134963
-224789
-550493

query I rowsort
SELECT + cor0.col0 * - cor0.col1 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT - cor0.col0 * 28 + col1 AS col0 FROM tab1 AS cor0
----
-1782
-2227
-58

onlyif mysql # use DIV operator for integer division
query I rowsort label-6423
SELECT + col1 + col1 DIV + col0 AS col0 FROM tab2 AS cor0
----
17
35
59

skipif mysql # not compatible
query I rowsort label-6423
SELECT + col1 + col1 / + col0 AS col0 FROM tab2 AS cor0
----
17
35
59

query I rowsort
SELECT DISTINCT + col1 + - ( 47 ) AS col1 FROM tab0 AS cor0
----
39
44
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - col0 * 62 col1 FROM tab0 AS cor0
----
-1402
-2073
-5427

query I rowsort
SELECT + col1 * col0 * + col0 + col2 + + 27 FROM tab2 AS cor0
----
106162
1573
359009

query I rowsort
SELECT + + 2 * + 38 FROM tab2, tab1 AS cor0, tab1, tab1 cor1
----
81 values hashing to a8a6c4c5005303c62d4e50b6c96b584f

query I rowsort
SELECT DISTINCT - 69 AS col2 FROM tab2 AS cor0
----
-69

query I rowsort
SELECT DISTINCT - + ( 61 ) AS col1 FROM tab0 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( col0 AS REAL ) + - col2 AS col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT - 34 FROM tab0 cor0
----
-34
-34
-34

query I rowsort
SELECT ALL + col0 + + 1 FROM tab0
----
25
36
90

query I rowsort
SELECT + cor1.col2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT ALL col1 + + col2 * 26 FROM tab2
----
1005
733
735

query I rowsort
SELECT + col0 * + col2 * ( col2 ) - - col1 AS col2 FROM tab2 AS cor0
----
114093
5134
52787

query I rowsort
SELECT DISTINCT - 76 * col0 FROM tab1 AS cor0
----
-228
-4864
-6080

query I rowsort
SELECT - 13 + col0 FROM tab0 AS cor0
----
11
22
76

query I rowsort
SELECT 23 * + col1 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
240
312
624

query I rowsort
SELECT 70 AS col1 FROM tab0
----
70
70
70

query I rowsort
SELECT col0 + col0 + col2 FROM tab2
----
182
196
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col0 + col2 col0 FROM tab2
----
182
196
41

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6442
SELECT + 44 + col2 * CAST( NULL AS SIGNED ) * 28 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6442
SELECT + 44 + col2 * CAST ( NULL AS INTEGER ) * 28 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 - col1 AS col1 FROM tab2
----
-24
19
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-6444
SELECT 20 DIV cor0.col0 + + col1 + col0 * - cor0.col0 FROM tab2 AS cor0
----
-16
-6025
-6224

skipif mysql # not compatible
query I rowsort label-6444
SELECT 20 / cor0.col0 + + col1 + col0 * - cor0.col0 FROM tab2 AS cor0
----
-16
-6025
-6224

query I rowsort
SELECT + - col0 * - col1 * - ( - col0 * + col2 ) + - 15 + - col2 * cor0.col1 FROM tab0 AS cor0
----
118713
1631835
59099025

query I rowsort
SELECT 59 + col2 AS col1 FROM tab2 cor0
----
85
86
97

query I rowsort
SELECT DISTINCT + 72 AS col2 FROM tab2, tab1 AS cor0
----
72

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col2 + col0 NOT IN ( + col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col1 col1 FROM tab1
----
20
26
52

query I rowsort
SELECT DISTINCT - tab0.col1 * - col1 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT tab0.col1 * col2 + + col0 FROM tab0
----
132
2862
7551

query I rowsort
SELECT ALL col1 - + col2 FROM tab2
----
-21
33
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-6453
SELECT - col1 * col1 + + col2 DIV col0 AS col1 FROM tab1 WHERE col2 + - col2 <> - tab1.col0
----
-100
-168
-658

skipif mysql # not compatible
query I rowsort label-6453
SELECT - col1 * col1 + + col2 / col0 AS col1 FROM tab1 WHERE col2 + - col2 <> - tab1.col0
----
-100
-168
-658

onlyif mysql # use DIV operator for integer division
query I rowsort label-6454
SELECT - col0 * - col1 + col1 DIV col0 AS col1 FROM tab0
----
2067
3397
8100

skipif mysql # not compatible
query I rowsort label-6454
SELECT - col0 * - col1 + col1 / col0 AS col1 FROM tab0
----
2067
3397
8100

query I rowsort
SELECT - col1 * col0 + col0 * col0 * + col2 FROM tab0 WHERE NOT ( NULL ) = NULL
----

query I rowsort
SELECT col2 * - col0 AS col1 FROM tab1 WHERE NOT NULL BETWEEN col0 + col0 AND NULL
----

query I rowsort
SELECT + tab2.col2 + + col0 FROM tab2
----
104
117
34

query I rowsort
SELECT DISTINCT + col2 * col2 - tab0.col2 AS col1 FROM tab0
----
0
1056
6642

query I rowsort
SELECT DISTINCT + col1 + - cor0.col2 FROM tab0 AS cor0
----
53
9
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6460
SELECT + col2 * - col2 + CAST( - cor0.col1 + - col0 AS SIGNED ) col1 FROM tab2 AS cor0
----
-1540
-767
-813

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6460
SELECT + col2 * - col2 + CAST ( - cor0.col1 + - col0 AS INTEGER ) col1 FROM tab2 AS cor0
----
-1540
-767
-813

onlyif mysql # use DIV operator for integer division
query I rowsort label-6461
SELECT DISTINCT - + col2 DIV col0 AS col0 FROM tab1 AS cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-6461
SELECT DISTINCT - + col2 / col0 AS col0 FROM tab1 AS cor0
----
-1
-18
0

query I rowsort
SELECT ALL + - col0 + col2 AS col2 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT DISTINCT - col1 + - col2 * - col0 - tab2.col0 AS col2 FROM tab2
----
151
1891
2906

query I rowsort
SELECT ALL + col1 + tab2.col0 * + col2 * + tab2.col1 + - col0 FROM tab2
----
119633
50972
5883

query I rowsort
SELECT ALL + col1 * - col0 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT tab2.col0 * + col2 FROM tab2
----
189
2028
3002

query I rowsort
SELECT ALL tab2.col2 * + col1 + - tab2.col1 - col0 FROM tab2
----
1397
550
799

query I rowsort
SELECT col1 * tab1.col0 * col0 FROM tab1
----
234
40960
83200

query I rowsort
SELECT DISTINCT - col0 * col2 FROM tab0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col2 FROM tab1 WHERE NOT NULL >= ( NULL )
----

query I rowsort
SELECT DISTINCT + col1 * cor0.col2 + col0 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT ALL + col0 + col1 AS col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT - col1 + - cor0.col2 * + col2 AS col0 FROM tab1 cor0 WHERE - col0 NOT IN ( col0 + col1 * - col1 )
----
-2942
-3259
-9229

query I rowsort
SELECT DISTINCT + col1 * col0 AS col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col0 + - col1 * + col1 AND ( col1 )
----

query I rowsort
SELECT ALL col0 + + col0 * cor0.col1 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT - col0 + col1 * - col1 FROM tab1 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND + col2
----

query I rowsort
SELECT ALL + col2 + col1 * col2 - col0 AS col2 FROM tab2
----
1482
605
857

onlyif mysql # use DIV operator for integer division
query I rowsort label-6478
SELECT ALL col0 * + col2 + + col1 DIV + col2 + + tab0.col0 FROM tab0
----
167
7388
818

skipif mysql # not compatible
query I rowsort label-6478
SELECT ALL col0 * + col2 + + col1 / + col2 + + tab0.col0 FROM tab0
----
167
7388
818

query I rowsort
SELECT ALL + col1 * - cor0.col1 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT col2 * - col0 + + col1 AS col1 FROM tab0 WHERE col0 IN ( tab0.col1 * col0 )
----

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NOT + col2 = col0 * col1 * - col2 + col2 * + col0
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-6482
SELECT col0 * col1 DIV col1 AS col1 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-6482
SELECT col0 * col1 / col1 AS col1 FROM tab1
----
3
64
80

query I rowsort
SELECT ALL - col1 - + col0 FROM tab1
----
-29
-74
-93

query I rowsort
SELECT col0 * col1 - col1 * - col0 AS col1 FROM tab2
----
2686
434
9204

query I rowsort
SELECT ALL col1 - tab2.col1 FROM tab2
----
0
0
0

query I rowsort
SELECT - tab1.col2 + + col1 + col2 * tab1.col2 FROM tab1
----
2888
3202
9133

onlyif mysql # use DIV operator for integer division
query I rowsort label-6487
SELECT ALL - tab1.col1 DIV col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6487
SELECT ALL - tab1.col1 / col2 FROM tab1
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) IN ( - col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6489
SELECT DISTINCT + tab2.col0 DIV - col1 FROM tab2
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-6489
SELECT DISTINCT + tab2.col0 / - col1 FROM tab2
----
-1
-4
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6490
SELECT DISTINCT col0 DIV + col2 col0 FROM tab1
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6490
SELECT DISTINCT col0 / + col2 col0 FROM tab1
----
0
1

query I rowsort
SELECT col1 + + col2 FROM tab1 WHERE NOT - col2 - - col2 > col1 + col2
----
109
67
80

query I rowsort
SELECT tab1.col2 * col2 + col1 + + col0 * col1 AS col1 FROM tab1
----
10269
3020
3899

query I rowsort
SELECT ALL + col1 AS col2 FROM tab0 WHERE NOT + col0 * + col1 - col1 BETWEEN ( - col2 ) AND ( - col1 )
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6494
SELECT ALL + col1 DIV col0 AS col0 FROM tab1
----
0
0
8

skipif mysql # not compatible
query I rowsort label-6494
SELECT ALL + col1 / col0 AS col0 FROM tab1
----
0
0
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-6495
SELECT ALL - col0 * - col2 DIV - col2 FROM tab0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-6495
SELECT ALL - col0 * - col2 / - col2 FROM tab0
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-6496
SELECT + + col0 + + 35 DIV - cor0.col1 AS col0 FROM tab0 cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-6496
SELECT + + col0 + + 35 / - cor0.col1 AS col0 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT + 12 * - col1 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
12480
7680
936

query I rowsort
SELECT - - 45 * + cor0.col1 + + col2 FROM tab0 AS cor0
----
3903
4177
4366

onlyif mysql # use DIV operator for integer division
query I rowsort label-6499
SELECT ALL - tab2.col1 DIV 61 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6499
SELECT ALL - tab2.col1 / 61 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT col1 + 87 FROM tab2
----
104
118
146

query I rowsort
SELECT DISTINCT - col0 * - ( - col0 * + col2 ) FROM tab0
----
-1225
-19008
-649522

query I rowsort
SELECT ( - 73 ) AS col1 FROM tab0
----
-73
-73
-73

onlyif mysql # use DIV operator for integer division
query I rowsort label-6503
SELECT col0 DIV 16 FROM tab2
----
0
4
4

skipif mysql # not compatible
query I rowsort label-6503
SELECT col0 / 16 FROM tab2
----
0
4
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-6504
SELECT + col0 DIV col0 AS col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6504
SELECT + col0 / col0 AS col1 FROM tab0
----
1
1
1

query I rowsort
SELECT ( col0 ) * tab1.col0 FROM tab1
----
4096
6400
9

query I rowsort
SELECT 89 * - col0 + - col0 + col2 AS col1 FROM tab1
----
-216
-5703
-7104

query I rowsort
SELECT ALL - 48 FROM tab0, tab0 AS cor0
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

onlyif mysql # use DIV operator for integer division
query I rowsort label-6508
SELECT ( + col2 ) DIV col2 + col1 * col2 + cor0.col1 AS col2 FROM tab0 AS cor0
----
195
2925
7554

skipif mysql # not compatible
query I rowsort label-6508
SELECT ( + col2 ) / col2 + col1 * col2 + cor0.col1 AS col2 FROM tab0 AS cor0
----
195
2925
7554

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6509
SELECT CAST( NULL AS DECIMAL ) * col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6509
SELECT CAST ( NULL AS REAL ) * col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6510
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 69 + col0 * - col0 * col1 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6510
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 69 + col0 * - col0 * col1 AS col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col1 * col1 * col1 + col1 FROM tab2
----
205438
29822
4930

query I rowsort
SELECT ( + col1 ) + + col1 AS col1 FROM tab2 AS cor0
----
118
34
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT + - CAST ( col2 AS REAL ) * - cor0.col0 col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT + col2 * - 8 FROM tab0
----
-264
-656
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) + - 58 col1 FROM tab2
----
-27
-41
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 col2 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6517
SELECT ALL + + ( col0 ) * CAST( NULL AS SIGNED ) + + 13 * col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6517
SELECT ALL + + ( col0 ) * CAST ( NULL AS INTEGER ) + + 13 * col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL cor0.col2 + + col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT + + col0 * + col1 * + 0 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + cor0.col1 + - col2 * + col1 FROM tab2 cor0
----
-1475
-629
-806

query I rowsort
SELECT DISTINCT - col1 + col0 * 58 + - cor0.col2 FROM tab1 cor0
----
3645
4531
94

query I rowsort
SELECT - col0 * ( 39 ) AS col0 FROM tab1 AS cor0
----
-117
-2496
-3120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + + ( + col0 ) col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6524
SELECT - + col2 DIV + col0 AS col1 FROM tab1 AS cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-6524
SELECT - + col2 / + col0 AS col1 FROM tab1 AS cor0
----
-1
-18
0

query I rowsort
SELECT DISTINCT - col1 * + 4 AS col0 FROM tab2 AS cor0
----
-124
-236
-68

query I rowsort
SELECT col0 + col0 * + col1 AS col0 FROM tab2 AS cor0
----
1422
224
4680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6527
SELECT DISTINCT cor0.col0 * - CAST( NULL AS DECIMAL ) + + 35 col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6527
SELECT DISTINCT cor0.col0 * - CAST ( NULL AS REAL ) + + 35 col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + col1 * - 93 * col1 AS col2 FROM tab0 AS cor0
----
-687828
-770133
-875037

query I rowsort
SELECT ALL - + 67 AS col2 FROM tab0 AS cor0
----
-67
-67
-67

onlyif mysql # use DIV operator for integer division
query I rowsort label-6530
SELECT + - col0 + cor0.col2 DIV cor0.col1 col2 FROM tab2 AS cor0
----
-7
-77
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6530
SELECT + - col0 + cor0.col2 / cor0.col1 col2 FROM tab2 AS cor0
----
-7
-77
-78

query I rowsort
SELECT + 81 AS col1 FROM tab1, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6532
SELECT CAST( - col2 AS SIGNED ) * col0 AS col2 FROM tab1
----
-162
-3648
-7680

skipif mysql # not compatible
query I rowsort label-6532
SELECT CAST ( - col2 AS INTEGER ) * col0 AS col2 FROM tab1
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-6533
SELECT DISTINCT 43 DIV col2 AS col2 FROM tab0
----
0
1
43

skipif mysql # not compatible
query I rowsort label-6533
SELECT DISTINCT 43 / col2 AS col2 FROM tab0
----
0
1
43

query I rowsort
SELECT DISTINCT ( + col2 ) FROM tab2
----
26
27
38

query I rowsort
SELECT DISTINCT + col1 + col0 * col2 FROM tab1
----
188
3658
7693

query I rowsort
SELECT 88 - col2 * ( col2 + + col0 ) FROM tab1
----
-16808
-2990
-6809

query I rowsort
SELECT + col1 - col0 AS col1 FROM tab1
----
-54
-67
23

query I rowsort
SELECT DISTINCT - col2 * tab2.col1 AS col1 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT 93 + col2 FROM tab2 cor0
----
119
120
131

query I rowsort
SELECT DISTINCT + tab0.col2 + - 80 * col0 FROM tab0
----
-1887
-2799
-7038

onlyif mysql # use DIV operator for integer division
query I rowsort label-6541
SELECT col0 DIV + ( tab0.col2 ) AS col2 FROM tab0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-6541
SELECT col0 / + ( tab0.col2 ) AS col2 FROM tab0
----
0
1
35

query I rowsort
SELECT ALL + + col2 + + col0 * 83 FROM tab2 AS cor0
----
608
6500
6595

query I rowsort
SELECT DISTINCT col0 * + col2 * + 64 AS col1 FROM tab1
----
10368
233472
491520

query I rowsort
SELECT + col0 + - 25 * col2 + 34 FROM tab0 AS cor0
----
-1927
-767
44

query I rowsort
SELECT - col1 * col0 - + col2 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT col1 * cor0.col2 + col0 + cor0.col1 FROM tab0 AS cor0
----
229
2948
7642

query I rowsort
SELECT - col2 + + cor0.col1 * - col1 AS col0 FROM tab1 AS cor0
----
-157
-265
-730

query I rowsort
SELECT + - col2 * + col0 + + col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT + col0 + 24 AS col1 FROM tab1
----
104
27
88

query I rowsort
SELECT ALL col2 * 23 - - col0 AS col0 FROM tab1
----
1245
1375
2288

query I rowsort
SELECT ALL + col1 + - tab0.col0 * col0 * col1 - - col1 * + col2 AS col2 FROM tab0
----
-118631
-46612
-713258

query I rowsort
SELECT - 93 + - tab1.col0 AS col0 FROM tab1
----
-157
-173
-96

query I rowsort
SELECT DISTINCT ( + col2 ) + - col2 - + 99 FROM tab2
----
-99

query I rowsort
SELECT ALL - 16 - - col1 FROM tab2
----
1
15
43

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-6556
SELECT DISTINCT col2 DIV cor0.col1 + + col0 col2 FROM tab1 AS cor0
----
5
69
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6556
SELECT DISTINCT col2 / cor0.col1 + + col0 col2 FROM tab1 AS cor0
----
5
69
87

query I rowsort
SELECT ALL + ( 79 ) + col0 FROM tab1 AS cor0
----
143
159
82

query I rowsort
SELECT tab1.col2 + col2 AS col1 FROM tab1
----
108
114
192

query I rowsort
SELECT col1 * col2 + col2 + + 25 FROM tab2
----
1585
709
889

query I rowsort
SELECT + 52 FROM tab2 AS cor0
----
52
52
52

query I rowsort
SELECT + cor0.col2 * + col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT ALL - - 33 FROM tab0 AS cor0
----
33
33
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + col0 col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT + cor0.col0 + - cor0.col1 + col2 AS col0 FROM tab2 AS cor0
----
100
3
45

query I rowsort
SELECT - col0 * + col2 * - col0 + cor0.col0 FROM tab0 AS cor0
----
1260
19032
649611

query I rowsort
SELECT DISTINCT - - ( cor0.col1 ) + + col1 * col2 FROM tab1 AS cor0
----
1261
1430
580

onlyif mysql # use DIV operator for integer division
query I rowsort label-6567
SELECT ALL + 61 DIV cor0.col1 + ( - col0 ) FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-6567
SELECT ALL + 61 / cor0.col1 + ( - col0 ) FROM tab0 AS cor0
----
-24
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col0 col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT 7 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT + + ( col1 ) * cor0.col0 + ( - col0 ) * + col0 AS col1 FROM tab0 AS cor0
----
1488
178
2170

query I rowsort
SELECT DISTINCT - - col0 + col0 AS col0 FROM tab2 AS cor0
----
14
156
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col0 + 45 * col1 col1 FROM tab0 cor0
----
12194
5934
7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-6573
SELECT ALL + col0 + col0 * col1 DIV - col2 AS col1 FROM tab0 AS cor0
----
-3360
-38
-9

skipif mysql # not compatible
query I rowsort label-6573
SELECT ALL + col0 + col0 * col1 / - col2 AS col1 FROM tab0 AS cor0
----
-3360
-38
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col1 + + col2 col1 FROM tab0 AS cor0
----
2097
3396
8181

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6575
SELECT - col0 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6575
SELECT - col0 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + - 10 * 22 FROM tab0 AS cor0
----
-123
-129
-134

query I rowsort
SELECT + cor0.col1 * col0 AS col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL + col0 * 76 AS col1 FROM tab1 AS cor0
----
228
4864
6080

query I rowsort
SELECT ALL + col0 - 14 FROM tab0 AS cor0
----
10
21
75

query I rowsort
SELECT - - col2 * 43 FROM tab1 AS cor0
----
2322
2451
4128

skipif mysql # not compatible
query I rowsort
SELECT ALL + - col0 * CAST ( col2 AS REAL ) + col0 AS col2 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT DISTINCT + + cor0.col2 + 42 AS col2 FROM tab2 AS cor0
----
68
69
80

query I rowsort
SELECT ALL + 51 + + col1 AS col1 FROM tab2 AS cor0
----
110
68
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col2 + - col1 + col1 col1 FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT DISTINCT - cor0.col0 + + col1 * cor0.col2 + - col1 FROM tab1 AS cor0
----
1155
1375
496

query I rowsort
SELECT 7 + - col2 * col0 AS col0 FROM tab0 cor0
----
-28
-7291
-785

query I rowsort
SELECT ALL + 44 * + col0 * - 66 - 87 AS col0 FROM tab0
----
-101727
-258543
-69783

query I rowsort
SELECT + + col1 + ( col0 ) AS col1 FROM tab0 AS cor0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-6589
SELECT + - col2 DIV col0 AS col0 FROM tab1 AS cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-6589
SELECT + - col2 / col0 AS col0 FROM tab1 AS cor0
----
-1
-18
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * - col0 - + ( col0 ) col1 FROM tab1 AS cor0
----
-12
-4160
-6480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 64 col2 FROM tab0
----
-64
-64
-64

query I rowsort
SELECT ALL col0 - col1 * + 16 FROM tab0
----
-1352
-1367
-1517

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 54 ) col1 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
27 values hashing to 71e27a12767d3a987ce05e4d6edad211

query I rowsort
SELECT DISTINCT 91 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
91

query I rowsort
SELECT ALL + cor0.col2 * 26 AS col0 FROM tab1 AS cor0
----
1404
1482
2496

query I rowsort
SELECT DISTINCT + - col2 * + 65 AS col1 FROM tab1 AS cor0
----
-3510
-3705
-6240

query I rowsort
SELECT ALL + - col0 + 89 FROM tab2 AS cor0
----
10
11
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6598
SELECT + - col2 + - ( + ( cor0.col0 ) * CAST( NULL AS SIGNED ) + col1 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6598
SELECT + - col2 + - ( + ( cor0.col0 ) * CAST ( NULL AS INTEGER ) + col1 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col0 + col0 + + 44 AS col1 FROM tab2 AS cor0
----
44
44
44

query I rowsort
SELECT ALL col2 * - ( col0 ) FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT - col0 - - col0 * col2 FROM tab1 AS cor0
----
159
3584
7600

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6602
SELECT DISTINCT cor0.col0 * - CAST( col0 AS SIGNED ) FROM tab0 cor0
----
-1225
-576
-7921

skipif mysql # not compatible
query I rowsort label-6602
SELECT DISTINCT cor0.col0 * - CAST ( col0 AS INTEGER ) FROM tab0 cor0
----
-1225
-576
-7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-6603
SELECT DISTINCT - col2 DIV + col0 AS col0 FROM tab1 AS cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-6603
SELECT DISTINCT - col2 / + col0 AS col0 FROM tab1 AS cor0
----
-1
-18
0

query I rowsort
SELECT + col2 + + col2 * col0 FROM tab0 AS cor0
----
36
7380
825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - 65 * 28 col0 FROM tab0 cor0
----
-1738
-1787
-1819

query I rowsort
SELECT + 49 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

onlyif mysql # use DIV operator for integer division
query I rowsort label-6607
SELECT ALL + cor0.col2 DIV 85 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6607
SELECT ALL + cor0.col2 / 85 FROM tab0 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6608
SELECT - col0 + col2 DIV + col1 + col2 AS col1 FROM tab2 AS cor0
----
-39
-52
20

skipif mysql # not compatible
query I rowsort label-6608
SELECT - col0 + col2 / + col1 + col2 AS col1 FROM tab2 AS cor0
----
-39
-52
20

query I rowsort
SELECT + + cor0.col0 * - col0 - ( col1 ) FROM tab1 AS cor0
----
-35
-4106
-6413

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 32 col1 FROM tab2, tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
27 values hashing to cf4f01ac97eb83445b1721f3ae28961a

query I rowsort
SELECT ( - col1 ) - + col0 * - col2 AS col0 FROM tab0
----
-62
706
7207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 97 col0 FROM tab0
----
97
97
97

query IIIIIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 cor0 CROSS JOIN tab1, tab1 AS cor1, tab2, tab1 AS cor2
----
13122 values hashing to 95d6f4401cfac605afcbaefe7c46191d

query I rowsort
SELECT - ( 13 ) FROM tab2 AS cor0
----
-13
-13
-13

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6615
SELECT ALL - CAST( NULL AS SIGNED ) + + col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6615
SELECT ALL - CAST ( NULL AS INTEGER ) + + col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 50 * + 17 AS col0 FROM tab2 AS cor0
----
850
850
850

query I rowsort
SELECT DISTINCT - - 41 * 36 * col0 + col1 + col2 AS col0 FROM tab0 cor0
----
131537
35543
51758

query I rowsort
SELECT ALL + 31 * + 90 + - col1 FROM tab2 AS cor0
----
2731
2759
2773

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6619
SELECT ALL + - CAST( - ( col1 ) AS SIGNED ) FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-6619
SELECT ALL + - CAST ( - ( col1 ) AS INTEGER ) FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT 17 FROM tab1 AS cor0
----
17

query I rowsort
SELECT DISTINCT - ( col2 ) + + col0 AS col1 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT ALL - cor0.col2 * col2 - - col2 * - 35 AS col1 FROM tab0 AS cor0
----
-2244
-36
-9594

query I rowsort
SELECT + cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col0 * col1 + + col0 ) col2 FROM tab1
----
-576
-75
-960

query I rowsort
SELECT + 29 AS col0 FROM tab2
----
29
29
29

query I rowsort
SELECT ALL - 11 AS col1 FROM tab1 AS cor0
----
-11
-11
-11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * col2 col2 FROM tab0 AS cor0
----
35
7298
792

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0, tab2 AS cor1, tab2 cor2
----
972 values hashing to f9adf26f20dc8fcc43c2de18a5fd4859

onlyif mysql # use DIV operator for integer division
query I rowsort label-6629
SELECT - 30 DIV + col1 AS col1 FROM tab1 cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-6629
SELECT - 30 / + col1 AS col1 FROM tab1 cor0
----
-1
-2
-3

query I rowsort
SELECT col1 * col2 + - tab0.col2 * tab0.col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL cor0.col0 + col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT DISTINCT + cor0.col1 * cor0.col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT - cor0.col1 * + col0 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-6634
SELECT DISTINCT col1 DIV cor0.col1 AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6634
SELECT DISTINCT col1 / cor0.col1 AS col1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT + col2 * col1 + ( col0 ) AS col1 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT ALL + 52 * col0 FROM tab0 cor0
----
1248
1820
4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-6637
SELECT + + col0 + cor0.col2 DIV + col1 col1 FROM tab1 cor0
----
5
69
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6637
SELECT + + col0 + cor0.col2 / + col1 col1 FROM tab1 cor0
----
5
69
87

query I rowsort
SELECT DISTINCT - 18 + col1 * 45 * + col2 AS col0 FROM tab2 AS cor0
----
29052
37647
69012

query I rowsort
SELECT - 19 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 0fbbff28a7b63c37b01cf369f9325662

query I rowsort
SELECT ( - col1 ) * ( - col2 ) AS col1 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT ALL + col2 * + col0 + - col0 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT ALL + - col2 * + col2 + col2 FROM tab1 AS cor0
----
-2862
-3192
-9120

query I rowsort
SELECT col2 + - col0 * + 19 FROM tab1 AS cor0
----
-1159
-1424
-3

onlyif mysql # use DIV operator for integer division
query I rowsort label-6644
SELECT DISTINCT + 23 DIV - col0 FROM tab2 AS cor0
----
-3
0

skipif mysql # not compatible
query I rowsort label-6644
SELECT DISTINCT + 23 / - col0 FROM tab2 AS cor0
----
-3
0

query I rowsort
SELECT cor1.col2 * + 69 AS col1 FROM tab2, tab2 AS cor0, tab1 cor1, tab2 AS cor2
----
81 values hashing to af9a0c84ac9a3341a46f3ebfa23a6574

onlyif mysql # use DIV operator for integer division
query I rowsort label-6646
SELECT - - col1 DIV - ( 80 ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6646
SELECT - - col1 / - ( 80 ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL ( + col0 ) * cor0.col0 FROM tab1 AS cor0
----
4096
6400
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6648
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + + cor0.col1 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6648
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + + cor0.col1 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - cor0.col1 * - col1 AS col1 FROM tab1 cor0
----
100
169
676

query I rowsort
SELECT 54 FROM tab0, tab0 cor0, tab2 cor1, tab0 cor2
----
81 values hashing to c12c2f39593b3ce157086f29d8391c32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 24 * + col0 col1 FROM tab1 AS cor0
----
1536
1920
72

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 cor0, tab0 AS cor1, tab2 AS cor2
----
972 values hashing to d41be7437523f0dba2158c7f0439f329

query I rowsort
SELECT col0 + col1 + - cor0.col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL col1 + - ( + col2 ) FROM tab1
----
-28
-47
-83

query I rowsort
SELECT + col1 * - ( + col0 ) + + 93 AS col2 FROM tab1 AS cor0
----
-547
-947
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 50 * col2 + 87 col1 FROM tab2
----
33887
36537
72287

query I rowsort
SELECT ALL 66 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 897b6122ac98340b78905f39d81897fc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab1.col0 col1 FROM tab1
----
-3
-64
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6659
SELECT ALL + CAST( 26 * col0 AS SIGNED ) FROM tab1
----
1664
2080
78

skipif mysql # not compatible
query I rowsort label-6659
SELECT ALL + CAST ( 26 * col0 AS INTEGER ) FROM tab1
----
1664
2080
78

query I rowsort
SELECT ALL 73 AS col2 FROM tab0
----
73
73
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * + cor0.col0 col2 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT + cor0.col2 FROM tab2, tab0 AS cor0, tab2 cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT - cor0.col1 * + 69 - + 25 AS col0 FROM tab1 AS cor0
----
-1819
-715
-922

query I rowsort
SELECT - cor0.col0 + + col1 FROM tab0 cor0
----
2
62
62

query I rowsort
SELECT ALL - 42 * + 27 FROM tab1, tab1 AS cor0
----
9 values hashing to 1f6c1f1964613386e0a1373be9f02623

query I rowsort
SELECT ALL - 50 + + col2 FROM tab2 AS cor0
----
-12
-23
-24

query I rowsort
SELECT DISTINCT - 50 + col0 * - cor0.col2 FROM tab0 cor0
----
-7348
-842
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-6668
SELECT ALL - 9 + col1 DIV cor0.col2 AS col0 FROM tab1 AS cor0
----
-9
-9
-9

skipif mysql # not compatible
query I rowsort label-6668
SELECT ALL - 9 + col1 / cor0.col2 AS col0 FROM tab1 AS cor0
----
-9
-9
-9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6669
SELECT + CAST( col0 AS SIGNED ) + - col2 FROM tab1 AS cor0
----
-16
-51
7

skipif mysql # not compatible
query I rowsort label-6669
SELECT + CAST ( col0 AS INTEGER ) + - col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT ALL 23 FROM tab2 cor0
----
23
23
23

query I rowsort
SELECT col1 * 43 AS col0 FROM tab0
----
3698
3913
4171

query I rowsort
SELECT DISTINCT - col1 * - tab1.col1 AS col2 FROM tab1
----
100
169
676

query I rowsort
SELECT tab1.col0 - + col0 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT + 20 * col2 FROM tab0 AS cor0
----
1640
20
660

query I rowsort
SELECT ALL 44 * + col2 FROM tab1
----
2376
2508
4224

query I rowsort
SELECT ALL 5 FROM tab2
----
5
5
5

onlyif mysql # use DIV operator for integer division
query I rowsort label-6677
SELECT - + col1 DIV - col0 AS col0 FROM tab0 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-6677
SELECT - + col1 / - col0 AS col0 FROM tab0 AS cor0
----
1
2
3

query I rowsort
SELECT + cor0.col2 + + col2 * - col2 * + col0 FROM tab2 cor0
----
-114038
-5076
-52702

query I rowsort
SELECT - 92 AS col0 FROM tab2
----
-92
-92
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col2 col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT DISTINCT 20 AS col1 FROM tab0, tab2 AS cor0
----
20

query I rowsort
SELECT DISTINCT tab1.col1 * - 37 AS col1 FROM tab1
----
-370
-481
-962

onlyif mysql # use DIV operator for integer division
query I rowsort label-6683
SELECT DISTINCT + 42 DIV - 24 AS col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-6683
SELECT DISTINCT + 42 / - 24 AS col0 FROM tab2
----
-1

query I rowsort
SELECT DISTINCT 55 AS col1 FROM tab1
----
55

query I rowsort
SELECT - + 65 FROM tab0 AS cor0
----
-65
-65
-65

query I rowsort
SELECT + 64 FROM tab0
----
64
64
64

query I rowsort
SELECT ALL + 91 * col2 AS col0 FROM tab0 AS cor0
----
3003
7462
91

query I rowsort
SELECT + 33 * col2 FROM tab1 AS cor0
----
1782
1881
3168

query I rowsort
SELECT cor0.col2 * + cor0.col0 AS col2 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 421c686606be6ea267ac0dc7521bf659

query I rowsort
SELECT ALL - col1 + - col0 FROM tab2 AS cor0
----
-137
-38
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6691
SELECT DISTINCT cor0.col2 + - col1 DIV + cor0.col0 FROM tab0 AS cor0
----
-1
30
81

skipif mysql # not compatible
query I rowsort label-6691
SELECT DISTINCT cor0.col2 + - col1 / + cor0.col0 FROM tab0 AS cor0
----
-1
30
81

query I rowsort
SELECT + col2 + col2 AS col2 FROM tab0
----
164
2
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - col2 col0 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT + col2 + 59 + + 38 AS col0 FROM tab2 AS cor0
----
123
124
135

query I rowsort
SELECT col2 + - 22 * col1 FROM tab0 AS cor0
----
-1859
-1920
-2133

query I rowsort
SELECT DISTINCT + - col2 + - 12 * - col0 FROM tab0 cor0
----
255
419
986

onlyif mysql # use DIV operator for integer division
query I rowsort label-6697
SELECT ALL cor0.col1 DIV + col0 + col0 AS col2 FROM tab2 AS cor0
----
11
78
79

skipif mysql # not compatible
query I rowsort label-6697
SELECT ALL cor0.col1 / + col0 + col0 AS col2 FROM tab2 AS cor0
----
11
78
79

query I rowsort
SELECT - col0 * - cor0.col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT cor0.col2 * - 19 FROM tab2 AS cor0
----
-494
-513
-722

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * col1 * 53 col2 FROM tab2 AS cor0
----
-11501
-243906
-71179

query I rowsort
SELECT col0 - + 85 * col1 AS col2 FROM tab2 AS cor0
----
-1366
-2628
-4937

query I rowsort
SELECT DISTINCT + col2 * + cor0.col1 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT - col0 * 94 FROM tab0 AS cor0
----
-2256
-3290
-8366

query I rowsort
SELECT ALL col2 * cor0.col0 + - 43 FROM tab0 AS cor0
----
-8
7255
749

onlyif mysql # use DIV operator for integer division
query I rowsort label-6705
SELECT 79 DIV ( cor0.col1 ) + - ( col1 + + col1 ) * + 94 FROM tab0 AS cor0
----
-16168
-17108
-18236

skipif mysql # not compatible
query I rowsort label-6705
SELECT 79 / ( cor0.col1 ) + - ( col1 + + col1 ) * + 94 FROM tab0 AS cor0
----
-16168
-17108
-18236

onlyif mysql # use DIV operator for integer division
query I rowsort label-6706
SELECT 51 + - col1 DIV + col0 FROM tab0
----
48
49
50

skipif mysql # not compatible
query I rowsort label-6706
SELECT 51 + - col1 / + col0 FROM tab0
----
48
49
50

query I rowsort
SELECT + 17 + - col1 * cor0.col0 AS col2 FROM tab0 AS cor0
----
-2047
-3378
-8082

query I rowsort
SELECT - col2 + + ( cor0.col2 ) AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - - 2 * + col1 * - col2 AS col1 FROM tab0 AS cor0
----
-14924
-194
-5676

query I rowsort
SELECT cor0.col1 * - ( col1 ) + col2 * + 79 FROM tab2 cor0
----
-1427
1172
2713

query I rowsort
SELECT - 35 AS col2 FROM tab1 AS cor0
----
-35
-35
-35

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6712
SELECT + CAST( + col0 AS SIGNED ) * col0 + + ( + col1 ) AS col1 FROM tab0 AS cor0
----
1322
662
8012

skipif mysql # not compatible
query I rowsort label-6712
SELECT + CAST ( + col0 AS INTEGER ) * col0 + + ( + col1 ) AS col1 FROM tab0 AS cor0
----
1322
662
8012

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col1 AS REAL ) * + col1 + col0 FROM tab1 AS cor0
----
-36
-673
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 23 col0 FROM tab2 AS cor0
----
23
23
23

query I rowsort
SELECT ALL - col2 * cor0.col1 + 60 FROM tab1 cor0
----
-1188
-1344
-510

onlyif mysql # use DIV operator for integer division
query I rowsort label-6716
SELECT DISTINCT + col1 DIV col0 AS col1 FROM tab2 AS cor0
----
0
4

skipif mysql # not compatible
query I rowsort label-6716
SELECT DISTINCT + col1 / col0 AS col1 FROM tab2 AS cor0
----
0
4

query I rowsort
SELECT 28 + col0 AS col2 FROM tab1 AS cor0
----
108
31
92

query I rowsort
SELECT + col0 * col0 + + cor0.col2 AS col2 FROM tab2 cor0
----
6110
6279
76

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab0 cor1
----
972 values hashing to 3a31dab513390ca6bd05c71a3d9c50f0

query I rowsort
SELECT ALL ( cor0.col0 ) FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT + - 99 * - 39 AS col2 FROM tab1 AS cor0
----
3861

query I rowsort
SELECT 39 * col1 FROM tab0 AS cor0
----
3354
3549
3783

query I rowsort
SELECT - col1 + + col2 AS col0 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT ALL cor0.col0 * col0 + col0 * col0 * - ( - cor0.col0 ) AS col0 FROM tab2 AS cor0
----
392
480636
499280

onlyif mysql # use DIV operator for integer division
query I rowsort label-6725
SELECT DISTINCT + col1 * col1 DIV + cor0.col0 - col0 * - col0 FROM tab1 AS cor0
----
234
4097
6402

skipif mysql # not compatible
query I rowsort label-6725
SELECT DISTINCT + col1 * col1 / + cor0.col0 - col0 * - col0 FROM tab1 AS cor0
----
234
4097
6402

skipif mysql # not compatible
query I rowsort
SELECT ALL + - CAST ( col1 AS REAL ) AS col1 FROM tab1 cor0
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * cor0.col0 col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - col1 * col0 * col0 AS col0 FROM tab1 AS cor0
----
-234
-40960
-83200

query I rowsort
SELECT ALL + ( 23 ) + col2 AS col0 FROM tab0 AS cor0
----
105
24
56

query I rowsort
SELECT DISTINCT + 12 + + cor0.col1 - - col1 AS col0 FROM tab1 AS cor0
----
32
38
64

query I rowsort
SELECT - + col2 * - col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - ( - ( - col2 ) ) + col2 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 19 col1 FROM tab2 AS cor0
----
494
513
722

query I rowsort
SELECT - ( ( col1 ) ) * cor0.col0 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-6735
SELECT + + col0 DIV - col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6735
SELECT + + col0 / - col0 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6736
SELECT - cor0.col2 DIV 4 AS col1 FROM tab2 AS cor0
----
-6
-6
-9

skipif mysql # not compatible
query I rowsort label-6736
SELECT - cor0.col2 / 4 AS col1 FROM tab2 AS cor0
----
-6
-6
-9

query I rowsort
SELECT DISTINCT + col1 * 82 FROM tab1 AS cor0
----
1066
2132
820

query I rowsort
SELECT - col1 - + 42 AS col0 FROM tab0
----
-128
-133
-139

query I rowsort
SELECT ALL - 89 FROM tab0, tab2 AS cor0
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

query I rowsort
SELECT ( 77 ) FROM tab0 AS cor0
----
77
77
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-6741
SELECT DISTINCT ( 45 ) + - col2 DIV col0 AS col2 FROM tab2 AS cor0
----
42
45

skipif mysql # not compatible
query I rowsort label-6741
SELECT DISTINCT ( 45 ) + - col2 / col0 AS col2 FROM tab2 AS cor0
----
42
45

query I rowsort
SELECT + - col0 + col0 * col1 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT DISTINCT col1 * 43 * col1 AS col2 FROM tab2
----
12427
149683
41323

query I rowsort
SELECT col1 - - 95 FROM tab2
----
112
126
154

onlyif mysql # use DIV operator for integer division
query I rowsort label-6745
SELECT ( col2 ) * tab1.col0 DIV 66 FROM tab1
----
116
2
55

skipif mysql # not compatible
query I rowsort label-6745
SELECT ( col2 ) * tab1.col0 / 66 FROM tab1
----
116
2
55

query I rowsort
SELECT DISTINCT - col1 + + 3 FROM tab1 AS cor0
----
-10
-23
-7

query I rowsort
SELECT 66 FROM tab2 AS cor0
----
66
66
66

query I rowsort
SELECT + 72 FROM tab1, tab1 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query I rowsort
SELECT ALL + col1 * - col1 * - col0 FROM tab2 AS cor0
----
22831
271518
6727

query I rowsort
SELECT col1 + 6 * + 42 FROM tab0 AS cor0
----
338
343
349

query I rowsort
SELECT - col0 * - 58 + col2 * col0 FROM tab2 AS cor0
----
595
6552
7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-6752
SELECT DISTINCT - col1 + 56 DIV - col0 FROM tab0 AS cor0
----
-88
-91
-98

skipif mysql # not compatible
query I rowsort label-6752
SELECT DISTINCT - col1 + 56 / - col0 FROM tab0 AS cor0
----
-88
-91
-98

query I rowsort
SELECT ALL - - cor0.col2 AS col1 FROM tab2 AS cor0
----
26
27
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6754
SELECT - CAST( NULL AS DECIMAL ) col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6754
SELECT - CAST ( NULL AS REAL ) col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT 1 * - tab1.col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

query I rowsort
SELECT - tab2.col0 AS col1 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6757
SELECT + col2 + - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6757
SELECT + col2 + - CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + - ( + col0 ) * col1 FROM tab0 AS cor0
----
-2097
-3396
-8181

onlyif mysql # use DIV operator for integer division
query I rowsort label-6759
SELECT ALL + col0 DIV ( - 46 * - col0 ) AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6759
SELECT ALL + col0 / ( - 46 * - col0 ) AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL col0 * 64 * + 41 AS col1 FROM tab0
----
233536
62976
91840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6761
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6761
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 20 + cor1.col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
109
44
55

query I rowsort
SELECT + + col1 * col1 * col2 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT col0 + + col2 * + col1 AS col1 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT DISTINCT + + cor0.col0 + - ( - col0 ) FROM tab1 AS cor0
----
128
160
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT col0 + 82 FROM tab2
----
160
161
89

query I rowsort
SELECT - + cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

query I rowsort
SELECT ALL col2 + + col2 * ( cor0.col2 ) FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT + col0 + - col2 FROM tab2 AS cor0
----
-20
41
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * cor0.col0 col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL + col2 + 41 * + col1 FROM tab1 cor0
----
1120
467
629

query I rowsort
SELECT + - col0 * - 9 FROM tab1 AS cor0
----
27
576
720

query I rowsort
SELECT DISTINCT + col1 * cor0.col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT ALL - + ( - ( + col1 ) ) * - col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT + + ( col0 ) + + col2 * cor0.col2 AS col0 FROM tab0 AS cor0
----
1113
36
6813

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6777
SELECT CAST( - 23 AS SIGNED ) FROM tab2
----
-23
-23
-23

skipif mysql # not compatible
query I rowsort label-6777
SELECT CAST ( - 23 AS INTEGER ) FROM tab2
----
-23
-23
-23

query I rowsort
SELECT DISTINCT + - 46 + col0 * + col0 AS col2 FROM tab2 AS cor0
----
3
6038
6195

query I rowsort
SELECT col1 * - 35 FROM tab0 AS cor0
----
-3010
-3185
-3395

query I rowsort
SELECT DISTINCT + col1 * col0 + col1 AS col2 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT 35 AS col0 FROM tab0 AS cor0
----
35
35
35

query I rowsort
SELECT ( - 20 ) FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to eb3a66728062963cccbd15bd2f5c9eee

onlyif mysql # use DIV operator for integer division
query I rowsort label-6783
SELECT DISTINCT - 12 + + col0 DIV + 42 FROM tab1
----
-11
-12

skipif mysql # not compatible
query I rowsort label-6783
SELECT DISTINCT - 12 + + col0 / + 42 FROM tab1
----
-11
-12

query I rowsort
SELECT ALL - 84 AS col1 FROM tab1 AS cor0
----
-84
-84
-84

query I rowsort
SELECT DISTINCT - - col0 * - col1 + ( col1 ) * col0 FROM tab1 cor0
----
0

query I rowsort
SELECT DISTINCT + 22 + + col0 FROM tab2 AS cor0
----
100
101
29

query I rowsort
SELECT 88 + col2 FROM tab1 AS cor0
----
142
145
184

query I rowsort
SELECT DISTINCT + + col2 + - col2 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + + col2 * - col0 - - col1 AS col1 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT DISTINCT - col1 * col2 + col1 FROM tab0 cor0
----
-2752
-7371
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6791
SELECT cor0.col0 * - CAST( 46 * col1 AS SIGNED ) FROM tab2 AS cor0
----
-211692
-61778
-9982

skipif mysql # not compatible
query I rowsort label-6791
SELECT cor0.col0 * - CAST ( 46 * col1 AS INTEGER ) FROM tab2 AS cor0
----
-211692
-61778
-9982

query I rowsort
SELECT - cor0.col0 + col1 * 10 FROM tab2 cor0
----
303
512
91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6793
SELECT ALL col1 + + CAST( - col1 AS SIGNED ) + + cor0.col1 * - col1 col1 FROM tab1 AS cor0
----
-100
-169
-676

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6793
SELECT ALL col1 + + CAST ( - col1 AS INTEGER ) + + cor0.col1 * - col1 col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT ALL + col2 * 51 FROM tab2 AS cor0
----
1326
1377
1938

query I rowsort
SELECT col0 + col1 * - col0 FROM tab2 AS cor0
----
-1264
-210
-4524

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col1 col0 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT col1 * - col0 + tab2.col0 FROM tab2
----
-1264
-210
-4524

query I rowsort
SELECT ( - tab1.col1 ) FROM tab1
----
-10
-13
-26

query I rowsort
SELECT 43 * - col0 FROM tab2
----
-301
-3354
-3397

query I rowsort
SELECT - col1 + - col2 AS col1 FROM tab1
----
-109
-67
-80

query I rowsort
SELECT + 68 * + col2 FROM tab1
----
3672
3876
6528

query I rowsort
SELECT - tab2.col1 * tab2.col1 AS col1 FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT col2 * - tab0.col2 + + col0 AS col2 FROM tab0
----
-1065
-6635
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-6804
SELECT tab0.col0 - col0 DIV + col1 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-6804
SELECT tab0.col0 - col0 / + col1 FROM tab0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-6805
SELECT - + 76 DIV col2 AS col0 FROM tab0 AS cor0
----
-2
-76
0

skipif mysql # not compatible
query I rowsort label-6805
SELECT - + 76 / col2 AS col0 FROM tab0 AS cor0
----
-2
-76
0

query I rowsort
SELECT + + 11 * + col0 * col0 FROM tab0 AS cor0
----
13475
6336
87131

query I rowsort
SELECT cor0.col1 * col0 + 92 + - col2 * col0 AS col2 FROM tab2 AS cor0
----
-1567
120
2666

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6808
SELECT DISTINCT - col0 + CAST( NULL AS SIGNED ) + - col0 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6808
SELECT DISTINCT - col0 + CAST ( NULL AS INTEGER ) + - col0 AS col0 FROM tab2
----
NULL

query I rowsort
SELECT + col2 * col2 + col1 + col0 FROM tab1 AS cor0
----
2945
3323
9309

onlyif mysql # use DIV operator for integer division
query I rowsort label-6810
SELECT cor0.col2 DIV cor0.col0 - + col2 * - col1 FROM tab1 cor0
----
1249
1422
570

skipif mysql # not compatible
query I rowsort label-6810
SELECT cor0.col2 / cor0.col0 - + col2 * - col1 FROM tab1 cor0
----
1249
1422
570

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0, tab1 cor1, tab1, tab0 AS cor2
----
3645 values hashing to e660b5944e34dd8d75740286862b3252

query I rowsort
SELECT DISTINCT - + col2 + col1 * col0 * col0 FROM tab1 AS cor0
----
180
40903
83104

onlyif mysql # use DIV operator for integer division
query I rowsort label-6813
SELECT ALL - - col1 + + col0 DIV + cor0.col1 AS col0 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-6813
SELECT ALL - - col1 + + col0 / + cor0.col1 AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT + col2 + cor0.col0 * + col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT - - 82 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
-2132
-2214
-3116

query I rowsort
SELECT - ( + 32 ) * + col0 + + 32 * col1 AS col1 FROM tab0 AS cor0
----
1984
1984
64

query I rowsort
SELECT ALL col0 + col1 * + ( - col1 ) AS col2 FROM tab2 AS cor0
----
-210
-3403
-954

query I rowsort
SELECT DISTINCT - - col0 * + col1 + col1 * col0 - col0 FROM tab1 cor0
----
1216
153
2000

query I rowsort
SELECT + 72 * col2 * col2 + - ( - col0 ) * - col2 AS col0 FROM tab2
----
100966
46644
52299

query I rowsort
SELECT + - cor0.col2 + col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL - 47 - - col2 AS col0 FROM tab0 AS cor0
----
-14
-46
35

query I rowsort
SELECT - 15 FROM tab0 cor0
----
-15
-15
-15

query I rowsort
SELECT ALL - - 47 FROM tab0, tab2, tab0 AS cor0, tab1
----
81 values hashing to 5c7a6f591fb2a38893dafe56c4b9b97f

query I rowsort
SELECT DISTINCT - 69 AS col2 FROM tab2, tab1 AS cor0
----
-69

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6825
SELECT CAST( NULL AS DECIMAL ) + - tab2.col0 AS col1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-6825
SELECT CAST ( NULL AS REAL ) + - tab2.col0 AS col1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL - 69 AS col2 FROM tab2
----
-69
-69
-69

query I rowsort
SELECT + col2 + col1 * 25 AS col1 FROM tab1 cor0
----
307
421
704

query I rowsort
SELECT - cor1.col1 AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT DISTINCT - - col1 * - col2 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-16224
-36504
-5700

query I rowsort
SELECT ALL + cor0.col2 * col1 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6831
SELECT ALL CAST( + col0 * + col1 AS SIGNED ) FROM tab1
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-6831
SELECT ALL CAST ( + col0 * + col1 AS INTEGER ) FROM tab1
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-6832
SELECT DISTINCT - + col2 DIV col0 FROM tab2 AS cor0
----
-3
0

skipif mysql # not compatible
query I rowsort label-6832
SELECT DISTINCT - + col2 / col0 FROM tab2 AS cor0
----
-3
0

query I rowsort
SELECT DISTINCT + 62 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab2 AS cor2
----
62

query I rowsort
SELECT ALL 57 * col0 FROM tab2
----
399
4446
4503

query I rowsort
SELECT DISTINCT 97 AS col0 FROM tab0
----
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + tab0.col1 col2 FROM tab0
----
110
132
180

query I rowsort
SELECT DISTINCT + - col2 * col1 - col1 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT 86 AS col0 FROM tab2
----
86
86
86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6839
SELECT ALL col0 / - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6839
SELECT ALL col0 / - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 0 col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ( col2 ) + + col0 AS col1 FROM tab1 AS cor0
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 67 col0 FROM tab1 AS cor0
----
67

query I rowsort
SELECT ( col1 ) + col0 + ( + col1 ) FROM tab0 AS cor0
----
196
229
271

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6844
SELECT ALL + ( ( col2 ) ) * CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6844
SELECT ALL + ( ( col2 ) ) * CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6845
SELECT ALL + CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-6845
SELECT ALL + CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col2 + + col0 * col0 - - tab0.col2 col0 FROM tab0
----
-183
1191
705

onlyif mysql # use DIV operator for integer division
query I rowsort label-6847
SELECT DISTINCT col0 + + tab1.col2 DIV - tab1.col0 - col2 FROM tab1
----
-17
-69
7

skipif mysql # not compatible
query I rowsort label-6847
SELECT DISTINCT col0 + + tab1.col2 / - tab1.col0 - col2 FROM tab1
----
-17
-69
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor1.col0 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT col2 * - col0 + - col2 + ( 30 + col0 ) FROM tab0 AS cor0
----
-7261
-771
29

query I rowsort
SELECT 6 * - col2 AS col2 FROM tab1 AS cor0
----
-324
-342
-576

query I rowsort
SELECT DISTINCT - - 51 * - col0 FROM tab1 AS cor0
----
-153
-3264
-4080

query I rowsort
SELECT ALL - 9 AS col2 FROM tab1 AS cor0
----
-9
-9
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-6853
SELECT col0 DIV col1 + - col1 + - col2 FROM tab0 AS cor0
----
-119
-173
-98

skipif mysql # not compatible
query I rowsort label-6853
SELECT col0 / col1 + - col1 + - col2 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT - 73 * col0 AS col2 FROM tab0 AS cor0
----
-1752
-2555
-6497

onlyif mysql # use DIV operator for integer division
query I rowsort label-6855
SELECT ALL col2 + col0 DIV - col1 FROM tab2
----
25
27
34

skipif mysql # not compatible
query I rowsort label-6855
SELECT ALL col2 + col0 / - col1 FROM tab2
----
25
27
34

query I rowsort
SELECT col0 * col2 - + col1 AS col0 FROM tab1
----
136
3638
7667

query I rowsort
SELECT DISTINCT - col1 * + col2 / col1 FROM tab0 WHERE NOT + col2 * col0 / tab0.col2 NOT BETWEEN NULL AND - col0
----

onlyif mysql # use DIV operator for integer division
query III rowsort label-6858
SELECT * FROM tab1 WHERE + col1 NOT IN ( + col1 + + col1 DIV col0 )
----
3
26
54

skipif mysql # not compatible
query III rowsort label-6858
SELECT * FROM tab1 WHERE + col1 NOT IN ( + col1 + + col1 / col0 )
----
3
26
54

query I rowsort
SELECT DISTINCT col1 * - col0 * col2 - + col2 AS col2 FROM tab2 WHERE NOT NULL IN ( col1 )
----

query I rowsort
SELECT DISTINCT col2 * col0 * - col2 - + col0 * col0 * + col2 FROM tab2
----
-210912
-351234
-6426

query I rowsort
SELECT ALL + cor0.col2 + col2 FROM tab2 cor0
----
52
54
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-6862
SELECT DISTINCT cor0.col2 DIV col1 FROM tab2 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-6862
SELECT DISTINCT cor0.col2 / col1 FROM tab2 AS cor0
----
0
2

query I rowsort
SELECT + col1 * + col0 * + col2 + col2 FROM tab1 AS cor0
----
36537
4266
99936

query I rowsort
SELECT ALL col1 * col2 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col0 + tab2.col1 * col0 FROM tab2
----
1264
210
4524

query I rowsort
SELECT - col2 + col1 + - tab2.col2 AS col0 FROM tab2
----
-23
-59
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-6867
SELECT col0 DIV - col2 FROM tab0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-6867
SELECT col0 / - col2 FROM tab0
----
-1
-35
0

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( + col1 * col0 * col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) NOT IN ( col0 )
----

query I rowsort
SELECT col0 + col0 * col1 FROM tab0
----
2088
3430
8188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col2 col1 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT col1 + col1 + tab2.col0 FROM tab2
----
113
196
69

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) IN ( col0 )
----

query I rowsort
SELECT DISTINCT + col2 * + col2 FROM tab0 WHERE NOT NULL NOT IN ( - col2 + + col1 * + col2 )
----

query I rowsort
SELECT col1 AS col1 FROM tab2 WHERE ( NULL ) <> + col2
----

query I rowsort
SELECT tab2.col1 + + col2 + - tab2.col1 AS col2 FROM tab2
----
26
27
38

query I rowsort
SELECT ALL - + col2 * col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT - col1 - col1 FROM tab0 cor0
----
-172
-182
-194

query I rowsort
SELECT ALL + col2 * + col0 AS col2 FROM tab0 AS cor0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col2 + - col1 col0 FROM tab2 AS cor0
----
-33
-4
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-6881
SELECT ALL - col0 DIV - cor0.col2 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-6881
SELECT ALL - col0 / - cor0.col2 FROM tab0 AS cor0
----
0
1
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-6882
SELECT ALL - cor0.col1 DIV - col1 AS col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6882
SELECT ALL - cor0.col1 / - col1 AS col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - + col0 * col2 + + col2 * col2 FROM tab0 AS cor0
----
-34
-574
297

onlyif mysql # use DIV operator for integer division
query I rowsort label-6884
SELECT ALL + col2 DIV - col0 AS col1 FROM tab2 cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-6884
SELECT ALL + col2 / - col0 AS col1 FROM tab2 cor0
----
-3
0
0

query I rowsort
SELECT + col2 + + col0 AS col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL - col0 + col2 * - col2 * cor0.col0 AS col2 FROM tab2 AS cor0
----
-114155
-5110
-52806

query I rowsort
SELECT DISTINCT + col0 * + col2 AS col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT cor0.col2 + + col1 * col2 AS col0 FROM tab2 AS cor0
----
1560
684
864

onlyif mysql # use DIV operator for integer division
query I rowsort label-6889
SELECT ALL col2 DIV - cor0.col0 + + col2 AS col1 FROM tab1 AS cor0
----
36
57
95

skipif mysql # not compatible
query I rowsort label-6889
SELECT ALL col2 / - cor0.col0 + + col2 AS col1 FROM tab1 AS cor0
----
36
57
95

query I rowsort
SELECT DISTINCT + col1 - cor0.col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT col1 * col1 - col2 AS col1 FROM tab0
----
7363
8199
9408

onlyif mysql # use DIV operator for integer division
query I rowsort label-6892
SELECT DISTINCT col0 - col0 DIV col0 FROM tab1
----
2
63
79

skipif mysql # not compatible
query I rowsort label-6892
SELECT DISTINCT col0 - col0 / col0 FROM tab1
----
2
63
79

query I rowsort
SELECT ALL col2 - col0 AS col0 FROM tab2
----
-41
-52
20

query I rowsort
SELECT DISTINCT + - col2 + - col0 FROM tab2 cor0
----
-104
-117
-34

query I rowsort
SELECT ALL - + col2 + col0 * col1 FROM tab2 AS cor0
----
1305
190
4576

onlyif mysql # use DIV operator for integer division
query I rowsort label-6896
SELECT + col2 - - col1 DIV + col1 FROM tab2 AS cor0
----
27
28
39

skipif mysql # not compatible
query I rowsort label-6896
SELECT + col2 - - col1 / + col1 FROM tab2 AS cor0
----
27
28
39

onlyif mysql # use DIV operator for integer division
query I rowsort label-6897
SELECT DISTINCT + col1 DIV + col2 + col2 DIV - col1 AS col0 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-6897
SELECT DISTINCT + col1 / + col2 + col2 / - col1 AS col0 FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT DISTINCT - + cor0.col2 - + col2 FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT + - col1 * + col1 + col1 * - cor0.col1 FROM tab2 AS cor0
----
-1922
-578
-6962

query I rowsort
SELECT col1 + cor0.col0 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT DISTINCT - + col2 * - col0 + col0 * - col1 FROM tab2 AS cor0
----
-2574
-28
1659

query I rowsort
SELECT ALL - col1 + tab1.col0 FROM tab1
----
-23
54
67

query I rowsort
SELECT col2 * col0 + - col0 FROM tab0
----
0
7209
768

onlyif mysql # use DIV operator for integer division
query I rowsort label-6904
SELECT col0 + + col0 + col0 DIV col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( col2 * + col1 ) = cor0.col2 + + col2 * col0 - + col0
----
179
49
71

skipif mysql # not compatible
query I rowsort label-6904
SELECT col0 + + col0 + col0 / col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( col2 * + col1 ) = cor0.col2 + + col2 * col0 - + col0
----
179
49
71

query I rowsort
SELECT DISTINCT - col1 + - col2 * + col1 AS col1 FROM tab1
----
-1261
-1430
-580

query I rowsort
SELECT ALL - col0 * col1 * - col1 + tab1.col1 AS col2 FROM tab1
----
13533
2054
6410

query I rowsort
SELECT ALL - col2 * + col2 + + col1 * - tab2.col2 FROM tab2
----
-1566
-2090
-2210

query I rowsort
SELECT - cor0.col0 * 24 + col0 AS col2 FROM tab2 AS cor0
----
-161
-1794
-1817

query I rowsort
SELECT - col2 * + 24 FROM tab1 AS cor0
----
-1296
-1368
-2304

query I rowsort
SELECT + tab2.col0 * col0 * tab2.col2 FROM tab2
----
1323
158184
237158

query I rowsort
SELECT DISTINCT + 92 * col2 FROM tab2
----
2392
2484
3496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 - + col2 col0 FROM tab1 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6913
SELECT DISTINCT 95 DIV col0 + + col1 DIV - col1 FROM tab2
----
0
12

skipif mysql # not compatible
query I rowsort label-6913
SELECT DISTINCT 95 / col0 + + col1 / - col1 FROM tab2
----
0
12

query I rowsort
SELECT 14 * + col0 FROM tab0
----
1246
336
490

query I rowsort
SELECT ALL + cor1.col0 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT DISTINCT 52 * cor0.col0 - - cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
371
4134
4187

onlyif mysql # use DIV operator for integer division
query I rowsort label-6917
SELECT ALL - col0 DIV + 36 + - col2 FROM tab0 AS cor0
----
-1
-33
-84

skipif mysql # not compatible
query I rowsort label-6917
SELECT ALL - col0 / + 36 + - col2 FROM tab0 AS cor0
----
-1
-33
-84

query I rowsort
SELECT DISTINCT + - col2 - ( col1 ) FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT - + col1 + col0 + - 75 FROM tab0 AS cor0
----
-137
-137
-77

query I rowsort
SELECT ALL - col1 * col1 - tab0.col1 FROM tab0
----
-7482
-8372
-9506

query I rowsort
SELECT DISTINCT + col2 / + col0 - + col0 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col2 + tab1.col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - tab1.col0 + + col1 AS col0 FROM tab1
----
-54
-67
23

query I rowsort
SELECT col1 + col1 * tab2.col2 FROM tab2
----
1593
663
868

query I rowsort
SELECT - tab2.col0 * col1 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT ALL + col2 - col1 AS col0 FROM tab1
----
28
47
83

query I rowsort
SELECT DISTINCT - col0 + col1 * + col0 FROM tab2 WHERE NOT - col2 BETWEEN col2 + - col0 AND ( NULL )
----
210

query I rowsort
SELECT tab2.col2 + + col1 FROM tab2
----
55
58
85

query I rowsort
SELECT ALL + 34 * + col1 FROM tab0
----
2924
3094
3298

query I rowsort
SELECT DISTINCT 21 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab2 AS cor2
----
21

query I rowsort
SELECT + 19 * - cor0.col2 + + col1 FROM tab1 AS cor0
----
-1000
-1073
-1811

onlyif mysql # use DIV operator for integer division
query I rowsort label-6932
SELECT col0 DIV - col1 FROM tab2
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-6932
SELECT col0 / - col1 FROM tab2
----
-1
-4
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6933
SELECT - - col0 DIV col1 col0 FROM tab1 cor0
----
0
6
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6933
SELECT - - col0 / col1 col0 FROM tab1 cor0
----
0
6
6

query I rowsort
SELECT DISTINCT + + 7 AS col1 FROM tab1 AS cor0
----
7

query I rowsort
SELECT - - col2 + cor0.col0 * + ( cor0.col1 + + col1 ) AS col2 FROM tab0 AS cor0
----
16280
4161
6791

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6936
SELECT + cor0.col2 * + cor1.col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6936
SELECT + cor0.col2 * + cor1.col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL col0 * - col0 AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT ( col0 ) + + col2 AS col0 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT DISTINCT + ( col0 ) AS col2 FROM tab0 cor0
----
24
35
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6940
SELECT ALL - CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6940
SELECT ALL - CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 + - col2 * + 29 + col0 AS col2 FROM tab0
----
-2198
-847
103

onlyif mysql # use DIV operator for integer division
query I rowsort label-6942
SELECT ALL + tab1.col1 * 31 DIV col0 FROM tab1
----
268
4
5

skipif mysql # not compatible
query I rowsort label-6942
SELECT ALL + tab1.col1 * 31 / col0 FROM tab1
----
268
4
5

query I rowsort
SELECT - 81 * col0 AS col2 FROM tab0 AS cor0
----
-1944
-2835
-7209

skipif mysql # not compatible
query I rowsort
SELECT CAST ( 18 AS REAL ) FROM tab2
----
18
18
18

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6945
SELECT DISTINCT + CAST( col0 AS SIGNED ) + col1 FROM tab2 AS cor0
----
137
38
96

skipif mysql # not compatible
query I rowsort label-6945
SELECT DISTINCT + CAST ( col0 AS INTEGER ) + col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT + 3 * 20 FROM tab0 AS cor0
----
60
60
60

query I rowsort
SELECT - col2 * 59 AS col0 FROM tab0 AS cor0
----
-1947
-4838
-59

query I rowsort
SELECT ALL 80 AS col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 6dd5038be71dffa82f5ceba787caab91

query I rowsort
SELECT DISTINCT 15 AS col0 FROM tab1
----
15

query I rowsort
SELECT ALL 26 AS col1 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to ede8226bb7e602e221f9d98345b4da37

query I rowsort
SELECT - tab1.col1 * + col1 FROM tab1
----
-100
-169
-676

query I rowsort
SELECT + 42 * cor0.col0 + cor0.col1 AS col0 FROM tab2 AS cor0
----
325
3335
3335

query I rowsort
SELECT - + 54 * - col2 + 80 FROM tab0 AS cor0
----
134
1862
4508

query I rowsort
SELECT col0 + col2 * col2 AS col1 FROM tab0 cor0
----
1113
36
6813

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 + + ( col1 ) col1 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT - col0 + col2 AS col1 FROM tab1 cor0
----
-7
16
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-6957
SELECT + col2 DIV + col1 + col0 AS col2 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-6957
SELECT + col2 / + col1 + col0 AS col2 FROM tab0 AS cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 col1 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT + col0 * col0 * + col0 FROM tab1
----
262144
27
512000

onlyif mysql # use DIV operator for integer division
query I rowsort label-6960
SELECT col2 DIV col2 AS col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6960
SELECT col2 / col2 AS col2 FROM tab0 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL - col1 * + col1 + col2 * + col2 * col0 FROM tab2 AS cor0
----
113787
4142
49247

query I rowsort
SELECT DISTINCT - col2 * - tab1.col1 + + col2 AS col1 FROM tab1
----
1344
1458
627

query I rowsort
SELECT ALL + col0 + 50 AS col2 FROM tab2
----
128
129
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-6965
SELECT - col0 + + col2 * ( col1 ) DIV col1 AS col1 FROM tab0
----
-34
-7
9

skipif mysql # not compatible
query I rowsort label-6965
SELECT - col0 + + col2 * ( col1 ) / col1 AS col1 FROM tab0
----
-34
-7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-6966
SELECT DISTINCT col1 * CAST( + col2 AS SIGNED ) + - col2 DIV - tab0.col2 AS col2 FROM tab0
----
2839
7463
98

skipif mysql # not compatible
query I rowsort label-6966
SELECT DISTINCT col1 * CAST ( + col2 AS INTEGER ) + - col2 / - tab0.col2 AS col2 FROM tab0
----
2839
7463
98

query I rowsort
SELECT - - col2 + + ( col0 * + col0 + col2 ) AS col0 FROM tab1 AS cor0
----
117
4210
6592

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - + 35 col0 FROM tab0 AS cor0
----
51
56
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6969
SELECT ALL col2 - - CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6969
SELECT ALL col2 - - CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 - + col2 FROM tab2 cor0
----
-21
33
4

query I rowsort
SELECT col1 + col2 * - col1 AS col2 FROM tab2 AS cor0
----
-1475
-629
-806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + 17 + - col0 * col2 col0 FROM tab2 AS cor0
----
-199
-2037
-3023

query I rowsort
SELECT DISTINCT + cor0.col2 * col2 * col1 + col1 * - col0 FROM tab1 AS cor0
----
118768
31850
75738

query I rowsort
SELECT col1 * - col2 + + col1 * col2 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6975
SELECT DISTINCT + col2 * 19 + + col2 DIV CAST( col2 AS SIGNED ) + col0 AS col1 FROM tab0 AS cor0
----
1648
55
652

skipif mysql # not compatible
query I rowsort label-6975
SELECT DISTINCT + col2 * 19 + + col2 / CAST ( col2 AS INTEGER ) + col0 AS col1 FROM tab0 AS cor0
----
1648
55
652

query I rowsort
SELECT ALL - col1 + col1 * cor0.col1 AS col2 FROM tab1 AS cor0
----
156
650
90

skipif mysql # not compatible
query I rowsort
SELECT CAST ( - cor0.col0 AS REAL ) FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ALL - - col2 + + 93 + col0 FROM tab1 cor0
----
150
214
269

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6979
SELECT ALL + CAST( NULL AS SIGNED ) * + ( + col2 ) + - col0 + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6979
SELECT ALL + CAST ( NULL AS INTEGER ) * + ( + col2 ) + - col0 + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col0 * + col0 col1 FROM tab0 AS cor0
----
1190
552
7832

query I rowsort
SELECT DISTINCT + - col0 + + 53 * col1 AS col1 FROM tab2 cor0
----
1636
3049
822

query I rowsort
SELECT + - 6 + 81 AS col0 FROM tab2 AS cor0
----
75
75
75

query I rowsort
SELECT ALL + col2 * col0 - + col2 * col0 * - col1 FROM tab0 AS cor0
----
3430
671416
68904

query I rowsort
SELECT DISTINCT - ( - col1 ) AS col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL - ( col0 ) * - col1 * - 33 + - col1 AS col0 FROM tab2 AS cor0
----
-151925
-44336
-7192

query I rowsort
SELECT DISTINCT col0 * - tab0.col0 + - 81 * col2 AS col2 FROM tab0
----
-1306
-14563
-3249

query I rowsort
SELECT - col0 + col0 * col1 AS col1 FROM tab1
----
576
75
960

query I rowsort
SELECT - col0 * + col0 + col0 FROM tab1
----
-4032
-6
-6320

query I rowsort
SELECT col1 * - ( col1 ) - col0 AS col2 FROM tab1
----
-164
-249
-679

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 71 col2 FROM tab1
----
1846
710
923

query I rowsort
SELECT ALL - + col2 + col2 * 46 AS col0 FROM tab2 AS cor0
----
1170
1215
1710

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6992
SELECT + col0 - + col0 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6992
SELECT + col0 - + col0 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 19 + - col2 FROM tab0 AS cor0
----
-14
-63
18

query I rowsort
SELECT DISTINCT - cor0.col2 - - cor0.col1 AS col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT DISTINCT 60 + - col2 * + col2 AS col0 FROM tab1 AS cor0
----
-2856
-3189
-9156

query I rowsort
SELECT + cor0.col0 * - col0 - + col0 FROM tab2 AS cor0
----
-56
-6162
-6320

query I rowsort
SELECT ALL - ( - col0 ) * col1 + col2 AS col0 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT - 67 * - col2 FROM tab0 AS cor0
----
2211
5494
67

query I rowsort
SELECT DISTINCT + 60 * + col1 AS col2 FROM tab2
----
1020
1860
3540

query I rowsort
SELECT - 33 - col2 AS col1 FROM tab1 AS cor0
----
-129
-87
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-7001
SELECT ALL + ( + col2 ) + - 19 DIV col1 AS col2 FROM tab2 AS cor0
----
26
27
37

skipif mysql # not compatible
query I rowsort label-7001
SELECT ALL + ( + col2 ) + - 19 / col1 AS col2 FROM tab2 AS cor0
----
26
27
37

query I rowsort
SELECT + + col0 * + cor0.col1 AS col2 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT + cor0.col2 - cor0.col1 AS col2 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT ALL 27 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

onlyif mysql # use DIV operator for integer division
query I rowsort label-7005
SELECT ALL - + col0 + - cor0.col0 DIV CAST( + col2 AS SIGNED ) FROM tab0 cor0
----
-24
-70
-90

skipif mysql # not compatible
query I rowsort label-7005
SELECT ALL - + col0 + - cor0.col0 / CAST ( + col2 AS INTEGER ) FROM tab0 cor0
----
-24
-70
-90

query I rowsort
SELECT - ( ( col0 ) * + ( 36 ) ) AS col1 FROM tab0
----
-1260
-3204
-864

query I rowsort
SELECT + cor0.col0 + cor0.col0 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to 43cd4d6bf46fb9ce15caf369cb36598e

query I rowsort
SELECT + 93 AS col1 FROM tab1
----
93
93
93

query I rowsort
SELECT DISTINCT 47 AS col1 FROM tab2
----
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor1.col2 col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT - col1 + col0 * col2 AS col1 FROM tab2 AS cor0
----
158
1969
2985

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7012
SELECT CAST( NULL AS DECIMAL ) - col1 / - col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7012
SELECT CAST ( NULL AS REAL ) - col1 / - col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7013
SELECT DISTINCT CAST( NULL AS SIGNED ) + col2 * - col2 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7013
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col2 * - col2 AS col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - col0 + ( col2 ) FROM tab1
----
-7
16
51

query I rowsort
SELECT DISTINCT 81 AS col2 FROM tab2, tab2 AS cor0
----
81

query I rowsort
SELECT ALL + 3 FROM tab2, tab1, tab1 cor0
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7017
SELECT DISTINCT + col2 + - col2 + tab2.col0 * CAST( 11 AS SIGNED ) FROM tab2
----
77
858
869

skipif mysql # not compatible
query I rowsort label-7017
SELECT DISTINCT + col2 + - col2 + tab2.col0 * CAST ( 11 AS INTEGER ) FROM tab2
----
77
858
869

query I rowsort
SELECT + 92 * col1 FROM tab0
----
7912
8372
8924

query I rowsort
SELECT ALL - col0 + col0 + - col1 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT 58 + col2 AS col1 FROM tab0
----
140
59
91

query I rowsort
SELECT col0 + + ( col1 ) * - ( col0 ) + - col1 AS col1 FROM tab0
----
-2126
-3457
-8101

query I rowsort
SELECT 10 + + 48 FROM tab1 AS cor0
----
58
58
58

query I rowsort
SELECT DISTINCT col2 + - 1 * col1 AS col1 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT - 4 FROM tab0
----
-4
-4
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 * + tab2.col2 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to e4fd9d16116443b7eee5ff68e1d13137

onlyif mysql # use DIV operator for integer division
query I rowsort label-7026
SELECT DISTINCT + ( - 30 ) DIV col0 AS col2 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-7026
SELECT DISTINCT + ( - 30 ) / col0 AS col2 FROM tab0
----
-1
0

query I rowsort
SELECT ALL 53 * - 17 AS col2 FROM tab0
----
-901
-901
-901

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7028
SELECT ALL col1 + + col2 * CAST( col0 AS SIGNED ) * - col2 AS col1 FROM tab0 cor0
----
-26050
-598345
62

skipif mysql # not compatible
query I rowsort label-7028
SELECT ALL col1 + + col2 * CAST ( col0 AS INTEGER ) * - col2 AS col1 FROM tab0 cor0
----
-26050
-598345
62

query I rowsort
SELECT ALL + ( - col0 ) * col1 AS col0 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT + + 6 + - 76 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

query I rowsort
SELECT - col1 + col2 + 29 AS col1 FROM tab1 AS cor0
----
112
57
76

query I rowsort
SELECT - 11 + col1 FROM tab0 AS cor0
----
75
80
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 87 col1 FROM tab0 cor0
----
87
87
87

query I rowsort
SELECT ALL col2 + col2 AS col1 FROM tab0 cor0
----
164
2
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-7035
SELECT + col0 DIV + col0 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7035
SELECT + 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-7036
SELECT ALL + + col2 * CAST( 78 AS SIGNED ) + + col0 * col1 AS col0 FROM tab2 AS cor0
----
2323
4307
6630

skipif mysql # not compatible
query I rowsort label-7036
SELECT ALL + + col2 * CAST ( 78 AS INTEGER ) + + col0 * col1 AS col0 FROM tab2 AS cor0
----
2323
4307
6630

query I rowsort
SELECT DISTINCT - + col0 + col1 * + col0 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT ALL - - col0 * 15 + col1 * col2 AS col1 FROM tab2 AS cor0
----
1831
2704
942

query I rowsort
SELECT ALL col1 * cor0.col1 + - col0 * - col0 + + ( - 78 + - col1 ) AS col2 FROM tab0 AS cor0
----
10459
16033
7808

query I rowsort
SELECT - cor0.col2 + + col0 AS col1 FROM tab1 cor0
----
-16
-51
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-7041
SELECT DISTINCT - - col1 * + 89 + - col1 * col0 DIV 15 AS col1 FROM tab2 cor0
----
1424
2745
4945

skipif mysql # not compatible
query I rowsort label-7041
SELECT DISTINCT - - col1 * + 89 + - col1 * col0 / 15 AS col1 FROM tab2 cor0
----
1424
2745
4945

onlyif mysql # use DIV operator for integer division
query I rowsort label-7042
SELECT DISTINCT + - col1 DIV ( col0 ) + - cor0.col1 * cor0.col1 * + col0 + col1 AS col1 FROM tab2 AS cor0
----
-22814
-271459
-6700

skipif mysql # not compatible
query I rowsort label-7042
SELECT DISTINCT + - col1 / ( col0 ) + - cor0.col1 * cor0.col1 * + col0 + col1 AS col1 FROM tab2 AS cor0
----
-22814
-271459
-6700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col2 col2 FROM tab2 AS cor0
----
55
58
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + 36 * col2 col2 FROM tab2 cor0
----
1003
1385
995

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7045
SELECT ALL - ( - col2 ) + col2 + - CAST( NULL AS DECIMAL ) * col1 / - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7045
SELECT ALL - ( - col2 ) + col2 + - CAST ( NULL AS REAL ) * col1 / - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 66 * col1 + col2 - col1 * - ( + col1 ) AS col1 FROM tab2 AS cor0
----
1449
3034
7401

query I rowsort
SELECT DISTINCT + - cor0.col0 * + cor0.col2 * col2 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT - cor0.col1 + + col2 AS col1 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT col2 + - col1 + + col0 AS col1 FROM tab0 AS cor0
----
-29
-61
80

query I rowsort
SELECT ALL - ( col0 ) * - col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + + col2 * + cor0.col1 + + col2 FROM tab1 AS cor0
----
1344
1458
627

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7052
SELECT + cor0.col1 * - CAST( NULL AS SIGNED ) FROM tab1, tab2 cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-7052
SELECT + cor0.col1 * - CAST ( NULL AS INTEGER ) FROM tab1, tab2 cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT col0 + - col0 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT col2 - + col0 * + col0 FROM tab1
----
-4039
-6304
45

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7055
SELECT DISTINCT col1 - - CAST( 45 AS SIGNED ) AS col0 FROM tab0
----
131
136
142

skipif mysql # not compatible
query I rowsort label-7055
SELECT DISTINCT col1 - - CAST ( 45 AS INTEGER ) AS col0 FROM tab0
----
131
136
142

query I rowsort
SELECT 1 FROM tab2, tab0 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT + 53 * + col0 FROM tab1
----
159
3392
4240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 + col0 col2 FROM tab2 cor0
----
-24
19
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( + col0 ) * col1 * col2 - - 53 * - col2 col0 FROM tab1 AS cor0
----
-104928
-39501
-7074

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7060
SELECT DISTINCT CAST( col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-7060
SELECT DISTINCT CAST ( col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL - col0 * cor0.col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT + - ( - 77 ) * - col2 + + cor0.col2 FROM tab0 AS cor0
----
-2508
-6232
-76

query I rowsort
SELECT - + ( col2 ) + col0 * + col2 FROM tab1 AS cor0
----
108
3591
7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-7064
SELECT + col2 - - cor0.col1 DIV + 90 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-7064
SELECT + col2 - - cor0.col1 / + 90 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL col2 * - 51 + - col0 FROM tab2
----
-1384
-1404
-2017

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 52 * tab0.col2 col2 FROM tab0, tab0 AS cor0
----
1716
4264
52

query I rowsort
SELECT 28 FROM tab2, tab1 AS cor0, tab1, tab1 AS cor1
----
81 values hashing to 423726553d33e100432ebde49ddd31b5

query I rowsort
SELECT - - ( + col2 ) - ( + 95 ) FROM tab2 AS cor0
----
-57
-68
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col0 + + col1 ) col2 FROM tab2
----
-19
-62
24

query I rowsort
SELECT + col2 * - col2 * - 16 FROM tab2 AS cor0
----
10816
11664
23104

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col0 FROM tab1, tab1 AS cor0, tab2 cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7072
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab0 AS cor0, tab0 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7072
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab0 AS cor0, tab0 cor1
----
NULL

query I rowsort
SELECT DISTINCT 17 FROM tab0, tab0 cor0
----
17

query I rowsort
SELECT DISTINCT 24 AS col1 FROM tab2, tab0 AS cor0
----
24

query I rowsort
SELECT ALL cor0.col0 + col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT - tab2.col1 * col2 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT ALL + cor0.col2 - 31 AS col2 FROM tab2 AS cor0
----
-4
-5
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-7078
SELECT - - col0 + col2 * ( 87 ) DIV - col1 FROM tab1 AS cor0
----
-177
-431
-562

skipif mysql # not compatible
query I rowsort label-7078
SELECT - - col0 + col2 * ( 87 ) / - col1 FROM tab1 AS cor0
----
-177
-431
-562

query I rowsort
SELECT DISTINCT - ( cor0.col0 ) FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ALL + ( + col2 ) * col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col0 * col2 col2 FROM tab0 cor0
----
26136
35
598436

query I rowsort
SELECT col1 + col0 * ( - ( + col0 ) ) FROM tab0 AS cor0
----
-1128
-490
-7830

query I rowsort
SELECT + 37 + - col0 AS col1 FROM tab2 AS cor0
----
-41
-42
30

query I rowsort
SELECT ( 48 ) * col1 * + col1 AS col0 FROM tab2
----
13872
167088
46128

query I rowsort
SELECT ALL tab2.col0 * col1 AS col0 FROM tab2
----
1343
217
4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7086
SELECT + - col1 * + col2 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7086
SELECT + - col1 * + 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 ALL 20 col1 FROM tab1 AS cor0
----
20
20
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - cor0.col2 + col2 col0 FROM tab2 AS cor0
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col0 + + 2 col2 FROM tab2 AS cor0
----
1345
219
4604

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7090
SELECT DISTINCT - col2 + - col1 * CAST( - col1 * col1 AS SIGNED ) + 21 FROM tab0 AS cor0
----
636044
753510
912693

skipif mysql # not compatible
query I rowsort label-7090
SELECT DISTINCT - col2 + - col1 * CAST ( - col1 * col1 AS INTEGER ) + 21 FROM tab0 AS cor0
----
636044
753510
912693

query I rowsort
SELECT DISTINCT + 75 - col0 AS col0 FROM tab0 AS cor0
----
-14
40
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-7092
SELECT DISTINCT - + col2 DIV - 61 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7092
SELECT DISTINCT - + col2 / - 61 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - col2 + 45 * col2 * + col0 FROM tab0 AS cor0
----
1574
328328
35607

query I rowsort
SELECT DISTINCT 61 + + 65 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
126

onlyif mysql # use DIV operator for integer division
query I rowsort label-7095
SELECT ALL col1 * col2 + + col1 DIV - ( + col2 ) FROM tab0
----
0
2836
7461

skipif mysql # not compatible
query I rowsort label-7095
SELECT ALL col1 * col2 + + col1 / - ( + col2 ) FROM tab0
----
0
2836
7461

onlyif mysql # use DIV operator for integer division
query I rowsort label-7096
SELECT ALL col1 DIV - col1 AS col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7096
SELECT ALL col1 / - col1 AS col1 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT - 95 + col0 * col1 + col0 AS col1 FROM tab2 AS cor0
----
129
1327
4585

query I rowsort
SELECT ALL + + 42 * cor0.col2 + - cor0.col2 FROM tab2 cor0
----
1066
1107
1558

query I rowsort
SELECT DISTINCT - tab1.col0 AS col2 FROM tab1, tab2 AS cor0
----
-3
-64
-80

query I rowsort
SELECT ALL 97 FROM tab1, tab0 cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query I rowsort
SELECT ALL + ( col1 ) - - col1 AS col0 FROM tab2
----
118
34
62

query I rowsort
SELECT DISTINCT ( + tab0.col1 ) - - col1 AS col0 FROM tab0
----
172
182
194

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7103
SELECT - + CAST( NULL AS SIGNED ) + + 33 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7103
SELECT - + CAST ( NULL AS INTEGER ) + + 33 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + 18 FROM tab2 AS cor0
----
-60
-61
11

query I rowsort
SELECT 25 * col2 AS col2 FROM tab0 AS cor0
----
2050
25
825

query I rowsort
SELECT col2 * - col0 + + col2 AS col1 FROM tab0
----
-34
-7216
-759

onlyif mysql # use DIV operator for integer division
query I rowsort label-7107
SELECT ALL col1 DIV - col1 + - tab2.col2 FROM tab2
----
-27
-28
-39

skipif mysql # not compatible
query I rowsort label-7107
SELECT ALL col1 / - col1 + - tab2.col2 FROM tab2
----
-27
-28
-39

query I rowsort
SELECT + 31 + col2 + col0 FROM tab1
----
152
207
88

query I rowsort
SELECT DISTINCT + ( col2 ) - col1 FROM tab0
----
-53
-9
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-7110
SELECT DISTINCT - col0 DIV - col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7110
SELECT DISTINCT - col0 / - col0 FROM tab1 AS cor0
----
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7111
SELECT CAST( NULL AS DECIMAL ) AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-7111
SELECT CAST ( NULL AS REAL ) AS col1 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-7112
SELECT - 85 + 10 DIV col2 AS col2 FROM tab1
----
-85
-85
-85

skipif mysql # not compatible
query I rowsort label-7112
SELECT - 85 + 10 / col2 AS col2 FROM tab1
----
-85
-85
-85

query I rowsort
SELECT + col1 - 43 FROM tab1 AS cor0
----
-17
-30
-33

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7114
SELECT + + 90 + + col1 * col1 * CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
22921
271608
6817

skipif mysql # not compatible
query I rowsort label-7114
SELECT + + 90 + + col1 * col1 * CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
22921
271608
6817

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 40 * - col1 col1 FROM tab1 AS cor0
----
-1040
-400
-520

query I rowsort
SELECT DISTINCT 2 - + col0 AS col2 FROM tab0
----
-22
-33
-87

query I rowsort
SELECT 21 + col1 FROM tab1
----
31
34
47

query I rowsort
SELECT ALL 90 FROM tab2, tab1 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 3b4644ef0734ed220952cae7e0648c4b

query I rowsort
SELECT ALL + cor0.col2 * - col0 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT - 82 + col0 FROM tab1
----
-18
-2
-79

query I rowsort
SELECT - ( - col1 ) + col0 * + col2 + + col0 AS col2 FROM tab2
----
2165
227
3098

query I rowsort
SELECT ALL col0 + col1 * 42 FROM tab2
----
1309
2556
793

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 39 * col0 col1 FROM tab2
----
-273
-3042
-3081

query I rowsort
SELECT tab0.col2 FROM tab0, tab2 cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT DISTINCT 29 + + col1 AS col2 FROM tab1 AS cor0
----
39
42
55

query I rowsort
SELECT col0 * - col2 + cor0.col2 + - col0 AS col2 FROM tab2 AS cor0
----
-169
-2080
-3043

query I rowsort
SELECT DISTINCT + + 50 * 73 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1, tab1, tab0 AS cor2
----
3650

query I rowsort
SELECT + - col2 * + col1 + + col0 * 4 FROM tab1 AS cor0
----
-1392
-314
-928

query I rowsort
SELECT DISTINCT + ( col2 ) FROM tab0 AS cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col2 col0 FROM tab2 cor0
----
-33
-4
21

query I rowsort
SELECT 96 * + col0 + - col1 * 47 + - col1 AS col0 FROM tab2 AS cor0
----
-816
4656
6768

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7132
SELECT col2 * CAST( NULL AS SIGNED ) + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7132
SELECT col2 * CAST ( NULL AS INTEGER ) + col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7133
SELECT 80 DIV tab1.col2 col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 3daf191600c64328f2c60722189235c6

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7133
SELECT 80 / tab1.col2 col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 3daf191600c64328f2c60722189235c6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7134
SELECT ALL - col1 / + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7134
SELECT ALL - col1 / + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + cor0.col1 * - 95 + cor0.col2 FROM tab0 AS cor0
----
-8137
-8563
-9214

query I rowsort
SELECT ALL + 50 * - cor0.col0 * - col2 + col1 AS col0 FROM tab0 AS cor0
----
1847
364991
39686

query I rowsort
SELECT 80 AS col0 FROM tab1 AS cor0
----
80
80
80

query I rowsort
SELECT ALL - + 19 AS col0 FROM tab1 cor0
----
-19
-19
-19

query I rowsort
SELECT ALL - ( ( col2 ) ) + - cor0.col1 AS col2 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT ALL + 56 * col0 + cor0.col0 AS col2 FROM tab0 AS cor0
----
1368
1995
5073

query I rowsort
SELECT DISTINCT - col2 + - 72 * + col2 FROM tab0 AS cor0
----
-2409
-5986
-73

query I rowsort
SELECT ALL - 42 * + 36 FROM tab1 cor0
----
-1512
-1512
-1512

onlyif mysql # use DIV operator for integer division
query I rowsort label-7143
SELECT + col0 DIV - col0 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7143
SELECT + col0 / - col0 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - 65 * col1 + - col2 FROM tab1 AS cor0
----
-1744
-707
-941

query I rowsort
SELECT - cor0.col1 * 50 AS col1 FROM tab2 AS cor0
----
-1550
-2950
-850

query I rowsort
SELECT DISTINCT - 47 * col0 FROM tab1 AS cor0
----
-141
-3008
-3760

query I rowsort
SELECT ALL 18 * - cor0.col1 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 7a93406e90feb2654767934e87035d89

onlyif mysql # use DIV operator for integer division
query I rowsort label-7148
SELECT tab1.col0 DIV col1 + ( tab1.col0 ) * 83 AS col1 FROM tab1
----
249
5318
6646

skipif mysql # not compatible
query I rowsort label-7148
SELECT tab1.col0 / col1 + ( tab1.col0 ) * 83 AS col1 FROM tab1
----
249
5318
6646

query I rowsort
SELECT DISTINCT + ( cor0.col2 ) FROM tab0, tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT + + col1 * 80 AS col0 FROM tab0 AS cor0
----
6880
7280
7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - 89 col2 FROM tab2 AS cor0
----
-10
-11
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 78 * col2 * - cor0.col1 col2 FROM tab1 cor0
----
-109512
-44460
-97344

query I rowsort
SELECT ALL cor0.col1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT DISTINCT tab1.col0 * + 65 AS col0 FROM tab1
----
195
4160
5200

query I rowsort
SELECT + col2 * col1 + ( col1 ) FROM tab2 AS cor0
----
1593
663
868

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * cor0.col2 col0 FROM tab1, tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT + - col2 + + 26 * col0 * + col1 FROM tab2 AS cor0
----
119626
34880
5615

query I rowsort
SELECT ALL + col0 + - ( + col2 ) AS col1 FROM tab2 AS cor0
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-7159
SELECT ALL + + cor0.col1 + - col2 * + col1 DIV col1 FROM tab2 AS cor0
----
-21
33
4

skipif mysql # not compatible
query I rowsort label-7159
SELECT ALL + + cor0.col1 + - col2 * + col1 / col1 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT - col2 + 64 AS col0 FROM tab2 AS cor0
----
26
37
38

query I rowsort
SELECT + 54 * col1 + 35 FROM tab0
----
4679
4949
5273

query I rowsort
SELECT DISTINCT col2 * 59 + + 98 FROM tab1
----
3284
3461
5762

query I rowsort
SELECT col2 * + 12 AS col1 FROM tab0
----
12
396
984

query I rowsort
SELECT - col0 + col0 + + col2 AS col0 FROM tab0
----
1
33
82

query I rowsort
SELECT - 12 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 3983bffe2adf88cb2efc3be93ee620c0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + ( 68 ) col2 FROM tab0
----
101
150
69

query I rowsort
SELECT col1 + col0 * col0 AS col1 FROM tab2
----
6143
6258
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-7168
SELECT DISTINCT - cor0.col1 DIV - col1 AS col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7168
SELECT DISTINCT - cor0.col1 / - col1 AS col1 FROM tab2 AS cor0
----
1

query I rowsort
SELECT ALL - - col0 + col2 AS col1 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT - - col1 * 86 AS col0 FROM tab2 AS cor0
----
1462
2666
5074

query I rowsort
SELECT DISTINCT col0 * + col0 AS col0 FROM tab2
----
49
6084
6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-7172
SELECT col1 DIV - 27 FROM tab2
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-7172
SELECT col1 / - 27 FROM tab2
----
-1
-2
0

query I rowsort
SELECT DISTINCT 29 AS col1 FROM tab0
----
29

query I rowsort
SELECT + cor0.col0 * - col1 * + 66 FROM tab1 AS cor0
----
-42240
-5148
-68640

query I rowsort
SELECT DISTINCT - ( - col1 ) * + col1 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT - col2 + 5 * - tab1.col0 * + col2 AS col0 FROM tab1
----
-18297
-38496
-864

onlyif mysql # use DIV operator for integer division
query I rowsort label-7177
SELECT ALL 86 DIV tab1.col2 AS col1 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7177
SELECT ALL 86 / tab1.col2 AS col1 FROM tab1
----
0
1
1

query I rowsort
SELECT ALL col1 + + ( col1 ) AS col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT col1 * + col1 * + cor0.col2 FROM tab2 cor0
----
10982
25947
90506

query I rowsort
SELECT DISTINCT + ( + col2 ) * ( + col2 ) AS col1 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT ALL - col0 * + col0 AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT ALL + 48 - + col0 FROM tab2 AS cor0
----
-30
-31
41

query I rowsort
SELECT DISTINCT - - ( col0 ) * - col1 * col1 AS col1 FROM tab2 AS cor0
----
-22831
-271518
-6727

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - col2 col0 FROM tab1 cor0
----
-121
-176
-57

query I rowsort
SELECT DISTINCT + col0 * col0 + - col0 FROM tab2 cor0
----
42
6006
6162

query I rowsort
SELECT DISTINCT - 41 - - col2 FROM tab2 cor0
----
-14
-15
-3

query I rowsort
SELECT ALL - - cor0.col0 * - col2 + 38 - col1 * + col0 FROM tab0 AS cor0
----
-15359
-2818
-3392

query I rowsort
SELECT ALL - 45 + - cor0.col0 FROM tab1 AS cor0
----
-109
-125
-48

query I rowsort
SELECT DISTINCT col1 + + col0 * + 69 * col1 + col0 FROM tab2 AS cor0
----
15011
317675
92763

query I rowsort
SELECT DISTINCT + col1 + cor0.col2 AS col0 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT + 89 AS col2 FROM tab0
----
89
89
89

query I rowsort
SELECT ALL + tab1.col2 * col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT DISTINCT col1 * + col0 * 28 AS col2 FROM tab0 AS cor0
----
226772
57792
95060

query I rowsort
SELECT + col0 + - ( - ( - col1 ) ) * + col0 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT + col1 * - ( + ( - col2 ) ) AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT col2 + col2 * col2 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT DISTINCT + + col0 * ( cor0.col0 ) AS col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT + col0 + ( + ( - col2 ) ) * - ( - 28 ) AS col0 FROM tab1 cor0
----
-1509
-1532
-2608

query I rowsort
SELECT col2 * + cor0.col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT + + col0 * ( - cor0.col0 + col1 ) * col2 AS col1 FROM tab1 cor0
----
-196992
-514560
3726

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7201
SELECT ALL + + CAST( NULL AS SIGNED ) + col1 * - col0 * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7201
SELECT ALL + + CAST ( NULL AS INTEGER ) + col1 * - col0 * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col0 + col1 * - col2 AS col2 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT ALL + + 38 + col2 * - col1 AS col1 FROM tab0 AS cor0
----
-2800
-59
-7424

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7204
SELECT + - CAST( NULL AS SIGNED ) * - ( + col2 ) * - col0 + - col2 / + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7204
SELECT + - CAST ( NULL AS INTEGER ) * - ( + col2 ) * - col0 + - col2 / + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( col1 ) * cor0.col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT + cor0.col1 + + cor0.col2 + + col1 FROM tab2 AS cor0
----
144
72
89

query I rowsort
SELECT DISTINCT ( tab2.col0 * tab2.col0 ) FROM tab2
----
49
6084
6241

query I rowsort
SELECT - cor0.col1 + col0 AS col0 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT - 78 * col0 FROM tab1 cor0
----
-234
-4992
-6240

query I rowsort
SELECT - 15 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1, tab0, tab2 AS cor2
----
243 values hashing to 493d0614a60e9819b5547eae2efb074c

query I rowsort
SELECT 42 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e

query I rowsort
SELECT DISTINCT 64 AS col2 FROM tab2, tab1 AS cor0
----
64

query I rowsort
SELECT ALL - 41 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

query I rowsort
SELECT col1 * - col2 + + 5 * + col2 AS col1 FROM tab0 cor0
----
-2673
-7052
-92

query I rowsort
SELECT cor0.col0 * col1 * - ( + col0 ) + col0 FROM tab2 AS cor0
----
-106018
-1512
-358878

onlyif mysql # use DIV operator for integer division
query I rowsort label-7216
SELECT + col1 DIV - col0 + - 2 AS col0 FROM tab1 AS cor0
----
-10
-2
-2

skipif mysql # not compatible
query I rowsort label-7216
SELECT + col1 / - col0 + - 2 AS col0 FROM tab1 AS cor0
----
-10
-2
-2

query I rowsort
SELECT - col0 - + 33 * + col1 FROM tab0
----
-2862
-3092
-3236

query I rowsort
SELECT ALL + col2 + + 32 AS col2 FROM tab1 AS cor0
----
128
86
89

query I rowsort
SELECT DISTINCT + + col1 * - 49 FROM tab0 AS cor0
----
-4214
-4459
-4753

query I rowsort
SELECT + col2 * + ( - col2 ) - + col1 AS col2 FROM tab0 cor0
----
-1175
-6815
-98

query I rowsort
SELECT ALL col1 * + col1 + 64 * col0 * col1 + col1 * - cor0.col0 FROM tab1 cor0
----
40420
5590
65689

query I rowsort
SELECT - - col2 + ( + col1 ) FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT - col1 * - col1 + ( col0 ) AS col1 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT ALL - - col0 + - cor0.col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT + col1 * + col0 + - col2 FROM tab0 cor0
----
2031
3394
8017

query I rowsort
SELECT DISTINCT col0 + col0 AS col1 FROM tab1 cor0
----
128
160
6

query I rowsort
SELECT DISTINCT + col2 * - 9 * col1 FROM tab2 AS cor0
----
-13806
-5814
-7533

query I rowsort
SELECT ALL + 21 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT 84 * ( col0 ) AS col2 FROM tab0 AS cor0
----
2016
2940
7476

query I rowsort
SELECT DISTINCT col1 + - col1 FROM tab1 cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7231
SELECT - ( - ( col2 ) ) DIV + col1 + - col1 FROM tab0 cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-7231
SELECT - ( - ( col2 ) ) / + col1 + - col1 FROM tab0 cor0
----
-86
-91
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7232
SELECT + col0 + - CAST( 64 AS SIGNED ) * - col2 AS col0 FROM tab2
----
1735
1742
2511

skipif mysql # not compatible
query I rowsort label-7232
SELECT + col0 + - CAST ( 64 AS INTEGER ) * - col2 AS col0 FROM tab2
----
1735
1742
2511

query IIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab2 cor1
----
243 values hashing to 2248b8c3b6efacb4e8fc6d9f81b7df8b

query I rowsort
SELECT - ( - col1 ) * 7 FROM tab0 AS cor0
----
602
637
679

query IIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 WHERE NOT ( NULL ) <= NULL
----

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7236
SELECT ALL CAST( NULL AS SIGNED ) FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-7236
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT + 40 FROM tab0 AS cor0
----
40

query I rowsort
SELECT DISTINCT 64 FROM tab1
----
64

query I rowsort
SELECT 54 * col0 FROM tab0
----
1296
1890
4806

query I rowsort
SELECT ALL + col1 * - 45 AS col0 FROM tab0 AS cor0
----
-3870
-4095
-4365

query I rowsort
SELECT cor0.col2 * + 48 - col2 * + col1 FROM tab2 AS cor0
----
-286
1178
459

query I rowsort
SELECT ALL col0 + 70 * + col1 AS col0 FROM tab1 AS cor0
----
1823
764
990

query I rowsort
SELECT - 58 * + tab2.col0 FROM tab2
----
-406
-4524
-4582

query I rowsort
SELECT 37 * col2 AS col2 FROM tab2
----
1406
962
999

query I rowsort
SELECT 81 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360

query I rowsort
SELECT DISTINCT tab0.col0 * tab0.col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT cor0.col0 * col2 AS col1 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT + cor0.col1 * + col2 * col2 AS col2 FROM tab1 AS cor0
----
119808
32490
75816

query I rowsort
SELECT DISTINCT col2 * col2 * col2 AS col2 FROM tab2
----
17576
19683
54872

query I rowsort
SELECT DISTINCT col2 + + col1 * + col2 AS col0 FROM tab2
----
1560
684
864

query I rowsort
SELECT col0 * + col1 + + col1 * col1 + col1 FROM tab1
----
1222
750
780

query I rowsort
SELECT col2 + col2 * - col0 + + tab2.col0 FROM tab2
----
-155
-1924
-2885

onlyif mysql # use DIV operator for integer division
query I rowsort label-7253
SELECT - col2 DIV + col0 + col1 FROM tab1
----
10
12
8

skipif mysql # not compatible
query I rowsort label-7253
SELECT - col2 / + col0 + col1 FROM tab1
----
10
12
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-7254
SELECT col2 DIV + tab0.col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7254
SELECT col2 / + tab0.col2 FROM tab0
----
1
1
1

query I rowsort
SELECT + col1 + + col0 AS col1 FROM tab1
----
29
74
93

query I rowsort
SELECT - col1 - col0 FROM tab1
----
-29
-74
-93

query I rowsort
SELECT ALL - col0 - - col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - col0 - - col1 FROM tab1
----
-54
-67
23

query IIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 WHERE NOT ( cor0.col0 ) NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT col1 * - col2 + + col2 * col1 * col0 FROM tab2
----
118118
5022
50388

query I rowsort
SELECT col2 + + col0 + - col0 AS col0 FROM tab2
----
26
27
38

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 - ( 54 * - col2 ) + - col2 AS col0 FROM tab0
----
1749
4346
53

query I rowsort
SELECT ALL - ( - col0 ) + - col0 * - col0 FROM tab1
----
12
4160
6480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col2 col2 FROM tab2
----
55
58
85

query I rowsort
SELECT DISTINCT - ( col0 * col2 ) + + col1 * tab0.col0 FROM tab0
----
1272
3360
801

onlyif mysql # use DIV operator for integer division
query I rowsort label-7267
SELECT ALL + 96 DIV col0 FROM tab1
----
1
1
32

skipif mysql # not compatible
query I rowsort label-7267
SELECT ALL + 96 / col0 FROM tab1
----
1
1
32

query I rowsort
SELECT DISTINCT col1 * ( + col0 ) AS col2 FROM tab1
----
1040
640
78

query I rowsort
SELECT - 39 * + 93 AS col2 FROM tab0
----
-3627
-3627
-3627

onlyif mysql # use DIV operator for integer division
query I rowsort label-7270
SELECT - - cor0.col0 DIV + cor0.col2 AS col2 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-7270
SELECT - - cor0.col0 / + cor0.col2 AS col2 FROM tab0 AS cor0
----
0
1
35

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7271
SELECT + CAST( NULL AS SIGNED ) * col1 + col1 / col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7271
SELECT + CAST ( NULL AS INTEGER ) * col1 + col1 / col1 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - ( col2 ) * col0 AS col0 FROM tab1
----
-162
-3648
-7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7273
SELECT + CAST( - col1 AS SIGNED ) + + cor0.col2 * - col2 FROM tab1 AS cor0
----
-2942
-3259
-9229

skipif mysql # not compatible
query I rowsort label-7273
SELECT + CAST ( - col1 AS INTEGER ) + + cor0.col2 * - col2 FROM tab1 AS cor0
----
-2942
-3259
-9229

onlyif mysql # use DIV operator for integer division
query I rowsort label-7274
SELECT - col1 DIV col0 AS col0 FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-7274
SELECT - col1 / col0 AS col0 FROM tab0 AS cor0
----
-1
-2
-3

query I rowsort
SELECT + 6 * col2 FROM tab1 AS cor0
----
324
342
576

onlyif mysql # use DIV operator for integer division
query I rowsort label-7276
SELECT + + col0 DIV col1 AS col2 FROM tab1 AS cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-7276
SELECT + + col0 / col1 AS col2 FROM tab1 AS cor0
----
0
6
6

query I rowsort
SELECT DISTINCT 91 * - col1 AS col0 FROM tab1 AS cor0
----
-1183
-2366
-910

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 + col2 * col2 col0 FROM tab1 AS cor0
----
2862
3192
9120

query I rowsort
SELECT ALL 86 + col0 AS col1 FROM tab0 AS cor0
----
110
121
175

query I rowsort
SELECT DISTINCT + col1 * + col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT + - cor0.col2 * - col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL - - 17 FROM tab0 AS cor0
----
17
17
17

query I rowsort
SELECT col2 * col1 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT + - col1 + + cor0.col0 * col0 AS col1 FROM tab0 AS cor0
----
1128
490
7830

query I rowsort
SELECT - 71 * + col2 FROM tab0 AS cor0
----
-2343
-5822
-71

query I rowsort
SELECT ALL - - 87 FROM tab0 cor0
----
87
87
87

query I rowsort
SELECT DISTINCT col1 + col0 AS col2 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT col1 * - col2 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT col2 + + ( + col1 ) AS col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL + col1 - cor0.col0 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT DISTINCT + 47 AS col2 FROM tab0 AS cor0
----
47

query I rowsort
SELECT - ( + cor0.col1 ) AS col1 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT + ( - col2 ) * col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT 28 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT cor1.col0 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT DISTINCT ( col0 ) FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL col2 * - col2 - cor0.col1 * - col2 AS col0 FROM tab0 AS cor0
----
1749
738
96

query I rowsort
SELECT - + 32 * + cor0.col1 FROM tab1 AS cor0
----
-320
-416
-832

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7299
SELECT DISTINCT + + CAST( + col0 AS SIGNED ) * + cor0.col1 + - ( - cor0.col0 ) * cor0.col0 FROM tab2 AS cor0
----
10686
266
7584

skipif mysql # not compatible
query I rowsort label-7299
SELECT DISTINCT + + CAST ( + col0 AS INTEGER ) * + cor0.col1 + - ( - cor0.col0 ) * cor0.col0 FROM tab2 AS cor0
----
10686
266
7584

query I rowsort
SELECT - + 60 FROM tab1 cor0
----
-60
-60
-60

query I rowsort
SELECT 26 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT ALL + 95 AS col0 FROM tab2
----
95
95
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-7303
SELECT - + ( cor0.col1 ) * + cor0.col0 + - col2 DIV + col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-7303
SELECT - + ( cor0.col1 ) * + cor0.col0 + - col2 / + col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT + col2 + + col0 * ( col0 * col1 ) AS col0 FROM tab2 AS cor0
----
106135
1546
358982

query I rowsort
SELECT + 46 AS col0 FROM tab2
----
46
46
46

query I rowsort
SELECT ALL - 40 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

query I rowsort
SELECT ALL col0 * - col0 AS col1 FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT - - cor0.col2 FROM tab1 cor0
----
54
57
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7309
SELECT ALL - col0 * - CAST( 47 AS SIGNED ) FROM tab1 AS cor0
----
141
3008
3760

skipif mysql # not compatible
query I rowsort label-7309
SELECT ALL - col0 * - CAST ( 47 AS INTEGER ) FROM tab1 AS cor0
----
141
3008
3760

onlyif mysql # use DIV operator for integer division
query I rowsort label-7310
SELECT + - col0 + + col2 DIV 26 FROM tab2 AS cor0
----
-6
-77
-78

skipif mysql # not compatible
query I rowsort label-7310
SELECT + - col0 + + col2 / 26 FROM tab2 AS cor0
----
-6
-77
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-7311
SELECT - - col2 DIV - 74 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7311
SELECT - - col2 / - 74 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT - cor0.col1 * col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL col0 + 54 * + 6 FROM tab0 AS cor0
----
348
359
413

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + - col0 col1 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT DISTINCT + col1 * - 30 AS col2 FROM tab2 AS cor0
----
-1770
-510
-930

query I rowsort
SELECT 20 * - col2 AS col2 FROM tab1
----
-1080
-1140
-1920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - + col0 col1 FROM tab1
----
-7
16
51

query I rowsort
SELECT col1 + + tab0.col0 + - ( col1 ) AS col1 FROM tab0
----
24
35
89

query I rowsort
SELECT - 45 * col0 + + ( col2 ) + tab1.col0 FROM tab1
----
-2759
-3424
-78

query I rowsort
SELECT - ( col2 ) + + tab0.col0 AS col2 FROM tab0
----
-9
34
7

query I rowsort
SELECT - ( cor1.col1 ) FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 22 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query I rowsort
SELECT + + col0 + + cor0.col2 AS col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT DISTINCT + cor0.col0 * 33 AS col0 FROM tab2 cor0
----
231
2574
2607

query I rowsort
SELECT DISTINCT + + col2 * col1 + ( - col1 ) - + col0 FROM tab0 AS cor0
----
-35
2728
7282

query I rowsort
SELECT + col2 + + 36 FROM tab2 AS cor0
----
62
63
74

query I rowsort
SELECT DISTINCT - col0 * - 34 * + col1 - + col2 * - col0 FROM tab0 AS cor0
----
115465
282664
70968

onlyif mysql # use DIV operator for integer division
query I rowsort label-7328
SELECT ALL col0 DIV - col1 AS col2 FROM tab2
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-7328
SELECT ALL col0 / - col1 AS col2 FROM tab2
----
-1
-4
0

query I rowsort
SELECT + col1 + - 24 FROM tab2
----
-7
35
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7330
SELECT - + col1 * col2 + col0 * + CAST( + col2 * col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
113430
4266
51194

skipif mysql # not compatible
query I rowsort label-7330
SELECT - + col1 * col2 + col0 * + CAST ( + col2 * col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
113430
4266
51194

query I rowsort
SELECT + col2 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - col0 + - ( + 56 ) AS col1 FROM tab1
----
-120
-136
-59

query I rowsort
SELECT DISTINCT + + tab1.col0 AS col1 FROM tab1, tab2, tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT col1 * - 7 * - col0 AS col1 FROM tab0
----
14448
23765
56693

query I rowsort
SELECT ALL 21 FROM tab1
----
21
21
21

query I rowsort
SELECT - 17 FROM tab0, tab0 cor0
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

query I rowsort
SELECT DISTINCT ( + col2 ) * tab1.col0 AS col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT ALL + 75 * + 6 FROM tab1
----
450
450
450

query I rowsort
SELECT - col1 + - col2 * - col2 FROM tab1 cor0
----
2890
3239
9203

query I rowsort
SELECT + 8 AS col2 FROM tab2 AS cor0
----
8
8
8

query I rowsort
SELECT + cor0.col1 + - col1 * - col0 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT DISTINCT - col1 * - col1 + 27 AS col2 FROM tab2 AS cor0
----
316
3508
988

query I rowsort
SELECT 98 - - col0 * + 0 FROM tab0 AS cor0
----
98
98
98

query I rowsort
SELECT ALL + - col0 * col0 * 94 FROM tab1 AS cor0
----
-385024
-601600
-846

query I rowsort
SELECT + col0 * - col2 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT + - col0 * + col1 + cor0.col1 AS col0 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT + col2 * + col0 * col1 - col1 AS col2 FROM tab1 AS cor0
----
36470
4186
99827

onlyif mysql # use DIV operator for integer division
query I rowsort label-7348
SELECT - - col1 * cor0.col2 DIV 49 - + 97 * col0 FROM tab0 AS cor0
----
-2271
-3394
-8481

skipif mysql # not compatible
query I rowsort label-7348
SELECT - - col1 * cor0.col2 / 49 - + 97 * col0 FROM tab0 AS cor0
----
-2271
-3394
-8481

query I rowsort
SELECT DISTINCT - - cor0.col0 * 59 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
1416
2065
5251

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7350
SELECT + - col0 * col2 * CAST( NULL AS SIGNED ) + col2 + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7350
SELECT + - col0 * col2 * CAST ( NULL AS INTEGER ) + col2 + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 1 AS col1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL - - col1 * + col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT + - col0 * + 46 + + col1 AS col0 FROM tab0 AS cor0
----
-1018
-1513
-4003

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col2 + col1 * - col0 col2 FROM tab0 AS cor0
----
-1272
-3360
-801

query I rowsort
SELECT - col2 + + col0 AS col1 FROM tab0 cor0
----
-9
34
7

query I rowsort
SELECT DISTINCT + 38 AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
38

query I rowsort
SELECT + 56 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200

onlyif mysql # use DIV operator for integer division
query I rowsort label-7358
SELECT + col0 DIV + col0 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7358
SELECT + col0 / + col0 FROM tab1 cor0
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7359
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-7359
SELECT ALL - CAST ( NULL AS INTEGER ) 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 96 col1 FROM tab0
----
96
96
96

query I rowsort
SELECT ALL + + col1 + - cor0.col2 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT cor0.col1 + + col2 * + col0 AS col2 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT - 68 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 6fbba7db5bccb533a35aa5125a231f88

query I rowsort
SELECT ALL tab0.col1 * - col1 * + col1 AS col1 FROM tab0
----
-636056
-753571
-912673

query I rowsort
SELECT col0 * col1 + col1 * - col1 AS col0 FROM tab0
----
-182
-5332
-6014

query I rowsort
SELECT + cor0.col0 + 58 FROM tab1 AS cor0
----
122
138
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-7367
SELECT - - col1 * col0 + col1 DIV - col2 FROM tab1 AS cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-7367
SELECT - - col1 * col0 + col1 / - col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT + col2 * 52 AS col2 FROM tab0 AS cor0
----
1716
4264
52

query I rowsort
SELECT ALL col1 * + col1 * + col2 AS col1 FROM tab1 AS cor0
----
16224
36504
5700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * cor0.col1 col0 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT + col1 + col0 FROM tab2 cor0
----
137
38
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col2 * - 20 - 25 col1 FROM tab2 AS cor0
----
-545
-565
-785

query I rowsort
SELECT DISTINCT + + col0 + - 45 FROM tab0 AS cor0
----
-10
-21
44

query I rowsort
SELECT DISTINCT - col2 * 86 - - 92 AS col0 FROM tab2 AS cor0
----
-2144
-2230
-3176

query I rowsort
SELECT - cor0.col1 + - cor0.col2 AS col0 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT DISTINCT col0 * 48 + + 18 * - col0 AS col0 FROM tab2 AS cor0
----
210
2340
2370

query I rowsort
SELECT - - 54 AS col2 FROM tab1 AS cor0
----
54
54
54

query I rowsort
SELECT + 22 * - 19 FROM tab1
----
-418
-418
-418

query I rowsort
SELECT + 53 AS col2 FROM tab0
----
53
53
53

query I rowsort
SELECT - 24 * + col0 + col0 + 55 FROM tab1 AS cor0
----
-14
-1417
-1785

query I rowsort
SELECT 36 * - 5 FROM tab1 AS cor0
----
-180
-180
-180

onlyif mysql # use DIV operator for integer division
query I rowsort label-7382
SELECT + 49 + col2 DIV col2 AS col0 FROM tab0 cor0
----
50
50
50

skipif mysql # not compatible
query I rowsort label-7382
SELECT + 49 + col2 / col2 AS col0 FROM tab0 cor0
----
50
50
50

query I rowsort
SELECT + col0 * - 21 * - col2 FROM tab1 AS cor0
----
161280
3402
76608

query I rowsort
SELECT - col1 * + ( - col1 ) * 33 + 65 * + col2 FROM tab1 AS cor0
----
11817
25818
7005

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7385
SELECT - CAST( - 5 AS SIGNED ) col2 FROM tab2 AS cor0
----
5
5
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7385
SELECT - CAST ( - 5 AS INTEGER ) col2 FROM tab2 AS cor0
----
5
5
5

query I rowsort
SELECT ALL + + col1 * col0 AS col2 FROM tab1 cor0
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + col2 col0 FROM tab1 AS cor0
----
-2916
-3249
-9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-7388
SELECT - col1 DIV cor0.col0 FROM tab1 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-7388
SELECT - col1 / cor0.col0 FROM tab1 AS cor0
----
-8
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7389
SELECT ALL - col2 * col1 * - CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
-22599
-24548
-39884

skipif mysql # not compatible
query I rowsort label-7389
SELECT ALL - col2 * col1 * - CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
-22599
-24548
-39884

query I rowsort
SELECT ALL + - col0 * col0 + 10 FROM tab2 AS cor0
----
-39
-6074
-6231

query I rowsort
SELECT DISTINCT + + col0 - + col2 FROM tab0 AS cor0
----
-9
34
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col2 * col0 + - 72 col2 FROM tab1 AS cor0
----
-234
-3720
-7752

query I rowsort
SELECT ALL + + cor0.col1 * - col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT col1 + - col2 AS col1 FROM tab1 AS cor0
----
-28
-47
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-7395
SELECT DISTINCT + col2 DIV col2 + CAST( 26 AS SIGNED ) * col2 * col2 - - col0 * col1 AS col0 FROM tab0 AS cor0
----
182924
30379
3422

skipif mysql # not compatible
query I rowsort label-7395
SELECT DISTINCT + col2 / col2 + CAST ( 26 AS INTEGER ) * col2 * col2 - - col0 * col1 AS col0 FROM tab0 AS cor0
----
182924
30379
3422

query I rowsort
SELECT ALL - col0 * - col1 + - col1 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT ALL 29 AS col1 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318

query I rowsort
SELECT ALL - col1 + cor0.col0 + col0 AS col0 FROM tab1 AS cor0
----
-20
118
147

query I rowsort
SELECT DISTINCT ( cor0.col2 ) + - ( - cor0.col0 ) * + col1 AS col0 FROM tab1 cor0
----
1136
132
697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 53 col0 FROM tab1 AS cor0
----
53
53
53

query I rowsort
SELECT + - 31 + col2 FROM tab0 cor0
----
-30
2
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7402
SELECT ALL - cor0.col0 + col0 / CAST( - col0 * col0 + + CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7402
SELECT ALL - cor0.col0 + col0 / CAST ( - col0 * col0 + + CAST ( NULL AS INTEGER ) 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-7403
SELECT DISTINCT + cor0.col2 * col0 + + CAST( + 57 AS SIGNED ) * col2 + col2 FROM tab1 AS cor0
----
13248
3294
6954

skipif mysql # not compatible
query I rowsort label-7403
SELECT DISTINCT + cor0.col2 * col0 + + CAST ( + 57 AS INTEGER ) * col2 + col2 FROM tab1 AS cor0
----
13248
3294
6954

query I rowsort
SELECT ALL - col1 - - col0 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT + ( col1 ) AS col2 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT DISTINCT - col2 + + col2 + + 92 AS col2 FROM tab1 cor0
----
92

query I rowsort
SELECT ALL - 48 FROM tab0 AS cor0
----
-48
-48
-48

query I rowsort
SELECT DISTINCT + + 48 + col1 AS col1 FROM tab2 AS cor0
----
107
65
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-7409
SELECT + col0 DIV 88 AS col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7409
SELECT + col0 / 88 AS col0 FROM tab2 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col2 * + col1 col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT + col0 * cor0.col1 AS col2 FROM tab1 AS cor0
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor2.col1 col0 FROM tab1, tab1 AS cor0, tab2 cor1, tab0, tab1 AS cor2
----
243 values hashing to de2705ff0bb8b4f714dafb07497c6119

query I rowsort
SELECT + col0 + + cor0.col1 * col0 AS col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT ALL + 85 * - col0 FROM tab2 AS cor0
----
-595
-6630
-6715

onlyif mysql # use DIV operator for integer division
query I rowsort label-7415
SELECT + + col2 + col2 DIV cor0.col0 AS col2 FROM tab2 AS cor0
----
26
30
38

skipif mysql # not compatible
query I rowsort label-7415
SELECT + + col2 + col2 / cor0.col0 AS col2 FROM tab2 AS cor0
----
26
30
38

query I rowsort
SELECT ALL + ( 59 ) - + col2 FROM tab0 AS cor0
----
-23
26
58

query I rowsort
SELECT ALL + col0 + - 14 + col0 FROM tab0 cor0
----
164
34
56

onlyif mysql # use DIV operator for integer division
query I rowsort label-7418
SELECT ALL - + 57 DIV + col1 - - col2 * - col1 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-7418
SELECT ALL - + 57 / + col1 - - col2 * - col1 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-7419
SELECT ALL + tab0.col0 * col2 DIV 71 - col0 DIV 97 AS col2 FROM tab0
----
0
102
11

skipif mysql # not compatible
query I rowsort label-7419
SELECT ALL + tab0.col0 * col2 / 71 - col0 / 97 AS col2 FROM tab0
----
0
102
11

onlyif mysql # use DIV operator for integer division
query I rowsort label-7420
SELECT col0 + + col0 DIV col2 AS col2 FROM tab1
----
3
65
80

skipif mysql # not compatible
query I rowsort label-7420
SELECT col0 + + col0 / col2 AS col2 FROM tab1
----
3
65
80

query I rowsort
SELECT ALL 91 + 4 AS col2 FROM tab0
----
95
95
95

query I rowsort
SELECT ( 10 ) - col0 FROM tab0
----
-14
-25
-79

query I rowsort
SELECT - - col0 + ( col2 * col0 ) AS col2 FROM tab0 cor0
----
70
7387
816

query I rowsort
SELECT ( 82 ) * col1 AS col0 FROM tab1 AS cor0
----
1066
2132
820

query I rowsort
SELECT + + col2 * - col1 + cor0.col0 AS col1 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT col2 * 93 FROM tab0 AS cor0
----
3069
7626
93

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( + col2 AS REAL ) + - col0 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT DISTINCT 58 * + col2 + + col0 * + cor0.col1 FROM tab2 AS cor0
----
1783
3547
6110

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7429
SELECT ALL + cor1.col1 / - CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-7429
SELECT ALL + cor1.col1 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL + + ( col2 ) + cor0.col1 * + col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT + + 13 FROM tab0 cor0
----
13
13
13

query I rowsort
SELECT DISTINCT 81 + col1 FROM tab0
----
167
172
178

onlyif mysql # use DIV operator for integer division
query I rowsort label-7433
SELECT - col1 + col1 * col1 DIV + col2 FROM tab1
----
-12
-14
-9

skipif mysql # not compatible
query I rowsort label-7433
SELECT - col1 + col1 * col1 / + col2 FROM tab1
----
-12
-14
-9

query I rowsort
SELECT DISTINCT 69 * col0 + + tab0.col2 * + 59 FROM tab0
----
10979
2474
3603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 59 col2 FROM tab0
----
-59
-59
-59

query I rowsort
SELECT ALL - 51 FROM tab0, tab2 cor0
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

query I rowsort
SELECT DISTINCT - col0 * ( 19 ) FROM tab0
----
-1691
-456
-665

query I rowsort
SELECT - 72 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

query I rowsort
SELECT ALL + tab0.col0 * col1 * - col0 AS col1 FROM tab0
----
-118825
-49536
-720811

query I rowsort
SELECT DISTINCT + + col2 * col0 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT cor0.col2 * 79 * cor0.col1 AS col0 FROM tab2 cor0
----
121186
51034
66123

query I rowsort
SELECT ALL col0 * + ( - col2 ) AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT - col2 + - col1 * + 3 FROM tab0 AS cor0
----
-291
-292
-355

query I rowsort
SELECT - - cor0.col1 + - 11 * + col0 AS col2 FROM tab1 AS cor0
----
-694
-7
-867

query I rowsort
SELECT DISTINCT + cor0.col0 * + col0 * - col0 FROM tab2 AS cor0
----
-343
-474552
-493039

query I rowsort
SELECT ALL - ( cor0.col1 ) AS col1 FROM tab0 cor0
----
-86
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col0 ) col1 FROM tab2
----
7
78
79

query I rowsort
SELECT DISTINCT ( 96 ) * - col2 FROM tab0
----
-3168
-7872
-96

query I rowsort
SELECT DISTINCT - cor1.col0 AS col2 FROM tab2, tab1 cor0, tab0 AS cor1
----
-24
-35
-89

query I rowsort
SELECT ALL 69 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT - + 4 + col2 FROM tab0 AS cor0
----
-3
29
78

query I rowsort
SELECT DISTINCT - 53 + 11 FROM tab1 AS cor0
----
-42

query I rowsort
SELECT - - col2 + + col2 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT cor2.col2 + ( 62 ) AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab2, tab2 AS cor2
----
243 values hashing to c2aaf63af9cf45899e7e2b1268a9c27f